r/coolgithubprojects • u/erkamyaman • 23h ago
Meet safe-anything: I built a 100% Rust security scanner, and it found 67 holes in OWASP Juice Shop in 0.03 s
I made rust-anything last week, and this is its sibling: one command that finds the holes in your project before someone else does.
https://github.com/erkamyaman/safe-anything

npx safe-anything .
What it checks:
- Code: SQL injection, XSS, eval, path traversal, unsafe deserialization and more
- Secrets: API keys, tokens, private keys, and .env files that would get committed
- Config: risky mobile, Docker and cloud settings
- Dependencies: every locked version checked against OSV (npm, pnpm, yarn, Cargo, pip, poetry, uv, Go, Ruby, PHP, Dart)
- AI agent setups: Claude Code, Codex, Cursor and MCP settings that give an agent too much power (bypassPermissions, pre-approved Bash, unpinned MCP servers, tokens in plain text)
74 rules, each with a CWE id and an OWASP link. On OWASP Juice Shop it scans 1,195 files in 0.03 s and finds 67 problems, including the SQL injection in routes/login.ts. It's a single Rust binary, works offline, exits non-zero on findings so it fits pre-commit and CI, and can output SARIF for GitHub code scanning. It's also an MCP server and a Claude Code plugin, so your agent can scan before it commits.
MIT, free, and false positives are the bugs I care about most, so issues are very welcome.