safe-anything
Find the holes before someone else does.
One command finds XSS, SQL injection and other vulnerabilities in your code, leaked secrets,
risky mobile and cloud config, vulnerable dependencies, and the AI agent setup that writes it all.
Every finding comes with the line, the reason and the fix.
Install · Releases · Claude Code plugin · GitHub Action · All 112 rules · Agent setups
Made in Türkiye 🇹🇷 by erKam Yaman, who also made rust-anything · ❤️ Sponsor me · Sponsored by CodeRabbit and Atak Domain
A real run on OWASP Juice Shop and on an agent setup with the usual mistakes (Apple M4). What it finds on other repositories.
Your code
SQL and command injection, XSS, eval, SSRF, path traversal, unsafe deserialization, weak crypto. Ten languages and SQL.
|
Your secrets
Cloud and AI keys, tokens, private keys, passwords, and .env mistakes: committed env files, real values in .env.example, secrets behind NEXT_PUBLIC_ or VITE_. The secrets it recognises are masked in the output.
|
Your stack
Android and iOS settings, Docker, GitHub Actions, Kubernetes, Terraform, nginx, and every locked dependency against OSV.dev.
|
Your agent
MCP servers, Claude Code, Codex, Cursor, Gemini and OpenCode settings, hooks and skills: the files that decide what your agent may do.
|
Quick start
cargo install safe-anything # or: npx safe-anything .
safe-anything .
That's it. No config, no account, no upload. It exits with 1 when something high or critical is
found, so it works as a pre-commit or CI check as is. It exits with 2 when the scan did not finish:
the dependency check failed (OSV.dev unreachable, blocked or timed out), a lockfile was too large
or binary to read, or a file or folder could not be read. The report then says "the scan did not
finish" and names why, instead of "No problems found." --fail-on never keeps the exit code 0 and
still prints the reason.