kq threats:list
Writes the threat list of the model a path belongs to: for every call, leg or sync that crosses a trust boundary, per stage pair, and for each of the six STRIDE categories, the threats found, each with its catalog line, its stage pair and its state: open, or exempted with the exemption's reason and its until, its review date. A category whose lines checked the crossing and found nothing reads passes, naming them; one no line checks reads not checked, repudiation always, and is never listed as passing. A threat is filed under the categories its line serves as the package ships it, even where your stride declaration dropped one of them.
kq threats:list --format <format> [options] [<path>]
Arguments
| Argument | Is |
|---|---|
[<path>] | A file or folder of the repository. Default: the current directory. |
Options
| Option | Does |
|---|---|
--format <format> | The list's format: html, csv, sarif. |
--out <file> | Where to write the list. Default: standard output. |
Environment
| Variable | Does |
|---|---|
KANONIQ_TELEMETRY | off, 0 or false stops kq reporting the run; so does DO_NOT_TRACK=1. |
Exit codes
| Code | Means |
|---|---|
0 | Done |
1 | Failed: the model has an error, a check found a change, or a file could not be read or written |
2 | Usage error: an unknown command or option, a missing or extra argument, a path that does not exist, or an output folder kq will not clear |
3 | A paid feature that no license found grants |
The repository must declare stride, which kq threats:init writes; where it doesn't, the list writes nothing and exits 1. It needs the Threat modeling package, asked before anything is read: without it, the run is refused with exit 3. Every catalog line is judged as kq audit judges it, whatever policy-sets says.
htmlis one self-contained page, a table per crossing.csvhas a header row, then one row per crossing, category and threat.sarifhas one result per threat, carrying its requirement,stride/<category>, in itsproperties; an exempted threat is suppressed with its reason, and a category not checked is no result.
The list goes to --out, or else to standard output, with the build's own findings on standard error so the list stays whole. The run exits 0 whatever the threats: the list is a report, and kq validate is the check that fails on a breach. kq threats:list comes from the package @extenza-works/kanoniq-export-threats; see Installing.
kq threats:list models/my-model --format html --out threats.html
© 2026 Extenza Works. All rights reserved.