Repository navigation
Releases
agentscan 2.1.0
agentscan 2.1.0
Wider coverage and a precision pass driven by a hand audit of random findings from a scan of about 102,000 public agent config files (25 hits per rule, three rounds; every false-positive class is now a regression test, 84 tests in all).
Wider coverage
- New formats: Continue (list-style
mcpServers), Zed (context_servers), opencode (mcp, arraycommand,.jsonc), Amazon Q, Kiro (steering), pluginhooks.json, Cursor.mdcrules and other rules directories. - Backup copies (
*.bak,*.orig,~) are scanned at full severity and markedcontext: backup;*.exampleand*.templatecopies are treated as fixtures. - New AS014: project settings that run a command at session start (
apiKeyHelper, AWS helpers,statusLine) or register extra plugin marketplaces. BroadadditionalDirectoriesgrants join AS002.
Fewer false positives
- AS001 allow-rules count only with an open wildcard (
Bash(python:*),Bash(node -e *)); an exactBash(python3 -c "...")orBash(env)no longer fires. - AS003 is High only for
evalof dynamic input or fetch-and-execute; guard hooks that read tool input are Low. A file namedskill-eval.shis noteval. - Inline shell wrappers are High only for real eval, read loops or pipes into a shell;
--read-only,"$@"andxargsidioms are Low. - AS010 cleartext transport: private-network, container and
.localhosts are Info; public hosts stay High. - AS005 no longer treats "Always run tests" as disabling confirmation; AS006 needs a strong phrase in the same sentence; AS012 is High only for bidi or tag characters or many invisible characters.
- Secrets: public-role JWTs, publishable key prefixes and domain-like key names are skipped; credentials in URLs to local hosts are Low; a Context7 key is no longer also reported as an OpenAI key.
- Local paths and pre-release versions (
@0.0.1a4) are not reported as unpinned.
Behaviour changes to know about: AS001 grants, AS003, AS010, AS005 and AS006 report far fewer findings than 2.0.0 on the same input, and AS014 is new, so CI gates tuned to 2.0.0 counts may shift.
Limits unchanged: static and heuristic; precision figures come from a single reviewer; recall is unmeasured.
agentscan 2.0.0
agentscan 2.0.0
A precision and robustness release. Output changed (new confidence and context fields, several severities re-tiered), so CI gates built on 1.0.0 may behave differently.
Fewer false positives
- Every finding carries a
confidence(high, medium, low); filter with--min-confidence. - Findings in test, fixture, example, docs and template paths are reported as INFO (
--include-fixturesrestores full severity). - Secrets: provider-format detection (Anthropic, OpenAI, OpenRouter, GitHub, Slack, Notion, Context7, AWS and more) plus key-name and entropy checks; placeholders and documentation keys are ignored.
- Hooks are High only when they interpolate tool input or fetch and execute code; other hooks are Low.
- Prose rules (AS005, AS006) are Low, negation-aware and skip code fences.
Better detection
- Pinning:
@latest, version ranges,uvx,bunx,pipxanddocker runtags are now treated as unpinned. - Allow-rule analysis: interpreter, package-runner and shell-escape grants are flagged; scoped ones are not.
- New rules: AS010 cleartext remote MCP, AS011 auto-trust of project MCP servers, AS012 hidden Unicode in instruction files, AS013 skills that pre-approve arbitrary execution.
- Reads JSON with comments, Codex TOML and VS Code
servers; SARIF output (--format sarif).
Robustness
- One malformed file no longer aborts a scan; errors are reported. Fixed a crash on non-list
args/allow, two quadratic regexes, and deep-nesting recursion. 54 tests plus fuzzing.
Limits: static and heuristic; recall and per-rule precision are not yet measured on a labelled corpus.
agentscan 1.0.0
First release. Static security scanner for AI-agent configuration — zero dependencies, offline, CI-ready.
Detects
- Permission bypass (
bypassPermissions,--dangerously-skip-permissions,Bash(*)) - MCP servers that are RCE by design (shell commands, broad filesystem roots)
- Auto-run hooks, leaked API keys, and indirect-prompt-injection boundary gaps
- Unpinned
npx -y/ remote MCP endpoints
Use
pipx install .
agentscan . --fail-on HIGH # CI gate
agentscan . --format markdown -o report.md
agentscan . --rules org-rules.json # pluggable custom rulesCovers Claude Code, Cursor, Cline/Roo, Windsurf, and Copilot config. MIT licensed.