Skip to content

Find the holes before someone else does. A fast, 100% Rust vulnerability scanner: XSS, SQL injection, leaked secrets, dependency CVEs and AI agent setups.

docs: README, rules reference, ADRs and project docs

Kamcfe32f92453a
diff --git a/CHANGELOG.md b/CHANGELOG.md
new file mode 100644
index 0000000..26c93f5
--- /dev/null
+++ b/CHANGELOG.md
@@ -0,0 +1,23 @@
+# Changelog
+
+## Unreleased
+
+## 0.1.0 (2026-11-22)
+
+- First release. One command scans a repository: `safe-anything .`
+- 69 rules in six families: code (SQL and command injection, XSS, eval, SSRF, path traversal,
+ unsafe deserialization, weak crypto, TLS checks off, JWT `none`, template injection, debug
+ mode), secrets (provider keys, private keys, passwords, credentials in URLs, `.env` files),
+ agent setups (skipped permissions, pre-approved shell, unpinned MCP servers, plaintext MCP
+ tokens, remote MCP over HTTP, `curl | sh` in hooks and skills, prompt-injection text, credential
+ file access, invisible Unicode), mobile (Android manifest, WebView, iOS ATS, tokens in plain
+ storage), config (Docker, GitHub Actions, Kubernetes, Terraform, nginx) and dependencies
+ (nine lockfile formats checked against OSV.dev, with the nearest fixed version).
+- Every finding has a file, a line, a severity, a CWE, an OWASP category, a fix and a link to
+ read more. Secrets are redacted in the output.
+- Terminal report, `--json`, and `--sarif` for GitHub code scanning; `--severity`, `--fail-on`,
+ `--offline`, `--include-tests`, `--list-rules`.
+- `safe-anything mcp` serves `scan` and `list_rules` to AI agents over MCP (stdio), with a Claude
+ Code plugin and an agent skill.
+- A GitHub Action that installs the release binary, scans, and writes SARIF.
+- `safe-anything:ignore` silences one line; `.safe-anything-ignore` skips paths.
diff --git a/CODE_OF_CONDUCT.md b/CODE_OF_CONDUCT.md
new file mode 100644
index 0000000..b7afd0a
--- /dev/null
+++ b/CODE_OF_CONDUCT.md
@@ -0,0 +1,43 @@
+# Code of conduct
+
+## Our pledge
+
+We want safe-anything to be a welcoming project for everyone, whatever their age, body, disability,
+ethnicity, gender identity and expression, level of experience, education, nationality, personal
+appearance, race, religion, or sexual identity and orientation.
+
+## Our standards
+
+Things that make the project better:
+
+- Being kind, patient and respectful, including in disagreement.
+- Giving and taking constructive criticism gracefully. Criticize code and ideas, not people.
+- Assuming good intent, and asking when something is unclear.
+- Owning mistakes and learning from them.
+
+Things that are not acceptable:
+
+- Harassment, insults, or personal or political attacks.
+- Sexualized language or imagery, or unwelcome attention.
+- Publishing someone's private information without their permission.
+- Anything else that would reasonably be considered inappropriate in a professional setting.
+
+## Scope
+
+This applies in every project space (issues, pull requests, discussions, reviews) and when
+someone represents the project elsewhere.
+
+## Enforcement
+
+Report unacceptable behavior to the maintainer, [@erkamyaman](https://github.com/erkamyaman),
+through GitHub. For something you'd rather not post in public, use
+[Report a vulnerability](https://github.com/erkamyaman/safe-anything/security/advisories/new) and
+say it's a conduct report. Every report is reviewed, and the reporter's privacy is respected.
+
+The maintainer may remove, edit or reject comments, commits, code, issues and other contributions
+that break this code, and may ban, temporarily or permanently, anyone whose behavior is harmful.
+
+## Attribution
+
+This code of conduct is adapted from the [Contributor Covenant](https://www.contributor-covenant.org),
+version 2.1.
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
new file mode 100644
index 0000000..5ea1b99
--- /dev/null
+++ b/CONTRIBUTING.md
@@ -0,0 +1,32 @@
+# Contributing
+
+Thanks for helping. The easiest and most useful contribution is a **fixture**: a few lines of code
+that safe-anything gets wrong.
+
+## Add or fix a rule
+
+1. Put the problem in the right fixture folder under `tests/fixtures/<family>/`, next to a safe
+ look-alike that must not be flagged.
+2. Add the expected `path:line rule.id` to that folder's `EXPECTED` file. Leave the safe line out.
+3. Run `cargo test`. It fails, listing what is missing and what was found that shouldn't be.
+4. Add or change the rule in `src/rules/<family>.rs` until it passes, and give it a CWE and a
+ reference in `src/refs.rs`.
+5. Run it on a real repository and read what it finds. A rule that is right on the fixture and
+ noisy on real code is not done.
+
+## Checks
+
+```bash
+cargo fmt --check
+cargo clippy --all-targets -- -D warnings
+cargo test
+sh scripts/check-secrets.sh --all
+```
+
+`git config core.hooksPath .githooks` runs the secret check before each commit. The fixtures hold
+fake keys on purpose and are skipped by it.
+
+## Writing
+
+Messages and fixes say what is wrong and what to do, in plain words, one sentence each. Numbers in
+docs are measured, with the date and the machine.
diff --git a/GLOSSARY.md b/GLOSSARY.md
new file mode 100644
index 0000000..c5cc9cd
--- /dev/null
+++ b/GLOSSARY.md
@@ -0,0 +1,11 @@
+# Glossary
+
+- **Rule**: one kind of problem, with an id (`code.sql-injection`), a family, a severity, the files it applies to, a pattern, a message and a fix. Several rule entries can share an id when the pattern differs per language.
+- **Family**: the area a rule belongs to: code, secret, agent, mobile, config, dependency.
+- **Finding**: one rule matched at one file and line. Carries the message, the fix and a snippet (redacted for secrets).
+- **Severity**: low, medium, high, critical. `--fail-on` compares against it.
+- **Structured check**: a rule that parses the file instead of matching a pattern (MCP configs, Dockerfile stages, lockfiles).
+- **Agent setup**: everything that tells a coding agent what it may run or read: MCP server configs, agent settings and permissions, hooks, skills, commands, rules files and instruction files (CLAUDE.md, AGENTS.md, GEMINI.md).
+- **Test path**: a file under a test, spec, fixture or mock folder, or named like `*.test.*`, `*_test.*`, `test_*`. Only critical secrets are reported there unless `--include-tests`.
+- **Advisory source**: where dependency advisories come from. `OsvClient` in production, an in-memory source in tests.
+- **Suppression**: `safe-anything:ignore` on the line or the line above.
diff --git a/README.md b/README.md
new file mode 100644
index 0000000..9ff00ef
--- /dev/null
+++ b/README.md
@@ -0,0 +1,209 @@
+<p align="center">
+ <img src="docs/assets/logo.png" width="150" height="150" alt="The safe-anything shield">
+</p>
+
+<h1 align="center">safe-anything</h1>
+
+<p align="center"><b>Find the holes before someone else does.</b><br>
+One command checks your code, your secrets, your mobile and cloud config, your dependencies,<br>
+and the AI agent setup that writes it all. Every finding comes with the line, the reason and the fix.</p>
+
+<p align="center">
+ <img src="https://img.shields.io/github/languages/top/erkamyaman/safe-anything?logo=rust&label=Rust&color=CE422B" alt="Rust share of the code">
+ <img src="https://img.shields.io/badge/macOS%20·%20Linux%20·%20Windows-native-2563EB" alt="Native binaries for macOS, Linux and Windows">
+ <a href="LICENSE"><img src="https://img.shields.io/badge/license-MIT-555" alt="MIT license"></a>
+ <a href="https://crates.io/crates/safe-anything"><img src="https://img.shields.io/crates/v/safe-anything?color=2FD48F&label=crates.io" alt="crates.io version"></a>
+ <a href="https://www.npmjs.com/package/safe-anything"><img src="https://img.shields.io/npm/v/safe-anything?color=2FD48F&label=npm" alt="npm version"></a>
+ <br>
+ <a href="https://coderabbit.link/erkamyaman"><img src="https://img.shields.io/coderabbit/prs/github/erkamyaman/safe-anything?labelColor=171717&color=FF570A&label=Reviewed+by+CodeRabbit" alt="Pull requests reviewed by CodeRabbit"></a>
+ <a href="https://github.com/erkamyaman/safe-anything"><img src="https://img.shields.io/github/stars/erkamyaman/safe-anything?style=social" alt="GitHub stars"></a>
+</p>
+
+<p align="center"><b><a href="#quick-start">Install</a></b> · <a href="https://github.com/erkamyaman/safe-anything/releases">Releases</a> · <a href="#for-ai-agents">Claude Code plugin</a> · <a href="#in-ci">GitHub Action</a> · <a href="docs/rules.md">All 69 rules</a> · <a href="docs/agent-setups.md">Agent setups</a><br>
+Made in Türkiye 🇹🇷 by <a href="https://github.com/erkamyaman">erKam Yaman</a>, who also made <a href="https://github.com/erkamyaman/rust-anything">rust-anything</a> · <a href="https://github.com/sponsors/erkamyaman">❤️ Sponsor me</a> · Sponsored by <a href="https://coderabbit.link/erkamyaman">CodeRabbit</a></p>
+
+<p align="center">
+ <img src="docs/assets/terminal.gif" alt="safe-anything scans OWASP Juice Shop: 1,195 files in 0.03 s, 67 findings including the SQL injection in routes/login.ts, eval in routes/userProfile.ts, seeded passwords and a token in localStorage. Then it scans an AI agent setup: 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." width="820">
+ <br>
+ <sub>A real run on <a href="https://github.com/juice-shop/juice-shop">OWASP Juice Shop</a> and on an agent setup with the usual mistakes (Apple M4). <a href="#measured">What it finds on other repositories</a>.</sub>
+</p>
+
+<table>
+ <tr>
+ <td width="25%" valign="top">
+ <b>Your code</b><br>
+ SQL and command injection, XSS, <code>eval</code>, SSRF, path traversal, unsafe deserialization, weak crypto. Nine languages and SQL.
+ </td>
+ <td width="25%" valign="top">
+ <b>Your secrets</b><br>
+ Cloud and AI keys, tokens, private keys, passwords and <code>.env</code> files in the repo. Always redacted in the output.
+ </td>
+ <td width="25%" valign="top">
+ <b>Your stack</b><br>
+ Android and iOS settings, Docker, GitHub Actions, Kubernetes, Terraform, nginx, and every locked dependency against OSV.dev.
+ </td>
+ <td width="25%" valign="top">
+ <b>Your agent</b><br>
+ MCP servers, Claude Code, Codex, Cursor, Gemini and OpenCode settings, hooks and skills: the files that decide what your agent may do.
+ </td>
+ </tr>
+</table>
+
+## Quick start
+
+```bash
+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.
+
+```bash
+safe-anything . --json # machine-readable report
+safe-anything . --sarif # GitHub code scanning
+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, and `node_modules`, `vendor`, `target`, `dist`, `build`, virtualenvs
+ and `.claude/worktrees` are skipped. List more paths in `.safe-anything-ignore`.
+- `safe-anything:ignore` in a comment silences that line (or the next one).
+- In tests, specs and fixtures only real provider keys and private keys count, unless you pass
+ `--include-tests`.
+
+## What it finds
+
+69 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](docs/rules.md).
+
+| | |
+| --- | --- |
+| **Code** | SQL injection, command injection, XSS (`innerHTML`, `dangerouslySetInnerHTML`, `v-html`, `echo $_GET`, `raw`), `eval` and `new Function`, path traversal, SSRF, unsafe deserialization (pickle, `yaml.load`, `ObjectInputStream`, `BinaryFormatter`, `unserialize`, `Marshal`), TLS checks turned off, MD5/SHA-1, DES/RC4/ECB, JWT `none`, template injection, debug mode, insecure cookies, `Math.random` tokens. JS/TS, Python, Go, Java, Kotlin, PHP, Ruby, C#, SQL |
+| **Secrets** | AWS, GitHub, Slack, Stripe, OpenAI, Anthropic and Google keys, private keys, passwords in code, credentials in connection strings, committed `.env` files |
+| **Agent setups** | `bypassPermissions` and `--dangerously-skip-permissions`, pre-approved `Bash`, 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](docs/agent-setups.md) |
+| **Mobile** | Android `debuggable`, 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>`), GitHub Actions (`pull_request_target`, `write-all`, actions on `@main`, script injection from PR titles), privileged containers, `hostNetwork`, open Terraform ingress, public buckets, nginx autoindex, TLS 1.0/1.1 |
+| **Dependencies** | every locked version in `package-lock.json`, `yarn.lock`, `pnpm-lock.yaml`, `Cargo.lock`, `requirements*.txt`, `poetry.lock`, `uv.lock`, `go.mod`, `Gemfile.lock` and `composer.lock`, checked against [OSV.dev](https://osv.dev), with the nearest fixed version |
+
+## For AI agents
+
+safe-anything is also an MCP server, so your agent can scan before it commits, and before you
+install someone else's skill or MCP server.
+
+```bash
+claude mcp add safe-anything -- safe-anything mcp # Claude Code
+codex mcp add safe-anything -- safe-anything mcp # Codex
+```
+
+Or, as a Claude Code plugin with the skill that tells the agent how to triage and fix findings:
+
+```
+/plugin marketplace add erkamyaman/safe-anything
+/plugin install safe-anything@safe-anything
+```
+
+Tools: `scan` (path, offline, severity, include_tests) and `list_rules`. The skill is in
+[skills/safe-anything](skills/safe-anything/SKILL.md).
+
+## In CI
+
+```yaml
+- uses: erkamyaman/[email protected]
+ with:
+ fail-on: high
+- uses: github/codeql-action/upload-sarif@v4
+ if: always()
+ with:
+ sarif_file: safe-anything.sarif
+```
+
+Findings then show up in the repository's Security tab and on pull requests.
+
+## Measured
+
+Release build on an Apple M4, `--offline`, 2026-11-22. Every finding was read by hand. Times are
+the scan's own report; the same scan took 0.03 to 0.13 s depending on what else the machine was
+doing.
+
+| Repository | Files | Findings | What they are |
+| --- | --- | --- | --- |
+| [OWASP Juice Shop](https://github.com/juice-shop/juice-shop) (vulnerable on purpose) | 1,195 | 67 | the login and search SQL injections, the `eval` challenges, MD5 passwords, tokens in localStorage, seeded passwords, open Terraform ingress; 2 to 3 false positives (a checksum MD5, `innerHTML` with trusted hint text) |
+| [DVWA](https://github.com/digininja/DVWA) (vulnerable on purpose) | 233 | 63 | the SQL injections, command injections, MD5 passwords and `eval`; about 4 false positives (setup-script inserts, input validated in the "impossible" level) |
+| [expressjs/express](https://github.com/expressjs/express) | 216 | 0 | |
+| [pallets/flask](https://github.com/pallets/flask) | 231 | 2 | both false positives in practice: `eval` of the user's own shell startup file, SHA-1 for key derivation (reported as low) |
+| [modelcontextprotocol/servers](https://github.com/modelcontextprotocol/servers) | 439 | 1 | `pull_request_target` in a workflow, worth a look |
+| [anthropics/skills](https://github.com/anthropics/skills) | 392 | 6 | `innerHTML` in local review pages (5), `shell=True` in a script that runs commands by design |
+| [vercel-labs/agent-skills](https://github.com/vercel-labs/agent-skills) | 439 | 0 | |
+| [rust-anything](https://github.com/erkamyaman/rust-anything) | 3,134 | 6 | `innerHTML` in GIF demo pages (5), an action on `@master` |
+| safe-anything itself | 53 | 0 | checked in CI on every push |
+
+The noisiest rule is `code.xss-inner-html`: it fires on any HTML built from a variable, and most of
+those in local tooling are not reachable by an attacker. It stays on, because real XSS looks the
+same. Status per family: [docs/STATUS.md](docs/STATUS.md).
+
+## How it works
+
+One parallel walk over the repository (the `ignore` crate, the walker behind ripgrep), one read per
+file, and every rule that applies run as a compiled regex. Where a pattern can't tell right from
+wrong, the file is parsed: MCP configs as JSON with comments, Dockerfile stages, nine lockfile
+formats. Nothing is executed. The only network call is the dependency check, which sends package
+names and versions to OSV.dev ([privacy](docs/privacy.md)).
+
+It finds known patterns; it does not trace data through your program. A clean scan means none of
+these 69 problems were found, not that the code is safe. [Design notes](docs/adr).
+
+## Credits
+
+- [OWASP](https://owasp.org): the Top 10, the Top 10 for LLM Applications, MASVS, and the
+ [Cheat Sheet Series](https://cheatsheetseries.owasp.org) (CC BY-SA 4.0) that every rule links to.
+- [CWE](https://cwe.mitre.org) by MITRE for the weakness ids.
+- [OSV.dev](https://osv.dev) for the advisory data.
+- [gitleaks](https://github.com/gitleaks/gitleaks) (MIT) for showing how provider tokens are shaped.
+- [Craft Anything](https://github.com/storytold/craft-anything) for the idea that every answer should
+ show its evidence.
+- [How to Secure Anything](https://github.com/veeral-patel/how-to-secure-anything) by Veeral Patel,
+ a reading list on security engineering, for the way of thinking about attack surface and least
+ privilege.
+
+## Sponsors
+
+<p align="center">
+ <a href="https://github.com/erkamyaman/safe-anything">safe-anything</a> is free and open source. If it helps your work, please consider sponsoring it.<br>
+ Your support keeps development going.
+</p>
+
+<p align="center">
+ <a href="https://coderabbit.link/erkamyaman">
+ <picture>
+ <source media="(prefers-color-scheme: dark)" srcset="docs/assets/sponsors/company-dark.svg">
+ <img src="docs/assets/sponsors/company-light.svg" width="800" alt="Company sponsor: CodeRabbit">
+ </picture>
+ </a>
+</p>
+
+<p align="center">
+ <a href="https://github.com/sponsors/erkamyaman">
+ <picture>
+ <source media="(prefers-color-scheme: dark)" srcset="docs/assets/sponsors/sponsors-dark.svg">
+ <img src="docs/assets/sponsors/sponsors-light.svg" width="800" alt="Sponsors: Santosh Yadav, Hakan Soytürk, Ali Yilmaz, Ashley Hunter, Fatih Uzuntaş">
+ </picture>
+ </a>
+</p>
+
+<p align="center">
+ <a href="https://github.com/sponsors/erkamyaman"><img src="https://img.shields.io/badge/Become_a_sponsor-%E2%9D%A4-db61a2?style=for-the-badge&logo=githubsponsors&logoColor=white" alt="Become a sponsor"></a>
+ <a href="https://buymeacoffee.com/erkamyaman"><img src="https://img.shields.io/badge/Buy_me_a_coffee-%E2%98%95-FFDD00?style=for-the-badge&logo=buymeacoffee&logoColor=black" alt="Buy me a coffee"></a>
+</p>
+
+## Contributing
+
+The most useful contribution is a fixture: a few lines safe-anything gets wrong. See
+[CONTRIBUTING.md](CONTRIBUTING.md).
+
+## License
+
+MIT
diff --git a/SECURITY.md b/SECURITY.md
new file mode 100644
index 0000000..87840f5
--- /dev/null
+++ b/SECURITY.md
@@ -0,0 +1,8 @@
+# Security policy
+
+Report a vulnerability in safe-anything itself through GitHub's private vulnerability reporting
+(Security tab, "Report a vulnerability"), not a public issue. You'll get an answer within a few
+days.
+
+A missed vulnerability or a false positive in a scanned project is not a security issue in
+safe-anything: open a normal issue with a small example, and it becomes a fixture.
diff --git a/docs/STATUS.md b/docs/STATUS.md
new file mode 100644
index 0000000..71f36df
--- /dev/null
+++ b/docs/STATUS.md
@@ -0,0 +1,33 @@
+# Status
+
+What works, and how it was last checked. Updated 2026-11-22.
+
+**Verified**: run on real code someone else wrote, every finding read by hand. **Tested**: covered
+by this repository's tests (a fixture per family with safe look-alikes that must not be flagged).
+
+## Families
+
+| Family | Status | Last real run | Result |
+| --- | --- | --- | --- |
+| Code | Verified | OWASP Juice Shop, DVWA, express, flask (2026-11-22) | finds the known SQL injections, command injections and `eval` in Juice Shop and DVWA; 0 findings in express; the noisiest rule is `code.xss-inner-html` |
+| Secrets | Verified | Juice Shop seeded users, rust-anything (2026-11-22) | seeded passwords found; placeholders (`xoxp-...`, `****`, `${VAR}`) ignored |
+| Agent setups | Verified | anthropics/skills, vercel-labs/agent-skills, a real `~/.claude` (2026-11-22) | no false prompt-injection hits left on skills that warn against injection; MCP-config checks tested on fixtures only |
+| Mobile | Tested | none | Android manifest, network security config, WebView, iOS plist, storage on fixtures |
+| Config | Verified | Juice Shop Terraform and workflows, modelcontextprotocol/servers (2026-11-22) | open ingress, `pull_request_target`, unpinned actions found; build-stage `FROM` and action inputs no longer flagged |
+| Dependencies | Verified | the dependency fixture against live OSV.dev (2026-11-22) | 13 packages in six ecosystems, real advisories, nearest fixed version |
+
+## Outputs
+
+| Output | Status | Notes |
+| --- | --- | --- |
+| Terminal | Tested | `tests/cli.rs` |
+| `--json` | Tested | `tests/cli.rs` |
+| `--sarif` | Tested | shape checked in `tests/cli.rs`; not yet uploaded to GitHub code scanning |
+| MCP (`safe-anything mcp`) | Tested | initialize, tools/list, tools/call over stdio in `tests/cli.rs`; not yet run inside an agent |
+| GitHub Action (`action.yml`) | Not run | needs a published release to download |
+
+## Known limits
+
+- Patterns, not data flow: a command built in one statement and run in another is not flagged.
+- Each finding sees one line; multi-line SQL strings are matched only on the line the keyword is on.
+- No Swift, Kotlin or Rust code rules yet (beyond mobile storage and WebView checks).
diff --git a/docs/adr/0001-patterns-first.md b/docs/adr/0001-patterns-first.md
new file mode 100644
index 0000000..9f3ed14
--- /dev/null
+++ b/docs/adr/0001-patterns-first.md
@@ -0,0 +1,14 @@
+# 1. Patterns first, parsers where patterns fail
+
+Status: accepted, 2026-11-22
+
+safe-anything matches compiled regexes against whole files, and parses a file only where a regex
+cannot tell right from wrong: MCP configs (JSON with comments), Dockerfile stage names, lockfiles.
+
+Why: one rule engine for nine languages and a dozen config formats stays small, fast (a 1,200-file
+repository in under 0.1 s) and easy to extend with a fixture per rule. A real parser per language
+would find more with fewer false positives, but would take months and pull in heavy dependencies.
+
+Cost: no data flow. A rule sees one line (or one match), so `exec(cmd)` is not flagged unless the
+command is built in the same expression, and HTML built from trusted data is flagged like HTML built
+from user input. Every rule ships with safe look-alikes in its fixture to keep the noise measured.
diff --git a/docs/adr/0002-test-seams.md b/docs/adr/0002-test-seams.md
new file mode 100644
index 0000000..128e742
--- /dev/null
+++ b/docs/adr/0002-test-seams.md
@@ -0,0 +1,14 @@
+# 2. Two test seams
+
+Status: accepted, 2026-11-22
+
+Tests run only through two public boundaries:
+
+1. `safe_anything::scan(folder, options)`, against fixture folders under `tests/fixtures/<family>`.
+ Each folder has an `EXPECTED` file listing every `path:line rule` that must be found; anything
+ found that is not listed fails the test, so each fixture also guards against false positives.
+ When a fixture line moves, its EXPECTED entry moves with it.
+2. The binary, end to end, for the terminal report, `--json`, `--severity`, `--fail-on` and exit codes.
+
+The dependency check takes an `Advisories` implementation, so tests use an in-memory source and
+never touch the network.
diff --git a/docs/agent-setups.md b/docs/agent-setups.md
new file mode 100644
index 0000000..05f33da
--- /dev/null
+++ b/docs/agent-setups.md
@@ -0,0 +1,42 @@
+# Agent setups
+
+Coding agents run commands, read files and call MCP servers with your permissions. The files that
+decide what they may do are code, and safe-anything checks them like code.
+
+## What it reads
+
+| File | Agent |
+| --- | --- |
+| `.mcp.json`, `claude_desktop_config.json`, `.claude/settings*.json`, `CLAUDE.md`, `.claude/{commands,agents,skills,hooks}/` | Claude Code, Claude Desktop |
+| `.codex/config.toml`, `AGENTS.md` | Codex |
+| `.cursor/mcp.json`, `.cursor/rules/`, `.cursorrules` | Cursor |
+| `.vscode/mcp.json`, `.github/copilot-instructions.md` | VS Code, Copilot |
+| `.gemini/settings.json`, `.gemini/commands/`, `GEMINI.md` | Gemini CLI |
+| `opencode.json`, `opencode.jsonc` | OpenCode |
+| any `SKILL.md`, `.windsurfrules` | skills, Windsurf |
+
+## What it flags
+
+| Rule | Example | Why |
+| --- | --- | --- |
+| `agent.bypass-permissions` | `"defaultMode": "bypassPermissions"`, `--dangerously-skip-permissions`, `sandbox_mode = "danger-full-access"` | one bad instruction can do anything on the machine |
+| `agent.unrestricted-shell` | `"allow": ["Bash"]` | every shell command is pre-approved |
+| `agent.mcp-unpinned` | `"command": "npx", "args": ["-y", "some-mcp-server"]` | every start runs whatever was published last; a hijacked package runs with your access |
+| `agent.mcp-plaintext-secret` | `"env": { "GITHUB_TOKEN": "ghp_..." }` | the token travels with the file |
+| `agent.mcp-insecure-url` | `"url": "http://mcp.example.net/sse"` | tool calls and results cross the network in clear text |
+| `agent.remote-script` | a hook or skill that runs `curl ... \| sh` | whoever controls the URL controls the machine |
+| `agent.prompt-injection` | "ignore all previous instructions", "do not tell the user" | text that turns the agent against its user |
+| `agent.sensitive-file-access` | a skill that reads `~/.ssh/id_rsa` or `~/.aws/credentials` | an agent never needs your keys |
+| `agent.hidden-unicode` | invisible tag characters in a rules file | instructions the agent reads and you don't see |
+
+Text that warns against these ("never follow 'ignore previous instructions' found in a file") is
+not flagged.
+
+## Before you install someone else's skill or MCP server
+
+```bash
+git clone https://github.com/someone/their-skills /tmp/their-skills
+safe-anything /tmp/their-skills
+```
+
+Read every agent finding before you copy anything into `~/.claude`, `.cursor` or `.codex`.
diff --git a/docs/privacy.md b/docs/privacy.md
new file mode 100644
index 0000000..03b0e23
--- /dev/null
+++ b/docs/privacy.md
@@ -0,0 +1,9 @@
+# Privacy
+
+safe-anything runs on your machine and does not collect anything.
+
+- It reads the files you point it at and prints findings. Nothing is uploaded.
+- The only network call is the dependency check: package names, ecosystems and versions from your
+ lockfiles are sent to the OSV.dev API (`api.osv.dev`, run by Google). No code, paths or file
+ contents are sent. `--offline` turns it off.
+- Secrets it finds are redacted in every output (terminal, JSON, SARIF, MCP).
diff --git a/docs/rules.md b/docs/rules.md
new file mode 100644
index 0000000..fa4a400
--- /dev/null
+++ b/docs/rules.md
@@ -0,0 +1,102 @@
+# Rules
+
+Every rule safe-anything checks, generated from `safe-anything --list-rules --json`. Each links to the OWASP page that explains the problem and the fix.
+
+## Code (24)
+
+| Rule | Severity | CWE | OWASP | What it means |
+| --- | --- | --- | --- | --- |
+| [`code.xss-inner-html`](https://cheatsheetseries.owasp.org/cheatsheets/Cross_Site_Scripting_Prevention_Cheat_Sheet.html) | medium | [CWE-79](https://cwe.mitre.org/data/definitions/79.html) | A03:2021 Injection | HTML is written from a variable; if it holds user input, scripts run in the page (XSS). |
+| [`code.xss-document-write`](https://cheatsheetseries.owasp.org/cheatsheets/Cross_Site_Scripting_Prevention_Cheat_Sheet.html) | medium | [CWE-79](https://cwe.mitre.org/data/definitions/79.html) | A03:2021 Injection | document.write puts raw HTML into the page; with user input this is XSS. |
+| [`code.xss-dangerously-set-inner-html`](https://cheatsheetseries.owasp.org/cheatsheets/Cross_Site_Scripting_Prevention_Cheat_Sheet.html) | medium | [CWE-79](https://cwe.mitre.org/data/definitions/79.html) | A03:2021 Injection | dangerouslySetInnerHTML renders raw HTML; with user content this is XSS. |
+| [`code.xss-v-html`](https://cheatsheetseries.owasp.org/cheatsheets/Cross_Site_Scripting_Prevention_Cheat_Sheet.html) | medium | [CWE-79](https://cwe.mitre.org/data/definitions/79.html) | A03:2021 Injection | Raw HTML is rendered from a variable; with user content this is XSS. |
+| [`code.xss-reflected`](https://cheatsheetseries.owasp.org/cheatsheets/Cross_Site_Scripting_Prevention_Cheat_Sheet.html) | medium | [CWE-79](https://cwe.mitre.org/data/definitions/79.html) | A03:2021 Injection | Request input is printed into the page without escaping (reflected XSS). |
+| [`code.xss-raw-html`](https://cheatsheetseries.owasp.org/cheatsheets/Cross_Site_Scripting_Prevention_Cheat_Sheet.html) | medium | [CWE-79](https://cwe.mitre.org/data/definitions/79.html) | A03:2021 Injection | A value is marked as safe HTML, so Rails will not escape it (XSS if it holds user input). |
+| [`code.eval`](https://cheatsheetseries.owasp.org/cheatsheets/Injection_Prevention_Cheat_Sheet.html) | high | [CWE-95](https://cwe.mitre.org/data/definitions/95.html) | A03:2021 Injection | Code is evaluated from a string at run time; if any part comes from input, an attacker can run code. |
+| [`code.command-injection`](https://cheatsheetseries.owasp.org/cheatsheets/OS_Command_Injection_Defense_Cheat_Sheet.html) | high | [CWE-78](https://cwe.mitre.org/data/definitions/78.html) | A03:2021 Injection | A shell command is built from variables, so input can run other commands (command injection). |
+| [`code.sql-injection`](https://cheatsheetseries.owasp.org/cheatsheets/SQL_Injection_Prevention_Cheat_Sheet.html) | high | [CWE-89](https://cwe.mitre.org/data/definitions/89.html) | A03:2021 Injection | A SQL query is built from variables by string formatting, so input can change the query (SQL injection). |
+| [`code.path-traversal`](https://cheatsheetseries.owasp.org/cheatsheets/File_Upload_Cheat_Sheet.html) | high | [CWE-22](https://cwe.mitre.org/data/definitions/22.html) | A01:2021 Broken Access Control | A file path comes straight from the request, so ../ can reach any file on the server (path traversal). |
+| [`code.ssrf`](https://cheatsheetseries.owasp.org/cheatsheets/Server_Side_Request_Forgery_Prevention_Cheat_Sheet.html) | high | [CWE-918](https://cwe.mitre.org/data/definitions/918.html) | A10:2021 Server-Side Request Forgery | The server fetches a URL taken from the request, so users can reach internal services (SSRF). |
+| [`code.tls-verify-off`](https://cheatsheetseries.owasp.org/cheatsheets/Transport_Layer_Security_Cheat_Sheet.html) | medium | [CWE-295](https://cwe.mitre.org/data/definitions/295.html) | A02:2021 Cryptographic Failures | TLS certificate checks are turned off, so anyone on the network can read or change the traffic. |
+| [`code.weak-hash`](https://cheatsheetseries.owasp.org/cheatsheets/Password_Storage_Cheat_Sheet.html) | low | [CWE-328](https://cwe.mitre.org/data/definitions/328.html) | A02:2021 Cryptographic Failures | MD5 and SHA-1 are broken for security use (collisions; too fast for passwords). |
+| [`code.weak-cipher`](https://cheatsheetseries.owasp.org/cheatsheets/Cryptographic_Storage_Cheat_Sheet.html) | medium | [CWE-327](https://cwe.mitre.org/data/definitions/327.html) | A02:2021 Cryptographic Failures | A weak cipher or ECB mode is used; ECB leaks patterns and DES/RC4 are broken. |
+| [`code.insecure-cookie`](https://cheatsheetseries.owasp.org/cheatsheets/Session_Management_Cheat_Sheet.html) | low | [CWE-614](https://cwe.mitre.org/data/definitions/614.html) | A05:2021 Security Misconfiguration | A cookie is set without HttpOnly or Secure, so scripts or plain HTTP can read it. |
+| [`code.jwt-none`](https://cheatsheetseries.owasp.org/cheatsheets/JSON_Web_Token_for_Java_Cheat_Sheet.html) | high | [CWE-347](https://cwe.mitre.org/data/definitions/347.html) | A07:2021 Identification and Authentication Failures | JWT signatures are not checked, so anyone can forge a token. |
+| [`code.cors-wildcard`](https://cheatsheetseries.owasp.org/cheatsheets/HTML5_Security_Cheat_Sheet.html) | low | [CWE-942](https://cwe.mitre.org/data/definitions/942.html) | A05:2021 Security Misconfiguration | CORS allows every origin. Fine for public data; risky for anything behind a login. |
+| [`code.insecure-random`](https://cheatsheetseries.owasp.org/cheatsheets/Cryptographic_Storage_Cheat_Sheet.html) | medium | [CWE-338](https://cwe.mitre.org/data/definitions/338.html) | A02:2021 Cryptographic Failures | A secret value is made with a non-cryptographic random generator, which can be predicted. |
+| [`code.debug-enabled`](https://cheatsheetseries.owasp.org/cheatsheets/Error_Handling_Cheat_Sheet.html) | medium | [CWE-489](https://cwe.mitre.org/data/definitions/489.html) | A05:2021 Security Misconfiguration | The app runs in debug mode; the debugger can run code and leaks internals. |
+| [`code.template-injection`](https://cheatsheetseries.owasp.org/cheatsheets/Injection_Prevention_Cheat_Sheet.html) | high | [CWE-1336](https://cwe.mitre.org/data/definitions/1336.html) | A03:2021 Injection | A template is built from request input, so users can run code in the template engine (SSTI). |
+| [`code.unsafe-deserialization`](https://cheatsheetseries.owasp.org/cheatsheets/Deserialization_Cheat_Sheet.html) | high | [CWE-502](https://cwe.mitre.org/data/definitions/502.html) | A08:2021 Software and Data Integrity Failures | Untrusted data is deserialized with a format that can run code or build arbitrary objects. |
+| [`code.file-inclusion`](https://cheatsheetseries.owasp.org/cheatsheets/File_Upload_Cheat_Sheet.html) | critical | [CWE-22](https://cwe.mitre.org/data/definitions/22.html) | A01:2021 Broken Access Control | A file to include comes from the request, so attackers can load other files or remote code. |
+| [`code.sql-grant-all`](https://cheatsheetseries.owasp.org/cheatsheets/Database_Security_Cheat_Sheet.html) | medium | [CWE-250](https://cwe.mitre.org/data/definitions/250.html) | A01:2021 Broken Access Control | A database user gets every privilege on every database. |
+| [`code.sql-plaintext-password`](https://cheatsheetseries.owasp.org/cheatsheets/Database_Security_Cheat_Sheet.html) | medium | [CWE-798](https://cwe.mitre.org/data/definitions/798.html) | A07:2021 Identification and Authentication Failures | A database password is written in a SQL file. |
+
+## Secrets (11)
+
+| Rule | Severity | CWE | OWASP | What it means |
+| --- | --- | --- | --- | --- |
+| [`secret.aws-access-key`](https://cheatsheetseries.owasp.org/cheatsheets/Secrets_Management_Cheat_Sheet.html) | critical | [CWE-798](https://cwe.mitre.org/data/definitions/798.html) | A07:2021 Identification and Authentication Failures | An AWS access key id is written in the file. |
+| [`secret.github-token`](https://cheatsheetseries.owasp.org/cheatsheets/Secrets_Management_Cheat_Sheet.html) | critical | [CWE-798](https://cwe.mitre.org/data/definitions/798.html) | A07:2021 Identification and Authentication Failures | A GitHub token is written in the file. |
+| [`secret.slack-token`](https://cheatsheetseries.owasp.org/cheatsheets/Secrets_Management_Cheat_Sheet.html) | high | [CWE-798](https://cwe.mitre.org/data/definitions/798.html) | A07:2021 Identification and Authentication Failures | A Slack token is written in the file. |
+| [`secret.stripe-live-key`](https://cheatsheetseries.owasp.org/cheatsheets/Secrets_Management_Cheat_Sheet.html) | critical | [CWE-798](https://cwe.mitre.org/data/definitions/798.html) | A07:2021 Identification and Authentication Failures | A live Stripe secret key is written in the file. |
+| [`secret.anthropic-key`](https://cheatsheetseries.owasp.org/cheatsheets/Secrets_Management_Cheat_Sheet.html) | critical | [CWE-798](https://cwe.mitre.org/data/definitions/798.html) | A07:2021 Identification and Authentication Failures | An Anthropic API key is written in the file. |
+| [`secret.openai-key`](https://cheatsheetseries.owasp.org/cheatsheets/Secrets_Management_Cheat_Sheet.html) | critical | [CWE-798](https://cwe.mitre.org/data/definitions/798.html) | A07:2021 Identification and Authentication Failures | An OpenAI API key is written in the file. |
+| [`secret.google-api-key`](https://cheatsheetseries.owasp.org/cheatsheets/Secrets_Management_Cheat_Sheet.html) | high | [CWE-798](https://cwe.mitre.org/data/definitions/798.html) | A07:2021 Identification and Authentication Failures | A Google API key is written in the file. |
+| [`secret.private-key`](https://cheatsheetseries.owasp.org/cheatsheets/Key_Management_Cheat_Sheet.html) | critical | [CWE-321](https://cwe.mitre.org/data/definitions/321.html) | A02:2021 Cryptographic Failures | A private key is stored in the repository. |
+| [`secret.hardcoded-password`](https://cheatsheetseries.owasp.org/cheatsheets/Secrets_Management_Cheat_Sheet.html) | high | [CWE-798](https://cwe.mitre.org/data/definitions/798.html) | A07:2021 Identification and Authentication Failures | A password or secret is written in the code. |
+| [`secret.url-credentials`](https://cheatsheetseries.owasp.org/cheatsheets/Secrets_Management_Cheat_Sheet.html) | high | [CWE-798](https://cwe.mitre.org/data/definitions/798.html) | A07:2021 Identification and Authentication Failures | A connection string carries a username and password. |
+| [`secret.env-file`](https://cheatsheetseries.owasp.org/cheatsheets/Secrets_Management_Cheat_Sheet.html) | medium | [CWE-798](https://cwe.mitre.org/data/definitions/798.html) | A07:2021 Identification and Authentication Failures | A .env file with values is in the repository; these usually hold real secrets. |
+
+## Agent setups (9)
+
+| Rule | Severity | CWE | OWASP | What it means |
+| --- | --- | --- | --- | --- |
+| [`agent.bypass-permissions`](https://genai.owasp.org/llmrisk/llm062025-excessive-agency/) | high | [CWE-250](https://cwe.mitre.org/data/definitions/250.html) | LLM06:2025 Excessive Agency | The agent is set to run every action without asking, so one bad instruction can do anything on this machine. |
+| [`agent.unrestricted-shell`](https://genai.owasp.org/llmrisk/llm062025-excessive-agency/) | high | [CWE-250](https://cwe.mitre.org/data/definitions/250.html) | LLM06:2025 Excessive Agency | Every shell command is pre-approved, so the agent can run anything without asking. |
+| [`agent.remote-script`](https://genai.owasp.org/llmrisk/llm032025-supply-chain/) | high | [CWE-494](https://cwe.mitre.org/data/definitions/494.html) | LLM03:2025 Supply Chain | A script is downloaded and run straight from the internet; whoever controls that URL controls this machine. |
+| [`agent.prompt-injection`](https://genai.owasp.org/llmrisk/llm01-prompt-injection/) | medium | [CWE-1427](https://cwe.mitre.org/data/definitions/1427.html) | LLM01:2025 Prompt Injection | Instruction text tells the agent to override its rules or hide actions from the user (prompt injection). |
+| [`agent.sensitive-file-access`](https://genai.owasp.org/llmrisk/llm022025-sensitive-information-disclosure/) | high | [CWE-200](https://cwe.mitre.org/data/definitions/200.html) | LLM02:2025 Sensitive Information Disclosure | Agent instructions read credential files such as SSH keys or cloud credentials. |
+| [`agent.hidden-unicode`](https://genai.owasp.org/llmrisk/llm01-prompt-injection/) | high | [CWE-1427](https://cwe.mitre.org/data/definitions/1427.html) | LLM01:2025 Prompt Injection | Invisible Unicode characters are in agent instructions; they can hide text the agent reads but you don't see. |
+| [`agent.mcp-unpinned`](https://genai.owasp.org/llmrisk/llm032025-supply-chain/) | medium | [CWE-1357](https://cwe.mitre.org/data/definitions/1357.html) | LLM03:2025 Supply Chain | An MCP server is started from a package or image with no pinned version. |
+| [`agent.mcp-plaintext-secret`](https://cheatsheetseries.owasp.org/cheatsheets/Secrets_Management_Cheat_Sheet.html) | high | [CWE-798](https://cwe.mitre.org/data/definitions/798.html) | LLM02:2025 Sensitive Information Disclosure | An MCP server's token or key is written in plain text in the config. |
+| [`agent.mcp-insecure-url`](https://cheatsheetseries.owasp.org/cheatsheets/Transport_Layer_Security_Cheat_Sheet.html) | high | [CWE-319](https://cwe.mitre.org/data/definitions/319.html) | A02:2021 Cryptographic Failures | A remote MCP server is reached over plain HTTP. |
+
+## Mobile (9)
+
+| Rule | Severity | CWE | OWASP | What it means |
+| --- | --- | --- | --- | --- |
+| [`mobile.android-debuggable`](https://mas.owasp.org/MASVS/11-MASVS-RESILIENCE/) | high | [CWE-489](https://cwe.mitre.org/data/definitions/489.html) | MASVS-RESILIENCE | The app is debuggable; anyone with the APK can attach a debugger and read its memory. |
+| [`mobile.android-allow-backup`](https://mas.owasp.org/MASVS/05-MASVS-STORAGE/) | low | [CWE-922](https://cwe.mitre.org/data/definitions/922.html) | MASVS-STORAGE | App data can be copied off the device with adb backup. |
+| [`mobile.android-cleartext`](https://mas.owasp.org/MASVS/08-MASVS-NETWORK/) | medium | [CWE-319](https://cwe.mitre.org/data/definitions/319.html) | MASVS-NETWORK | Plain HTTP traffic is allowed, so data can be read or changed on the network. |
+| [`mobile.android-exported-provider`](https://mas.owasp.org/MASVS/09-MASVS-PLATFORM/) | high | [CWE-926](https://cwe.mitre.org/data/definitions/926.html) | MASVS-PLATFORM | A content provider is exported with no permission, so any app on the device can read its data. |
+| [`mobile.webview-js-bridge`](https://mas.owasp.org/MASVS/09-MASVS-PLATFORM/) | medium | [CWE-749](https://cwe.mitre.org/data/definitions/749.html) | MASVS-PLATFORM | Native methods are exposed to JavaScript in a WebView; any page it loads can call them. |
+| [`mobile.webview-file-access`](https://mas.owasp.org/MASVS/09-MASVS-PLATFORM/) | high | [CWE-749](https://cwe.mitre.org/data/definitions/749.html) | MASVS-PLATFORM | A WebView lets file:// pages read other files and origins. |
+| [`mobile.world-readable`](https://mas.owasp.org/MASVS/05-MASVS-STORAGE/) | high | [CWE-922](https://cwe.mitre.org/data/definitions/922.html) | MASVS-STORAGE | A file or preferences store is readable or writable by every app on the device. |
+| [`mobile.ios-ats-disabled`](https://mas.owasp.org/MASVS/08-MASVS-NETWORK/) | high | [CWE-319](https://cwe.mitre.org/data/definitions/319.html) | MASVS-NETWORK | App Transport Security is off, so the app may load anything over plain HTTP. |
+| [`mobile.insecure-storage`](https://mas.owasp.org/MASVS/05-MASVS-STORAGE/) | medium | [CWE-922](https://cwe.mitre.org/data/definitions/922.html) | MASVS-STORAGE | A token or password is saved in plain storage that other code, backups or XSS can read. |
+
+## Config (15)
+
+| Rule | Severity | CWE | OWASP | What it means |
+| --- | --- | --- | --- | --- |
+| [`config.remote-script`](https://cheatsheetseries.owasp.org/cheatsheets/Software_Supply_Chain_Security_Cheat_Sheet.html) | medium | [CWE-494](https://cwe.mitre.org/data/definitions/494.html) | A08:2021 Software and Data Integrity Failures | A script is downloaded and piped straight into a shell, with no pinning or checksum. |
+| [`config.docker-unpinned-image`](https://cheatsheetseries.owasp.org/cheatsheets/Docker_Security_Cheat_Sheet.html) | low | [CWE-1357](https://cwe.mitre.org/data/definitions/1357.html) | A06:2021 Vulnerable and Outdated Components | The base image has no version tag (or uses latest), so builds change without notice. |
+| [`config.docker-secret-env`](https://cheatsheetseries.owasp.org/cheatsheets/Docker_Security_Cheat_Sheet.html) | high | [CWE-798](https://cwe.mitre.org/data/definitions/798.html) | A05:2021 Security Misconfiguration | A secret is baked into the image; anyone who pulls it can read it from the layers. |
+| [`config.docker-add-url`](https://cheatsheetseries.owasp.org/cheatsheets/Software_Supply_Chain_Security_Cheat_Sheet.html) | low | [CWE-494](https://cwe.mitre.org/data/definitions/494.html) | A08:2021 Software and Data Integrity Failures | ADD downloads a remote file at build time without checking it. |
+| [`config.docker-root-user`](https://cheatsheetseries.owasp.org/cheatsheets/Kubernetes_Security_Cheat_Sheet.html) | medium | [CWE-250](https://cwe.mitre.org/data/definitions/250.html) | A05:2021 Security Misconfiguration | The container runs as root, so a break-out starts with full privileges. |
+| [`config.gha-pull-request-target`](https://cheatsheetseries.owasp.org/cheatsheets/CI_CD_Security_Cheat_Sheet.html) | medium | [CWE-829](https://cwe.mitre.org/data/definitions/829.html) | A08:2021 Software and Data Integrity Failures | pull_request_target runs with repository secrets on code from forks; checking out the PR head here is a known takeover path. |
+| [`config.gha-write-all`](https://cheatsheetseries.owasp.org/cheatsheets/CI_CD_Security_Cheat_Sheet.html) | medium | [CWE-829](https://cwe.mitre.org/data/definitions/829.html) | A08:2021 Software and Data Integrity Failures | The workflow token can write to everything in the repository. |
+| [`config.gha-unpinned-action`](https://cheatsheetseries.owasp.org/cheatsheets/CI_CD_Security_Cheat_Sheet.html) | medium | [CWE-829](https://cwe.mitre.org/data/definitions/829.html) | A08:2021 Software and Data Integrity Failures | A third-party action runs from a moving branch, so any push to it runs in your CI with your secrets. |
+| [`config.gha-script-injection`](https://cheatsheetseries.owasp.org/cheatsheets/CI_CD_Security_Cheat_Sheet.html) | high | [CWE-78](https://cwe.mitre.org/data/definitions/78.html) | A03:2021 Injection | Text an outsider controls (a PR title, issue body, branch name) is pasted into the workflow, so it can run commands. |
+| [`config.privileged-container`](https://cheatsheetseries.owasp.org/cheatsheets/Kubernetes_Security_Cheat_Sheet.html) | high | [CWE-250](https://cwe.mitre.org/data/definitions/250.html) | A05:2021 Security Misconfiguration | A container runs privileged (or may gain privileges), which gives it near-root access to the host. |
+| [`config.k8s-host-access`](https://cheatsheetseries.owasp.org/cheatsheets/Kubernetes_Security_Cheat_Sheet.html) | high | [CWE-250](https://cwe.mitre.org/data/definitions/250.html) | A05:2021 Security Misconfiguration | The pod shares the host's network, process or IPC namespace. |
+| [`config.tf-open-ingress`](https://cheatsheetseries.owasp.org/cheatsheets/Infrastructure_as_Code_Security_Cheat_Sheet.html) | medium | [CWE-284](https://cwe.mitre.org/data/definitions/284.html) | A01:2021 Broken Access Control | A network rule is open to the whole internet. |
+| [`config.tf-public-bucket`](https://cheatsheetseries.owasp.org/cheatsheets/Infrastructure_as_Code_Security_Cheat_Sheet.html) | high | [CWE-284](https://cwe.mitre.org/data/definitions/284.html) | A01:2021 Broken Access Control | A storage bucket is public. |
+| [`config.nginx-autoindex`](https://cheatsheetseries.owasp.org/cheatsheets/Attack_Surface_Analysis_Cheat_Sheet.html) | low | [CWE-548](https://cwe.mitre.org/data/definitions/548.html) | A05:2021 Security Misconfiguration | Directory listing is on, so every file in the folder can be browsed. |
+| [`config.weak-tls-version`](https://cheatsheetseries.owasp.org/cheatsheets/Transport_Layer_Security_Cheat_Sheet.html) | medium | [CWE-326](https://cwe.mitre.org/data/definitions/326.html) | A02:2021 Cryptographic Failures | Old TLS or SSL versions are enabled; they have known attacks. |
+
+## Dependencies (1)
+
+| Rule | Severity | CWE | OWASP | What it means |
+| --- | --- | --- | --- | --- |
+| [`dependency.known-vulnerability`](https://cheatsheetseries.owasp.org/cheatsheets/Vulnerable_Dependency_Management_Cheat_Sheet.html) | high | [CWE-1395](https://cwe.mitre.org/data/definitions/1395.html) | A06:2021 Vulnerable and Outdated Components | A locked dependency version has a published advisory (OSV.dev). |