audit

A structured security review of an existing codebase that examines it like an attacker. It maps the code and trust boundaries, checks common attack surfaces, and reports findings with impact, evidence, severity, and fixes.

In plain words
What is it for?
Use it for codebase security audits, vulnerability assessments, OWASP checks, penetration-test preparation, or security reviews of pull requests.
Why use it?
It provides a systematic way to find vulnerabilities that a simple pattern scanner or compliance checklist may miss.

Skill for Claude CodeCodex

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 skills/itsbroken-ai/forge-plugin/audit
Any agent
npx skills add itsbroken-ai/forge-plugin --skill audit
Clone the repo
git clone --depth 1 https://github.com/itsbroken-ai/forge-plugin

Made for: Claude Code, Codex.

Per session 96 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,522 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.00096 $0.01522
Opus 5 $0.00048 $0.00761
Sonnet 5 $0.00019 $0.00304
Haiku 4.5 $0.00010 $0.00152

Measured 2d ago against content hash 79395d9fcb31, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

audit 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 2d ago.

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.

skills/audit/SKILL.md · 148 lines

How it starts

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

forge:audit — Security Audit

Run a structured security review that thinks like an attacker, not a compliance checklist.

This isn't a linter. This is an operator examining your code the way a red teamer examines a target: looking for the paths that lead to compromise, not just the patterns that match a rule.

How This Works

When invoked, you conduct a security audit in three phases:

  1. Recon — Understand what you're looking at. Map the codebase structure, identify trust boundaries, find where user input enters the system.
  2. Analysis — Examine each attack surface methodically. Think about what an attacker would try, not just what a scanner would flag.
  3. Report — Deliver findings with severity, impact, evidence, and remediation. Every finding explains the attack, not just the weakness.

Audit Scope

If the user provides a specific target (file, directory, component), focus there. If no target is specified, prioritize in this order:

  1. Authentication and authorization logic
  2. Input handling and data validation
  3. API endpoints and route handlers
  4. Database queries and data access
  5. Cryptographic operations
  6. Session management
  7. File operations and path handling
  8. External service integrations
  9. Configuration and secrets management
  10. Dependencies with known vulnerabilities

The Audit Mindset

For every piece of code you examine, ask yourself:

  • "What would I try?" — If you were attacking this, where would you start? What looks exploitable?
  • "What's the blast radius?" — If this weakness is exploited, what can the attacker reach? Just this function, or the whole system?
  • "What's missing?" — Sometimes the vulnerability isn't in what the code does, but in what it doesn't do. Missing rate limiting. Missing auth checks. Missing input validation.

Do not just pattern-match against a checklist. Reason about the actual attack paths.

Report Format

Deliver your findings in this structure:

FORGE SECURITY AUDIT
════════════════════

Target: [file, directory, or project]
Scope: [what was examined]
Date: [current date]

SEVERITY SUMMARY
┌──────────────────────────────────────┐
│ CRITICAL:  [count] — Exploitable now │
│ HIGH:      [count] — Likely path     │
│ MEDIUM:    [count] — Needs attention │
│ LOW:       [count] — Hardening       │
│ INFO:      [count] — Observations    │
└──────────────────────────────────────┘

────────────────────────────────────────
[CRITICAL] Finding Title
────────────────────────────────────────
Location:     file.py:123
Issue:        [What's wrong — be specific]
Attack:       [How an attacker exploits this — step by step]
Impact:       [What they get — data, access, execution]
Evidence:     [The vulnerable code, quoted]
Remediation:  [How to fix it — with code example]
Reference:    [OWASP category, CWE, or F.O.R.G.E. technique ID if applicable]

────────────────────────────────────────
[HIGH] Finding Title
────────────────────────────────────────
...

OWASP TOP 10 COVERAGE
[x] A01: Broken Access Control — [findings or "No issues found"]
[x] A02: Cryptographic Failures — [findings or "No issues found"]
[x] A03: Injection — [findings or "No issues found"]
[x] A04: Insecure Design — [findings or "No issues found"]
[x] A05: Security Misconfiguration — [findings or "No issues found"]
[x] A06: Vulnerable Components — [findings or "No issues found"]
[x] A07: Auth Failures — [findings or "No issues found"]
[x] A08: Data Integrity Failures — [findings or "No issues found"]
[x] A09: Logging Failures — [findings or "No issues found"]
[x] A10: SSRF — [findings or "No issues found"]

HARDENING RECOMMENDATIONS
Priority items that aren't vulnerabilities yet but would strengthen the posture:
□ [Recommendation 1]
□ [Recommendation 2]
□ [Recommendation 3]

VERDICT: [PASS / FAIL / CONDITIONAL]
- PASS: No CRITICAL or HIGH findings
- FAIL: Any CRITICAL finding, or 3+ HIGH findings
- CONDITIONAL: HIGH findings that have mitigating factors

Read the full file on GitHub · 148 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. 2d ago First seen · 148 lines · 96 tokens per session scan A 79395d9fcb31

Subscribe to this mod's changes

audit is a skill published in the GitHub repository itsbroken-ai/forge-plugin (11 stars, last pushed 5mo ago), licensed MIT. It adds 96 tokens to every session and 1,522 once invoked, about $0.0005 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.

Related

Other skills, from other repositories

systematic-debugging

Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.

obra/superpowers · 21 tokens

brainstorming

You MUST use this before any creative work - creating features, building components, adding functionality, or modifying behavior. Explores user intent, requirements and design before implementation.

obra/superpowers · 37 tokens

chat-pet-sprite-creation

Use when creating or changing VS Code chat pet sprite art, sprite sheets, state animations, eye treatments, Stable/Insiders variants, or pet transitions under src/vs/workbench/contrib/chat/browser/widget/media/chatPet.

microsoft/vscode · 53 tokens

cpu-profile-analysis

Analyze V8/Chrome CPU profiles (.cpuprofile) and DevTools trace files (Trace-.json). Use when: profiling performance, investigating slow functions, comparing code paths, finding bottlenecks, analyzing timeToRequest, understanding call trees from sampling profiler data, analyzing layout/paint/rendering, investigating…

microsoft/vscode · 71 tokens

agent-host-chat-contributions

Build and review cross-cutting agent-host chat behavior through lifecycle contributions. Use when adding turn lifecycle side effects, prompt or context injection, restored-history transformation, protocol-action observation, or when reviewing changes that add code to AgentSideEffects or AgentService.

microsoft/vscode · 56 tokens

auto-perf-optimize

Run agent-driven VS Code performance or memory investigations. Use when asked to launch Code OSS, automate a VS Code scenario, run the Chat memory smoke runner, capture renderer heap snapshots, take workflow screenshots, compare run summaries, or drive a repeatable scenario before heap-snapshot analysis.

microsoft/vscode · 62 tokens