autoresearch:security

A security-audit command that examines a codebase using STRIDE and OWASP security methods. STRIDE is a checklist for common threats, while OWASP publishes widely used web-security guidance.

In plain words
What is it for?
Use it to audit an entire codebase or selected areas such as authentication, APIs, middleware, or data handling. It can report findings, attempt fixes, compare changed files, or act as a CI gate.
Why use it?
It helps find security weaknesses through repeated adversarial checks instead of relying on a single manual pass.

Command for Claude Code

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/uditgoenka/autoresearch/security
Clone the repo
git clone --depth 1 https://github.com/uditgoenka/autoresearch

Made for: Claude Code.

Per session 18 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,263 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00018 $0.01263
Opus 5 $0.00009 $0.00632
Sonnet 5 $0.00004 $0.00253
Haiku 4.5 $0.00002 $0.00126

Measured yesterday against content hash 3a8aba600475, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

autoresearch:security scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

.claude/commands/autoresearch/security.md · 102 lines

How it starts

The opening of the file, as written. The whole thing — 102 lines — stays where its author put it; the contents beside it link to each section on GitHub.

EXECUTE IMMEDIATELY.

Parse Arguments

Extract from $ARGUMENTS:

  • Scope: or --scope — file globs to audit
  • Focus: — specific area (auth, API, data handling, etc.)
  • Depth: or --depth — quick (5 iterations), standard (15), deep (30+)
  • Iterations: or --iterations — default 15. "unlimited" for unbounded.
  • --diff — delta mode: only audit files changed since last audit
  • --fix — after audit, auto-fix Critical/High findings (chains to fix)
  • --fail-on <severity> — exit non-zero if findings at/above threshold (CI gate)
  • --evals, --evals-interval N, --chain, --<subcommand>

Setup (if required context missing)

If Scope missing and no --diff:

  1. Scan codebase for tech stack, frameworks, API routes
  2. AskUserQuestion (single batch): Q1 (Scope): "What to audit?" — entire codebase, API + middleware, auth, external-facing Q2 (Depth): "How thorough?" — quick (5), standard (15), deep (30+), unlimited Q3 (Action): "What to do with findings?" — report only, report + auto-fix, report + CI gate If all provided → skip.

Setup Phase (once, before loop)

  1. Reconnaissance — scan: package.json/requirements.txt (deps), .env.example (secrets), Dockerfile (infra), API route files (attack surface), auth/middleware (trust boundaries), DB schemas (data assets), CI/CD configs (supply chain)
  2. Asset Identification — catalog data stores, auth systems, external services, user inputs
  3. Trust Boundary Mapping — browser↔server, public↔authenticated, user↔admin, CI↔prod
  4. STRIDE Threat Model — generate threats per category. Load references/security-checklist.md for checklist.
  5. Attack Surface Map — entry points, data flows, abuse paths
  6. Baseline — count known issues, initialize coverage tracking

Create output directory: autoresearch/security-{YYMMDD}-{HHMM}/ Write: overview.md, threat-model.md, attack-surface-map.md TSV header: # metric_direction: higher_is_better\niteration\ttimestamp\tfinding\tseverity\towasp\tstride\tevidence\tfile_line

Read the full file on GitHub · 102 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday First seen · 102 lines · 18 tokens per session scan A 3a8aba600475

Subscribe to this mod's changes

autoresearch:security is a command published in the GitHub repository uditgoenka/autoresearch (5,966 stars, last pushed 19d ago), licensed MIT. It adds 18 tokens to every session and 1,263 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.