ArchSutra AI GitHub

ArchSutra AI / Start here

Reading and triaging a report

How to read an ArchSutra report, decide what to fix first, accept risk on purpose, and tell us when a finding is wrong.

Version 0.1.5 · Source: docs/guides/reading-a-report.md

A report is only useful if you can decide what to do with it in a few minutes. This page gives you a reading order, a triage flowchart you can follow without thinking, and the rules for accepting a finding on purpose.

The reading order (5 minutes)#

flowchart LR
  a["1. Summary<br/>how many, how bad"] --> b["2. Scorecard<br/>where is the weakness,<br/>what was not assessed"]
  b --> c["3. Critical and high<br/>open each one"]
  c --> d["4. Blind spots<br/>what the scan cannot see"]
  d --> e["5. Decide: fix, ticket,<br/>accept or report as wrong"]
Diagram (Mermaid). If it does not render, the source is shown above.
  1. Summary. Counts by severity, files scanned, and whether the scan was cut off (TRUNCATED).
  2. Scorecard. Five categories get a rating from the rules we have; five (reliability, performance, scalability, data integrity, cost) are always not assessed from a static scan.
  3. Critical and high findings. Open each in the HTML report (they start expanded).
  4. Scope and blind spots. The honest list of what this report cannot tell you.

Severity, confidence and actionability are three different things#

WordQuestion it answersExample
SeverityIf this is real, how much does it matter?An exposed key is critical; a missing README is low
ConfidenceHow sure is the rule that it is real?A committed private key is high; a "possible credential" is medium; an inferred AI-risk co-location is low
ActionableWould the owners actually change something?eval of a developer-typed value in a migration tool: real, but by design
Why it matters. On 52 real repositories, most reported findings were genuine instances of the rule, but about half were not worth acting on. That is not a bug in your report: it is the difference between "this code does X" and "X is a problem here". Triage is where a human adds value (evidence).

Triage flowchart#

Follow it for every high or critical finding.

flowchart TD
  f(["A finding"]) --> o{"Open the file and line.<br/>Does the code really<br/>do what it says?"}
  o -- "No: comment, test data,<br/>vendored or wrong claim" --> fp["Report it as a false positive<br/>(helps everyone) and move on"]
  o -- Yes --> r{"Can attacker-influenced input<br/>or a real failure reach it?"}
  r -- Yes --> now["Fix now.<br/>Use the Fix and Verify steps"]
  r -- "No, constant or internal" --> a{"Is it cheap to fix?"}
  a -- Yes --> t["Fix in the next change<br/>(hardening)"]
  a -- No --> s{"Accept on purpose?"}
  s -- Yes --> sup["Add a suppression with<br/>a reason and an expiry"]
  s -- No --> tk["Create a ticket<br/>with the finding ID"]
Diagram (Mermaid). If it does not render, the source is shown above.

What the common findings usually mean#

RuleUsually meansOften a false alarm when
AS-SEC-001 possible credentialA real secret, or a default password in seed dataThe value is a placeholder such as password, or a public key (search-only keys, Firebase web keys)
AS-SEC-002 private key committedRotate it, even if you think it is a test keyIt is clearly an example key in docs (verify it is unused)
AS-SEC-004 dynamic executionInjection sink: check what reaches itConstant input, or tooling that must hide an import
AS-SEC-005 SQL by interpolationInjection riskThe interpolated value is an internal, already-quoted identifier
AS-ARC-001 cycleModules cannot be understood or split independentlyA cycle among test helpers or via a data file import (we ignore the common cases)
AS-OPS-003 root containerHardening gapA dev container that is never deployed
AS-SUP-001/002/003Builds that are not reproducibleIntentional in a throwaway demo

The full list with limits is the rule catalog.

Accept a risk on purpose (and keep it honest)#

Create .archsutra/suppress.json in the project:

{
  "suppress": [
    {
      "rule": "AS-OPS-003",
      "path": "tools/devcontainer/Dockerfile",
      "reason": "Local dev container, never deployed",
      "expires": "2027-06-30"
    }
  ]
}

Three rules keep suppression from becoming a hiding place:

  • A reason is required. A row without one is ignored.
  • It expires. After expires the finding comes back for review.
  • It is specific. A rule plus a path, not a blanket ignore.
stateDiagram-v2
  [*] --> Reported
  Reported --> Suppressed: reason + path + (optional) expiry
  Suppressed --> Reported: expiry date passes
  Suppressed --> Reported: row removed or reason missing
  Reported --> Fixed: code changed
  Fixed --> [*]
Diagram (Mermaid). If it does not render, the source is shown above.

Tell us when a finding is wrong#

False positives are the most valuable feedback we get. They became the regression tests that raised measured precision from 50% to 69% and then 95%.

  1. Note the rule ID and the file and line.
  2. Say why it is wrong: comment or docstring, vendored code, test data, placeholder, wrong rule claim.
  3. Open a false-positive report.

What a report is not#

Warning. A report from this tool is a review aid. It is not a certification, a compliance attestation or a penetration test, and "no findings" is not "no problems". See the legal notes.

Next#

Edit this page on GitHub