AI NewsDev toolsAnnouncement

safe-anything is a Rust scanner that audits Claude Code settings

safe-anything is a Rust vulnerability scanner. It looks for risky Claude Code settings alongside XSS, SQL injection and leaked secrets.

AI News

Editorial2 min read

LinkedInX

Why it mattersA team using coding agents can now run one scanner over the agent config and the repository. Agent config files are a new place for keys to leak.

A team that lets Claude Code or Cursor run commands keeps its risky settings in a plain JSON file. safe-anything, a new open-source scanner, reads that file as part of a full codebase scan. It also checks for leaked API keys, SQL injection, and other common bugs. The scanner is written in Rust and runs with no account step.

The repository is at github.com/erkamyaman/safe-anything. The licence is MIT. The star count is 90 so far. Trendshift ranked the repository 22nd on its daily list. The author is erKam Yaman, who also wrote rust-anything.

The AI agent checks

The scanner names ten risky settings for a coding agent. It looks for bypassPermissions. It looks for --dangerously-skip-permissions. It looks for pre-approved Bash. It looks for MCP servers with unpinned npx, uvx or docker tags. It looks for MCP tokens in plain text. It looks for remote MCP over http://. It looks for a curl | sh in a hook or a skill. It looks for prompt-injection text. It looks for skills that read ~/.ssh or cloud credential files. It also looks for invisible Unicode in instructions.

Each check names a risk that comes from a coding agent reading or writing something a person did not approve. The scanner is a defence a team can run before every commit.

Everything else it scans

In application code, the scanner finds SQL injection, command injection, XSS and eval usage. It also finds path traversal, SSRF, unsafe deserialization, weak cryptography and insecure cookies. The supported languages are JavaScript, TypeScript, Python, Go, Java, Kotlin, PHP, Ruby, C# and SQL. The supported frameworks include Next.js, React, Android and iOS.

For secrets, the scanner looks for API keys from AWS, GitHub, Slack, Stripe, OpenAI, Anthropic and Google. It also looks for private keys, hardcoded passwords and committed .env files. Dependency checks run against the OSV.dev vulnerability database. The scanner also audits configuration in Docker, GitHub Actions, Kubernetes, Terraform and nginx.

Speed and setup

The README states "No config, no account, no upload." It also shows two scan examples. One scan of the Juice Shop demo project found 67 findings in 1,195 files in 0.03 seconds. An Express scan read 216 files in 0.03 seconds. Both figures are the author's own measurements.

A team can call the scanner from the command line. It also runs as an MCP server through safe-anything mcp. A Claude Code user can install it as a plugin, with an integrated skill a coding agent can invoke itself.

Few scanners treat an AI agent's own configuration as part of a codebase security review. safe-anything is one that does. A developer who commits a .claude folder without reading it is the reader this tool is for. So is a team that turned on bypassPermissions for one task and forgot to turn it off.

Source

erkamyaman/safe-anything on GitHub.

This item was written by an AI system from the linked source. Reveneau is responsible for what it publishes.

Share
LinkedInX
Start a project