safe-anything is a command-line tool written in Rust that scans a directory to detect SQL/command injection, XSS, eval, SSRF, path traversal, unsafe deserialization, and weak encryption (across 9 languages plus SQL). It also identifies leaked keys such as those for cloud and AI services (masked in the output), dangerous configurations in Docker, GitHub Actions, Kubernetes, Terraform, and mobile environments, as well as dependencies with known vulnerabilities listed on OSV.dev within lock files. It specifically checks agent configurations: bypassPermissions, pre-approved Bash execution, npx MCP servers without version locking, curl | sh in hooks, skills that read ~/.ssh, invisible Unicode characters in instructions, and more. Each finding includes the line number, reason, and suggested fix. The exit code is 1 when high-severity issues are found, making it suitable for pre-commit checks or CI pipelines, and it can also output SARIF format for GitHub code scanning. The README lists 111 rules and publishes scan results and false positives manually verified by the author against repositories such as OWASP Juice Shop, DVWA, express, and flask.
Why It Matters No configuration, no account, and no code upload required; it can serve as an MCP tool to let agents scan before submission, and you can also check third-party skills or MCP servers before installing them.
Stars 932 (+56 / 24h)
Reasons
- Gained 56 stars in the last 24 hours, with a total of 932 stars (indicating attention only); MIT licensed, created on 22 11
- Read-only file access, does not execute code; the only network action is sending dependency package names and versions to OSV.dev to check for vulnerabilities, which can be disabled with --offline
- Supports baseline files: existing issues are saved first, so only new issues are reported subsequently
Usage
- Install via cargo install safe-anything or run directly with npx safe-anything .; integrate with Claude Code by running claude mcp add safe-anything -- safe-anything mcp, or install the plugin and accompanying skills using /plugin marketplace add erkamyaman/safe-anything
Risks
- Rule-based static scanning; the author's published results include false positives, so it cannot replace manual security audits
- New repository; rules and performance metrics are self-tested by the author; the README notes sponsorship from CodeRabbit and others