ClaudeMap

safe-anything

A fast Rust security scanner that sweeps your code, secrets, stack config and AI agent setup in one command — and runs as an MCP server or Claude Code plugin so your agent scans before it commits

SDKs & Toolingsecuritymcpclirust

safe-anything is a security scanner in Rust: one command sweeps the project and reports findings with the line, the reason and the fix. Four surfaces in one run — your code (SQL and command injection, XSS, eval, SSRF, path traversal, unsafe deserialization, weak crypto; nine languages plus SQL); your secrets (cloud and AI keys, tokens, private keys, passwords, and .env mistakes such as committed env files, real values in .env.example, secrets behind NEXT_PUBLIC_ or VITE_ — always redacted in the output); your stack (Android and iOS settings, Docker, GitHub Actions, Kubernetes, Terraform, nginx, and every locked dependency checked against OSV.dev); and your agent setup (MCP servers and Claude Code, Codex, Cursor, Gemini and OpenCode settings, hooks and skills — the files that decide what your agent may do — flagging the usual mistakes: a GitHub token in .mcp.json, bypassPermissions, pre-approved Bash, curl piped to sh in a hook, a skill that reads ~/.ssh, invisible Unicode, unpinned MCP servers). It exits 1 when something high or critical is found — the README positions it as a pre-commit or CI check as is — and emits --json and --sarif. It also runs as an MCP server (tools: scan, list_rules) your agent can call before committing or before installing someone else's skill or MCP server, and as a Claude Code plugin whose skill teaches triage and fixing. MIT-licensed; native binaries for macOS, Linux and Windows; published on npm as safe-anything (latest 1.1.0 at 2026-11-28 vetting) and on crates.io.

What it does

  • One command scans code, secrets, stack config and agent setup together — findings carry the line, the reason and the fix
  • Nine languages plus SQL for injection, XSS, eval, SSRF, path traversal, unsafe deserialization and weak crypto
  • Agent-setup audit flags a GitHub token in .mcp.json, bypassPermissions, pre-approved Bash, curl piped to sh in a hook, skills reading ~/.ssh, invisible Unicode and unpinned MCP servers
  • Every locked dependency is checked against OSV.dev; Android/iOS, Docker, GitHub Actions, Kubernetes, Terraform and nginx settings are covered too
  • Runs as an MCP server (scan, list_rules) or a Claude Code plugin with a triage-and-fix skill; exits 1 on high/critical findings for pre-commit and CI use
  • --json and --sarif output for machine consumption and GitHub code scanning

When to use it

Best when you want one local pass over a repository before committing, releasing or CI — or before installing someone else's skill or MCP server, which the MCP mode is explicitly built for.

Getting started

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

Things to know

The GIF-caption numbers (1,195 files in 0.03 s, 67 findings on OWASP Juice Shop) are the author's own measured run, not a benchmark to expect everywhere. The full rule set is documented in docs/rules.md. Install needs Rust's cargo or the npx wrapper; native binaries target macOS, Linux and Windows. MIT.

Repository

erkamyaman/safe-anything

Charted

Related on the map

  • The open Agent Skills standard — SKILL.md folders any agent can load, governed by the Agentic AI Foundation since 2026-10-22.

    • official
    • spec
    • agent-skills
    • standard
  • Harness Bridge

    SDK / Tool

    A local launcher that points Claude Code and seven other coding harnesses at any OpenAI-, Anthropic- or Responses-compatible endpoint — without editing a single config file.

    • launcher
    • local-models
    • cli
    • menu-bar
  • Claude for Siri

    SDK / Tool

    Answers macOS Spotlight and Siri prompts with your signed-in Claude Code account — an experimental macOS 27 model-delegation provider.

    • macos
    • siri
    • spotlight
    • model-delegation
  • A local privacy gateway for AI coding assistants — masks credentials, connection strings and PII into structured placeholders on the way out, restores them mid-stream on the way back.

    • privacy
    • gateway
    • pii
    • proxy
  • agent-memory

    SDK / Tool

    A long-term memory runtime for AI agents: a markdown store with local ranked retrieval, shared by Claude Code and Codex CLI, no API keys.

    • memory
    • retrieval
    • markdown
    • local-first
  • Codenotch

    SDK / Tool

    A macOS notch app that shows how much of each coding assistant's usage limit you've burned — Claude Code, Cursor, Codex, and more at a glance.

    • macos
    • usage-tracking
    • monitoring
    • desktop-app