The public, versioned scan rules behind the safety check in every TomeVault verdict.
TomeVault grades the files that steer AI agents (CLAUDE.md, AGENTS.md, GEMINI.md, SKILL.md, Cursor rules, Copilot instructions, Windsurf rules, and related formats) on four things: whether they load, whether they're clear enough to follow, whether they're safe, and whether they hold up across models. This repository holds the rules behind the safety check, the patterns we match for credential leaks, prompt injection, and data exfiltration. They live here in the open, so anyone can audit exactly what the scanner looks for, propose changes, and watch the rule set evolve.
A scanner whose rules are hidden asks you to trust the result. One whose rules are public lets you check it. A verdict is only as credible as the rules behind it, so the rules are not a secret. And we don't sell the models or tools we grade for, which is the one position a model vendor scoring its own model can't hold.
The full standard, and how we grade, sign, and ratify: tomevault.io/standards. How security scanning works: tomevault.io/standards/security-scanning.
v1/
credential.yaml API keys, tokens, private keys
command.yaml destructive shell patterns, privilege escalation
exfiltration.yaml secrets-to-URL, reverse shells
injection.yaml prompt-injection patterns (jailbreak, override, etc.)
file_access.yaml /etc/passwd, SSH keys, /proc, docker socket
obfuscation.yaml base64 blobs, zero-width chars, encoded payloads
Each rule has:
id: stable identifier used in scan results and creator dashboards.severity: one ofcritical,high,medium,low.pattern: Python-style regex.flags: optional list, currently onlyIGNORECASE.
The AST10 category mapping appears at the top of each YAML file.
Open an issue using the RFC template (see RFC.md). Changes ratify per the process described at tomevault.io/standards/ratification.
Ratified changes land as tagged releases (v1.0.0, v1.1.0, ...). Scanners pick up the latest ratified release automatically on the next scan cycle.
Semantic versioning, scoped to behavior change:
- Major: a change that would reclassify existing indexed files across grade boundaries (e.g., demoting a rule from
criticaltomedium, adding a wide-reaching rule). - Minor: additive rules or clarifications that do not move existing files across grades.
- Patch: documentation, pattern tightening that reduces false positives without adding coverage.
MIT. Rules may be used and adapted by anyone.