Released as v1.0.2 on 22 November 2026 under the MIT license, safe-anything is a Rust security scanner that checks repositories against 74 rules in a single command, according to its GitHub repository. The project targets application code across nine programming languages and SQL, leaked secrets, mobile and cloud configurations, locked dependencies, and AI agent setup files. Native binaries are distributed for macOS, Linux, and Windows alongside packages on crates.io and npm.1
How it works
One parallel pass reads files and parses configs
The scanner takes a repository path as input and performs one parallel walk over the files using the ignore crate, the repository documentation says. It reads each file once and applies compiled regular expressions, falling back to dedicated parsers for MCP (Model Context Protocol, a standard that lets AI agents call external tools) JSON configs with comments, Dockerfile stages, and ten lockfile formats. It respects .gitignore, skips directories such as node_modules and target, and supports .safe-anything-ignore files or inline safe-anything:ignore comments.1
Findings include fixes, exit codes, and MCP tools
Every finding reports the line number, reason, fix, a CWE (Common Weakness Enumeration, a standard list of software weaknesses) identifier, and an OWASP link, while redacting detected secrets, the repository says. The CLI exits with status 1 on high or critical findings for pre-commit hooks or CI, and supports --json or --sarif (Static Analysis Results Interchange Format, a standard format for security tools) for GitHub code scanning. When run as an MCP server for Claude Code or Codex, it exposes scan and list_rules tools so agents can check code before committing.1
What changed
Apple M4 runs flag 67 issues in Juice Shop
In benchmarks run by the project on 22 November 2026 using an offline release build on an Apple M4, every finding was reviewed by hand. On OWASP Juice Shop, safe-anything scanned 1,195 files in 0.03 to 0.13 seconds and flagged 67 issues, including two to three false positives. On DVWA, it scanned 233 files and reported 63 issues with about four false positives, while expressjs/express returned zero findings across 216 files and pallets/flask returned two low-severity false positives across 231 files.1
How it works
Offline mode and test filters limit noise and network calls
Building safe-anything from source requires Rust 1.88 under the 2024 edition, according to Cargo.toml. The repository notes that nothing is executed during a scan, and the only network request sends locked package names and versions to OSV.dev unless --offline is passed. The maintainers identify code.xss-inner-html as the noisiest rule because it flags any HTML built from a variable, and note that test files only report real provider keys and private keys unless --include-tests is set.12
Try it
- Install the binary with
cargo install safe-anythingor run it vianpx safe-anything ..1 - Scan the current repository with
safe-anything ., or add--offlineto skip OSV.dev dependency lookups.1 - Export machine-readable results with
safe-anything . --jsonor GitHub code scanning output withsafe-anything . --sarif.1 - Register the MCP server in Claude Code with
claude mcp add safe-anything -- safe-anything mcpor in Codex withcodex mcp add safe-anything -- safe-anything mcp.1