secfoo Turns Your Coding Agent Into a Security Reviewer. The Agent You Pick Decides What It Can Touch.
The free CLI gives Claude Code, Codex or Copilot a fixed security checklist and CI gates. What each agent is allowed to do while it reviews is the part to read first.
Most teams already pay for a coding agent that can read an entire repository in minutes. Very few of them point it at their own code and ask, in a structured way, what an attacker would find.
The reason is not capability. It is consistency. Ask Claude Code to "check this repo for security issues" twice and you get two different essays, in two different shapes, with no way to fail a build on either one.
secfoo is an MIT-licensed command-line tool built to fix exactly that. It hands your existing agent a structured review brief and collects the answer in a fixed report format, with severity levels, SARIF export (the standard file format GitHub's Security tab reads), and exit codes your CI can act on. It sat at #19 on Trendshift's daily board at about 7:12 a.m. ET on November 27, with about 980 GitHub stars by shields.io's count.
That is a real step forward. But reading the adapter code turns up the part that matters more: secfoo does not run one reviewer. It runs whichever agent you pick, with that agent's permissions. So your choice of agent is also your choice of what the reviewer can touch.
What secfoo actually does
Think of secfoo as a clipboard and a form, not a scanner. Traditional tools like Semgrep parse your code against rules. secfoo instead gives a model a checklist, a target, and a required report layout. The README puts it plainly: "A skill is a brief, not a parser."
The README's catalog lists nine activities, including SAST (static analysis, reading source code for bugs like injection), secret scanning, SCA (checking whether a vulnerable dependency is actually reachable from your code), threat modeling and an architecture review. Each finding comes back with a CWE category (the standard name for the bug class), a CVSS vector (a standard severity score), a location, the vulnerable code and a fix.
The first run needs no config file:
uvx secfoo run --skill sast --skill secret-scanning --target https://github.com/OWASP/NodeGoat
secfoo picks whichever agent CLI it finds installed (Claude Code, Codex, Gemini CLI, Copilot, Cursor and others), or falls back to an API key already in your shell. The --agent flag chooses explicitly.
The README includes one real run against OWASP NodeGoat, a deliberately vulnerable Node.js app, done with Claude Code on November 14. SAST found 6 High findings in 4 minutes 12 seconds for $2.34. Secret scanning found 3 Highs in 2 minutes 15 seconds for $1.39. The Highs include eval() on a POST body and a committed RSA private key. These are the project's own numbers on a target built to be full of bugs, so treat them as a demo, not a benchmark.
The feature that sets it apart is context. secfoo can pass your Confluence pages, Jira tickets or a local threat-model PDF to the agent through MCP (Model Context Protocol, the standard way agents connect to outside tools and data). The architecture review then compares what your docs say with what the code does, and every report ends by listing which documentation sources it reached and which it could not.
Where the reviewer's permissions come from
Here is the mental model that matters. secfoo is a dispatcher. The reviewer's hands belong to the agent you plug in, and the adapters are not equal. The project documents this honestly in docs/agents.md, and the code matches it.
Codex runs with codex exec --sandbox read-only. That is an operating-system sandbox. If the model tries to write a file, the sandbox refuses, and the docs note that secfoo then reports a failed run.
Claude Code runs with an allowlist that starts with Read,Grep,Glob,Bash(git log:*),Bash(git diff:*), plus any MCP servers you configured. The docs call this what it is: "The tool grant is read-only, not an OS sandbox." The model can only call those tools, but nothing below Claude Code enforces it.
Copilot runs with --allow-all-tools. The adapter's source explains why: Copilot's CLI says the flag is "required for non-interactive mode," and without it the run hangs on a permission prompt nobody can answer. The same comment admits the flag "still lets the model use tools like write without a prompt," so the review is read-only "by instruction, not by sandboxing."
The api agent, which is the default inside secfoo's GitHub Action, does not use tools at all. It packs your source files into the prompt and sends them to the model provider. docs/CI.md says so directly: "source files are sent to the model in the prompt."
None of this is a flaw secfoo invented. It is how these agents work in headless mode. But it changes how you should think about the tool. When you scan your own repo, a write-capable reviewer is mostly a risk of an accidental edit. When you scan a repo you do not control, a dependency, a vendor's SDK, a pull request from a stranger, the code under review is untrusted input to an agent with tools. A comment in that code is text the model reads.
secfoo does take one sensible step here. With --agent claude, it attaches only the MCP servers you configured, leaves your global Claude config alone, and does not load the target repo's own .mcp.json. A hostile repo cannot slip its own tool server into your review.
Three details worth knowing before CI
The cost cap is checked after the money is spent
--max-cost 2.00 sounds like a brake. It is a gate. docs/REFERENCE.md says the summed agent-reported spend is "Evaluated after the runs complete," and the run exits with code 3 if it went over. Your $2 cap does not stop a $9 run. It tells you about it.
It also depends on the agent reporting its spend. Per docs/CI.md, Claude and the api agent report real dollars, Gemini reports tokens only, and Cursor and Antigravity report nothing. Those count as unpriced_runs and never pass a cap as "$0." If you need a hard limit before anything is sent, the api agent has --max-input-tokens, which refuses to call the model when the assembled prompt is too large.
The release tag does not contain the Action yet
docs/CI.md tells you to "Pin to a release tag (secfoo-com/secfoo@v0.3.1)" once you are happy with the Action. That is good advice in general, because @main runs whatever lands on main next. But when I listed the files at the v0.3.1 tag, there was no action.yml. Git history shows the file was added on November 16, after that tag's commit. So @v0.3.1 will not work as an Action reference today. Pin to a full commit SHA from main instead, and move to a tag once a release includes the Action.
The findings are a model's opinion
A fixed report shape is not a fixed answer. Two runs can find different things, and a High finding is a lead to reproduce, not a verdict. The severity gate (--fail-on high) counts findings from the report's headings, so a model that over-rates one issue can fail your build. Keep a deterministic scanner in the pipeline next to it, and let secfoo do what rules are bad at: reading your design docs and noticing that the code does not match them.
Put this into practice
Start small, on code you own, with the most constrained agent you have.
1. Run it locally with Codex or Claude Code first.
pipx install secfoo
secfoo run --skill sast --skill secret-scanning --target . --agent codex
secfoo serve # opens the local dashboard with the results
Expect a few minutes per skill and a few dollars per run on a mid-size repo, going by the README's NodeGoat run. Read every High finding and try to reproduce one. That tells you more about the tool than any benchmark.
2. Avoid the Copilot adapter for untrusted targets. If Copilot is your only agent, use it on your own repos, where an unwanted write is visible in git status, and run it in a throwaway clone.
3. Wire it into CI with a pinned commit and least privilege. The workflow in the README asks for contents: read and security-events: write, which is the right minimum (uploading to code scanning on a private repo may also need GitHub Advanced Security). Change the uses: line from @main to a full SHA:
- uses: secfoo-com/secfoo@<full-commit-sha>
env:
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
with:
skills: sast,secret-scanning
fail-on: high
max-cost: "2.00"
Remember that this Action defaults to the api agent, so your source goes to the model provider. Use a key under an account whose data terms you have read.
4. Add context once the basics work. Connect a Confluence space or a threat-model file with --context and run security-architecture-review. Check the coverage section at the end of the report to see which sources it actually read. One catch: the api agent cannot reach URL sources such as Confluence through MCP, so use a CLI agent for this step.
5. Watch the exit codes. 0 clean, 1 the run broke, 2 the severity gate tripped, 3 the cost gate tripped. Treat 3 as a budget alert you investigate, not a pass.
Honest limitations
secfoo is young. The latest GitHub release is v0.3.1, dated November 15, the README's results are self-run, and a few adapters (Droid, Devin) are marked in the docs as not verified end to end.
It is not fully local in practice, whatever the README's "Local first" line suggests. Runs and the dashboard stay on your machine, but the code still goes to whatever model your agent uses, and there is an optional secfoo cloud login that syncs to an org portal that is not in the repo. The website lists editions, and the pricing for those is not in the README.
And it inherits every weakness of the model behind it: missed bugs, invented ones, and severity that drifts between runs. It is a reviewer, not a scanner, and it should sit next to one.
The shift
For years, "AI security review" meant a vendor's model behind a vendor's dashboard. secfoo flips that. The reviewer is the agent you already trust with your code, held to a checklist and a report format, with output your existing GitHub tooling understands.
That makes the review cheap and repeatable. It also means the security of the reviewer is now your configuration problem. Pick the sandboxed agent, pin the commit, read the coverage section, and treat the cost cap as a smoke alarm.
Then run it on your own repo this week. The first High finding you can reproduce will tell you whether it earns a place in CI.
Sources: secfoo README (main at commit 4fb374c, November 26, 2026; release v0.3.1); docs/agents.md; docs/CI.md; docs/REFERENCE.md; Copilot adapter source; file list at tag v0.3.1; Trendshift daily board, read about 07:12 ET November 27.