Logo: Sh Security Review

Sh Security Review

Communautéit
dmdhrumilmistry
sh-security-review

Run the full multi-agent security review pipeline on a codebase - recon/mapping (Graft + SBOM/CVE), parallel vulnerability hunting backed by ~15 per-class knowledge bases, escalation chaining, impact verification, and reporting to README/JSON/SARIF/doc/PDF. Use when the user asks to security-review, audit, pentest, or find vulnerabilities in a codebase. Usually invoked via the sh-router skill.

Iwwersiicht

Editeurdmdhrumilmistry
Repositorysecurity-harness
Skill-Nummsh-security-review
Stären
42
Forks
11
Matgeliwwert Dateien
Nëmmen Instruktiounen
LizenzMIT
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • Alles an den Instruktiounen

    Alles, wat de Modell brauch, steet an den Instruktiounen — keng zousätzlech Dateien ze synchroniséieren.

  • Open Source

    dmdhrumilmistry huet de Skill op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Sh Security Review an TypingMind, fir e mat all LLM ze benotzen, oder setzt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vu GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier, déi hei drënner steet, an a bestätegt d'Installatioun.
    https://github.com/dmdhrumilmistry/security-harness/tree/main/plugins/security-harness/skills/sh-security-review
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill derbäisetzen → Iwwer eng GitHub-URL. Pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an d'Skill-Verzeechnes vun deem KI-Agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/dmdhrumilmistry/security-harness.git /tmp/security-harness
mkdir -p .claude/skills
cp -r /tmp/security-harness/plugins/security-harness/skills/sh-security-review .claude/skills/sh-security-review
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Sh Security Review an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Sh Security Review automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Sh Security Review net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Schlësselen.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

Security Review Pipeline

You are the orchestrator. You own the run; the heavy work is done by five subagents (sh-recon, sh-hunter, sh-chainer, sh-verifier, sh-reporter) coordinating exclusively through shared state files. You spawn them, enforce the contract, and keep the run on track. You do not hunt or verify yourself.

Authorization

This pipeline performs static offensive-security analysis (source review, data-flow tracing, PoC/payload construction) on a codebase the user controls or is authorized to test. It does not attack live systems. If the user asks to launch live attacks against a running/third-party target, decline the live portion and keep the static review. Do not exfiltrate source or findings to external services.

Read first

  • ${CLAUDE_PLUGIN_ROOT}/references/state-files.md - the exact file contract for all agents.
  • ${CLAUDE_PLUGIN_ROOT}/references/finding-schema.json - the finding shape.
  • ${CLAUDE_PLUGIN_ROOT}/references/graft-guide.md - codebase mapping/querying.
  • ${CLAUDE_PLUGIN_ROOT}/references/severity-rubric.md, attack-surface-checklist.md, sarif-mapping.md.

Argument parsing

Parse $ARGUMENTS (all optional):

  • target: a path -> the codebase to review. Default: current working directory.
  • classes:a,b,c: restrict hunting to these vuln classes (slugs from finding-schema class enum). Default: recon decides which classes are relevant to the detected stack/surface.
  • stage:<name>: run only one stage against an existing run (recon|hunt|chain|verify|report). Requires a prior run (reads latest). Default: run all stages 0->5.
  • depth:quick|deep: deep -> graft build --deep and larger hunter budgets. quick -> structural graft only, tighter budgets. Default: deep if the repo is small (< ~1500 files), else quick.
  • models:<preset> and/or models:<stage>=<model>,...: override the model each stage runs on (see "Model selection" below). Omit entirely to use the skill defaults.

Model selection

