These commands run in keryn-native, the Rust binary that the CLI archives ship beside keryn. Their flags and exit codes are its own.
keryn graph
Section titled “keryn graph”Throughline graph pipeline over an evidence project: attack paths, defensive breakpoints, report (local only).
Usage: keryn graph [options] Throughline graph pipeline over an evidence project: attack paths, defensive breakpoints, report (local only) Runs in keryn-native, which was not found on PATH or next to keryn (it ships beside keryn in the keryn-<version>-<platform> archives; or build it: cargo build --release -p keryn-cli --bin keryn-native; or set KERYN_NATIVE=<path>).Examples
Section titled “Examples”# Arguments and flags, from the keryn-native binary that runs this command.keryn graph --helpExit codes
Section titled “Exit codes”| Code | Meaning |
|---|---|
| 0 | success |
| 2 | usage error |
| 4 | internal error |
keryn diff-scan
Section titled “keryn diff-scan”Attack paths introduced or resolved between two git refs of a repository.
Usage: keryn diff-scan [options] attack paths introduced or resolved between two git refs of a repository Runs in keryn-native, which was not found on PATH or next to keryn (it ships beside keryn in the keryn-<version>-<platform> archives; or build it: cargo build --release -p keryn-cli --bin keryn-native; or set KERYN_NATIVE=<path>).Examples
Section titled “Examples”# Arguments and flags, from the keryn-native binary that runs this command.keryn diff-scan --helpExit codes
Section titled “Exit codes”| Code | Meaning |
|---|---|
| 0 | success |
| 2 | usage error |
| 4 | internal error |
keryn report
Section titled “keryn report”Final report artifacts (report.md, manifest, split reports) from an existing scan output directory.
Usage: keryn report [options] final report artifacts (report.md, manifest, split reports) from an existing scan output directory Runs in keryn-native, which was not found on PATH or next to keryn (it ships beside keryn in the keryn-<version>-<platform> archives; or build it: cargo build --release -p keryn-cli --bin keryn-native; or set KERYN_NATIVE=<path>).Examples
Section titled “Examples”# Arguments and flags, from the keryn-native binary that runs this command.keryn report --helpExit codes
Section titled “Exit codes”| Code | Meaning |
|---|---|
| 0 | success |
| 2 | usage error |
| 4 | internal error |
keryn evidence
Section titled “keryn evidence”Build or inspect the evidence bundle of a finding.
Usage: keryn evidence [options] build or inspect the evidence bundle of a finding Runs in keryn-native, which was not found on PATH or next to keryn (it ships beside keryn in the keryn-<version>-<platform> archives; or build it: cargo build --release -p keryn-cli --bin keryn-native; or set KERYN_NATIVE=<path>).Examples
Section titled “Examples”# Arguments and flags, from the keryn-native binary that runs this command.keryn evidence --helpExit codes
Section titled “Exit codes”| Code | Meaning |
|---|---|
| 0 | success |
| 2 | usage error |
| 4 | internal error |
keryn validate
Section titled “keryn validate”Generate or check a local-only validation plan for a finding candidate.
Usage: keryn validate [options] generate or check a local-only validation plan for a finding candidate Runs in keryn-native, which was not found on PATH or next to keryn (it ships beside keryn in the keryn-<version>-<platform> archives; or build it: cargo build --release -p keryn-cli --bin keryn-native; or set KERYN_NATIVE=<path>).Examples
Section titled “Examples”# Arguments and flags, from the keryn-native binary that runs this command.keryn validate --helpExit codes
Section titled “Exit codes”| Code | Meaning |
|---|---|
| 0 | success |
| 2 | usage error |
| 4 | internal error |
keryn triage
Section titled “keryn triage”Apply the false-positive downgrade rules to a candidate finding.
Usage: keryn triage [options] apply the false-positive downgrade rules to a candidate finding Runs in keryn-native, which was not found on PATH or next to keryn (it ships beside keryn in the keryn-<version>-<platform> archives; or build it: cargo build --release -p keryn-cli --bin keryn-native; or set KERYN_NATIVE=<path>).Examples
Section titled “Examples”# Arguments and flags, from the keryn-native binary that runs this command.keryn triage --helpExit codes
Section titled “Exit codes”| Code | Meaning |
|---|---|
| 0 | success |
| 2 | usage error |
| 4 | internal error |
keryn verify
Section titled “keryn verify”Reproduce a finding in a hardened sandbox container: Confirmed, Refuted or Indeterminate.
Usage: keryn verify [options] reproduce a finding in a hardened sandbox container: Confirmed, Refuted or Indeterminate Runs in keryn-native, which was not found on PATH or next to keryn (it ships beside keryn in the keryn-<version>-<platform> archives; or build it: cargo build --release -p keryn-cli --bin keryn-native; or set KERYN_NATIVE=<path>).Examples
Section titled “Examples”# Arguments and flags, from the keryn-native binary that runs this command.keryn verify --helpExit codes
Section titled “Exit codes”| Code | Meaning |
|---|---|
| 0 | success |
| 2 | usage error |
| 4 | internal error |
keryn adjudicate
Section titled “keryn adjudicate”Run a reviewer over ledger findings, see the queue, inspect one finding per reviewer (claims, never decisions).
Usage: keryn adjudicate [options] run a reviewer over ledger findings, see the queue, inspect one finding per reviewer (claims, never decisions) Runs in keryn-native, which was not found on PATH or next to keryn (it ships beside keryn in the keryn-<version>-<platform> archives; or build it: cargo build --release -p keryn-cli --bin keryn-native; or set KERYN_NATIVE=<path>).Examples
Section titled “Examples”# Arguments and flags, from the keryn-native binary that runs this command.keryn adjudicate --helpExit codes
Section titled “Exit codes”| Code | Meaning |
|---|---|
| 0 | success |
| 2 | usage error |
| 4 | internal error |
keryn remediate
Section titled “keryn remediate”Propose fixes for ledger findings and check the code each one names is there (never writes a repository).
Usage: keryn remediate [options] propose fixes for ledger findings and check the code each one names is there (never writes a repository) Runs in keryn-native, which was not found on PATH or next to keryn (it ships beside keryn in the keryn-<version>-<platform> archives; or build it: cargo build --release -p keryn-cli --bin keryn-native; or set KERYN_NATIVE=<path>).Examples
Section titled “Examples”# Arguments and flags, from the keryn-native binary that runs this command.keryn remediate --helpExit codes
Section titled “Exit codes”| Code | Meaning |
|---|---|
| 0 | success |
| 2 | usage error |
| 4 | internal error |
keryn explore
Section titled “keryn explore”Read the ledger: findings, scans, targets, judgements, fixes, retests, rulings, disclosures (JSON).
Usage: keryn explore [options] read the ledger: findings, scans, targets, judgements, fixes, retests, rulings, disclosures (JSON) Runs in keryn-native, which was not found on PATH or next to keryn (it ships beside keryn in the keryn-<version>-<platform> archives; or build it: cargo build --release -p keryn-cli --bin keryn-native; or set KERYN_NATIVE=<path>).Examples
Section titled “Examples”# Arguments and flags, from the keryn-native binary that runs this command.keryn explore --helpExit codes
Section titled “Exit codes”| Code | Meaning |
|---|---|
| 0 | success |
| 2 | usage error |
| 4 | internal error |
keryn measure
Section titled “keryn measure”Measure the estate: coverage, observation-to-disclosure funnel, reviewer spend, source value.
Usage: keryn measure [options] measure the estate: coverage, observation-to-disclosure funnel, reviewer spend, source value Runs in keryn-native, which was not found on PATH or next to keryn (it ships beside keryn in the keryn-<version>-<platform> archives; or build it: cargo build --release -p keryn-cli --bin keryn-native; or set KERYN_NATIVE=<path>).Examples
Section titled “Examples”# Arguments and flags, from the keryn-native binary that runs this command.keryn measure --helpExit codes
Section titled “Exit codes”| Code | Meaning |
|---|---|
| 0 | success |
| 2 | usage error |
| 4 | internal error |
keryn retention
Section titled “keryn retention”Enforce a retention window on the local profile, or erase it.
Usage: keryn retention [options] enforce a retention window on the local profile, or erase it Runs in keryn-native, which was not found on PATH or next to keryn (it ships beside keryn in the keryn-<version>-<platform> archives; or build it: cargo build --release -p keryn-cli --bin keryn-native; or set KERYN_NATIVE=<path>).Examples
Section titled “Examples”# Arguments and flags, from the keryn-native binary that runs this command.keryn retention --helpExit codes
Section titled “Exit codes”| Code | Meaning |
|---|---|
| 0 | success |
| 2 | usage error |
| 4 | internal error |
keryn analyze
Section titled “keryn analyze”Enrich one partner finding from a JSON file (the POST /v1/analysis engine).
Usage: keryn analyze [options] enrich one partner finding from a JSON file (the POST /v1/analysis engine) Runs in keryn-native, which was not found on PATH or next to keryn (it ships beside keryn in the keryn-<version>-<platform> archives; or build it: cargo build --release -p keryn-cli --bin keryn-native; or set KERYN_NATIVE=<path>).Examples
Section titled “Examples”# Arguments and flags, from the keryn-native binary that runs this command.keryn analyze --helpExit codes
Section titled “Exit codes”| Code | Meaning |
|---|---|
| 0 | success |
| 2 | usage error |
| 4 | internal error |
keryn dom-analysis
Section titled “keryn dom-analysis”Captured DOM -> AI overread, PII exposure and prompt injection report.
Usage: keryn dom-analysis [options] captured DOM -> AI overread, PII exposure and prompt injection report Runs in keryn-native, which was not found on PATH or next to keryn (it ships beside keryn in the keryn-<version>-<platform> archives; or build it: cargo build --release -p keryn-cli --bin keryn-native; or set KERYN_NATIVE=<path>).Examples
Section titled “Examples”# Arguments and flags, from the keryn-native binary that runs this command.keryn dom-analysis --helpExit codes
Section titled “Exit codes”| Code | Meaning |
|---|---|
| 0 | success |
| 2 | usage error |
| 4 | internal error |
keryn doctor
Section titled “keryn doctor”Check (and safely fix) the local Keryn environment.
Usage: keryn doctor [options] check (and safely fix) the local Keryn environment Runs in keryn-native, which was not found on PATH or next to keryn (it ships beside keryn in the keryn-<version>-<platform> archives; or build it: cargo build --release -p keryn-cli --bin keryn-native; or set KERYN_NATIVE=<path>).Examples
Section titled “Examples”# Arguments and flags, from the keryn-native binary that runs this command.keryn doctor --helpExit codes
Section titled “Exit codes”| Code | Meaning |
|---|---|
| 0 | success |
| 2 | usage error |
| 4 | internal error |
keryn attest
Section titled “keryn attest”Sign evidence, a Verify packet or an AI-BOM as an in-toto statement in a DSSE envelope; attest keygen.
Usage: keryn attest [options] sign evidence, a Verify packet or an AI-BOM as an in-toto statement in a DSSE envelope; attest keygen Runs in keryn-native, which was not found on PATH or next to keryn (it ships beside keryn in the keryn-<version>-<platform> archives; or build it: cargo build --release -p keryn-cli --bin keryn-native; or set KERYN_NATIVE=<path>).Examples
Section titled “Examples”# Arguments and flags, from the keryn-native binary that runs this command.keryn attest --helpExit codes
Section titled “Exit codes”| Code | Meaning |
|---|---|
| 0 | success |
| 2 | usage error |
| 4 | internal error |
keryn verify-attestation
Section titled “keryn verify-attestation”Verify an attestation signature and that the evidence in hand is what was signed.
Usage: keryn verify-attestation [options] verify an attestation signature and that the evidence in hand is what was signed Runs in keryn-native, which was not found on PATH or next to keryn (it ships beside keryn in the keryn-<version>-<platform> archives; or build it: cargo build --release -p keryn-cli --bin keryn-native; or set KERYN_NATIVE=<path>).Examples
Section titled “Examples”# Arguments and flags, from the keryn-native binary that runs this command.keryn verify-attestation --helpExit codes
Section titled “Exit codes”| Code | Meaning |
|---|---|
| 0 | success |
| 2 | usage error |
| 4 | internal error |
keryn oscal
Section titled “keryn oscal”OSCAL 1.2 assessment results for a scan result (observations only, not a compliance determination).
Usage: keryn oscal [options] OSCAL 1.2 assessment results for a scan result (observations only, not a compliance determination) Runs in keryn-native, which was not found on PATH or next to keryn (it ships beside keryn in the keryn-<version>-<platform> archives; or build it: cargo build --release -p keryn-cli --bin keryn-native; or set KERYN_NATIVE=<path>).Examples
Section titled “Examples”# Arguments and flags, from the keryn-native binary that runs this command.keryn oscal --helpExit codes
Section titled “Exit codes”| Code | Meaning |
|---|---|
| 0 | success |
| 2 | usage error |
| 4 | internal error |
keryn nday-db
Section titled “keryn nday-db”Update the known-fix (n-day) signature database from a signed release.
Usage: keryn nday-db [options] update the known-fix (n-day) signature database from a signed release Runs in keryn-native, which was not found on PATH or next to keryn (it ships beside keryn in the keryn-<version>-<platform> archives; or build it: cargo build --release -p keryn-cli --bin keryn-native; or set KERYN_NATIVE=<path>).Examples
Section titled “Examples”# Arguments and flags, from the keryn-native binary that runs this command.keryn nday-db --helpExit codes
Section titled “Exit codes”| Code | Meaning |
|---|---|
| 0 | success |
| 2 | usage error |
| 4 | internal error |
keryn sca-assess
Section titled “keryn sca-assess”Assess OSV records and package queries from one bounded JSON batch on stdin.
Usage: keryn sca-assess [options] assess OSV records and package queries from one bounded JSON batch on stdin Runs in keryn-native, which was not found on PATH or next to keryn (it ships beside keryn in the keryn-<version>-<platform> archives; or build it: cargo build --release -p keryn-cli --bin keryn-native; or set KERYN_NATIVE=<path>).Examples
Section titled “Examples”# Arguments and flags, from the keryn-native binary that runs this command.keryn sca-assess --helpExit codes
Section titled “Exit codes”| Code | Meaning |
|---|---|
| 0 | success |
| 2 | usage error |
| 4 | internal error |
keryn sca-inventory
Section titled “keryn sca-inventory”Inventory lockfile/metadata text from stdin (no files, network or state; 1 MiB cap).
Usage: keryn sca-inventory [options] inventory lockfile/metadata text from stdin (no files, network or state; 1 MiB cap) Runs in keryn-native, which was not found on PATH or next to keryn (it ships beside keryn in the keryn-<version>-<platform> archives; or build it: cargo build --release -p keryn-cli --bin keryn-native; or set KERYN_NATIVE=<path>).Examples
Section titled “Examples”# Arguments and flags, from the keryn-native binary that runs this command.keryn sca-inventory --helpExit codes
Section titled “Exit codes”| Code | Meaning |
|---|---|
| 0 | success |
| 2 | usage error |
| 4 | internal error |
keryn sca-match
Section titled “keryn sca-match”Match lockfile/metadata text from stdin against supplied OSV records.
Usage: keryn sca-match [options] match lockfile/metadata text from stdin against supplied OSV records Runs in keryn-native, which was not found on PATH or next to keryn (it ships beside keryn in the keryn-<version>-<platform> archives; or build it: cargo build --release -p keryn-cli --bin keryn-native; or set KERYN_NATIVE=<path>).Examples
Section titled “Examples”# Arguments and flags, from the keryn-native binary that runs this command.keryn sca-match --helpExit codes
Section titled “Exit codes”| Code | Meaning |
|---|---|
| 0 | success |
| 2 | usage error |
| 4 | internal error |
keryn sca-requirements
Section titled “keryn sca-requirements”Check installed npm declarations in a package-lock v2/v3 on stdin.
Usage: keryn sca-requirements [options] check installed npm declarations in a package-lock v2/v3 on stdin Runs in keryn-native, which was not found on PATH or next to keryn (it ships beside keryn in the keryn-<version>-<platform> archives; or build it: cargo build --release -p keryn-cli --bin keryn-native; or set KERYN_NATIVE=<path>).Examples
Section titled “Examples”# Arguments and flags, from the keryn-native binary that runs this command.keryn sca-requirements --helpExit codes
Section titled “Exit codes”| Code | Meaning |
|---|---|
| 0 | success |
| 2 | usage error |
| 4 | internal error |
keryn sca-project-assets
Section titled “keryn sca-project-assets”Observe one recorded NuGet graph from a bounded project.assets.json on stdin.
Usage: keryn sca-project-assets [options] observe one recorded NuGet graph from a bounded project.assets.json on stdin Runs in keryn-native, which was not found on PATH or next to keryn (it ships beside keryn in the keryn-<version>-<platform> archives; or build it: cargo build --release -p keryn-cli --bin keryn-native; or set KERYN_NATIVE=<path>).Examples
Section titled “Examples”# Arguments and flags, from the keryn-native binary that runs this command.keryn sca-project-assets --helpExit codes
Section titled “Exit codes”| Code | Meaning |
|---|---|
| 0 | success |
| 2 | usage error |
| 4 | internal error |
keryn fw-policy-observe
Section titled “keryn fw-policy-observe”Observe fixed package-firewall predicates from bounded raw job JSON on stdin.
Usage: keryn fw-policy-observe [options] observe fixed package-firewall predicates from bounded raw job JSON on stdin Runs in keryn-native, which was not found on PATH or next to keryn (it ships beside keryn in the keryn-<version>-<platform> archives; or build it: cargo build --release -p keryn-cli --bin keryn-native; or set KERYN_NATIVE=<path>).Examples
Section titled “Examples”# Arguments and flags, from the keryn-native binary that runs this command.keryn fw-policy-observe --helpExit codes
Section titled “Exit codes”| Code | Meaning |
|---|---|
| 0 | success |
| 2 | usage error |
| 4 | internal error |
keryn jvm-liveness
Section titled “keryn jvm-liveness”Physical-cell liveness of one method in JVM class or JAR bytes on stdin.
Usage: keryn jvm-liveness [options] physical-cell liveness of one method in JVM class or JAR bytes on stdin Runs in keryn-native, which was not found on PATH or next to keryn (it ships beside keryn in the keryn-<version>-<platform> archives; or build it: cargo build --release -p keryn-cli --bin keryn-native; or set KERYN_NATIVE=<path>).Examples
Section titled “Examples”# Arguments and flags, from the keryn-native binary that runs this command.keryn jvm-liveness --helpExit codes
Section titled “Exit codes”| Code | Meaning |
|---|---|
| 0 | success |
| 2 | usage error |
| 4 | internal error |