vulkro rules
Lists the built-in rule catalogue and installs signed community rule packs.
vulkro rules catalog --detectors --format json # every rule id
vulkro rules add acme/api-security
vulkro rules installed
| Sub-command | Description |
|---|---|
catalog | The 22 rule categories (ID, OWASP category, CWE, description). --detectors lists every rule id instead. --format table|json. |
list | Packs available in the registry. --refresh fetches the index first. |
installed | Packs installed under ~/.vulkro/rule-packs/. |
add <author/name[@version]> | Download, verify and install a pack (default latest). |
remove <pack> | Remove every installed version. |
verify <pack> | Re-check a pack's signature. |
update | Refresh the registry index. |
export <out-dir> | Write the rule documentation as Markdown, one file per rule. |
Installed packs live at ~/.vulkro/rule-packs/<author>/<name>/<version>/, and their rules/*.yaml files are used by every later scan. Every pack must carry a valid ed25519 signature from a trusted key; unsigned packs are refused. With VULKRO_OFFLINE=1, add, list --refresh and update refuse the network; installed packs keep working.
To write your own rules, see Custom rules.
Exit codes
0 success. 2 error.
Command reference
Generated from vulkro rules --help (vulkro 0.41.0). Run scripts/gen-docs.sh in the product repository to refresh it; do not edit this section by hand.
Find, install and manage community rule packs.
vulkro rules [OPTIONS] <COMMAND>
| Command | What it does |
|---|---|
catalog | Print the built-in rule CATEGORY catalogue (stable category IDs, OWASP categories, CWE, one-line description) for tooling to consume. --format json emits a stable machine-readable object; table prints a human summary. These 22 categories are what SARIF emits at the head of tool.driver.rules, and every per-detector SARIF rule points back at one of them through relationships[].target; SARIF result.ruleId is the finer per-detector slug and is not listed here unless --detectors is set. |
list | Query the registry index and list available packs. Prefers the cached index - pass --refresh (or run rules update first) to force a network fetch. |
installed | List rule packs currently installed under ~/.vulkro/rule-packs/ |
add | Fetch a pack from the registry, verify its signature, and install it. <pack-id> is <author>/<name> (e.g. acme/api-security); append @<version> to pin a specific version. Default is latest |
remove | Remove every installed version of a pack. |
verify | Re-verify the on-disk signature of a pack against the trust roots. |
update | Refresh the registry index from the upstream URL. |
export | Export the canonical rule documentation as Docusaurus-compatible Markdown, one file per rule, under <out-dir> |
import-semgrep | Import a rule file (YAML) written for another scanner and emit a vulkro-format rules YAML the scanner can pick up, so you can reuse existing rule libraries without rewriting metadata. Patterns translate as best-effort regex (metavariables → .+?, ellipsis → .*); compound shapes (pattern-either, pattern-not, patterns:) are skipped with a stderr warning per rule. |
Options
| Flag | Description |
|---|---|
--offline | Hard-disable every outbound network call for this run (sets VULKRO_OFFLINE=1). Blocks the CVE feed, the license heartbeat, the update check, webhooks, and any cloud AI endpoint; a loopback model (http://127.0.0.1, http://localhost) is still allowed. Equivalent to exporting VULKRO_OFFLINE=1, and the flag wins when both are set. |
-q, --quiet | Print only warnings and errors on stderr: no progress, tips or next-step hints. Results on stdout and exit codes are unchanged. |
--no-color | Turn off coloured output. Colour is also off when NO_COLOR is set to a non-empty value or TERM=dumb. |
-h, --help | Print help (see a summary with '-h') |
vulkro rules catalog
Print the built-in rule CATEGORY catalogue (stable category IDs, OWASP categories, CWE, one-line description) for tooling to consume. --format json emits a stable machine-readable object; table prints a human summary. These 22 categories are what SARIF emits at the head of tool.driver.rules, and every per-detector SARIF rule points back at one of them through relationships[].target; SARIF result.ruleId is the finer per-detector slug and is not listed here unless --detectors is set.
vulkro rules catalog [OPTIONS]
Options
| Flag | Description |
|---|---|
-f, --format <FORMAT> | Output format: table (default) or json Default: table. Possible values: table, json. |
--offline | Hard-disable every outbound network call for this run (sets VULKRO_OFFLINE=1). Blocks the CVE feed, the license heartbeat, the update check, webhooks, and any cloud AI endpoint; a loopback model (http://127.0.0.1, http://localhost) is still allowed. Equivalent to exporting VULKRO_OFFLINE=1, and the flag wins when both are set. |
--detectors | Print the per-rule catalogue (every rule id) instead of the category catalogue. |
-q, --quiet | Print only warnings and errors on stderr: no progress, tips or next-step hints. Results on stdout and exit codes are unchanged. |
--no-color | Turn off coloured output. Colour is also off when NO_COLOR is set to a non-empty value or TERM=dumb. |
-h, --help | Print help (see a summary with '-h') |
vulkro rules list
Query the registry index and list available packs. Prefers the cached index - pass --refresh (or run rules update first) to force a network fetch
vulkro rules list [OPTIONS]
Options
| Flag | Description |
|---|---|
--offline | Hard-disable every outbound network call for this run (sets VULKRO_OFFLINE=1). Blocks the CVE feed, the license heartbeat, the update check, webhooks, and any cloud AI endpoint; a loopback model (http://127.0.0.1, http://localhost) is still allowed. Equivalent to exporting VULKRO_OFFLINE=1, and the flag wins when both are set. |
--refresh | Force a network refresh of the registry index before listing. |
-q, --quiet | Print only warnings and errors on stderr: no progress, tips or next-step hints. Results on stdout and exit codes are unchanged. |
--no-color | Turn off coloured output. Colour is also off when NO_COLOR is set to a non-empty value or TERM=dumb. |
-h, --help | Print help. |
vulkro rules installed
List rule packs currently installed under ~/.vulkro/rule-packs/
vulkro rules installed [OPTIONS]
Options
| Flag | Description |
|---|---|
--offline | Hard-disable every outbound network call for this run (sets VULKRO_OFFLINE=1). Blocks the CVE feed, the license heartbeat, the update check, webhooks, and any cloud AI endpoint; a loopback model (http://127.0.0.1, http://localhost) is still allowed. Equivalent to exporting VULKRO_OFFLINE=1, and the flag wins when both are set. |
-q, --quiet | Print only warnings and errors on stderr: no progress, tips or next-step hints. Results on stdout and exit codes are unchanged. |
--no-color | Turn off coloured output. Colour is also off when NO_COLOR is set to a non-empty value or TERM=dumb. |
-h, --help | Print help. |
vulkro rules add
Fetch a pack from the registry, verify its signature, and install it. <pack-id> is <author>/<name> (e.g. acme/api-security); append @<version> to pin a specific version. Default is latest
vulkro rules add [OPTIONS] <PACK_ID[@VERSION]>
Arguments
| Argument | Description |
|---|---|
<PACK_ID[@VERSION]> | Pack id, optionally with @<version> |
Options
| Flag | Description |
|---|---|
--offline | Hard-disable every outbound network call for this run (sets VULKRO_OFFLINE=1). Blocks the CVE feed, the license heartbeat, the update check, webhooks, and any cloud AI endpoint; a loopback model (http://127.0.0.1, http://localhost) is still allowed. Equivalent to exporting VULKRO_OFFLINE=1, and the flag wins when both are set. |
-q, --quiet | Print only warnings and errors on stderr: no progress, tips or next-step hints. Results on stdout and exit codes are unchanged. |
--no-color | Turn off coloured output. Colour is also off when NO_COLOR is set to a non-empty value or TERM=dumb. |
-h, --help | Print help. |
vulkro rules remove
Remove every installed version of a pack
vulkro rules remove [OPTIONS] <PACK_ID>
Arguments
| Argument | Description |
|---|---|
<PACK_ID> | Pack id (<author>/<name>) - versions are removed together. |
Options
| Flag | Description |
|---|---|
--offline | Hard-disable every outbound network call for this run (sets VULKRO_OFFLINE=1). Blocks the CVE feed, the license heartbeat, the update check, webhooks, and any cloud AI endpoint; a loopback model (http://127.0.0.1, http://localhost) is still allowed. Equivalent to exporting VULKRO_OFFLINE=1, and the flag wins when both are set. |
-q, --quiet | Print only warnings and errors on stderr: no progress, tips or next-step hints. Results on stdout and exit codes are unchanged. |
--no-color | Turn off coloured output. Colour is also off when NO_COLOR is set to a non-empty value or TERM=dumb. |
-h, --help | Print help. |
vulkro rules verify
Re-verify the on-disk signature of a pack against the trust roots
vulkro rules verify [OPTIONS] <PACK_ID>
Arguments
| Argument | Description |
|---|---|
<PACK_ID> | Pack id (<author>/<name>). Verifies every installed version. |
Options
| Flag | Description |
|---|---|
--offline | Hard-disable every outbound network call for this run (sets VULKRO_OFFLINE=1). Blocks the CVE feed, the license heartbeat, the update check, webhooks, and any cloud AI endpoint; a loopback model (http://127.0.0.1, http://localhost) is still allowed. Equivalent to exporting VULKRO_OFFLINE=1, and the flag wins when both are set. |
-q, --quiet | Print only warnings and errors on stderr: no progress, tips or next-step hints. Results on stdout and exit codes are unchanged. |
--no-color | Turn off coloured output. Colour is also off when NO_COLOR is set to a non-empty value or TERM=dumb. |
-h, --help | Print help. |
vulkro rules update
Refresh the registry index from the upstream URL
vulkro rules update [OPTIONS]
Options
| Flag | Description |
|---|---|
--offline | Hard-disable every outbound network call for this run (sets VULKRO_OFFLINE=1). Blocks the CVE feed, the license heartbeat, the update check, webhooks, and any cloud AI endpoint; a loopback model (http://127.0.0.1, http://localhost) is still allowed. Equivalent to exporting VULKRO_OFFLINE=1, and the flag wins when both are set. |
-q, --quiet | Print only warnings and errors on stderr: no progress, tips or next-step hints. Results on stdout and exit codes are unchanged. |
--no-color | Turn off coloured output. Colour is also off when NO_COLOR is set to a non-empty value or TERM=dumb. |
-h, --help | Print help. |
vulkro rules export
Export the canonical rule documentation as Docusaurus-compatible Markdown, one file per rule, under <out-dir>.
vulkro rules export [OPTIONS] <OUT_DIR>
Arguments
| Argument | Description |
|---|---|
<OUT_DIR> | Output directory. Must already exist unless --force is set. Existing files matching catalog slugs are overwritten. |
Options
| Flag | Description |
|---|---|
--force | Create out_dir (and parents) if it does not exist. |
--offline | Hard-disable every outbound network call for this run (sets VULKRO_OFFLINE=1). Blocks the CVE feed, the license heartbeat, the update check, webhooks, and any cloud AI endpoint; a loopback model (http://127.0.0.1, http://localhost) is still allowed. Equivalent to exporting VULKRO_OFFLINE=1, and the flag wins when both are set. |
-q, --quiet | Print only warnings and errors on stderr: no progress, tips or next-step hints. Results on stdout and exit codes are unchanged. |
--no-color | Turn off coloured output. Colour is also off when NO_COLOR is set to a non-empty value or TERM=dumb. |
-h, --help | Print help (see a summary with '-h') |
vulkro rules import-semgrep
Import a rule file (YAML) written for another scanner and emit a vulkro-format rules YAML the scanner can pick up, so you can reuse existing rule libraries without rewriting metadata. Patterns translate as best-effort regex (metavariables → .+?, ellipsis → .*); compound shapes (pattern-either, pattern-not, patterns:) are skipped with a stderr warning per rule.
vulkro rules import-semgrep [OPTIONS] <SEMGREP_YAML>
Arguments
| Argument | Description |
|---|---|
<SEMGREP_YAML> | Path to the rule file (YAML) in the other scanner's format. |
Options
| Flag | Description |
|---|---|
--offline | Hard-disable every outbound network call for this run (sets VULKRO_OFFLINE=1). Blocks the CVE feed, the license heartbeat, the update check, webhooks, and any cloud AI endpoint; a loopback model (http://127.0.0.1, http://localhost) is still allowed. Equivalent to exporting VULKRO_OFFLINE=1, and the flag wins when both are set. |
--output <OUT_FILE> | Output path for the vulkro YAML. Defaults to vulkro-rules.yaml next to the input file. |
-q, --quiet | Print only warnings and errors on stderr: no progress, tips or next-step hints. Results on stdout and exit codes are unchanged. |
--no-color | Turn off coloured output. Colour is also off when NO_COLOR is set to a non-empty value or TERM=dumb. |
-h, --help | Print help (see a summary with '-h') |
Full vulkro rules --help
Find, install and manage community rule packs.
Discover, install, and manage community rule packs. Packs live at `~/.vulkro/rule-packs/<author>/<name>/<version>/` and their `rules/*.yaml` files participate in every subsequent scan.
Exit codes: 0 = success; 2 = error (bad arguments, an unknown pack, a malformed rule file, or a registry fetch that failed). Listing and installing never report findings, so `rules` never exits 1 except for the licence refusal (`vulkro: license_required`).
Usage: vulkro rules [OPTIONS] <COMMAND>
Commands:
catalog Print the built-in rule CATEGORY catalogue (stable category IDs, OWASP categories, CWE, one-line description) for tooling to consume. `--format json` emits a stable machine-readable object; `table` prints a human summary. These 22 categories are what SARIF emits at the head of `tool.driver.rules`, and every per-detector SARIF rule points back at one of them through `relationships[].target`; SARIF `result.ruleId` is the finer per-detector slug and is not listed here unless `--detectors` is set
list Query the registry index and list available packs. Prefers the cached index - pass `--refresh` (or run `rules update` first) to force a network fetch
installed List rule packs currently installed under `~/.vulkro/rule-packs/`
add Fetch a pack from the registry, verify its signature, and install it. `<pack-id>` is `<author>/<name>` (e.g. `acme/api-security`); append `@<version>` to pin a specific version. Default is `latest`
remove Remove every installed version of a pack
verify Re-verify the on-disk signature of a pack against the trust roots
update Refresh the registry index from the upstream URL
export Export the canonical rule documentation as Docusaurus-compatible Markdown, one file per rule, under `<out-dir>`
import-semgrep Import a rule file (YAML) written for another scanner and emit a vulkro-format rules YAML the scanner can pick up, so you can reuse existing rule libraries without rewriting metadata. Patterns translate as best-effort regex (metavariables → `.+?`, ellipsis → `.*`); compound shapes (pattern-either, pattern-not, patterns:) are skipped with a stderr warning per rule
help Print this message or the help of the given subcommand(s)
Options:
--offline
Hard-disable every outbound network call for this run (sets VULKRO_OFFLINE=1). Blocks the CVE feed, the license heartbeat, the update check, webhooks, and any cloud AI endpoint; a loopback model (http://127.0.0.1, http://localhost) is still allowed. Equivalent to exporting VULKRO_OFFLINE=1, and the flag wins when both are set
-q, --quiet
Print only warnings and errors on stderr: no progress, tips or next-step hints. Results on stdout and exit codes are unchanged
--no-color
Turn off coloured output. Colour is also off when NO_COLOR is set to a non-empty value or TERM=dumb
-h, --help
Print help (see a summary with '-h')