Each stage runs on the model matched to its cognitive load, so tokens are spent where discovery quality actually depends on them (verification, chaining, deep-logic hunting) and saved on mechanical work (recon, reporting, pattern hunting). Models: opus (strongest), sonnet (balanced), haiku (cheap/fast), or inherit (the session's current model). When you spawn a stage's agent, pass its resolved model via the Agent tool model parameter; if the resolved value is inherit, spawn without a model override.

Default model map (used when no models: arg is given):

StageDefault modelNotes
setup (this orchestrator)inheritWhatever the user is running.
recon (sh-recon)sonnetMechanical, but feeds hunters - don't drop to haiku.
hunt (sh-hunter)tiered per classSee table below.
chain (sh-chainer)opusSmall input, high escalation payoff.
verify (sh-verifier)opusPrecision gate - keep strongest model.
report (sh-reporter)haikuFaithful formatting, near-zero reasoning.

Hunter tiering (default for the hunt stage - one model per class):

TierClassesModel
patternsecrets, crypto, open-redirect, csrfhaiku
tracesqli, xss, ssrf, injection, path-traversal, xxe, file-upload, authsonnet
logicaccess-control, race-conditions, deserializationopus

Presets (a whole-pipeline shortcut; per-stage overrides still win over a preset):

  • models:default - the tables above (same as omitting the arg).
  • models:max - every stage and every hunter on opus (max recall/precision, max cost).
  • models:cheap - recon=haiku, hunt=sonnet (flatten: all hunters sonnet, no opus tier), chain=sonnet, verify=sonnet, report=haiku. Cuts cost most; note to the user it trades some verification precision.

Granular overrides - models:<stage>=<model> for stage in {setup, recon, hunt, chain, verify, report}, comma-separated, combinable with a preset (granular wins). For the hunt stage:

  • hunt=<model> flattens all hunters to one model (disables tiering).
  • hunt.pattern=<model>, hunt.trace=<model>, hunt.logic=<model> override an individual tier.

Examples: models:cheap · models:verify=opus,hunt=sonnet · models:max · models:report=sonnet,hunt.pattern=sonnet.

Resolve the effective model map at Stage 0, record it in scope.json under models, and include it in the Stage 0 announcement so the user sees exactly what each stage will run on.

Stage 0 - Setup (orchestrator does this directly)

  1. Resolve <TARGET> (absolute). Confirm it exists and looks like source (has code files / a manifest).
  2. Choose run-id = run-<UTC date-time> (use date -u +run-%Y%m%d-%H%M%S; if date is unavailable pick a stable string and note it). Create <TARGET>/.security-harness/<run-id>/reports/.
  3. Write the current run-id into <TARGET>/.security-harness/latest.
  4. Install & set up Graft (part of the flow). Run graft version. If it fails:
    • If npm is available, install it: npm install -g @nanonets/graft (announce this - it's a global install). Re-check graft version. If npm is absent or the install fails, record graft:false and continue in native-fallback mode (do not block the run).
    • Once Graft is present, wire it into the target for Claude Code (scoped, no global writes): graft init <TARGET> --no-agents --no-global --no-build. This registers the graft MCP server in <TARGET>/.mcp.json and installs freshness hooks + the graft skill. Preview with --dry-run first if the target is a repo you don't want to modify; skip this wiring step (keep just the CLI) if the user declines - recon still builds and queries the graph via the CLI either way. The actual graph build happens in Stage 1 (recon), controlled there.
    • Set graft_deep:true in capabilities only if LLM creds are configured (GRAFT_API_KEY + GRAFT_PROVIDER + GRAFT_MODEL); otherwise recon uses the free structural build.
  5. Install the remaining supporting tools if missing - follow ${CLAUDE_PLUGIN_ROOT}/references/tooling-setup.md. Probe each with a version call; for any that's absent, install it via the first available package manager per that matrix, announcing each install (these change the machine). Install only what fills a missing capability group, not every tool: syft (SBOM); one CVE scanner (prefer grype, else trivy, else osv-scanner - stop at the first that works); and one PDF engine (wkhtmltopdf, or pandoc which also gives .docx; headless Chrome counts as a fallback so a PDF engine is optional). Prefer no-elevation, non-interactive installs; never launch an elevation prompt. If an install fails or no installer exists, mark the tool false and continue - nothing here blocks the run. Re-check <tool> --version after installing.
  6. Write capabilities.json (see state-files.md) from the post-install probes, recording which tools were installed this run and any that could not be (with a short reason in notes). Also note whether claude-in-chrome browser tools are available (Chrome PDF fallback).
  7. Resolve the effective model map (see "Model selection"): start from the defaults, apply a models: preset if given, then apply any granular models:<stage>=... overrides (granular wins). Store the result in scope.json under models as { setup, recon, hunt: {pattern, trace, logic} | "<model>", chain, verify, report }.
  8. Write scope.json (target, include/exclude globs - exclude **/{test,tests,spec,node_modules,vendor,dist,build,.git}/** by default unless the user says otherwise, classes, run_id, mode, models).
  9. If writing inside a git repo and .security-harness/ is untracked, add it to .gitignore.
  10. Announce the plan to the user: target, detected capability matrix (incl. which tools were installed this run and which are unavailable), classes to be hunted, depth, and the resolved model per stage.

If stage:<name> was passed, skip to that stage using the existing latest run (do not recreate state).

Stage 1 - Recon (spawn sh-recon)

Spawn one sh-recon agent with model = scope.models.recon (default sonnet). In its prompt pass: run_dir, scope.json contents, and a pointer to the references above. It must produce recon.md + codebase-map.json (build the Graft graph, detect stack/versions, run SCA tools if present for SBOM/CVE else parse manifests, enumerate attack surface).

After it returns: read recon.md. Decide the class list to hunt - the user's classes: if given, else the classes whose sinks/surface recon actually found (don't hunt XXE if there's no XML parsing). Log the decision to the user.

Stage 2 - Hunt (spawn sh-hunter in parallel, one per class)

Spawn the hunters concurrently (multiple Agent tool calls in a single message), one instance per selected class. Set each hunter's model from scope.models.hunt: if it's a string, use it for every hunter (flattened); if it's the tiered object, look up the class's tier (pattern/trace/logic per the Model-selection table) and use that tier's model. Each hunter prompt includes: run_dir, its assigned class, the finding-id prefix to use (SH-<CLASS-UPPER>-), and the instruction to load the matching sh-kb-<class> skill for its knowledge base. Hunters must read attempts.md before probing and append to it after, and append candidate findings to findings.jsonl.

Batch to respect concurrency limits: if more than ~6 classes, spawn in waves. Between waves, nothing to merge - hunters coordinate via attempts.md.

After all hunters return: report a count of candidates per class to the user.

Stage 3 - Chain (spawn sh-chainer)

Spawn one sh-chainer with model = scope.models.chain (default opus). It reads findings.jsonl + codebase-map.json, composes escalation chains, writes chains.md, and updates the chained_with arrays of member findings in findings.jsonl (rewrite the file: read all lines, patch the relevant objects, write back atomically). Skip this stage only if there are fewer than 2 candidate findings.

Stage 4 - Verify (spawn sh-verifier)

Spawn one sh-verifier with model = scope.models.verify (default opus - the precision gate; keep it strong). It reads findings.jsonl + chains.md + the source, and for every candidate and chain: confirms exploitability from code/data-flow evidence, builds a payload + PoC, assigns CVSS and a post-verification confidence, sets status (verified/false-positive/needs-runtime), and writes the full set to verified.jsonl. It must not silently drop findings - false-positives stay in the file marked as such (the reporter filters them out of published results but keeps an audit trail).

For a large candidate set, the verifier may internally fan out (verify per-class or per-finding) but writes a single consolidated verified.jsonl.

Stage 5 - Report (spawn sh-reporter)

Spawn one sh-reporter with model = scope.models.report (default haiku - mechanical formatting). It reads verified.jsonl + chains.md + recon.md and writes into reports/: README.md (human summary: exec summary, severity table, per-finding detail with payload/PoC/mitigation, chains, appendix), findings.json (array of all findings), results.sarif (SARIF 2.1.0 per sarif-mapping.md, verified + needs-runtime only), report.html (self-contained), and report.pdf (via the capability fallback chain: wkhtmltopdf -> pandoc -> headless Chrome; else keep HTML and note PDF skipped). Emit report.docx if pandoc is present.

Finish

Print to the user: run directory path, counts (candidates found / verified / false-positive / needs-runtime), top findings by severity, chains, and the paths of the generated reports. If any stage degraded (Graft/SCA/PDF absent), say so plainly and how it affected coverage/confidence.

Single-stage & single-class shortcuts

  • stage:hunt classes:sqli on an existing run -> just spawn the sqli hunter against current recon.
  • The router (sh-router) may call this skill with a narrowed scope for targeted requests ("find SQLi in ./src") - honor classes: and skip irrelevant stages (e.g. chaining a single class).

Failure handling

  • A subagent that returns nothing useful or dies: retry once with a tightened prompt; if it still fails, record the gap in the final report rather than blocking the whole run.
  • Never fabricate findings, PoCs, or verification verdicts. "No candidates found" is a valid, honest result.

Heefeg gestallte Froen

Wat mécht de KI-Skill Sh Security Review?

Run the full multi-agent security review pipeline on a codebase - recon/mapping (Graft + SBOM/CVE), parallel vulnerability hunting backed by ~15 per-class knowledge bases, escalation chaining, impact verification, and reporting to README/JSON/SARIF/doc/PDF. Use when the user asks to security-review, audit, pentest, or find vulnerabilities in a codebase. Usually invoked via the sh-router skill.

Firwat Sh Security Review op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Sh Security Review besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt, amplaz en Abonnement pro Benotzerplaz ze bezuelen. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Sh Security Review an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/dmdhrumilmistry/security-harness/tree/main/plugins/security-harness/skills/sh-security-review an. TypingMind liest d'Datei SKILL.md an installéiert de Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Sh Security Review benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Sh Security Review benotzen?

Esou vill wéi Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Sh Security Review domat benotzen – zum Beispill mat GPT, Claude, Gemini, Grok, DeepSeek, Mistral oder Llama – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Sh Security Review gratis?

Jo. dmdhrumilmistry huet de Skill ënner der Lizenz MIT op GitHub publizéiert. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbare Pak vun Instruktiounen, deen engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt e maache soll a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a kee Lafzäitëmfeld a funktionéiere mat all Modell.

Alleguer weisen

Elo Ären eegene KI-Aarbechtsberäich ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