Find your next open-source project

Search by name, purpose, or keyword — or paste a GitHub repository URL

erkamyaman/safe-anything

Security & Privacy

A Rust CLI vulnerability scanner for source code, secrets, dependencies and AI agent configurations.

This repo is an agent skill pack · 1 skillsSkill list and install →
272
18
Rust
MIT
new today

What it does

safe-anything is a command-line scanner written in Rust that checks a repository for known vulnerability patterns in source code, leaked secrets, risky mobile and cloud configuration, vulnerable locked dependencies, and the settings that govern AI coding agents such as MCP servers, hooks and skills. Each finding reports the line, the reason and a suggested fix, and is mapped to a CWE ID and an OWASP category; the full set is 72 rules documented in the rule list.

It is aimed at developers who want a fast, no-account check that can run locally, in a pre-commit hook or in CI. The scan is pattern-based: it does not trace data flow through a program, so a clean result only means none of the 72 rules matched.

Quick start

Install with Cargo or run via npx, then scan the current repository:

cargo install safe-anything    # or: npx safe-anything .
safe-anything .

Useful options include --json for a machine-readable report, --sarif for GitHub code scanning, --offline to skip the dependency check, --severity medium to hide low findings, and --fail-on never to always exit 0. The scanner exits with code 1 when a high or critical finding is present, which is what makes it usable as a CI gate as-is. .gitignore is respected, and safe-anything:ignore in a comment silences a line. The README also provides an MCP setup for Claude Code and Codex, a Claude Code plugin install via /plugin marketplace add, and a GitHub Action example at erkamyaman/safe-anything@v1.0.2.

Constraints

  • The only network call is the dependency check, which sends package names and versions to OSV.dev; use --offline to avoid it. Details are in the privacy notes.
  • Findings are heuristic. The noisiest rule, code.xss-inner-html, fires on any HTML built from a variable and is kept on deliberately; the measured runs list several false positives on Flask and Juice Shop.
  • In tests, specs and fixtures only real provider keys and private keys are reported unless --include-tests is passed.
  • Native binaries are offered for macOS, Linux and Windows; the scanner also runs as an MCP server for agent-driven scans.
  • Licensed under MIT.

Measured runs

On a release build with --offline on 2026-11-22, the README reports 67 findings on OWASP Juice Shop (with 2 to 3 acknowledged false positives), 63 on DVWA (about 4 false positives), and zero on expressjs/express; flask produced 2 false positives in practice. Scan times reported by the tool ranged from 0.03 to 0.13 s depending on machine load. These are single-repository examples, not a benchmark of detection quality.

HotRepo's take

The project appeared on HotRepo's new-project list for 2026-11-23 with 104 stars gained and 9 forks gained over a growth window that started on 2026-11-22; it has no recorded GitHub daily rank. That is a single early snapshot, so it shows initial attention around launch rather than an established trend. What distinguishes the project in that snapshot is the breadth of its checks: alongside classic SAST and secret scanning, it explicitly targets agent configuration files such as MCP servers, hooks and skills, and the README reports that it was run against repositories like modelcontextprotocol/servers and anthropics/skills.

Written by AI from the project's public information and HotRepo's records, updated . The project's own docs are the source of truth.

You might also like

  1. aquasecurity/trivyA single CLI scanner that checks container images, filesystems, repos, VMs and Kubernetes for CVEs, misconfigurations and secrets.Go38,692
  2. betterleaks/betterleaksScans files, Git history, container images and hosted sources for leaked secrets, optionally validating and analysing them.Go2,691
  3. projectdiscovery/nucleiA template-driven scanner for finding known vulnerabilities and misconfigurations across web apps, DNS, networks and cloud.Go32,295
  4. chaitin/SafeLineA self-hosted reverse-proxy WAF that blocks SQLi, XSS and bot traffic for teams that cannot use a cloud firewall.Go22,938
  5. google/osv-scannerA Go-based CLI that scans source directories, lockfiles, and container images for known dependency vulnerabilities using the OSV database.Go11,430