Skip to main content
Version: 0.4.1

Paid

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

ArgumentIs
[<path>]A file or folder of the repository. Default: the current directory.

Options

OptionDoes
--format <format>The list's format: html, csv, sarif.
--out <file>Where to write the list. Default: standard output.

Environment

VariableDoes
KANONIQ_TELEMETRYoff, 0 or false stops kq reporting the run; so does DO_NOT_TRACK=1.

Exit codes

CodeMeans
0Done
1Failed: the model has an error, a check found a change, or a file could not be read or written
2Usage 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
3A 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.

  • html is one self-contained page, a table per crossing.
  • csv has a header row, then one row per crossing, category and threat.
  • sarif has one result per threat, carrying its requirement, stride/<category>, in its properties; 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.