A static scanner written in Rust, with rules covering code (SQL and command injection, XSS, eval, SSRF, path traversal, etc., across nine languages), secrets (keys for various cloud and AI services, .env files committed to repositories), mobile and Docker, GitHub Actions, Kubernetes, Terraform configurations, lockfile dependencies (checked against OSV.dev), as well as settings, hooks, and skills for Claude Code, Codex, Cursor, Gemini, and OpenCode. Each result provides the file, line number, reason, and fix. It exits with code 1 when high-severity issues are found, making it suitable for pre-commit checks or CI. It can also run as an MCP server, allowing agents to scan before committing. The author is the creator of rust-anything, and 1.0.0 was released on 11 22.
Why it matters It can detect agent configuration issues such as skipping permission confirmations, pre-approving Bash, MCP servers without version pinning, and skills reading ~/.ssh. You can scan third-party skills before installing them.
Stars 18 (+15 / 24h)
Reasons
- Gained 15 stars in 24 hours, totaling 18 stars, ranked 7 on Trendshift for the day (indicating attention only); the README states the MIT license.
- The README lists scan results on repositories such as OWASP Juice Shop, DVWA, express, flask, and anthropics/skills, explaining which findings are false positives.
Usage
- Run
cargo install safe-anything(ornpx safe-anything .), then executesafe-anything .in the project root. To integrate with agents, useclaude mcp add safe-anything -- safe-anything mcp. In CI, you can use theerkamyaman/safe-anythingGitHub Action to output SARIF.
Risks
- It matches only known patterns and does not track data flow; a clean scan does not guarantee code security. The author notes that the innerHTML rule has the most false positives.
- Dependency checks send package names and versions to OSV.dev; use
--offlineif you do not want network access. The project was released just one day ago, and GitHub has not yet identified the license.