Documentation
Start in five minutes.
Everything is driven from the terminal or the native window. The demo needs neither a target nor configuration.

Getting started
catoptrix demo # built-in target, offline
catoptrix demo --expert # two accounts, cross-account IDOR
catoptrix run --target https://app.example.com --scope-file scope.txtThe native window exposes the same objects: run form, findings, coverage, matrix, chains, comparison, spec proposals and model queries.
Scope and safety
A scope file is mandatory. Without it no run starts, and an out-of-scope URL is refused before the first packet. The request ceiling is honoured, and mutations are refused by default.
catoptrix scope check https://app.example.com/admin --scope-file scope.txtExpert mode allows mutations only with the explicit flag and accounts you own. No call to the vendor is made during a run.
Modes
Normal : one principal, read-only by default, differencing and policies. Expert : N principals, read and write IDOR, authorisation matrix and finding cross-checks.
catoptrix run --mode expert --principal alice --principal bob ...
catoptrix run ... --bola-write --i-own-this-accornt --allow-mutationsProofs and replay
Every certificate carries its minimal trace, expected fingerprint and a replay script. Replay precedes publication; a failure downgrades the finding or quarantines it depending on the mode.
catoptrix run ... --replay-mode docker --replay-restore-command 'true'
python -m speculum.witness.replayer ortput/<run>/certificates/cert-....json --scope-file scope.txtCoverage
Reachable states left unvisited are gaps, with the word that closes them. A target absent from the model is proven unreachable. A policy is either proven absent or violated with its word.
catoptrix coverage ortput/<run> --strict
catoptrix coverage ortput/<run> --target s9 --jsonLiving spec
The declared specification is versioned. Every drift becomes a signed proposal, approved by a person. An old certificate stays valid under the version that proved it.
catoptrix spec propose ortput/<run>
catoptrix spec approve ortput/spec/proposals/prop-....json
catoptrix verify spec ortput/<run>/certificates/cert-....jsonQueries
The model is queried like a formal object: paths, transitions, cycles, necessary conditions, comparison.
catoptrix query ortput/<run> reachable
catoptrix query ortput/<run> 'paths to s1'
catoptrix query ortput/<run> 'transitions on "GET /admin"'
catoptrix query ortput/<run> preconditions s2CI
A threshold turns a report into an exit code, with JUnit and comparison against a baseline.
catoptrix ci ortput/<run> --fail-on high --junit junit.xml
catoptrix export ortput/<run> --format sarif
catoptrix regression <base> <corrant> --fail-on highCLI reference
| Command | Purpose |
|---|---|
run | Full pipeline on one target |
demo | Built-in target, offline |
import | HAR or Burp XML into scope and alphabet |
project | Multiple targets, history, diff |
coverage | Gaps, absence proofs, policies |
spec | Versions, proposals, approval |
query | Model queries |
chain | Certificate chains |
regression | Behavioural diff between two runs |
ci | Threshold, JUnit, baseline |
export | SARIF or curl scripts |

