/secaudit:secaudit-generate-artifactsfrom secaudit
Generate Artifacts (final Glasswing stage). Assembles a schema-validated report-data.json from architecture.md, every *-results.md, deduped.md, and the run's Hunter list/date/coverage, then publishes trace.md into the run directory via publish-artifacts.mjs after re-verifying the source corpus is still pristine. No report is rendered — report-data.json is the run's structured record and the secaudit:issues dashboard is the human view. Deterministic reshape — the model only assembles facts, it never hand-writes visible buckets or counts. Replaces the old free-form sast-report skill and the Harvest stage.
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: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
The scripts below are 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.
${CLAUDE_PLUGIN_ROOT} — expanded to the plugin's absolute
installation directory before you read this file. If you literally see the unexpanded
placeholder, use the fallback rule below.<PLUGIN_ROOT>/skills/secaudit-generate-artifacts/SKILL.md.Substitute that absolute path for <PLUGIN_ROOT> in every command below and always quote it, as
well as every target/work/run path — any of them may contain spaces.
Owns assembly and validation. The run produces structured findings and a provenance trace;
the human view is the secaudit:issues dashboard, which reads report-data.json.
report-data.json from architecture.md, every *-results.md, deduped.md,
the supplied Hunter list/date/coverage, and the trace decisions. NOT-A-DEFECT findings
come from the per-Hunter *-results.md files (Dedupe drops them); DEFECT and UNSURE
records come from deduped.md (its **Trace:** line supplies each DEFECT's reachability
verdict and evidence).finding.id with findingId(finding) from report-contract.mjs (a
deterministic sha256-based key over class/path/line/title) — never invent a sequential or
bucket-prefixed ID scheme; report-contract.mjs rejects any id that doesn't match.
Display order is not your job either: the dashboard sorts each bucket by descending
severity, then class, title, path, and line via sortFindings() from
report-contract.mjs.runtime-proof (Trace NEEDS-PROOF) and
defect-determination (Challenge UNSURE). Never ask the model to emit visible buckets,
counts, Markdown, or HTML. Bucketing is derived from challengeVerdict/traceVerdict
via classifyFinding().<work>/sast/report-data.json and validate it against report-data.schema.json
(call validateReportData from report-contract.mjs) before moving on. A finding that
fails validation (missing severity/impact/remediation for Confirmed or runtime-proof, a
non-null severity on Refuted/defect-determination, etc.) means the assembly is wrong —
fix the assembly, do not loosen the schema. That file is Generate's deliverable.Owns copying, trace, pruning, and integrity verification. Run publish-artifacts.mjs
as a separate step, after Generate has succeeded:
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"
It re-hashes <target> with the same shared exclusion policy prepare used and refuses
to copy or prune anything if the corpus is no longer byte-identical to the hash captured
at Recon Prepare. On success it writes <runDir>/trace.md (corpus hash, coverage, template version, and the ledger file's
contents verbatim), and prunes everything under <work> except <work>/sast/. It prints
one JSON line {confirmed, refuted, manualReview} — that line is the stage result.
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