Remediation catalog

Every finding carries a stable rule id (rule in JSON, SARIF and CSV), for example kex.classical-only or life.expired. Rule ids don’t change when wording does, so you can key tickets, suppressions and runbooks on them.

The bundled catalog (src/shorsighted/data/remediations.yaml) describes each rule:

FieldMeaning
kindfix (change something), plan (track it, nothing to change yet), note (about the scan, not the target), pass
titleShort fix headline used by the HTML report
whyWhy it matters
stepsHow to fix it
snippetsCopy-pasteable config per platform (nginx, apache, sshd_config, aws, …)
referencesPrimary sources (vendor docs, RFCs, standards bodies)

The finding’s own remediation text is always specific to what was seen (detected software, the exact AWS policy to switch to). The catalog adds detail around it.

How the HTML report uses it

  • Fixes, highest impact first: open fix items with severity low or above, ranked by severity, then by how many targets’ grades they raise.
  • Plan and track: plan items and informational fix items.
  • Scan notes: note items, such as TLS interception by a corporate proxy or DNS filter, or IPv6 addresses the scanner couldn’t reach. They describe the scan, not the targets.

Each row has a How to fix dropdown (why, steps, snippets, references) and an affected targets dropdown that lists every target with its grade and links to its findings.

Overriding

Pass --remediations FILE (or set defaults.remediations in shorsighted.yaml). Overrides are merged into the bundled catalog:

remediations:
  kex.classical-only:
    remediation: Follow the PQ TLS rollout runbook.  # replaces the fix text everywhere
    runbook: https://wiki.example.com/runbooks/pq-tls
    snippets: {f5: "tmsh modify ltm profile client-ssl ..."}  # added
    references: [https://wiki.example.com/pq-faq]           # appended
  ssh.classical-only:
    replace: true            # replace steps/snippets/references instead of extending
    steps: [Rebuild from the golden image.]
  chain.quantum-vulnerable-auth:
    kind: note               # re-classify
  • remediation and runbook reach every output format (JSON, SARIF, CSV, Markdown, table, HTML), so tickets and CI annotations carry your text.
  • Unknown rule ids, unknown fields and non-http(s) URLs are errors (exit 2), so typos don’t silently do nothing.
  • List rule ids with shorsighted explain --rules.

A full example is in examples/remediations.yaml.