Security walkthrough¶
Point Cruxible at a repository, import its dependency list, check every package
against public vulnerability feeds, review whether your code actually reaches
each bug under two-principal cosign, and export a machine-readable triage
report. Every answer traces back to its source, and your coding agent can drive
both dependency triage and code audits with the kit's security-audit skill.
You do not need to be a security specialist to follow this walkthrough: it uses standard vulnerability-triage feeds as a real-world example of Cruxible's automated pipelines, verified absences, and code-cited judgments.
New to these security terms? (6-term cheat sheet)
| Term | Plain-English meaning |
|---|---|
| SBOM (CycloneDX / SPDX) | Software Bill of Materials: a standard JSON inventory listing every library and exact version your project depends on. |
| OSV | Open Source Vulnerabilities (osv.dev): an open database mapping exact package versions to known security flaws (CVE IDs, plus ecosystem-specific GHSA and PYSEC advisories). |
| CISA KEV | Known Exploited Vulnerabilities: the U.S. government's list of vulnerabilities confirmed to be actively exploited in the wild ("fix immediately"). |
| FIRST EPSS | Exploit Prediction Scoring System: a daily 0-to-1 probability score estimating how likely a vulnerability is to be exploited in the next 30 days. |
| VEX (OpenVEX) | Vulnerability Exploitability eXchange: a standard JSON report stating which listed vulnerabilities do or do not actually affect your app and why, so downstream teams and scanners stop re-flagging verified false positives. |
| SARIF | Standard JSON output format emitted by static-analysis code scanners (such as CodeQL or Semgrep). |
What you'll have by the end¶
- A governed security instance with
security:1.4.0and its three pinned providers (cruxible-provider-web,security-osv-provider,security-sarif-provider), installed in a single reviewed proposal. - Automated Lines adopted with zero JSON authoring (
cruxible kit adopt) that import your project's dependency list (a CycloneDX or SPDX SBOM) and query public vulnerability feeds (OSV, CISA KEV, and FIRST EPSS), recording both matches and verified absences. - A prioritized exposure queue in
security.urgent_exposuresandcruxible next, plus reviewednot_affectedandaffectedjudgments backed by exact code citations. - The
security-auditskill wired into your coding agent for separated Reporter, Verifier, and Approver sessions, plus deterministic triage report export (OpenVEX) viacruxible kit run security:export-vex.
What you'll do¶
- Install Cruxible, initialize your repo with two-principal cosign, and add
security:1.4.0from GHCR in one proposal. - Inspect the repo with
cruxible kit run security:init-planand generate a JSON dependency inventory (a CycloneDX SBOM). - Adopt the kit's Lines, Runbooks, and daily Trigger with
cruxible kit adoptand runsecurity.startto pull vulnerability, exploitation, and risk feeds. - Query
security.urgent_exposures, inspect admitted evidence, and record reviewed judgments via the typed Python SDK, MCP, CLI, or thesecurity-auditskill. - Export an OpenVEX triage report and verify how
security.maintainandsecurity.osv-unkeyedkeep state current without turning failed or unkeyed reads into "none".
Prerequisites¶
Python 3.11+, Git, Linux (x86-64) or macOS (Apple silicon; Windows via WSL2),
and network access to ghcr.io, pypi.org, api.osv.dev, www.cisa.gov,
and api.first.org.
All outputs below were recorded live on
pygoat, a deliberately vulnerable
Django application, with Cruxible 0.6.1 and security:1.4.0. Long digests
and run IDs are abbreviated to 12 characters for readability; proposal commands
accept any unambiguous prefix.
Step 1: Install Cruxible and initialize with cosign¶
Cruxible keeps knowledge in a small background server, the daemon. In
your project's repository, init starts one if none is running, creates an
instance (this project's own body of knowledge), makes you its owner, and
remembers the connection so later commands here need no extra flags. The two
reviewer options set up cosign: a second principal, reviewer, whose key
is written to a directory outside the repository, and an approval policy under
which nothing activates on its author's approval alone:
$ git clone https://github.com/adeyosemanputra/pygoat && cd pygoat
$ cruxible init --principal-id owner --reviewer-key-dir ../reviewer-keys --require-independent-approval
Started a Cruxible daemon on unix socket .../run/daemon.sock (...); `cruxible server stop` stops it.
...
Cruxible initialized: inst_d82a0b4a7e4a4352 at 370291a9d8e9
Owner: owner, private key .../keys/inst_d82a0b4a7e4a4352/owner/owner.ed25519
...
Approval policy: independent_approval_required
Base kit: base 1.0.0 awaits approval, proposal b48644690e6e (cruxible proposal approve b48644690e6e --signer-id reviewer, as a second principal)
Reviewer: reviewer, private key .../reviewer-keys/reviewer.ed25519 (cruxible context use --principal reviewer)
More: cruxible context show
The base kit holds what every instance needs to read workspace files and
fetch web pages. Under independent_approval_required, even it waits: init
proposed it as owner, so reviewer approves it. CRUXIBLE_PRINCIPAL_ID=reviewer
makes one command act as the reviewer using the key and settings init wrote
to ../reviewer-keys:
$ CRUXIBLE_PRINCIPAL_ID=reviewer cruxible proposal list --status open
STATUS TERMINAL_REASON PROPOSAL_ID TARGET_REF COORDINATE_TIME
open - b48644690e6e refs/proposals/owner/kit-base-b066ad925dfa... 2026-11-28T16:16:14.021107Z
Coordinate: 370291a9d8e9...
$ CRUXIBLE_PRINCIPAL_ID=reviewer cruxible proposal approve b48644690e6e --yes
Signing sha256:836bb4a2e492... (sha256:b48644690e6e...): 29 changes (29 create)
Signing key for reviewer: .../reviewer-keys/reviewer.ed25519 (from remembered settings .../reviewer-keys/cruxible.env)
Approved sha256:836bb4a2e492... (sha256:b48644690e6e...) as reviewer
Activated at 962fd893443a...
proposal approve shows what you are signing and asks before it signs; --yes
skips the prompt for agents and scripts. A person reviewing at their own
terminal can switch instead with cruxible context use --principal reviewer,
which holds until cruxible context use --principal owner.
The reviewer is normally a second agent: it reads each proposal (cruxible
proposal review) and approves or rejects it, so no agent lands its own work.
On a single laptop, that is a workflow convention rather than hard enforcement
against a rogue agent: both keys are files your OS user can read, so nothing at
the OS layer stops one process from invoking both. In practice it still catches
reasoning mistakes with a fresh review context, and standard coding-agent
harnesses surface the commands an agent runs, making an attempt to sign as
reviewer obvious. For hard enforcement against an untrusted agent, run the
daemon and reviewer key in separate OS users or containers with --auth and a
governed_write credential (Isolated deployment,
Review and governance).
One owner, no reviewer. cruxible init --principal-id owner alone leaves
the policy self_approval_allowed: init installs base 1.0.0 immediately,
and kit add --commit, kit adopt --yes, and writes activate without any
separate reviewer step. Review and governance
covers both setups and how to add a reviewer later.
Step 2: Install security:1.4.0 in a single proposal¶
A kit is a vocabulary and the definitions around it, published to
ghcr.io/cruxible-ai/kits so any instance can install it by name. Preview what
kit add will install with --dry-run (or omit --commit to inspect and
confirm interactively):
Example output (previewing 3 providers and 202 definitions)
$ cruxible kit add security --dry-run
security 1.4.0: would_propose (install)
provider cruxible-provider-web (cruxible-provider-web 0.7.0): would install (by name from the provider index at exactly 0.7.0, refusing any other build; refused where provider_repository is configured)
provider security-osv-provider (security-osv-provider 0.2.0.dev0): would install
provider security-sarif-provider (security-sarif-provider 0.2.0.dev0): would install
requires base >= 1.0.0: met (installed 1.0.0)
...
Capability:
add: Capability:security.osv.match/v1
add: Capability:security.osv.query/v1
add: Capability:security.osv.query/v2
add: Capability:security.sarif.findings/v1
add: Capability:security.sbom.components/v1
...
a commit prepares the missing providers and proposes them together with these definitions in a single combined proposal, checked against the prepared providers
...
Preview at 962fd893443a; nothing was written.
Commit it: rerun the same command with --commit --at 962fd893443a
You can also install from a local checkout of the
kits repository by passing its
path (../cruxible-kits/kits/security) instead of security. The providers are the packages that fetch and parse sources:
security-osv-provider for dependency-list (SBOM) parsing and OSV
vulnerability queries, cruxible-provider-web for CISA KEV (actively exploited
catalog) and FIRST EPSS (exploitation-probability scores), and
security-sarif-provider for static-analysis scanner reports (SARIF).
Commit the install. In Cruxible 0.6, kit add security --commit prepares all
three provider environments and proposes them together with the kit's
definitions in one combined proposal:
$ cruxible kit add security --commit
security 1.4.0: proposed (install)
provider cruxible-provider-web (cruxible-provider-web 0.7.0): awaiting approval, proposal e52b65fdf3ad (Installation and registration grant no execution permissions. Runtime resources require verification.)
provider security-osv-provider (security-osv-provider 0.2.0.dev0): awaiting approval, proposal e52b65fdf3ad
provider security-sarif-provider (security-sarif-provider 0.2.0.dev0): awaiting approval, proposal e52b65fdf3ad
requires base >= 1.0.0: met (installed 1.0.0)
...
Proposal: e52b65fdf3ad
Next: cruxible proposal approve e52b65fdf3ad --signer-id '<SIGNER_ID>' (the approval that completes it activates it)
The reviewer inspects the combined proposal (3 providers plus 202 definitions)
and approves it in one step (substituting your PROPOSAL_ID from above):
CRUXIBLE_PRINCIPAL_ID=reviewer cruxible proposal review PROPOSAL_ID
CRUXIBLE_PRINCIPAL_ID=reviewer cruxible proposal approve PROPOSAL_ID --yes
Example output (reviewing and approving 205 changes)
$ CRUXIBLE_PRINCIPAL_ID=reviewer cruxible proposal review e52b65fdf3ad
Proposal: sha256:e52b65fdf3ad...
Candidate: sha256:65496c15468a...
Why: Install kit security 1.4.0.
Required tier: governed_write; activation: snapshot
Approval: independent-principal, 1 distinct signer(s)
Changes: 205 created / 0 revised / 0 retired
capability: 5 created / 0 revised / 0 retired
capture-contract: 9 created / 0 revised / 0 retired
claim-type: 53 created / 0 revised / 0 retired
contract: 76 created / 0 revised / 0 retired
document: 5 created / 0 revised / 0 retired
procedure: 10 created / 0 revised / 0 retired
provider: 3 created / 0 revised / 0 retired
query-definition: 33 created / 0 revised / 0 retired
subject-kind: 11 created / 0 revised / 0 retired
Definitions (205; showing 20):
Provider cruxible-provider-web/5a0608f7a357: created
package cruxible-provider-web 0.7.0 (local)
...
Provider security-osv-provider/461d168f6c84: created
package security-osv-provider 0.2.0.dev0 (local)
...
$ CRUXIBLE_PRINCIPAL_ID=reviewer cruxible proposal approve e52b65fdf3ad --yes
Signing sha256:65496c15468a... (sha256:e52b65fdf3ad...): 205 changes (205 create)
Signing key for reviewer: .../reviewer-keys/reviewer.ed25519 (from remembered settings .../reviewer-keys/cruxible.env)
Approved sha256:65496c15468a... (sha256:e52b65fdf3ad...) as reviewer
Activated at 247a0fac7496...
Check kit status and orient to confirm the installed vocabulary, recipes,
scripts, and generated .cruxible/world.pyi type stub:
Example output (installed kit status and orient map)
$ cruxible kit status
base 1.0.0 content sha256:07e64748e385...; up to date
source: bundled
security 1.4.0 content sha256:486de64a52f3...; up to date
source: ghcr.io/cruxible-ai/kits/security@sha256:0002675eee5a...
built by owner on inst_8c361a2c971f4571 at a62014d81e76 (claimed)
provider cruxible-provider-web (cruxible-provider-web 0.7.0): installed
provider security-osv-provider (security-osv-provider 0.2.0.dev0): installed
provider security-sarif-provider (security-sarif-provider 0.2.0.dev0): installed
requires base >= 1.0.0: met (installed 1.0.0)
recipes 4 (kit adopt security --list), scripts 2 (kit run security --list)
$ cruxible orient
Cruxible inst_d82a0b4a7e4a4352 generation=2 at 247a0fac7496 proposed 2026-11-28T16:19:05.346583Z
Floor: .cruxible/floor at 247a0fac7496, current
You: owner, can author
Kinds (11):
no subjects yet (11): it.asset, security.app_exposure, security.catalog, security.code_fact, security.component, security.coverage_unit, security.exposure, security.finding, security.inventory, security.occurrence, security.vulnerability
Artifacts: claim_types=55 procedures=10 documents=6 queries=33 operations=11 capture_contracts=10 capabilities=13
...
SDK: cruxible python SCRIPT (types: .cruxible/world.pyi)
Step 3: Plan and generate your SBOM¶
The kit ships a read-only init-plan script that inspects your repository
(ecosystems, existing SBOM dependency inventories, static-analysis SARIF files,
Dockerfiles, and Git remote) and prints the exact adoption plan for your
workspace:
Example output (generated adoption plan for pygoat)
$ cruxible kit run security:init-plan
workspace: .../pygoat
repo: github.com/adeyosemanputra/pygoat
ecosystems: Python
container: Dockerfile
container: challenge/labs/bopla_lab/Dockerfile
...
# no SBOM found: generate one first (or point the sbom lines at yours)
cyclonedx-py environment --of JSON -o sbom.cdx.json # in the project's virtual environment
# plan
cruxible kit adopt security --yes
cruxible proposal list --status open
cruxible proposal approve PROPOSAL_ID [PROPOSAL_ID ...] --yes # the security adoption, before the recipes below
cruxible kit adopt security:sbom --param name=app --param relative_path=sbom.cdx.json --yes
cruxible kit adopt security:schedule --yes # skip when CI runs security.maintain
cruxible proposal list --status open
cruxible proposal approve PROPOSAL_ID [PROPOSAL_ID ...] --yes
cruxible line enable security.osv-unkeyed --runbook security.start
cruxible runbook preview security.start
cruxible runbook run security.start
cruxible next
cruxible kit run security:export-vex -- --format openvex -o vex.openvex.json
The kit reads your dependencies from a CycloneDX JSON or SPDX 2.2/2.3 JSON
SBOM (software bill of materials) and queries OSV.dev for every package
URL (purl, a standard identifier like pkg:pypi/django@4.2 that names
ecosystem, package, and version) it lists. For pygoat's requirements.txt:
Common one-liners for other ecosystems:
# Node.js (package-lock.json)
npx --yes @cyclonedx/cyclonedx-npm --output-file sbom.cdx.json
# uv project (locked production dependencies)
uv export --frozen --no-dev --no-emit-workspace --no-hashes -o requirements.txt
uvx --from cyclonedx-bom cyclonedx-py requirements requirements.txt --of JSON -o sbom.cdx.json
# Any ecosystem (or container image) with Syft
syft dir:. -o cyclonedx-json=sbom.cdx.json
If you want a zero-dependency Python starter script (lockfile_sbom.py,
env_sbom.py) or a ready-made fixture (log4j-demo-app.cdx.json) to test live
OSV/KEV hits immediately, see the
security kit SBOM examples.
The SBOM's root component (metadata.component.purl) names the inventory.
cyclonedx-py requirements writes none, so here the inventory is named after
the file, sbom.cdx.json. This SBOM covers pygoat's root requirements.txt,
not the lab containers that carry their own requirements files; to track those
too, generate an SBOM per container and adopt another security:sbom Line for
each.
Step 4: Adopt automation recipes (zero JSON authoring)¶
The kit installs definitions only. The checks that run on their own (Lines,
their Mandates, Runbooks, and Triggers) are adopted deliberately
through parameterized recipes so you decide what runs, on which inputs, and
with what authority. List the four recipes security:1.4.0 ships:
$ cruxible kit adopt security --list
security 1.4.0: 4 recipe(s)
default: The dependency loop's shared backbone: OSV, KEV and EPSS Lines and Mandates, the attention and OSV unkeyed Lines, and the security.start (fans out to every SBOM import Line) and security.maintain Runbooks.
expires: string, default 90d, ...
min_epss: string, default 0.1, ...
usage: cruxible kit adopt security
sarif: One scanner's SARIF intake: the import Line, its Mandates, and the attention Line with its landing Trigger. Adopt again under another name per scanner.
...
sbom: One SBOM import Line (CycloneDX or SPDX 2.2/2.3 JSON) and its Mandates. Adopt again under another name per SBOM; security.start runs them all.
...
schedule: The daily Trigger security.maintain-daily, which runs security.maintain. Skip it when CI runs the Runbooks. (after default)
cron: string, default 0 14 * * *: Five-field cron expression, read in UTC.
usage: cruxible kit adopt security:schedule
Adopt the shared backbone (security) first, and have reviewer review and
approve it before adopting security:schedule (because the daily Trigger
checks that Runbook:security.maintain is already live):
$ cruxible kit adopt security --yes
security:default (1.4.0): 15 member(s)
outcome: submitted (awaiting_external_approval)
intent: AIT-238b9227315b...
proposal: ca19d3b06256
reason: not activated: the candidate needs an external approval from one of: reviewer. That signer's approval activates it.
next: cruxible proposal approve ca19d3b06256 --signer-id reviewer
The reviewer inspects each Line (provider binding, parameters, network origins,
budget) and Mandate (which ClaimTypes a Line may settle, and for how long),
substituting your PROPOSAL_ID from above:
CRUXIBLE_PRINCIPAL_ID=reviewer cruxible proposal review PROPOSAL_ID
CRUXIBLE_PRINCIPAL_ID=reviewer cruxible proposal approve PROPOSAL_ID --yes
Example output (reviewing 15 automation definitions and Mandates)
$ CRUXIBLE_PRINCIPAL_ID=reviewer cruxible proposal review ca19d3b06256
Proposal: sha256:ca19d3b06256...
Candidate: sha256:058d3ade6f98...
Why: kit adopt security: the dependency loop's shared Lines (OSV, KEV, EPSS) and their Mandates (valid for 90d from submission)...
Changes: 15 created / 0 revised / 0 retired
line: 6 created / 0 revised / 0 retired
procedure-mandate: 6 created / 0 revised / 0 retired
runbook: 2 created / 0 revised / 0 retired
trigger: 1 created / 0 revised / 0 retired
Definitions (15):
...
Line security.osv-query: created
procedure security.osv-query
authority settle
binding match -> security-osv-provider/461d168f6c84#osv.match
binding query -> security-osv-provider/461d168f6c84#osv.query
parameter logical_source = osv.dev.query
acquisition osv.responses: https://api.osv.dev
budget max_capture_bytes=67108864 max_items=50000 max_provider_calls=2 max_wall_clock_microseconds=300000000
inbox extract_refused, duplicate_key, incomplete_source, held_disagrees, slot_contested, claim_not_in_source
...
ProcedureMandate security.osv-query-settle: created
line security.osv-query
grants settle
valid 2026-11-28T16:20:06.538401Z .. 2027-02-26T16:20:06.538401Z
namespace claims
may create security.vulnerability
ClaimType create revise retire
security.component.affected_by extracted extracted absence
...
Runbook security.start: created
1 Procedure:security.sbom-import
2 Line:security.osv-query
3 Line:security.kev-triage
4 Line:security.epss-triage
5 Line:security.exposure-attention.unjudged
6 Line:security.exposure-attention.contested
Trigger security.osv-matches-landed: created
schedule when CaptureContract:security.osv-matches from osv.dev.query lands
target Line:security.osv-unkeyed
$ CRUXIBLE_PRINCIPAL_ID=reviewer cruxible proposal approve ca19d3b06256 --yes
Signing sha256:058d3ade6f98... (sha256:ca19d3b06256...): 15 changes (15 create)
Approved sha256:058d3ade6f98... (sha256:ca19d3b06256...) as reviewer
Activated at 3cb1f8c2f42a...
The source Lines (OSV, KEV, EPSS) may settle only facts copied from their
sources, within each Mandate's ClaimTypes and bases. The attention Lines and
security.osv-unkeyed are observe-only and post to the inbox. No Mandate
ever settles a human or agent judgment.
Now adopt the SBOM import Line (security:sbom) and the daily schedule Trigger
(security:schedule), and have the reviewer approve both:
$ cruxible kit adopt security:sbom --param name=app --param relative_path=sbom.cdx.json --yes
security:sbom (1.4.0): 3 member(s)
outcome: submitted (awaiting_external_approval)
proposal: e59035ba8690
next: cruxible proposal approve e59035ba8690 --signer-id reviewer
$ CRUXIBLE_PRINCIPAL_ID=reviewer cruxible proposal approve e59035ba8690 --yes
Approved sha256:ac12e6ed6828... (sha256:e59035ba8690...) as reviewer
Activated at 3560b301730e...
$ cruxible kit adopt security:schedule --yes
security:schedule (1.4.0): 1 member(s)
outcome: submitted (awaiting_external_approval)
proposal: 0a3f65f228c0
next: cruxible proposal approve 0a3f65f228c0 --signer-id reviewer
$ CRUXIBLE_PRINCIPAL_ID=reviewer cruxible proposal approve 0a3f65f228c0 --yes
Approved sha256:852847caba7a... (sha256:0a3f65f228c0...) as reviewer
Activated at 5e24e2fe4184...
Because security.start's first step is a Procedure fan-out
(Procedure:security.sbom-import), adopting a second SBOM (--param name=api
--param relative_path=services/api/sbom.cdx.json) joins security.start
automatically with no Runbook edit.
Step 5: Preview, enable, and run security.start¶
runbook preview inspects every step's reads, writes, provider calls, and
workspace files without running anything:
Example output (6-step preview of reads, writes, and origins)
$ cruxible runbook preview security.start
Runbook security.start (preview: definitions, and whether each workspace file is there; nothing ran)
1 Line:security.sbom-import.app Procedure:security.sbom-import (from Procedure:security.sbom-import)
writes security.occurrence: security.occurrence.osv_package, security.occurrence.scope
calls read -> Provider:cruxible-builtin workspace.file (capability workspace.file@1)
calls derive -> Provider:security-osv-provider/461d168f6c84 sbom.components (capability security.sbom.components@1)
needs file sbom.cdx.json (json, at most 1 MiB per its CaptureContract, parameter relative_path): present
2 Line:security.osv-query Procedure:security.osv-query
...
needs fetch (set by the run) (json, at most 4 MiB per its CaptureContract)
origins https://api.osv.dev
3 Line:security.kev-triage Procedure:security.kev-triage
...
calls fetch -> Provider:cruxible-provider-web/5a0608f7a357 web.fetch (capability web.fetch@1)
needs fetch https://www.cisa.gov/sites/default/files/feeds/known_exploited_vulnerabilities.json ...
4 Line:security.epss-triage Procedure:security.epss-triage
...
calls fetch -> Provider:cruxible-provider-web/5a0608f7a357 web.fetch.pages (capability web.fetch.pages@1)
needs fetch https://api.first.org/data/v1/epss ...
5 Line:security.exposure-attention.unjudged Procedure:security.exposure-attention.unjudged
settles nothing; proposes nothing
6 Line:security.exposure-attention.contested Procedure:security.exposure-attention.contested
settles nothing; proposes nothing
Every Line starts disabled. Enable all seven at once, naming
security.osv-unkeyed first (its landing Trigger fires as soon as OSV lands a
match document, and only while it is enabled):
$ cruxible line enable security.osv-unkeyed --runbook security.start
Line:security.osv-unkeyed: enabled
Line:security.sbom-import.app: enabled
Line:security.osv-query: enabled
Line:security.kev-triage: enabled
Line:security.epss-triage: enabled
Line:security.exposure-attention.unjudged: enabled
Line:security.exposure-attention.contested: enabled
Lines: 7 enabled
Now run security.start. The calls are real (OSV, CISA, and FIRST answer over
the network; this run took ~40 seconds):
$ cruxible runbook run security.start
Runbook security.start: completed [RBR-b0247820e28e...]
1 succeeded Line:security.sbom-import.app (via Procedure:security.sbom-import, RUN-ccb392bac7a9...)
written 32 (settled 32, proposed 0); unchanged 0; refused 0; inbox 0
2 succeeded Line:security.osv-query (RUN-70ce110663f4...)
written 181 (settled 181, proposed 0); unchanged 0; refused 0; inbox 0
3 succeeded Line:security.kev-triage (RUN-56d93e354f42...)
written 181 (settled 181, proposed 0); unchanged 0; refused 0; inbox 0
4 succeeded Line:security.epss-triage (RUN-9aa1f019be84...)
written 543 (settled 543, proposed 0); unchanged 0; refused 0; inbox 0
5 succeeded Line:security.exposure-attention.unjudged (RUN-f1a0f9a8383e...)
written 0 (settled 0, proposed 0); unchanged 0; refused 0; inbox 0
6 succeeded Line:security.exposure-attention.contested (RUN-59188a1059e2...)
written 0 (settled 0, proposed 0); unchanged 0; refused 0; inbox 0
32 components, 181 vulnerabilities from OSV, 181 verified KEV absence records (confirming none of pygoat's CVEs appears on CISA's actively-exploited list), and 543 EPSS Claims (30-day exploitation probability score, percentile, and date for each CVE), all settled automatically under the approved Mandates.
With the Lines enabled and security.maintain-daily adopted, facts stay
current on the schedule:
Example output (7 enabled Lines and daily Trigger schedule)
$ cruxible orient --section lines
LINE LIFECYCLE PROCEDURE AUTHORITY TRIGGER ENABLEMENT DUE WAITING
Line:security.epss-triage live Procedure:security.epss-triage settle runbook Trigger:security.maintain-daily running 0 0
Line:security.exposure-attention.contested live Procedure:security.exposure-attention.contested observe runbook Trigger:security.maintain-daily running 0 0
Line:security.exposure-attention.unjudged live Procedure:security.exposure-attention.unjudged observe runbook Trigger:security.maintain-daily running 0 0
Line:security.kev-triage live Procedure:security.kev-triage settle runbook Trigger:security.maintain-daily running 0 0
Line:security.osv-query live Procedure:security.osv-query settle runbook Trigger:security.maintain-daily running 0 0
Line:security.osv-unkeyed live Procedure:security.osv-unkeyed observe capture_landing running 0 0
Line:security.sbom-import.app live Procedure:security.sbom-import settle manual running 0 0
$ cruxible get Trigger:security.maintain-daily
trigger: Trigger:security.maintain-daily
lifecycle: live
sched: cron 0 14 * * *
next_fire: 2026-11-29T14:00:00Z
target: Runbook:security.maintain
next: cruxible get Trigger:security.maintain-daily --detail history
The SBOM import is manual: rerun cruxible runbook run security.start when
sbom.cdx.json changes. The daily Trigger fires while the daemon is running;
if the daemon was down during a scheduled fire, cruxible next surfaces a
trigger_instants_missed row so you know to run cruxible runbook run
security.maintain.
Step 6: Ask your questions and inspect evidence¶
What do we look at first? security.urgent_exposures lists every unjudged
exposure, sorting actively exploited vulnerabilities (CISA KEV) first and then
highest 30-day exploitation probability (EPSS score):
$ cruxible query --name security.urgent_exposures --limit 5
subject component cve_id epss_percentile epss_score inventory kev_date_added kev_due_date kev_ransomware_use occurrence scope flags
security.vulnerability/cve-2020-14343 pkg:pypi/pyyaml@5.1 CVE-2020-14343 0.94337 0.0624 sbom.cdx.json - - - sbom.cdx.json--pkg-pypi-pyyaml-5.1 required -
security.vulnerability/cve-2024-34069 pkg:pypi/werkzeug@2.1.2 CVE-2024-34069 0.93418 0.05352 sbom.cdx.json - - - sbom.cdx.json--pkg-pypi-werkzeug-2.1.2 required -
security.vulnerability/cve-2019-20477 pkg:pypi/pyyaml@5.1 CVE-2019-20477 0.93163 0.05114 sbom.cdx.json - - - sbom.cdx.json--pkg-pypi-pyyaml-5.1 required -
security.vulnerability/cve-2020-1747 pkg:pypi/pyyaml@5.1 CVE-2020-1747 0.92569 0.0469 sbom.cdx.json - - - sbom.cdx.json--pkg-pypi-pyyaml-5.1 required -
security.vulnerability/cve-2024-4340 pkg:pypi/sqlparse@0.3.1 CVE-2024-4340 0.91666 0.04166 sbom.cdx.json - - - sbom.cdx.json--pkg-pypi-sqlparse-0.3.1 required -
truncated: 176 more rows; next: cruxible query --name security.urgent_exposures --limit 5 --cursor q2.fa32fe523b94b5a4...
security.kev_triage_backlog is the same list limited to KEV-listed
vulnerabilities (empty here), and cruxible orient --section queries lists all
33 saved questions with their parameters.
What does each answer rest on? A vulnerability's card shows its live
values, and each Claim's evidence points directly to the admitted Capture. Here
the KEV Claim records that the catalog was read completely (count: 1808) and
does not list CVE-2020-14343, while the OSV Claim cites OSV's advisory and
fixed version:
cruxible get security.vulnerability/cve-2020-14343
cruxible get KEV_CLAIM_ID --detail evidence # Claim ID printed under listed_in above
cruxible get security.vulnerability/cve-2020-14343 --detail incoming
cruxible get OSV_CLAIM_ID --detail evidence # Claim ID printed by --detail incoming above
Example output (KEV verified absence and OSV advisory evidence)
$ cruxible get security.vulnerability/cve-2020-14343
security.vulnerability/cve-2020-14343 (live, 1 incoming)
cve_id CVE-2020-14343
epss_percentile 0.94337
epss_score 0.0624
epss_score_date 2026-11-28
listed_in (no value)
none of security.catalog/cisa-kev CLM-f20091080cf8... [supported]
$ cruxible get CLM-f20091080cf8... --detail evidence
value: {"none": "security.catalog/cisa-kev"}
capture CAP-a096b6392c8e CaptureContract:security.kev-catalog v1 source=cisa.kev.catalog observed=2026-11-28T16:21:25.270574+00:00 evidence: admitted
| {
| "title": "CISA Catalog of Known Exploited Vulnerabilities",
| "catalogVersion": "2026.11.27",
| "count": 1808,
...
rationale: Complete source establishes the declared inverse.
$ cruxible get security.vulnerability/cve-2020-14343 --detail incoming
security.component/pkg-pypi-pyyaml-5.1 security.component.affected_by CLM-e9d8f61cc651...
$ cruxible get CLM-e9d8f61cc651... --detail evidence
value: security.vulnerability/cve-2020-14343
capture CAP-dfd515e4f63f CaptureContract:security.osv-matches v1 source=osv.dev.query observed=2026-11-28T16:21:02.796126+00:00 evidence: admitted
...
rationale: OSV GHSA-8q59-q68h-6hv4 lists CVE-2020-14343 for pkg:pypi/pyyaml@5.1 (fixed in: 5.4).
What arrived in the inbox? cruxible next points straight to unread inbox
items:
$ cruxible next
repair line_inbox_unread Line:security.osv-unkeyed next=cruxible.inbox.list
repair: cruxible inbox list --line security.osv-unkeyed --status unread
$ cruxible inbox list
STATUS ITEM LINE KIND SEEN TITLE
unread INB-0573b8a3bf53 Line:security.osv-unkeyed post 1 count=10 matches=sha256:dfd515e4f63f...
Notice why security.exposure-attention.unjudged posted zero items above: its
default min_epss parameter is 0.1, and pygoat's highest EPSS score on this
run is 0.0624 (with zero KEV hits). If you want the inbox to page on lower
scores, adopt security with --param min_epss=0.05; the full worklist always
remains in security.urgent_exposures.
Step 7: Judge exposures (SDK, MCP, CLI, or security-audit skill)¶
A worklist row says OSV lists this vulnerability for this exact release and this inventory holds it. Whether the vulnerable code is reachable in your application is a judgment, governed by the kit's guidance Document:
$ cruxible get Document:security.guidance.dependency
document: security.guidance.dependency
title: Judging a dependency exposure
document_kind: security.guidance
media_type: text/markdown
size: 18267
revision: 1
links:
guides ClaimType:security.app_exposure.justification
guides ClaimType:security.app_exposure.rests_on
guides ClaimType:security.app_exposure.verdict
guides ClaimType:security.exposure.justification
next: cruxible get Document:security.guidance.dependency --detail body
In short: read the code that uses the package, and cite the passage that
decides it (by single-line quote PATH#TEXT, or by 1-indexed line range
FileEvidence(file=PATH, lines=(START, END)) / --evidence-file
PATH:START-END). A judgment is one write of two changes: define (create) the
security.app_exposure pair keyed by the occurrence and the vulnerability, and
set either its justification (not_affected, with a standard VEX reason
explaining why) or its verdict (affected). It is written with
accept="never", and reviewer inspects and approves it.
Judgment 1: PyYAML 5.1 (CVE-2020-14343) via typed Python SDK or MCP¶
pygoat pins PyYAML 5.1, which OSV lists for CVE-2020-14343 (arbitrary code
execution through yaml.full_load). The Django application this SBOM describes
never imports yaml: the only yaml.load in the repository lives in a
separate lab container with its own requirements. Write the judgment with the
typed World SDK (cruxible python uses the .cruxible/world.pyi stub):
from cruxible_client import Cruxible, FileEvidence
with Cruxible.connect() as cx:
w = cx.world()
outcome = (
w.security.app_exposure.define(
occurrence=w.security.occurrence["sbom.cdx.json--pkg-pypi-pyyaml-5.1"],
vulnerability=w.security.vulnerability["cve-2020-14343"],
)
.set(
justification="vulnerable_code_not_in_execute_path",
evidence=FileEvidence(
file="dockerized_labs/a9_uckv_lab/app.py#data = yaml.load(file.stream, Loader=yaml.Loader)"
),
)
.write(
because=(
"CVE-2020-14343: the only yaml.load in the repo is in dockerized_labs/a9_uckv_lab, "
"a separate container with its own requirements; the Django app this SBOM describes "
"never imports yaml."
),
accept="never",
)
)
outcome.status # 'awaiting_approval'
print(outcome) shows what it proposed. The cited file is catalogued
automatically by the write itself:
awaiting approval (generation 9, fa32fe523b94)
catalogued dockerized_labs/a9_uckv_lab/app.py (as doc-dockerized_labs-a9_uckv_lab-app.py)
create security.app_exposure/sbom.cdx.json--pkg-pypi-pyyaml-5.1--cve-2020-14343: created
set security.app_exposure/sbom.cdx.json--pkg-pypi-pyyaml-5.1--cve-2020-14343 justification: vulnerable_code_not_in_execute_path [CLM-357fa88e0244...; verdict supported]
+ subject security.app_exposure/sbom.cdx.json--pkg-pypi-pyyaml-5.1--cve-2020-14343
proposal: sha256:5fb9c967630f... (awaiting_external_approval)
awaiting: independent approval; approvers: reviewer
next: cx.proposal("sha256:5fb9c967630f...").approve(signer=cx.signer("reviewer"), reviewed=cx.proposal("sha256:5fb9c967630f...").review())
The same write over MCP is one cruxible_write call (the same change through a
different client; sent after the SDK write has landed, it sees the pair and
value already live and changes nothing):
{
"because": "CVE-2020-14343: the only yaml.load in the repo is in dockerized_labs/a9_uckv_lab, a separate container with its own requirements; the Django app this SBOM describes never imports yaml.",
"accept": "never",
"changes": [
{
"op": "create",
"label": "pair",
"subject_kind": "security.app_exposure",
"key": {
"occurrence": "security.occurrence/sbom.cdx.json--pkg-pypi-pyyaml-5.1",
"vulnerability": "security.vulnerability/cve-2020-14343"
}
},
{
"op": "set",
"subject": {"created": "pair"},
"field": "justification",
"value": "vulnerable_code_not_in_execute_path",
"evidence": {
"kind": "file",
"file": "dockerized_labs/a9_uckv_lab/app.py#data = yaml.load(file.stream, Loader=yaml.Loader)"
}
}
]
}
In its own session, reviewer reviews the proposal, sees the linked guidance
Document and the exact quoted line of code, and approves it:
$ CRUXIBLE_PRINCIPAL_ID=reviewer cruxible proposal review 5fb9c967630f
Proposal: sha256:5fb9c967630f...
Candidate: sha256:d3bc792938ce...
Why: CVE-2020-14343: the only yaml.load in the repo is in dockerized_labs/a9_uckv_lab, a separate container with its own requirements; the Django app this SBOM describes never imports yaml.
Required tier: governed_write; activation: snapshot
Approval: independent-principal, 1 distinct signer(s)
Guidance for ClaimType:security.app_exposure.justification: document:security.guidance.dependency (Judging a dependency exposure)
Changes: 5 created / 0 revised / 0 retired
capture-contract: 1 created / 0 revised / 0 retired
security.app_exposure: 4 created / 0 revised / 0 retired
Values (4):
create security.app_exposure/sbom.cdx.json--pkg-pypi-pyyaml-5.1--cve-2020-14343: created
set security.app_exposure/sbom.cdx.json--pkg-pypi-pyyaml-5.1--cve-2020-14343 justification: vulnerable_code_not_in_execute_path [CLM-357fa88e0244...; verdict supported; role normative]
cites CAP-802d2b62bc6a dockerized_labs/a9_uckv_lab/app.py#data = yaml.load(file.stream, Loader=yaml.Loader)
| data = yaml.load(file.stream, Loader=yaml.Loader)
...
$ CRUXIBLE_PRINCIPAL_ID=reviewer cruxible proposal approve 5fb9c967630f --yes
Signing sha256:d3bc792938ce... (sha256:5fb9c967630f...): 5 changes (5 create)
Approved sha256:d3bc792938ce... (sha256:5fb9c967630f...) as reviewer
Activated at 1554fa5943e4...
A reviewer that disagrees rejects instead (cruxible proposal reject
PROPOSAL_ID --reason TEXT), and the author writes again.
Judgments 2 and 3: Django 4.2 (CVE-2023-36053, CVE-2023-46695) via CLI¶
An exposure the code does reach gets verdict: affected, citing the passage on
the call path. pygoat's registration form validates attacker-supplied input
with Django's EmailField (CVE-2023-36053) and inherits UserCreationForm's
UsernameField (CVE-2023-46695, applicable on Windows, which pygoat
documents running on). As a YAML file for cruxible write:
# cve-2023-36053.yaml
because: "CVE-2023-36053: NewUserForm validates an attacker-supplied email with EmailField on django 4.2 (fixed in 4.2.3); the registration view reaches EmailValidator."
changes:
- op: create
label: pair
subject_kind: security.app_exposure
key: {occurrence: security.occurrence/sbom.cdx.json--pkg-pypi-django-4.2, vulnerability: security.vulnerability/cve-2023-36053}
- op: set
subject: {created: pair}
field: verdict
value: affected
evidence: {kind: file, file: "introduction/forms.py#email = forms.EmailField(required=True)"}
$ cruxible write cve-2023-36053.yaml --no-accept
awaiting approval (generation 10, 1554fa5943e4)
catalogued introduction/forms.py (as doc-introduction-forms.py)
create security.app_exposure/sbom.cdx.json--pkg-pypi-django-4.2--cve-2023-36053: created
set security.app_exposure/sbom.cdx.json--pkg-pypi-django-4.2--cve-2023-36053 verdict: affected [CLM-65bbaa6a7191...; verdict supported]
+ subject security.app_exposure/sbom.cdx.json--pkg-pypi-django-4.2--cve-2023-36053
proposal: sha256:0a09bab820a7... (awaiting_external_approval)
awaiting: independent approval; approvers: reviewer
next: cruxible proposal approve sha256:0a09bab820a7... --signer-id reviewer
$ CRUXIBLE_PRINCIPAL_ID=reviewer cruxible proposal approve 0a09bab820a7 --yes
Approved sha256:8a00a53a7b3b... (sha256:0a09bab820a7...) as reviewer
Activated at d40ffdf24bff...
Recording CVE-2023-46695 the same way (citing
introduction/forms.py#class NewUserForm(UserCreationForm):, approved at
02227d326a74) moves all three pairs off the unjudged worklist into their
respective queries:
$ cruxible query --name security.app_not_affected_judgments
subject app_exposure component cve_id inventory justification flags
security.app_exposure/sbom.cdx.json--pkg-pypi-pyyaml-5.1--cve-2020-14343 sbom.cdx.json--pkg-pypi-pyyaml-5.1--cve-2020-14343 pkg:pypi/pyyaml@5.1 CVE-2020-14343 sbom.cdx.json vulnerable_code_not_in_execute_path -
$ cruxible query --name security.confirmed_exposures
subject app_exposure component cve_id epss_percentile epss_score inventory kev_date_added kev_due_date kev_ransomware_use occurrence scope flags
security.app_exposure/sbom.cdx.json--pkg-pypi-django-4.2--cve-2023-36053 sbom.cdx.json--pkg-pypi-django-4.2--cve-2023-36053 pkg:pypi/django@4.2 CVE-2023-36053 0.89356 0.03318 sbom.cdx.json - - - sbom.cdx.json--pkg-pypi-django-4.2 required -
security.app_exposure/sbom.cdx.json--pkg-pypi-django-4.2--cve-2023-46695 sbom.cdx.json--pkg-pypi-django-4.2--cve-2023-46695 pkg:pypi/django@4.2 CVE-2023-46695 0.79947 0.01873 sbom.cdx.json - - - sbom.cdx.json--pkg-pypi-django-4.2 required -
When an inbox item from security.exposure-attention.unjudged prompted the
triage, record the decision against it with cruxible inbox link ITEM --subject
security.app_exposure/... (or dismiss / ack).
Automate triage and code audits with the security-audit skill¶
Instead of writing each judgment by hand, install the kit's security-audit
skill into your coding agent (works across Claude Code, Codex, Cursor, and 75+
agents):
Or pull the verified kit bundle and copy the skill file directly:
cruxible kit pull security --out .cruxible/kits/security
mkdir -p .claude/skills/security-audit
cp .cruxible/kits/security/skills/security-audit/SKILL.md .claude/skills/security-audit/SKILL.md
Ask your agent to run either loop with /security-audit:
- Dependency triage: "Use the
security-auditskill to triage the top unjudged exposures insecurity.urgent_exposures, check whether each vulnerable path is reachable in this repo, and propose code-cited verdicts." - Code audit: "Use the
security-auditskill to partition this repo's entry points into coverage units, run isolated Hunter sessions to report findings with exact code citations, and dispatch a fresh Verifier session to judge each finding."
The skill reads the live governed guidance Documents
(security.guidance.dependency, security.guidance.hunter,
security.guidance.verifier, security.guidance.coverage), authors typed
Claims via cruxible python, and leaves proposals for an independent reviewer
to approve.
Step 8: Export OpenVEX and keep facts current¶
Export a deterministic OpenVEX triage report (or --format cyclonedx-vex)
directly from accepted state so downstream teams and scanners know which listed
vulnerabilities affect your app and why. Every statement carries the exact
generation, Git OID, Claim IDs, and Capture IDs that back it:
Excerpt from vex.openvex.json showing our approved not_affected judgment
for CVE-2020-14343:
{
"impact_statement": "CVE-2020-14343: the only yaml.load in the repo is in dockerized_labs/a9_uckv_lab, a separate container with its own requirements; the Django app this SBOM describes never imports yaml.",
"justification": "vulnerable_code_not_in_execute_path",
"products": [
{
"@id": "urn:cruxible:inventory:sbom.cdx.json",
"subcomponents": [
{
"@id": "pkg:pypi/pyyaml@5.1"
}
]
}
],
"status": "not_affected",
"status_notes": "CVE-2020-14343: ... Cruxible inst_d82a0b4a7e4a4352 generation 12 (git 02227d326a74...): app_judgment. Claims: CLM-357fa88e0244... (security.app_exposure.justification); CLM-e9d8f61cc651... (security.component.affected_by); CLM-fcbaf96c3c1f... (security.occurrence.scope). Evidence: CAP-802d2b62bc6a ...; CAP-dfd515e4f63f ...; CAP-738dfea9a785 ...",
"vulnerability": {
"@id": "https://nvd.nist.gov/vuln/detail/CVE-2020-14343",
"name": "CVE-2020-14343"
}
}
On subsequent refreshes (security.maintain, run daily by
Trigger:security.maintain-daily or manually), unchanged facts settle zero
writes and already-judged pairs stay off the queue:
$ cruxible runbook run security.maintain
Runbook security.maintain: completed [RBR-79c7753b3510...]
1 succeeded Line:security.osv-query (RUN-3c8e795520de...)
written 0 (settled 0, proposed 0); unchanged 181; refused 0; inbox 0
2 succeeded Line:security.kev-triage (RUN-f934f1c46dea...)
written 0 (settled 0, proposed 0); unchanged 181; refused 0; inbox 0
3 succeeded Line:security.epss-triage (RUN-89ce8c8a0117...)
written 0 (settled 0, proposed 0); unchanged 543; refused 0; inbox 0
4 succeeded Line:security.exposure-attention.unjudged (RUN-4be07236185a...)
written 0 (settled 0, proposed 0); unchanged 0; refused 0; inbox 0
5 succeeded Line:security.exposure-attention.contested (RUN-622b2b02d05f...)
written 0 (settled 0, proposed 0); unchanged 0; refused 0; inbox 0
When a source fails: unknown is not "none"¶
Every answer is one of three things, and it matters which:
- Found: a source was read and lists the problem.
- None: a source was read completely and does not list it, like the KEV Claim above (recorded with the admitted Capture it rests on).
- Unknown: nobody has read it yet, or the read failed or was incomplete.
A failed or incomplete read never becomes "not affected". KEV records a watched
CVE as not listed only when the catalog's records match its stated count; an
OSV answer that failed or came back incomplete never retires an affected_by
Claim; an EPSS request that fails leaves the run incomplete, and a CVE FIRST
has not scored yet gets no score. runbook run marks any step that needs
attention (an incomplete one included) with !. Inspect a Line's runs and an
individual run's node counts directly:
Example output (run history and per-node counts)
$ cruxible get Line:security.osv-query --detail runs
RUN-3c8e795520de... succeeded started 2026-11-28T16:27:19.381204+00:00 nodes_done=6 Procedure:security.osv-query
RUN-70ce110663f4... succeeded started 2026-11-28T16:20:52.271961+00:00 nodes_done=6 Procedure:security.osv-query
$ cruxible get RUN-70ce110663f4...
run: RUN-70ce110663f4...
procedure: Procedure:security.osv-query
status: succeeded
nodes_done: 6
nodes_total: 6
...
nodes:
components read succeeded: 32 rows
distro read succeeded: 0 rows
osv call succeeded: 338 captures CAP-f0765d9ab6a1 CAP-9f8ba1ea65b9 ...
matched call succeeded: 1 capture CAP-dfd515e4f63f
affected extract succeeded: 181 records, complete_when 181/181
write claims succeeded: 181 written, 181 subjects created; settled
One gap has no worklist row: the kit keys vulnerabilities by CVE ID, so an OSV
advisory with no CVE alias (an ecosystem-only advisory such as GitHub's
GHSA-... or Python's PYSEC-...) has no vulnerability Subject and no Claim.
The security.osv-unkeyed Line posts one summary inbox item for them, pointing
at the OSV match document that lists every unkeyed advisory. On pygoat that is
10 advisories (for certifi, cryptography, pillow, pyjwt, and
sqlparse):
Example output (10 unkeyed GHSA/PYSEC advisories)
$ cruxible inbox list --line security.osv-unkeyed
STATUS ITEM LINE KIND SEEN TITLE
unread INB-0573b8a3bf53 Line:security.osv-unkeyed post 1 count=10 matches=sha256:dfd515e4f63f...
$ cruxible inbox get INB-0573b8a3bf53
Item: INB-0573b8a3bf53...
Procedure: Procedure:security.osv-unkeyed node post
Seen 1 time(s)
...
{
"count": 10,
"matches": "sha256:dfd515e4f63f...",
"sample": [
{
"osv_id": "GHSA-6q48-6c7w-9gw2",
"purl": "pkg:pypi/certifi@2022.12.7"
},
{
"osv_id": "PYSEC-2026-4320",
"purl": "pkg:pypi/certifi@2022.12.7"
},
...
],
"set_digest": "sha256:22f6ca2f0b16..."
}
cruxible capture read <matches> returns the full match document
(Reading a Capture's bytes).
Read the advisories and decide (upgrade, or ack the item).
What's next¶
cruxible nextlists what needs attention, including judgments whose cited code changed (citation_drifted). Keeping knowledge current explains each kind of row.- The security kit README
covers the rest:
it.assetdeployment context,security:sarifscanner intake, package-level judgments, and the full audit loop (Hunter, Verifier, and coverage units). - Concepts explains the ideas behind what you just did, and Review and governance how a second agent's review works.
- For AI agents connects an agent to the same instance.