{"name":"safe-anything: Scan Code, Secrets, Dependencies, and AI Setups","description":"safe-anything is a Rust security scanner for code, secrets, dependencies, infrastructure, mobile configuration, and AI agent setups. It offers CLI, MCP, and CI workflows for teams that want actionable findings without uploading source code.","github":"https://github.com/erkamyaman/safe-anything","url":"https://osrepos.com/repo/erkamyaman-safe-anything","source":"osrepos.com","sourceDescription":"This repository profile is provided by osrepos.com, an open source repository discovery platform.","repositoryProfile":"https://osrepos.com/repo/erkamyaman-safe-anything","generatedFor":"open source discovery and AI-assisted research","markdown":"https://osrepos.com/repo/erkamyaman-safe-anything.md","json":"https://osrepos.com/repo/erkamyaman-safe-anything.json","topics":["rust","cli","security","mcp","secret-scanning","dependency-scanning","static-analysis"],"keywords":["rust","cli","security","mcp","secret-scanning","dependency-scanning","static-analysis"],"stars":null,"summary":"safe-anything is a Rust security scanner for code, secrets, dependencies, infrastructure, mobile configuration, and AI agent setups. It offers CLI, MCP, and CI workflows for teams that want actionable findings without uploading source code.","content":"## Overview\n\nsafe-anything is a Rust-based security scanner that looks for vulnerabilities in application code, exposed secrets, risky configuration, vulnerable dependencies, and unsafe AI agent setups. It is designed to help developers and security teams find issues before committing or deploying, with findings that include the relevant line, explanation, and suggested fix.\n\nThe scanner runs on macOS, Linux, and Windows, and can be used from the command line, in CI, or as an MCP server for AI agents. It uses pattern-based rules rather than tracing data through a program, so a clean result means its checks did not find a known pattern, not that the code is proven safe.\n\n## Key Features\n- Scans nine programming languages plus SQL for common weaknesses such as injection, XSS, unsafe deserialization, and weak cryptography.\n- Detects provider keys, passwords, private keys, committed environment files, and secrets exposed through client-side environment prefixes, with secret values redacted in output.\n- Checks locked dependencies against OSV.dev, with an offline mode that skips dependency checks.\n- Reviews mobile, cloud, container, infrastructure, and CI configuration, including Android, iOS, Docker, GitHub Actions, Kubernetes, and Terraform.\n- Inspects AI agent configurations, MCP servers, hooks, and skills for risky permissions, exposed tokens, unpinned servers, and suspicious instructions.\n- Provides JSON and SARIF reports, configurable severity and exit behavior, and inline ignore comments.\n- Offers an MCP server and a Claude Code plugin for agent-assisted scanning and triage.\n\n## Use Cases\n- Developers can run a pre-commit scan to catch likely vulnerabilities and accidental secret commits before they reach a remote repository.\n- Security teams can add a SARIF-producing scan to GitHub Actions and review findings in GitHub code scanning.\n- Teams adopting Claude Code, Codex, Cursor, or other supported agent setups can inspect permissions, hooks, skills, and MCP configuration before use.\n- Maintainers can check dependency lockfiles against OSV.dev and review risky settings across mobile, cloud, and deployment files.\n\n## Our Take\nA broad, practical scanner with active early development, but its pattern-based findings and concentrated maintainer base merit a trial before relying on it as a security gate.\n\n**Good fit if:**\n- You want one Rust CLI to check code, secrets, dependencies, configuration, and AI agent setups across macOS, Linux, and Windows.\n- Your team can use a CI or pre-commit check that fails on high or critical findings and can review false positives.\n- You value an MIT-licensed tool with CLI, MCP, and GitHub Actions integration.\n\n**Look elsewhere if:**\n- You need data-flow analysis or assurance that a clean scan establishes that a codebase is secure.\n- You require a mature tool with a long operating history and development spread across a larger contributor base.\n- Your workflow requires dependency vulnerability checks while fully offline, since offline mode skips that check.\n\n## Project Health\n\n| Signal | Value |\n|---|---|\n| Status | **New**: less than six months old and changing fast |\n| Last commit | 2026-11-23 (today) |\n| Commits, last 90 days | 32 |\n| Releases, last 12 months | 3 (latest v1.0.2, 2026-11-22) |\n| Contributors | 6 (top contributor: 75% of commits) |\n| Issues closed, last 90 days | 6 (typically closed in 0 days) |\n| Pull requests merged, last 90 days | 8 (typically merged in 0 days) |\n| Project age | 1 days |\n\nChecked on 2026-11-24 with the GitHub API.\n\n## Project Facts\n\n- Language: Rust\n- License: MIT\n- Stars: 512\n- Forks: 37\n- Topics: ai-agents, claude-code, claude-code-plugin, cli, codex, cursor, devsecops, mcp\n- Archived: no\n\n## What You Need\n\nDetected in the repository:\n\n- Rust 1.88 or newer (from Cargo.toml)\n- A test suite and automated checks on GitHub Actions\n\n## Getting Started\n\nInstall with Cargo and scan a repository:\n\n```bash\ncargo install safe-anything\nsafe-anything .\n```\n\nSee the [README](https://github.com/erkamyaman/safe-anything) for npm installation, CI, MCP, and reporting options.\n\n## License in Plain Words\n\n**MIT** (permissive).\n\n- Commercial use: yes\n- Modify and redistribute: yes\n- You must keep: the copyright and license notice\n- Share your changes: no\n\nA summary, not legal advice: the LICENSE file is what applies.\n\n## Alternatives\n\n- [opengrep](https://osrepos.com/repo/opengrep-opengrep): Opengrep focuses on customizable, Semgrep-compatible code rules, while safe-anything scans multiple security areas beyond source code.\n- [AgentSec](https://osrepos.com/repo/yohanguez-agentsec): AgentSec focuses on permissions and untrusted-input paths in supported AI agent workflows, while safe-anything covers broader security scans.\n\n| Project | Language | License | Stars | Status |\n|---|---|---|---|---|\n| **safe-anything** | Rust | MIT | 512 | New |\n| [opengrep](https://osrepos.com/repo/opengrep-opengrep) | OCaml | LGPL-2.1 | 3.1k | Active |\n| [AgentSec](https://osrepos.com/repo/yohanguez-agentsec) | Python | Apache-2.0 | 0 | Active |\n\n## Considerations\n- This is a very new project, and most contributions come from one person. Recent commits and releases indicate rapid development, but the short history leaves less time for behavior and compatibility to mature.\n- The scanner uses compiled regular-expression rules and targeted parsing, not program-wide data-flow analysis. Some patterns can produce false positives, particularly XSS checks on HTML built from variables.\n- Dependency checks make a network request to OSV.dev and send package names and versions. Offline mode avoids that request by skipping dependency checks.\n- The documented build requirement is Rust 1.88. The project also offers an npm package and native platform binaries, but the README's source-build command uses Cargo.\n- The MIT license permits broad use, subject to its license terms; teams should still review their own distribution and security-tooling requirements.","metrics":{"detailViews":1,"githubClicks":0},"dates":{"published":null,"modified":"2026-11-24T04:07:25.000Z"}}