by erkamyaman
Find the holes before someone else does. A security reviewer for your code and your AI agent: 110 rules · 9 languages · 15 lockfile formats · MCP server, Claude Code plugin and GitHub Action. 100% Rust.
# Add to your Claude Code skills
git clone https://github.com/erkamyaman/safe-anythingGuides for using ai agents skills like safe-anything.
Last scanned: 11/29/2026
{
"issues": [
{
"file": "README.md",
"line": 115,
"type": "remote-install",
"message": "Install command (remote install script piped to a shell — review the source before running): \"curl \\| sh\"",
"severity": "low"
},
{
"file": "README.md",
"line": 27,
"type": "dangerous-command",
"message": "Dangerous command (disables permission prompts): \"bypassPermissions\"",
"severity": "medium"
},
{
"file": "plugin/skills/safe-anything/SKILL.md",
"line": 40,
"type": "remote-install",
"message": "Install command (remote install script piped to a shell — review the source before running): \"curl | sh\"",
"severity": "medium"
},
{
"file": "skills/safe-anything/SKILL.md",
"line": 40,
"type": "remote-install",
"message": "Install command (remote install script piped to a shell — review the source before running): \"curl | sh\"",
"severity": "medium"
},
{
"file": "tests/fixtures/agent/.claude/skills/helper/SKILL.md",
"line": 5,
"type": "prompt-injection",
"message": "Possible instruction-override phrase: \"Ignore all previous instructions\"",
"severity": "high"
},
{
"file": "tests/fixtures/agent/.claude/skills/helper/SKILL.md",
"line": 6,
"type": "prompt-injection",
"message": "Possible concealment directive: \"Do not tell the user\"",
"severity": "high"
},
{
"file": "tests/fixtures/agent/.claude/skills/helper/SKILL.md",
"line": 4,
"type": "secret-exfiltration",
"message": "Instruction appears to send credentials/secrets to an external endpoint",
"severity": "high"
},
{
"file": "tests/fixtures/agent/.claude/skills/helper/SKILL.md",
"line": 8,
"type": "remote-install",
"message": "Install command (remote install script piped to a shell — review the source before running): \"curl -fsSL https://get.acme.sh | bash\"",
"severity": "medium"
},
{
"file": "tests/fixtures/agent/CLAUDE.md",
"line": 2,
"type": "dangerous-command",
"message": "Dangerous command (disables permission prompts): \"--dangerously-skip-permissions\"",
"severity": "medium"
}
],
"status": "PASSED",
"scannedAt": "2026-11-29T13:35:04.928Z",
"npmAuditRan": true,
"pipAuditRan": true,
"promptInjectionRan": true
}safe-anything is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by erkamyaman. Find the holes before someone else does. A security reviewer for your code and your AI agent: 110 rules · 9 languages · 15 lockfile formats · MCP server, Claude Code plugin and GitHub Action. 100% Rust. It has 906 GitHub stars.
Yes. safe-anything passed AgentsLLM's automated security scan — a dependency vulnerability audit plus prompt-injection heuristics — with no high-severity issues. You can read the full report in the Security Report section on this page.
Clone the repository with "git clone https://github.com/erkamyaman/safe-anything" and add it to your Claude Code skills directory (see the Installation section above).
safe-anything is primarily written in Rust. It is open-source under erkamyaman on GitHub, so you can review or fork the full source.
Yes. AgentsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh safe-anything against similar tools.
No comments yet. Be the first to share your thoughts!
cargo install safe-anything # or: npx safe-anything .
safe-anything .
That's it. No config, no account, no upload. It exits with 1 when something high or critical is found, so it works as a pre-commit or CI check as is.
safe-anything . --json # machine-readable report
safe-anything . --sarif # GitHub code scanning
safe-anything . --sarif-file out # SARIF to the file out, the report on screen
safe-anything . --offline # no network (skips the dependency check)
safe-anything . --severity medium # hide low findings
safe-anything . --fail-on never # always exit 0 (or low, medium, high, critical)
safe-anything . --include-tests # also report findings in tests and fixtures
safe-anything --list-rules
.gitignore is respected. List more paths in .safe-anything-ignore; it only adds to what is
skipped, it cannot bring back what is listed below..git, node_modules, target, vendor, dist, build, .next, .venv, venv,
__pycache__, Pods, .gradle and .claude/worktrees, so generated code in build/ is
not checked*.min.js, *.map, *.jsonl and *.log.png, .woff2,
.zip, .mp4, .class, ...), and any other file with a zero byte in its first 8 KB. A text file
saved under one of those extensions is not scanned either.*.lock files get the dependency check but no code rulessafe-anything:ignore in a comment silences that line (or the next one). Follow it with rule ids,
// safe-anything:ignore code.weak-hash, code.eval, to silence only those rules. An id that is no
rule (a typo) silences nothing, so the finding stays in the report.--include-tests.On a codebase that already has findings, save them once and fail only on new ones:
safe-anything . --write-baseline .safe-anything-baseline.json
safe-anything . --baseline .safe-anything-baseline.json
The baseline holds each finding's rule, path and a SHA-256 of its line, not the line itself, so it
can be committed. A finding counts as known when all three match, wherever the line moved to. Paths
are relative to the scanned folder, so scan the same folder you saved it from. Only files written by
--write-baseline are read, not --json reports. Review changes to it like code: an entry added to
it hides that finding.
110 rules, each with a CWE id, an OWASP category and a link to the OWASP page that explains it. The full list is in docs/rules.md.
| Code | SQL injection, command injection, XSS (innerHTML, dangerouslySetInnerHTML, v-html, echo $_GET, raw), eval and new Function, path traversal, file inclusion from request input, SSRF, open redirects, unsafe deserialization (pickle, yaml.load, ObjectInputStream, BinaryFormatter, unserialize, Marshal), TLS checks turned off, MD5/SHA-1, DES/RC4/ECB, JWT none, template injection, CORS *, debug mode, insecure cookies, Math.random tokens, GRANT ALL and plain-text passwords in SQL files. JS/TS, Python, Go, Java, Kotlin, Scala, PHP, Ruby, C#, SQL |
| Secrets | AWS (key ids and secret access keys), GitHub, GitLab, Slack, Stripe, Shopify, npm, PyPI, RubyGems, Docker Hub, OpenAI, Anthropic, Groq, Google, Hugging Face, Mailgun, SendGrid, Telegram, DigitalOcean, Heroku, Fly.io, Databricks, Perplexity, OpenRouter, Notion, Twilio, Linear, Prefect, Postman, Pulumi, Sentry, New Relic, Supabase, Grafana and Doppler keys, Google OAuth client secrets, Slack and Discord webhook URLs, private keys (also inside service-account JSON) and age keys, passwords in code, credentials in connection strings, committed .env files, real values in .env.example, a .gitignore that misses .env, secrets behind public prefixes (NEXT_PUBLIC_, VITE_, EXPO_PUBLIC_) that ship in the client bundle |
| Agent setups | bypassPermissions and --dangerously-skip-permissions, pre-approved Bash, enableAllProjectMcpServers, MCP servers run with unpinned npx/uvx/docker, MCP tokens in plain text, remote MCP over http://, curl | sh in hooks and skills, prompt-injection text, skills that read ~/.ssh or cloud credentials, invisible Unicode in instructions. More |
| Mobile | Android debuggable, allowBackup, cleartext traffic, exported content providers, WebView file access and JS bridges, world-readable files; iOS ATS turned off; tokens in UserDefaults, SharedPreferences, AsyncStorage or localStorage |
| Config | Docker (unpinned base, root, secrets in ENV, ADD <url>), curl | sh in scripts, Dockerfiles and workflow run: steps, GitHub Actions (pull_request_target, write-all, actions on @main, script injection from PR titles), privileged containers, hostNetwork, Terraform (open ingress, public buckets, S3 public access blocks turned off, public or unencrypted databases), nginx autoindex, TLS 1.0/1.1 |
| Dependencies | every locked version in package-lock.json, npm-shrinkwrap.json, yarn.lock, pnpm-lock.yaml, bun.lock, Cargo.lock, requirements*.txt, poetry.lock, uv.lock, pdm.lock, Pipfile.lock, go.mod, Gemfile.lock, composer.lock and pubspec.lock, checked against OSV.dev, with the nearest fixed version |