Free AI security scanners for code your agent writesWhat each one checks and what it can reach
Four AI security scanners are now free to download: Anthropic's Claude Code Security Review, OpenAI's Codex Security CLI, NVIDIA's SkillSpector and Cloudflare's security-audit skill. Three of them are agents, and every one that calls a model holds model credentials while it reads untrusted text. This page covers what each one checks, what it can reach while it runs, and how to wire it in without adding a new leak.
-
01
Input
Untrusted code
A pull request, a repo or a skill folder written by someone else
attacker-controlled text -
02
Scanner
Agent with a key
A model reads the code with file tools and an API key in its env
a new agent in CI -
03
Gap
Runtime creds
No scanner checks what secrets your coding agent can read
out of scope for all four
TL;DR· the answer, in twenty seconds
What happened: Anthropic, OpenAI, NVIDIA and Cloudflare have each published a free security scanner aimed at code that agents write or skills that agents install. A November 24, 2026 thread from @oliviscusAI that listed them with eight other tools drew more than 670 likes.
The minimum fix: Run SkillSpector with --no-llm on every skill before install. Give each model-backed scanner its own API key with a spend cap, run it only on trusted pull requests, and treat a PR that edits SECURITY.md or scanner instructions as a change to the scanner.
The lesson: A scanner reads code. None of the four checks which credentials your coding agent can read while it works, and the three agent scanners add a new process that holds a key while it reads attacker text.
Anthropic, OpenAI, NVIDIA and Cloudflare have each released a free security scanner built for the era of agent-written code, and on November 24, 2026 a thread from @oliviscusAI listing them with eight other tools passed 670 likes. A similar post from @neil_xbt made the same pitch: your agent builds the app in minutes, so let another model check it.
That pitch is fair as far as it goes. These tools find real bugs, and the people who built them document their limits better than most vendors do. What the lists leave out is that three of the four are agents. They hold model credentials, they get file access, and their whole job is to read text written by someone you do not trust. Adding one to a repo adds a new agent to your threat model.
This page covers the four scanners that come up most, what each one reads, what it can reach while it runs, and the one class of risk none of them looks at.
The four scanners at a glance
The table compares the four as their own READMEs describe them on November 29, 2026. Licenses and release dates come from each GitHub repository.
| Scanner | What it reads | How it runs | Model key needed | Stated limit |
|---|---|---|---|---|
| Claude Code Security Review (Anthropic, MIT, repo created August 2025) | The diff of a pull request, or pending changes via /security-review in Claude Code |
GitHub Action or slash command; Claude reviews with file and git tools | Yes, claude-api-key as a repo secret |
"Not hardened against prompt injection," trusted PRs only |
| Codex Security (OpenAI, Apache-2.0 CLI, research preview since March 2026) | A repo, selected paths, or a diff against a base ref | cs scan . CLI, TypeScript SDK or GitHub Action; Codex runs inside its sandbox |
Yes, OPENAI_API_KEY or CODEX_API_KEY, plus scanner access |
The CLI is open; access to the scanner behind it is gated |
| SkillSpector (NVIDIA, Apache-2.0, v2.13.7 on November 24, 2026) | An agent skill: a folder, zip, single SKILL.md or Git URL |
Static analysis (regex, Python AST, YARA, taint tracking), then an optional LLM pass | Only for the LLM pass | "Defense-in-depth, not a sandbox" |
| security-audit (Cloudflare, MIT, published June 18, 2026) | A whole codebase | A skill your own coding agent loads, running six phases with parallel sub-agents | Whatever your agent already uses | Needs an OS-enforced sandbox to run target code |
They split into two groups. SkillSpector answers "is this skill safe to install?" before an agent loads it. The other three answer "does this code have vulnerabilities?" after an agent wrote it. Those are different questions, and a team that runs only one group has a gap at the other end.
The figures behind SkillSpector show the scale of the skill problem. Its README cites a study by Liu et al. of 42,447 skills from public marketplaces, of which 31,132 were analyzed: 26.1% had at least one vulnerability, 5.2% showed likely malicious intent, and skills that shipped an executable script were 2.12 times more likely to be vulnerable. Help Net Security's August 3 review counted 64 detection patterns; the README now lists 71 across 17 categories, so check the version you install against whatever article you read.
Each scanner is an agent holding a key
A classic SAST tool parses code and matches rules. It cannot be talked into anything. An LLM scanner reads code as prompt input, and code written by an attacker can carry instructions. Every model-backed scanner on this list therefore puts a model, a key and some tool access next to attacker text. What changes from one to the next is how much the vendor fenced off.
Claude Code Security Review
The Action's quick start triggers on pull_request, grants pull-requests: write so it can comment, and passes CLAUDE_API_KEY from repo secrets. The README says the action "is not hardened against prompt injection attacks and should only be used to review trusted PRs," and points maintainers to GitHub's setting that requires approval before workflows run for outside contributors.
That warning has history behind it. Aonan Guan's Comment and Control research showed a crafted PR title could make this Action run shell commands and post its own API key back to the thread. Anthropic's fix blocked one ps call and added the warning. The architecture stayed the same: a model with tools reads the PR and holds the key while it does.
The /security-review slash command has the same shape on your laptop. Its frontmatter allows Bash only for git diff, git status, git log, git show and git remote show, which is a good limit. It also allows Read, Glob, Grep and Task, so the review session can open any file your Claude Code permissions let it read, including a .env in the working tree. If you run it on a branch someone else pushed, the diff is attacker text, and the session reading it is your own logged-in agent.
Codex Security
OpenAI did more fencing here, and it is worth reading what that buys. The GitHub Action checks that the Codex sandbox can start before it uses the scan credential, and on GitHub-hosted Ubuntu it installs bubblewrap and an AppArmor profile if the first start fails. The job skips fork PRs, and the Action does not support pull_request_target or workflow_run, the two triggers that hand secrets to code from forks. The example workflow checks out with persist-credentials: false and pins the Action to a reviewed commit SHA.
Two details still matter. First, the key lives in the step environment as OPENAI_API_KEY, so anything that reaches that process's environment reaches the key. Second, the README says the scanner "uses applicable SECURITY.md guidance from the checked-out revision, including policy changes in the PR." A pull request can therefore edit the instructions the scanner follows on that same pull request. OpenAI's own advice is to review those changes alongside the code. I would go further and require a code owner on every SECURITY.md in the repo.
The Next Web reported on July 29 that the CLI is public but access to the scanner behind it is limited to approved customers. Read "open source" here as an open client for a gated service. Your code goes to OpenAI or to whichever provider you configure. The README lists Amazon Bedrock, OpenRouter, Fireworks AI and Cheaper Inference besides OpenAI.
SkillSpector
SkillSpector never runs the skill it scans. The static pass runs on your machine. The LLM pass sends "analyzer-eligible file contents" to the configured provider, and --no-llm keeps contents local. The supply-chain check still sends dependency names and versions to OSV.dev with --no-llm set, unless you point SKILLSPECTOR_OSV_DB_PATH at a local snapshot.
The most telling line in the README is about a provider NVIDIA turned off. NVIDIA disabled its codex_cli provider because "its read-only sandbox allows host-file reads." A sandbox labeled read-only still let the model read the host, and NVIDIA judged that unsafe for a tool whose input may be a malicious skill. Apply that test to every agent you run, scanner or not.
The README's Docker example for LLM scans writes ANTHROPIC_API_KEY into a .env file in the current directory, then mounts that same directory into the container as /scan. The scanner does not run the skill, so the key is not exposed to it. The habit is still the wrong one to copy: a plaintext key in a directory you scan, mount and might commit. Pass the key with -e from a secret store, or use the CLI providers, which run under the agent CLI's own login and send skill content only through stdin.
Cloudflare security-audit
This one is different in kind. It is a skill, so it runs inside your coding agent with your agent's model, your agent's key and your agent's permissions. It adds no new credential. It does mean your daily-driver agent spends a long session reading a codebase that might fight back.
Cloudflare's requirements section is the clearest statement any of these vendors has made about running AI review without trusting the target. Any target-controlled build, test, process or browser must run in an OS-enforced sandbox that disables external networking, uses a sanitized allowlisted environment, enforces resource limits and allows writes only to scratch paths. Without those controls the skill does not run target code at all; it records the lead as needs_validation. Reports default to ~/security-audit-skill/<repo-name>/run-<N>, outside the audited repo, so a hostile repo cannot plant files in your results.
What none of the four checks
Each of these tools looks at code. None of them looks at the session the code was written in.
Take the incidents this site has covered in 2026. Claude Code's local settings file held 31,088 secrets on GitHub because approval prompts saved full commands with tokens inline. Cursor's breach began with keys left in agent traces. Together AI's coding agent committed a credential to a public repository. A diff scanner can catch the last case, and Together's scanner did, after someone had already used the key. It would miss the first two, because those secrets lived in agent state, traces and local config, never in the code under review.
The same holds for skills. SkillSpector flags a skill whose script enumerates os.environ and posts it to a server; its E2 and TT3 patterns exist for that. It cannot tell you that your agent's environment holds a production Stripe key, which is the condition that makes such a skill dangerous. Static analysis of a skill answers half the question. The other half is what that skill would find if it ran.
Two more gaps show up in the READMEs. Cloudflare reports that in its test runs a single pass found about half of the vulnerabilities that repeated runs found in total, and Codex Security's deep mode repeats standard scans and merges the results for the same reason. One clean run is a sample. The second gap is the reviewer's own environment. A scanner in CI holds a model key, and in many repos the same job also holds deploy credentials because the workflow file grew that way. A prompt injection that gets the scanner to run env gets both.
A setup that adds coverage without adding exposure
The order below follows the agent's lifecycle: vet what it loads, review what it writes, and keep the reviewer from becoming a new leak.
- Scan every skill before install with the static pass only. It is fast and keeps contents local.
- Run the model-backed reviewers only on trusted branches, with their own keys and spend caps.
- Keep the scanner job's environment down to one secret, the scanner's own model key.
- Put
SECURITY.md,.claude/commands/and any custom scan instructions under code owner review. - Run deep or repeated scans on a schedule, not once.
The commands for the first three steps:
# 1. Vet a skill before your agent loads it. No LLM pass, local OSV snapshot
# (a directory of per-ecosystem all.zip archives, e.g. PyPI/ and npm/).
uv tool install --python 3.13 git+https://github.com/NVIDIA/skillspector.git
SKILLSPECTOR_OSV_DB_PATH=~/.cache/osv \
skillspector scan ./downloaded-skill/ --no-llm --format sarif --output skill.sarif
# 2. Review a branch you trust, against its merge base.
npm install --global @openai/codex-security
cs login
cs scan . --diff origin/main
# 3. Confirm the CI job that runs the scanner sees one secret and nothing else.
# Add this as a step before the scan and read the job log.
env | cut -d= -f1 | sort
# .github/workflows/security.yml, the parts that matter
on:
pull_request: # never pull_request_target for an AI reviewer
permissions:
contents: read
pull-requests: write # only if the tool comments
jobs:
security:
if: github.event.pull_request.head.repo.full_name == github.repository
steps:
- uses: actions/checkout@<pinned-sha>
with:
persist-credentials: false
- uses: openai/codex-security@<reviewed-sha>
with:
max-cost: "5"
env:
OPENAI_API_KEY: $
The if: line mirrors what OpenAI's own PR example does: skip PRs from forks, so the key never meets a stranger's branch. For Claude Code Security Review, add GitHub's "require approval for all external contributors" setting, as Anthropic's README asks. For both, create a dedicated model key for the scanner with a monthly limit at the provider, so a stolen scanner key has a known ceiling and a name you can revoke without breaking anyone's editor.
Run the Cloudflare skill only inside the kind of sandbox its README describes. The Docker sandbox guide and egress allowlist guide cover the pieces. If you skip the sandbox, the skill keeps unexecuted leads as needs_validation and you lose the confirmation step, which is the safe failure.
Read the reports as leads. All four document their blind spots: Claude Code Security Review filters out whole classes such as denial of service and open redirects, each Codex Security report lists its exclusions and scan scope, SkillSpector's limits list names images, binaries, non-English text and runtime behavior, and Cloudflare keeps unproven findings in a separate file. A clean report means the tool found nothing within its scope.
What this means for your stack
This week, run SkillSpector with --no-llm over every skill directory your agents load, then read the environment of each CI job that runs an AI reviewer. If any of those jobs holds more than the scanner's own model key, split it.
The structural fix sits underneath the scanners. Agents that write code and agents that review it both read untrusted text, and both run with whatever credentials their environment holds. If real secrets never enter that environment, and a command that needs a secret gets it at run time without the agent reading it, a prompt-injected reviewer or a malicious skill finds nothing worth sending.
hasp is one working implementation of that pattern. Install with curl -fsSL https://gethasp.com/install.sh | sh, run hasp setup, and connect a project so agent commands receive secrets at runtime instead of reading them from files or env. Source-available (FCL-1.0), local-first, macOS and Linux, no account.
Use the scanners. They find real bugs, and Cloudflare's and NVIDIA's documentation is worth reading even if you never install the tools. Count each one as another agent in your threat model and scope it like one. The riskiest secrets in an agent workflow sit in its environment, transcripts and config, where no code scanner looks.
Sources· cited above, in one place
- @oliviscusAI on X Twelve open-source security tools for AI-generated code (November 24, 2026)
- @neil_xbt on X Open-source security tools from Anthropic, OpenAI and NVIDIA for agent-written code
- anthropics/claude-code-security-review Claude Code Security Reviewer GitHub Action and /security-review command
- Anthropic Automate security reviews with Claude Code
- Aonan Guan Comment and Control: prompt injection to credential theft in Claude Code, Gemini CLI, and GitHub Copilot
- openai/codex-security Codex Security CLI, TypeScript SDK and GitHub Action
- OpenAI Codex Security: now in research preview
- The Next Web OpenAI 'open-sourced' its AI security scanner. The scanner is still locked up.
- NVIDIA/SkillSpector SkillSpector: security scanner for AI agent skills (README, trust model and data egress)
- NVIDIA Docs Scan agent skills before installation
- Help Net Security SkillSpector: NVIDIA's open-source security scanner for AI agent skills
- cloudflare/security-audit-skill security-audit: a coding-agent skill for multi-phase security audits
- Cloudflare Build your own vulnerability harness
Stop handing the agent your real keys.
hasp keeps secrets in one local encrypted vault, brokers them into the child process at exec, and never lets the agent read the value.
- Local, encrypted vault — no account, no cloud, no telemetry by default.
- Brokered run — agent gets a reference, the child process gets the value.
- Pre-commit + pre-push hooks catch managed values before they ship.
- Append-only HMAC audit log answers "did the agent touch the prod token?" in seconds.
macOS & Linux. Source-available (FCL-1.0, converts to Apache 2.0). No account.