Skip to main content
Version: 0.4.0

kq threats:init

Declares the STRIDE framework in your repository: it adds stride and its six requirement ids, spoofing, tampering, repudiation, information-disclosure, denial-of-service and elevation-of-privilege, to frameworks in kanoniq.repository.json, so a policy may serve stride/<id>. It is declared as any framework of your own is, and every other setting and comment stays as written. It writes "stride": { "ids": [...], "checkable": [...] } with every one but repudiation checkable, since nothing in a model says whether a flow is logged, so KQ132 never reports stride/repudiation.

kq threats:init [options] [<path>]

Arguments

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

Options

OptionDoes
--checkWrite nothing; exit 1 if stride would be added.

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

From then on the declaration is yours to edit. Where the file already declares stride, in any form, it writes nothing and says so; --check writes nothing either, and exits 1 where stride would be added. It needs no license, and it fails with exit 1 outside a repository. kq threats:init comes from the package @extenza-works/kanoniq-export-threats; see Installing.

$ kq threats:init models/my-model
added stride to the frameworks in models/my-model/kanoniq.repository.json, with its 6 requirements

© 2026 Extenza Works. All rights reserved.