Menu How it works

Start

How it works

The review pipeline stage by stage, what the plugin contains, and how to add a vulnerability class.

  1. Setup - probe available tools, define scope, create the run directory.
  2. Recon (sh-recon) - build the Graft graph; detect stack/versions; SBOM + CVEs; enumerate entry points, trust boundaries, and dangerous sinks.
  3. Threat model (sh-threat-modeler) - data flows, trust boundaries and their controls, STRIDE threats ranked by risk, and a hunt plan with a focus brief per class (skipped with threats:off).
  4. Hunt (sh-hunter ×N, parallel) - one hunter per class with an open threat loads its sh-kb-* knowledge base, traces attacker input from source to sink, and records candidates. A shared attempts ledger stops agents from repeating each other's probes. With indra available, the orchestrator first recalls each class's past findings, guards and false positives from long-term memory and hands them to that hunter.
  5. Chain (sh-chainer) - compose findings into higher-severity attack paths.
  6. Verify (sh-verifier) - refute first, then confirm exploitability from evidence, build PoCs, assign CVSS, and cut false positives.
  7. Report (sh-reporter) - produce the deliverables.
  8. Remember (optional, sh-memory) - record verified findings, false positives and a few learnings into the long-term memory graph for the next run.

Subagents share nothing but files; the contract is in plugins/indra/references/state-files.md.

What's inside

indra/                           # this repository: a plugin marketplace + the indra CLI
├── plugins/indra/               # the indra plugin
│   ├── skills/
│   │   ├── indra                # /indra - the entry point, routes any appsec request
│   │   ├── sh-autopilot         # one request in: picks a flow and runs the other skills in order
│   │   ├── sh-security-review   # the pipeline orchestrator (stages 0-6)
│   │   ├── sh-pr-review         # review one pull request, post inline comments
│   │   ├── sh-threat-model      # threat model: data flows, trust boundaries, STRIDE threats
│   │   ├── sh-detection-rules   # blue team: Sigma rules as code, tested and backtested
│   │   ├── sh-log-triage        # blue team: alert triage and threat hunting, read-only
│   │   ├── sh-incident-response # blue team: scope, timeline, containment plan, playbooks
│   │   ├── sh-detection-coverage # blue team: ATT&CK coverage, detection backlog, Navigator layer
│   │   ├── sh-threat-hunt       # blue team: hypothesis-driven hunts in logs, with a hunt log
│   │   ├── sh-purple-team       # blue team: validate detections; tests only inside an engagement
│   │   ├── sh-hardening         # blue team: an ordered, verifiable fix plan
│   │   ├── sh-attack-surface    # what an attacker can reach; which CVEs and findings actually impact
│   │   ├── sh-fix               # verified findings to root-cause fixes with regression tests, on a branch
│   │   ├── sh-retest            # is a finding still there: reproducible, fixed or cannot confirm
│   │   ├── sh-memory            # long-term graph memory across runs
│   │   ├── sh-publish           # findings to Jira, Confluence, GitHub issues, Notion
│   │   └── sh-kb-*  (19)        # per-vulnerability-class knowledge bases
│   ├── agents/
│   │   ├── sh-recon             # map: code graph, stack, SBOM/CVE, attack surface
│   │   ├── sh-threat-modeler    # model: trust boundaries, controls, ranked threats, hunt plan
│   │   ├── sh-hunter            # find: source-to-sink hunting, one per class, in parallel
│   │   ├── sh-chainer           # escalate: combine findings into attack chains
│   │   ├── sh-verifier          # confirm: refute first, then prove impact with a PoC
│   │   └── sh-reporter          # deliver: README/JSON/SARIF/HTML/PDF/doc
│   └── references/              # shared contracts (finding schema, SARIF map, rubrics)
├── tools/indra/                 # the indra CLI (Rust): graph memory + agent web console
├── site/                        # the project website (GitHub Pages)
└── assets/                      # logo, banner and screenshots

Vulnerability classes covered (the sh-kb-* skills)

access-control (IDOR/BOLA/priv-esc) · sqli · xss · ssrf · injection (cmd/code/SSTI/LDAP) · auth (session/JWT) · deserialization · path-traversal (LFI/RFI) · secrets · csrf · xxe · open-redirect · crypto · race-conditions · file-upload · prompt-injection (LLM apps, agents, MCP) · business-logic · ci-cd (pipelines, supply chain) · misconfig (CORS, headers, IaC). Dependency CVEs and the SBOM are handled by the recon stage.

Extending

Add a new vulnerability class by creating skills/sh-kb-<class>/SKILL.md following the shared template (When to hunt · Sources & sinks · Detection recipe · Payloads/PoC · False-positive filters · CWE/OWASP · Chaining hints · Mitigation), then add its slug to the class enum in references/finding-schema.json and the routing table in skills/indra/SKILL.md.