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:
| Field | Meaning |
|---|---|
kind | fix (change something), plan (track it, nothing to change yet), note (about the scan, not the target), pass |
title | Short fix headline used by the HTML report |
why | Why it matters |
steps | How to fix it |
snippets | Copy-pasteable config per platform (nginx, apache, sshd_config, aws, …) |
references | Primary 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
fixitems with severity low or above, ranked by severity, then by how many targets’ grades they raise. - Plan and track:
planitems and informationalfixitems. - Scan notes:
noteitems, 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:
remediationandrunbookreach 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.