Skip to main content

vulkro prove

Scans the project and writes a runnable test for each eligible finding, so you can confirm it is real. Vulkro only writes the test; you run it.

vulkro prove . # print the tests
vulkro prove . --format emit --out proofs # one file per finding

Eligible findings: SSRF, prompt injection, broken authorization, and SQL, SOQL, NoSQL and command injection. Other findings, and languages without an emitter, are listed as skipped with a reason.

LanguageTest
JavaScript / TypeScriptA fast-check property test plus a concrete proof of concept.
PythonA Hypothesis test run by pytest.
ApexAn @isTest class, runnable in a Salesforce org.

Each file says how to run it and names the finding id it came from.

Flags​

FlagDescription
-f, --format <MODE>stdout (default) or emit (write files).
--out <DIR>Output folder for emit. Default .vulkro-proofs.
--no-cacheSkip the extraction cache.

Exit codes​

0 no tests written (nothing eligible). 1 at least one test written. 2 bad argument or internal failure.

See also: vulkro probe, vulkro explain.

Command reference​

Generated from vulkro prove --help (vulkro 0.41.0). Run scripts/gen-docs.sh in the product repository to refresh it; do not edit this section by hand.

Generate runnable test cases that demonstrate eligible findings.

vulkro prove [OPTIONS] [PATH]

Arguments​

ArgumentDescription
[PATH]Path to the project root (default: current directory) Default: ..

Options​

FlagDescription
-f, --format <FORMAT>Output mode: stdout (print harness sources, the default) or emit (write one file per finding under --out) Default: stdout.
--offlineHard-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.
--out <DIR>Directory to write harness files into when --format emit. Created if missing. Ignored for stdout. Default: .vulkro-proofs.
-q, --quietPrint only warnings and errors on stderr: no progress, tips or next-step hints. Results on stdout and exit codes are unchanged.
--no-cacheBypass the per-file extraction cache (~/.vulkro/scans.db)
--no-colorTurn off coloured output. Colour is also off when NO_COLOR is set to a non-empty value or TERM=dumb.
--force-appBypass the framework self-scan heuristic (see discover --force-app)
--force-all-rulesBypass the posture-based rule-applicability gate (see discover --force-all-rules)
-h, --helpPrint help (see a summary with '-h')
Full vulkro prove --help
Generate runnable test cases that demonstrate eligible findings.

Emit runnable proof harnesses for eligible findings.

Scans the project, then for each injection / broken-authorization finding EMITS a test file a developer can run to confirm the finding is a true positive. Vulkro only generates the harness text - it never compiles or runs it. Per language: JS/TS gets a fast-check property test plus a concrete PoC; Python gets a Hypothesis + pytest harness; Apex gets a generated `@isTest` class (runnable only inside a Salesforce org). Findings with no runnable proof shape (config, inventory, code quality) or in a language without an emitter are skipped and listed with a reason - nothing is dropped silently.

Exit codes: `0` no harness emitted (no eligible findings), `1` at least one harness emitted, `2` arg error or internal failure.

Usage: vulkro prove [OPTIONS] [PATH]

Arguments:
[PATH]
Path to the project root (default: current directory)

[default: .]

Options:
-f, --format <FORMAT>
Output mode: `stdout` (print harness sources, the default) or `emit` (write one file per finding under --out)

Possible values:
- stdout: Print every harness source to stdout, separated by a banner. Default
- emit: Write each harness to its own file under `--out` (default `.vulkro-proofs`)

[default: stdout]

--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

--out <DIR>
Directory to write harness files into when --format emit. Created if missing. Ignored for stdout

[default: .vulkro-proofs]

-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-cache
Bypass the per-file extraction cache (`~/.vulkro/scans.db`)

--no-color
Turn off coloured output. Colour is also off when NO_COLOR is set to a non-empty value or TERM=dumb

--force-app
Bypass the framework self-scan heuristic (see `discover --force-app`)

--force-all-rules
Bypass the posture-based rule-applicability gate (see `discover --force-all-rules`)

-h, --help
Print help (see a summary with '-h')