audit-assist
Flow B — AI-assisted iterative audit with a human in the loop. Same lifecycle as audit-cycle, but pauses at checkpoints to surface confirmed findings, the…
Builds the pre-review threat model as audit_<n>/threat-model.md — an asset inventory (crown-jewel funds/authority/data and where they live), an actor x capability table (each actor → what they can do → what they must NOT be able to do), and a trust-boundary map (which
> /plugin marketplace add solanabr/auditor-skill > /plugin install auditor@auditor
How it fires
How this command gets triggered: by you, by Claude, or both.
/threat-modelContext preview
What this command does when you run it.
Builds the pre-review threat model as audit_<n>/threat-model.md — an asset inventory (crown-jewel funds/authority/data and where they live), an actor x capability table (each actor → what they can do → what they must NOT be able to do), and a trust-boundary map (which
name: auditor:threat-model description: Builds the pre-review threat model as audit_<n>/threat-model.md — an asset inventory (crown-jewel funds/authority/data and where they live), an actor x capability table (each actor → what they can do → what they must NOT be able to do), and a trust-boundary map (which CPIs/accounts/inputs cross a trust boundary). No verdicts — attacker-goal enumeration that seeds report §4.4/§4.6/§4.7 and gives vuln-hunter/economic-analyst concrete goals to falsify. Automated flow drives it via the threat-modeler agent; interactive flow asks the human. argument-hint: "[path] [--auto]" allowed-tools: Read, Write, Glob, Grep, Task
**Arguments:** $ARGUMENTS
Build the threat model **before** the manual review judges anything — analogous to how context reconstruction (Phase 0.5) precedes verdicts. Read `templates/threat-model.md` (the artifact you fill) and the report sections it feeds: `templates/audit-report.md` §4.4 (Trust Model & Actors), §4.6 (Assumptions & Simplifications), §4.7 (Systemic / Thematic Risks). This is target enumeration, **not** a findings document — no severities, no verdicts.
Fill `templates/threat-model.md`:
1. **Asset inventory** — crown-jewel assets by class (funds / authority / data), where each lives (account / PDA), cited to definition/holding site, and the worst case if compromised. Aligns to report §4.2. 2. **Actor × capability table** — for each actor (permissionless user / LP / keeper / admin / upgrade authority / oracle / CPI callee): trust level, what they **can** do (→ the instruction @ `file:line`), and — the load-bearing column — what they must **NOT** be able to do. Column layout aligns to report §4.4 (Privileges / Trust Assumption); the "must NOT" cells are the security properties the reviewers test. 3. **Trust-boundary map** — every CPI, caller-supplied account, instruction arg, `remaining_accounts`, and sysvar that crosses from lower to higher trust, cited, with whether it is validated (cite the guard or mark `✗`). Feeds report §4.6 (what is trusted) and §4.7 (transitive/indirect CPI risk). 4. **Attacker goals to test** — derived from the "must NOT" cells and the unvalidated crossings, each mapped to the checklists / known-vectors that hunt it. These are the goals `vuln-hunter` and `economic-analyst` try to achieve; a goal that turns out reachable becomes a finding downstream through the Rule 5b gate.
`audit_<n>/threat-model.md`. Synthesis lifts the asset inventory, actor table, and trust boundaries directly into report §4.4/§4.6/§4.7; the attacker-goals list steers the domain-partitioned review.
Production-grade security audit for any codebase, powered by AI agents. 20 checklists · 1,413 verification items · 136 known attack vectors · executable PoCs + fix patches A full audit-firm lifecycle (automated + interactive) · Benchmarked against CertiK, SOC
Repo: solanabr/auditor-skill
Flow B — AI-assisted iterative audit with a human in the loop. Same lifecycle as audit-cycle, but pauses at checkpoints to surface confirmed findings, the…
Flow A — fully automated audit-firm lifecycle. Runs scope → context → tool-assisted first pass → domain-partitioned manual review → independent reconciliation…
Aggregate audit checkpoints into the final report — executive summary, Scope Coverage, findings by severity, maturity scorecard, and remediation roadmap.
Full scope-gated security audit of a Solana / full-stack repository — discovery, context reconstruction, per-item checklist verdicts, false-positive…
Deep single-instruction / single-function security review using the instruction worksheet, context reconstruction, and adversarial exploit modeling.
PR / commit-scoped differential audit — audits only changed functions (plus 1-hop callers), flags removed security checks, and prioritizes by risk × blast…