Skip to content

agentscan 2.0.0

Choose a tag to compare

@ppradyoth ppradyoth released this 25 Oct 18:14
· 1 commit to main since this release
3a667eb

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-fixtures restores 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, pipx and docker run tags 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.