Find the holes before someone else does. A fast, 100% Rust vulnerability scanner: XSS, SQL injection, leaked secrets, dependency CVEs and AI agent setups.
Rust ai-agentsclaude-codeclaude-code-pluginclicodexcursordevsecopsmcposvowasprustsastsecret-scanningsecretssecuritysecurity-scannersql-injectionvulnerabilityvulnerability-scannerxss
Contributing
Thanks for helping. The easiest and most useful contribution is a fixture: a few lines of code that safe-anything gets wrong.
Add or fix a rule
- Put the problem in the right fixture folder under
tests/fixtures/<family>/, next to a safe look-alike that must not be flagged. - Add the expected
path:line rule.idto that folder'sEXPECTEDfile. Leave the safe line out. - Run
cargo test. It fails, listing what is missing and what was found that shouldn't be. - Add or change the rule in
src/rules/<family>.rsuntil it passes, and give it a CWE and a reference insrc/refs.rs. - Run it on a real repository and read what it finds. A rule that is right on the fixture and noisy on real code is not done.
Checks
cargo fmt --check
cargo clippy --all-targets -- -D warnings
cargo test
sh scripts/check-secrets.sh --all
git config core.hooksPath .githooks runs the secret check before each commit. The fixtures hold
fake keys on purpose and are skipped by it.
Writing
Messages and fixes say what is wrong and what to do, in plain words, one sentence each. Numbers in docs are measured, with the date and the machine.