Security kit
Automatedv1.4.0 for Cruxible 0.6Triage dependency vulnerabilities and code findings. It imports an SBOM, asks OSV, CISA KEV and EPSS about it, and keeps every judgment tied to the code it cites.
It previews first and writes nothing. Add --commit --at ID with the id it prints to propose the kit.
it. security.Ontology
A field on one kind names a Subject of anotherSelect a kind to open its fields
In the Python SDK
from cruxible_client import Cruxible, FileEvidence
cx = Cruxible.connect()
sec = cx.world().security
occ = sec.occurrence["sbom--pkg-pypi-pyyaml-5.1"]
pair = sec.app_exposure.define(
occurrence=occ,
vulnerability=sec.vulnerability["cve-2020-14343"],
justification="vulnerable_code_not_in_execute_path",
evidence=FileEvidence(file="labs/app.py#yaml.load("),
)
pair.write(
because="The Django app never imports yaml.",
accept="never", # waits for reviewer sign-off
)Automated and governed
Settled from sources, by the kit's Lines once you enable them
epss-triageAsk FIRST's EPSS API for the watched CVEs and write each one's score, percentile and score date.
vulnerability epss_score epss_percentile epss_score_date
kev-triageRead the CISA KEV catalog and write, for each watched CVE, whether it is listed, its dates and its ransomware use; only a complete read records a CVE as not listed.
vulnerability listed_in kev_date_added kev_due_date kev_ransomware_use
osv-queryAsk OSV about every inventoried component and write the vulnerabilities OSV lists for its exact purl@version; for a component OSV answered in full, a vulnerability it no longer lists is retired.
component affected_by
sarif-importRead one SARIF file from the workspace and write the findings it reports for the Line's repository; only a full scan marks a held finding fixed.
finding rule reported_by severity reported_at verification
sbom-importRead one CycloneDX or SPDX 2.x JSON SBOM from the workspace and write each component's occurrence in the inventory it describes, with its scope (and, for a distro package, the OSV source package it is asked as); a component the SBOM no longer lists has its scope retired.
occurrence scope osv_package
Left to agents and people, as judgments that go through review
- assetcriticality environment exposure owner title
- app_exposurejustification rests_on verdict
- code_factcategory holds
- coverage_unitrests_on status
- exposurejustification
- findingfixed_by found_in justification rests_on verdict
- inventoryasset
Questions to ask it first
Every occurrence (an inventory's component) a vulnerability affects that nobody has judged, KEV-listed first, then by EPSS score; a package-level or app-level not_affected judgment or an affected verdict removes it.
security.urgent_exposuresThe KEV-listed exposures nobody has judged yet, by EPSS score; a pair under investigation stays listed.
security.kev_triage_backlogThe confirmed exposures to remediate or escalate: every occurrence an agent judged affected whose SBOM still lists the component, KEV-listed first, then by EPSS score.
security.confirmed_exposuresEvery current app-level not_affected judgment: the inventory, the component, the vulnerability and the VEX justification, while the inventory's SBOM still lists the component (its occurrence holds a scope).
security.app_not_affected_judgmentsThe coverage units of one repository an audit should take up: never checked (no status), deferred or blocked.
security.coverage_plan