Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Source invariants and patch verification

FAT can query security invariants against source repositories, derive patch guidance, search for nearby variants, and attach runtime confirmation to a derived finding.

Invariant query

fat invariant query \
  --fixture tests/fixtures/query/source/invariant-permission \
  --rule 'Every privileged override method must call enforcePermission()'

--fixture points at a source tree. --rule states the invariant in natural language. Use this to check a property across a codebase rather than grepping for one spelling of it.

fat patch check --help

patch check derives patch guidance from a fix and searches for nearby variants that may need the same treatment. It is the bridge from “this bug was fixed here” to “where else does this pattern live?”

Chain query

fat chain query --help

chain query assembles multi-step propagation paths from evidence already in the project: source, transforms, state, and sink. Use it after binary or cross-binary taint has produced the underlying findings.

Runtime confirmation

fat verify --help

verify attaches runtime confirmation to a derived finding. It records what was checked; it does not turn a static candidate into a universal proof.

Signature relation

fat signature-fit --help

signature-fit tests whether a byte window fits a public-key signature relation with a supplied key. It is separate from FIT metadata inspection: inspect bmc reports stored signature nodes, while signature-fit tests a specific byte/key relationship.