/secaudit:secaudit-orchestratorfrom secaudit
Portable prose runbook for the full secaudit code-audit pipeline, for harnesses WITHOUT the Claude Code Workflow engine (e.g. Codex). Drives the same secaudit SKILL.md skills stage-by-stage: Recon → Hunt → Challenge → [Blindspot Sweep] → Dedupe → Trace → Generate Artifacts. On Claude Code, prefer the deterministic workflow (Workflow name "secaudit") instead. Use when running the audit somewhere the .js workflow cannot execute.
Ships in secaudit. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
On Claude Code, use the secaudit:run skill instead (it inspects, confirms, prepares, and starts the deterministic workflow with the required handshake). Use this runbook only where the Workflow engine is unavailable. The stage order, fan-out, and single-replay bound below are the same guarantees the workflow enforces in code — here they depend on you following them.
The full pipeline spawns one agent per Hunter, one Challenger per Hunter that produced findings, and batched Trace agents; on a large corpus that is expensive. Scale it down the same way the workflow's config does:
sqli, rce, idor, missingauth, ssrf, hardcodedsecrets) instead of all 14. Fewer Hunt agents.The workflow enforces these in code; here they depend on you following them:
The commands below run scripts bundled with secaudit, not scripts in the repository being audited. The plugin root and the audit target are different roots and are never derived from each other.
<PLUGIN_ROOT>/skills/secaudit-orchestrator/SKILL.md.${CLAUDE_PLUGIN_ROOT} also expands to that same absolute
path; on other clients nothing is expanded, so use the rule above.Substitute that absolute path for <PLUGIN_ROOT> in every command below and always quote it —
the plugin may be installed under a path containing spaces.
Inspect the target to ground the Hunter recommendation and cost estimate:
node "<PLUGIN_ROOT>/skills/run/scripts/secaudit-runtime.mjs" inspect --target "<target>" — omit
--target when the user gave no path (the runtime resolves the Git toplevel, else the
invocation directory). To audit only part of the target, add --scope <target-relative-path>
(repeatable, or one comma-separated value) — never hand-stage a subset of the repository,
because that destroys the project identity the run reports under. Parse its one-line JSON
{target, targetSource, artifactRoot, artifactRootSource, coverage, scope, extensions, manifests, warnings, …}, show the resolved target
to the user, and surface any warnings verbatim.<artifactRoot>/.secaudit/runs/. The run directory follows
the PROJECT root, not the audited tree — the audited tree's own repository, else the repository
you are standing in (which is what keeps an audit of a staged or copied workspace out of that
copy), else the target. Point it elsewhere with --output.targetSource is
explicit (user named it), gitToplevel (walked up to the nearest repository root) or cwd.
A guess can be wider than intended — invoked from repo/services/api it audits all of repo
— so when it is not explicit, ask the user to confirm the path or supply another, alongside
the size line below. On a different path, re-run inspect --target "<their path>" and redo
this section; the earlier coverage and recommendations are stale.coverage: Repo: <sourceLines> source LOC, ~<estimatedSourceTokens> source tokens.FIXED ≈ 120k (Recon + Dedupe + Trace + Generate Artifacts) plus nHunters × (40k + coverage.estimatedSourceTokens); a Blindspot Sweep replay roughly doubles the hunt+challenge portion. Print an order-of-magnitude bracket, e.g. Est. full scan (N hunters, blindspot sweep off): ~XXXk–YYYk tokens. — a bracket, not false precision.businesslogic, fileupload, graphql, hardcodedsecrets, idor, jwt, missingauth, pathtraversal, rce, sqli, ssrf, ssti, xss, xxe). Rule of thumb: always include sqli, idor, missingauth, hardcodedsecrets. Add ssrf/rce for services that make outbound calls or shell out; xxe when XML is parsed; graphql only if a GraphQL schema/endpoint exists; fileupload/xss only if upload or HTML-render surface exists; jwt if tokens are issued/verified. Exclude classes with no matching surface and say why.The prep half of the Recon stage — the workflow folds these steps into Recon; the map half (sast-analysis) is stage 1 below.
cp):
node "<PLUGIN_ROOT>/skills/run/scripts/secaudit-runtime.mjs" prepare --target "<target>" [--output "<exact-run-directory>"]
Parse its one-line JSON and set WORK=<work>, RUNDIR=<runDir> — print RUNDIR, it is
where every artifact of this run appears — and keep coverage,
corpusSha256, and generatedDate unchanged for Generate Artifacts at the end of the
run. On {"error":{code,message}}, report the message and stop — never improvise a
workspace, and never write the original corpus tree.$WORK/sast/.run-ledger.json / trace.md.On Claude Code the workflow engine draws one progress group per stage. Running this runbook
as prose there is no such display, so the whole run collapses into one undifferentiated turn
and the user cannot see where it is or where it failed. Before starting stage 1, register the
stages as plan items with whatever planning tool your client provides (Codex: update_plan),
then mark each one in progress when you enter it and complete when its artifact exists.
The Blindspot Sweep answer is already known here — it is settled in Recon / Prepare step 1, before stage 1 — so build the correct list up front rather than editing it mid-run:
Recon, Hunt, Challenge, Dedupe, Trace, Generate Artifacts.Blindspot Sweep, Hunt (round 2) and
Challenge (round 2) registered as their own items directly after Blindspot Sweep.Register the round-2 items rather than reopening the round-1 ones: a completed item flipped
back to in-progress reads as a failed retry, not as the deliberate single replay it is. When
the sweep finds no real gaps, close all three as skipped and go straight to Dedupe — an
empty blindspot-tasks.md is a completed sweep, not a pending one.
If the client has no planning tool, print a — stage N/<total>: <name> — line instead.
This is display only: it never changes the stage order, the fan-out, or the single-replay bound below. The sweep still runs at most once whatever the plan shows.
sast-analysis on $WORK → sast/architecture.md (+ ## Hunt Tasks). Blocking.sast-<class>) in parallel, each reading architecture.md, writing sast/<class>-results.md ending in ## Coverage. Dead Hunters: retry once, then abort the run — never report on partial coverage (Reliability rules). Each Hunter runs its own skill's method INLINE (no nested subagents — this stage is already fanned out one per Hunter) and reports candidate findings with evidence and a **Confidence:** line only; it must NOT judge reachability or suppress uncertain findings (Challenge and Trace do that). (Dependency and vulnerability scanning of manifests/lockfiles is out of scope for this pipeline; run it as a separate standalone step afterward if needed.)sast/*-results.md (enumeration only — no judging); group them by Hunter class, then dispatch fresh secaudit-challenge subagents in parallel, one per Hunter that produced new findings, each handling ONLY that Hunter's findings (cold re-read, judge each independently). Each annotates only its assigned findings (DEFECT/NOT-A-DEFECT/UNSURE + **Challenge:**). Do not run one agent over ALL findings, do not batch across Hunters, and do not spawn one agent per finding. Dead Challengers: retry once, then abort (Reliability rules). After Challenge, reconcile: every finding in sast/*-results.md must carry a **Challenge:** line — a residual un-converted finding would silently drop at Dedupe, so STOP and report it instead of continuing.secaudit-blindspot-sweep, which reads every Hunter's own ## Coverage self-report (Covered / Not covered / Shallow) against architecture.md and writes sast/blindspot-tasks.md. If it lists real tasks, run ONE more Hunt round scoped to those tasks (append a new ## Round 2 section per affected results file — never rewrite or reorder existing sections), then Challenge the new findings (stage 3 rules — one Challenger per Hunter with new findings). This is a single pass: do not replay more than once, and skip entirely if the sweep finds no real gaps.secaudit-dedupe → sast/deduped.md (carries forward only DEFECT-tagged findings, collapsed to one record per root cause, plus a separate UNSURE section).### [DEFECT] record in sast/deduped.md that lacks a **Trace:** line (enumeration only).secaudit-trace subagents over batches of those records (cap = Hunter count, default 5 per subagent, grow the batch not the agent count — see Cost controls). Each traces its records independently and RETURNS verdicts (REACHABLE / UNREACHABLE / NEEDS-PROOF + one-line evidence: entry→sink path, no-path reason, or the exact dynamic test). They must NOT edit any file — parallel writers clobber the single shared deduped.md.**Trace:** <verdict> — <evidence> under each matching record, keyed strictly by file:line. Nothing else changes.<PLUGIN_ROOT>/skills/secaudit-generate-artifacts/SKILL.md and run its Generate then Publish steps exactly (same schema and scripts the workflow uses — collect → assemble → publish):
secaudit-runtime.mjs prepare → {coverage, corpusSha256, generatedDate}).$WORK/sast/report-data.json from architecture.md, every $WORK/sast/*-results.md, $WORK/sast/deduped.md, and the Hunter list/generatedDate/coverage captured above. NOT-A-DEFECT findings come from the per-Hunter results files; DEFECT/UNSURE records come from deduped.md. Validate against report-data.schema.json (validateReportData from report-contract.mjs) before moving on. Never hand-write visible buckets or counts yourself — report-data.json is the run's
structured record, and the human view is the secaudit:issues dashboard, not a rendered
report.$WORK/sast/run-ledger.json (the ledger lines, Hunter list, whether the Blindspot Sweep replayed, and the final Challenge batch count), then:
node "<PLUGIN_ROOT>/skills/secaudit-generate-artifacts/scripts/publish-artifacts.mjs" \
--target "<target>" \
--expected-hash <corpusSha256> \
--work "$WORK" \
--run-dir "$RUNDIR" \
--ledger "$WORK/sast/run-ledger.json"
This re-hashes <target> and refuses to copy or prune anything if it is no longer byte-identical to the hash captured in Recon / Prepare — report "corpus not pristine" as a run failure if it aborts. On success it writes $RUNDIR/trace.md (corpus hash, coverage, template version, the ledger contents verbatim), prunes everything under $WORK except $WORK/sast/, and prints one JSON line {confirmed, refuted, manualReview} — that is the run's result.node "<PLUGIN_ROOT>/skills/secaudit-generate-artifacts/scripts/verify-artifacts.mjs" --run-dir "$RUNDIR"
It prints one JSON line {sizes, missing} and exits non-zero when missing is non-empty. If
anything is missing or empty, the publish did not produce the deliverables — report the run as
failed rather than reporting success.Report the Confirmed / Refuted / Manual Review counts from the publish summary, the top 3 Confirmed findings, and the paths to $RUNDIR/trace.md and $WORK/sast/report-data.json. Read the findings in the secaudit:issues dashboard — no report is rendered. The copied source is removed automatically on a successful publish; $WORK/sast/ keeps the stage evidence. If publish reports state cleanup-incomplete, say so plainly and name the entries it listed as remaining — that run still holds a copy of the audited tree, including its .env, and needs deleting by hand. Never claim the codebase is "secure."
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
23 skills in this plugin
/issuesOpen the secaudit Workbench: sync the persistent issue board with every discoverable run in this project, then serve it locally so triage decisions (confirm, done, false positive) persist across audits and restarts./runLaunch the full secaudit source-code security audit against a repository. Explicit-only entry point: inspects the target read-only, recommends hunters with a token-cost bracket, asks the user which hunters + whether to run the blindspot sweep, prepares an isolated run via the deterministic runtime, then starts the deterministic workflow. The workflow itself never prompts./sast-analysisPerform codebase analysis and architecture mapping as the first phase of a security assessment. Explores the tech stack, frameworks, entry points, data flows, and trust boundaries. Outputs sast/architecture.md. Run this before any vulnerability detection skill. Use when asked to analyze a codebase for security or when sast/architecture.md does not yet exist./sast-hunter-businesslogicDetect business logic vulnerabilities in a codebase using an inline three-phase method: threat modeling (domain analysis and attack scenarios via references/sinks.md), verify (check exploitable gaps via references/examples.md), and merge (write results). Covers price manipulation, workflow bypass, limit violations, race conditions, reward abuse, etc. Requires sast/architecture.md (run sast-analysis first). Outputs findings to sast/businesslogic-results.md. Use when asked to find business logic, logic flaws, or abuse-of-function bugs./sast-hunter-fileuploadDetect insecure file upload vulnerabilities in a codebase using an inline three-phase method: discovery (find all upload sites via references/sinks.md), verify (check extension bypass and related issues via references/examples.md), and merge (write results). Requires sast/architecture.md (run sast-analysis first). Outputs findings to sast/fileupload-results.md. Use when asked to find file upload, unrestricted upload, or extension bypass bugs./sast-hunter-graphqlDetect GraphQL injection vulnerabilities in a codebase using an inline three-phase method: recon (confirm GraphQL usage and find unsafe operation document assembly sites via references/sinks.md), verify (trace user input via references/examples.md), and merge (write results). Requires sast/architecture.md (run sast-analysis first). Outputs findings to sast/graphql-results.md. If no GraphQL technology is found in recon, later phases are skipped. Use when asked to find GraphQL injection, unsafe GraphQL document construction, or operation string injection bugs.npx claudepluginhub tss-blue-ai-lab/tss-plugins --plugin secaudit