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
| Argument | Is |
|---|---|
[<path>] | A file or folder of the repository. Default: the current directory. |
Options
| Option | Does |
|---|---|
--check | Write nothing; exit 1 if stride would be added. |
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 |
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.