← all kits

Security

kit · v1.3.0

10 kinds · 45 fields · 30 queries · 10 Procedures · 4 guidance docs · 4 capabilities

owns security. · requires base 1.0.0

This kit is a starting point, not a schema you have to adopt. It seeds an instance with security vocabulary, guidance Documents, reference pages and an automation template you tailor. From there the instance is yours to grow: revise the kit's definitions, add your own, and adapt or replace its automation, all by ordinary authoring. Facts copied from sources settle automatically; judgments always need review.

source on GitHub →hands-on guide →

Kinds and fields

requires captured evidence10
security.app_exposure

An (occurrence, vulnerability) pair an agent judged for one inventory, keyed by its ends.

  • justificationcomponent_not_present | vulnerable_code_not_in_execute_path | vulnerable_code_cannot_be_controlled_by_adversary | inline_mitigations_already_existThe VEX justification of an agent's app-level not_affected judgment: why this inventory's use of the component is not affected. It silences this occurrence only and never states the global none. A justification is the not_affected judgment; beside a verdict of affected it is no judgment.
  • occurrence→ security.occurrenceThe occurrence (one inventory's component) judged; a key part.
  • rests_on→ security.code_fact (many)A codebase fact this judgment was made in light of. Core does not act on it: when the fact changes, run the resting_on Query for it. Never settled by a Mandate.
  • verdictaffected | not_affectedAn agent's verdict on this inventory's exposure. affected stands alone, with no justification, and cites the reachability evidence (the code that reaches the vulnerable function). not_affected goes with a justification, which alone also means not_affected. A verdict of affected beside a justification is no judgment: the pair stays in the worklists. Never settled by a Mandate.
  • vulnerability→ security.vulnerabilityThe vulnerability judged; a key part.
security.catalog

A published vulnerability catalog (e.g. cisa-kev), named by its id.

  • catalog_idtextThe catalog's short id, e.g. cisa-kev; the catalog's key.
security.code_fact

One thing true of a repository's code that security judgments rest on.

  • categorycontrol | invariant | boundary | hazardWhat sort of fact it is. Cites the notes section stating the fact, where it holds and its known exceptions. Never settled by a Mandate.
  • holdsyes | partly | noWhether the fact holds in the code, citing the passage that decides it (path#anchor); it drifts when that passage changes. Never settled by a Mandate.
  • repotextThe repository as host/owner/repo, casefolded (as a finding's repo); with topic, the fact's key.
  • topictextWhat the fact is about, as a short stable slug in the agent's words (authn-middleware, sql-parameterisation, tenant-id-source), spelled the same every run; with repo, the fact's key.
security.component

One package release, named by its purl@version (R1, R12).

  • affected_by→ security.vulnerability (many)A vulnerability OSV lists for the component's exact purl@version (OSV's own version matching). None of V is an agent's package-level not_affected judgment (normative, own words), which OSV cannot override.
  • purltextThe component's package URL with its version (qualifiers dropped); the component's key.
security.coverage_unit

One audit coverage unit: one surface of one repository checked for one concern.

  • concerntextWhat the surface was checked for, in the auditor's words or a reference attack class (access-control, injection, ssrf, a named state machine); with repo and surface, the unit's key.
  • repotextThe repository as host/owner/repo, casefolded (as a finding's repo); with surface and concern, the unit's key.
  • rests_on→ security.code_fact (many)A codebase fact this judgment was made in light of. Core does not act on it: when the fact changes, run the resting_on Query for it. Never settled by a Mandate.
  • statuschecked | deferred | blocked | out_of_scopeWhat an audit agent did with the unit, in its own words or citing the examined passage. Never settled by a Mandate.
  • surfacetextThe entry point or boundary checked, as a canonical code reference: path#symbol, or a route (src/router.ts#POST /users/:id). Spelled the same every run; with repo and concern, the unit's key.
security.exposure

A (component, vulnerability) pair an agent judged at package level, keyed by its ends.

  • component→ security.componentThe component (package release) judged; a key part.
  • justificationvulnerable_code_not_presentThe VEX justification of an agent's package-level not_affected judgment, stated with affected_by none of the vulnerability on the component: the vulnerable code is not in this package release, for every inventory.
  • vulnerability→ security.vulnerabilityThe vulnerability judged; a key part.
security.finding

One weakness of one kind at one place in one repository's code.

  • fixed_bytextThe commit (40-hex SHA) that fixes the finding, as an agent states it.
  • found_in→ security.coverage_unit (many)The coverage unit an audit agent was working when it found the finding. Never settled by a Mandate.
  • justificationno_boundary_crossed | not_attacker_controlled | not_reachable | rule_misfire | sanitized | test_or_dead_codeWhy a finding is false_positive or not_exploitable, as an agent judged it.
  • locustextWhere in the code: <path>#<locator>, the first tier that applies (symbol, snippet:<12 hex>, line-hash:<the tool's>). Never a line number; with repo and weakness, the finding's key.
  • repotextThe repository as host/owner/repo, casefolded; with weakness and locus, the finding's key.
  • reported_attextWhere the finding was reported, as path:line: by the latest scan, or by an audit agent citing the code there. A moved finding keeps its key and this revises; a full scan that no longer reports it retires the scan's.
  • reported_bytext (many)A finder that reported the finding: a tool (semgrep, codeql) from a SARIF scan, or audit for an audit agent citing the code.
  • rests_on→ security.code_fact (many)A codebase fact this judgment was made in light of. Core does not act on it: when the fact changes, run the resting_on Query for it. Never settled by a Mandate.
  • ruletext (many)A rule that reported the finding: tool:ruleId from a SARIF scan, or the concern an audit agent was checking.
  • severitylow | medium | high | criticalHow severe the finding is: a scan's severity (security-severity, else the level), or an agent's normative judgment, which a later scan never overrides.
  • verdictconfirmed | false_positive | not_exploitableAn agent's verdict: confirmed (real and exploitable), false_positive (no such weakness here) or not_exploitable (real, but not exploitable here). A confirmed verdict cites the observed run output (a catalogued test log or output file); a refutation cites the agent's own words. Never settled by a Mandate.
  • verificationpresent | fixedpresent when a scan reports the finding; fixed when a full scan of the rules that reported it no longer does. fixed needs complete input.
  • weaknesstextCWE-<n>, the smallest CWE the reporting rule names, else RULE:<tool>/<ruleId>; with repo and locus, the finding's key.
security.inventory

What one SBOM describes (an application, an image, an environment).

  • inventory_idtextWhat one SBOM describes, named by its metadata.component purl (or, without one, by the SBOM's workspace path); the inventory's key.
security.occurrence

A component's place in one inventory, keyed by (inventory, component); its scope is the membership fact.

  • component→ security.componentThe component this occurrence places in its inventory; a key part.
  • inventory→ security.inventoryThe inventory this occurrence is in; a key part.
  • scoperequired | optional | excludedThe component's CycloneDX scope in this inventory's SBOM (required when the SBOM states none). The membership fact: live while the SBOM lists the component, retired when it no longer does.
security.vulnerability

A CVE, named by its id.

  • cve_idtextThe CVE identifier; the vulnerability's key.
  • epss_percentiledecimalThe EPSS score's percentile among all scored CVEs (percentile).
  • epss_scoredecimalFIRST's EPSS probability of exploitation in the next 30 days (epss).
  • epss_score_datedateThe date FIRST computed the EPSS score and percentile (date).
  • kev_date_addeddateThe date CISA added the vulnerability to the KEV catalog (dateAdded).
  • kev_due_datedateThe KEV remediation due date for federal agencies (dueDate).
  • kev_ransomware_useKnown | UnknownWhether KEV reports known ransomware campaign use (knownRansomwareCampaignUse).
  • listed_in→ security.catalog (many)A catalog that lists the vulnerability, from the catalog's own retained document; none of a catalog means a complete read of it did not list it.

Named queries

30

security.app_exposures_on_weakened_facts · repo

The security.app_exposure judgments to read again: each rests on at least one codebase fact of one repository that holds only partly or not at all, listed once however many. security.weakened_causes_of_app_exposures names the facts.

security.app_exposures_resting_on · fact

The security.app_exposure judgments resting on one codebase fact (rests_on): read them again when the fact changes or stops holding.

security.app_not_affected_judgments

Every app-level not_affected judgment: the inventory, the component, the vulnerability and the VEX justification.

security.code_facts · repo

The codebase facts of one repository: topic, category and whether each holds. Read them before re-deriving how the code does something.

security.confirmed_exposures

The 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. The fixed versions are in the OSV match document the component's affected_by Claim cites.

security.contested_exposures

The exposures holding a judgment Claim that does not count (a contested verdict or justification, or an affected verdict beside a justification), KEV-listed first, then by EPSS score.

security.coverage_plan · repo

The coverage units of one repository an audit should take up: never checked (no status), deferred or blocked. A checked unit whose passage changed is not here: next lists it as citation_drifted.

security.coverage_units_on_weakened_facts · repo

The security.coverage_unit judgments to read again: each rests on at least one codebase fact of one repository that holds only partly or not at all, listed once however many. security.weakened_causes_of_coverage_units names the facts.

security.coverage_units_resting_on · fact

The security.coverage_unit judgments resting on one codebase fact (rests_on): read them again when the fact changes or stops holding.

security.covered_app_exposures

Every occurrence a vulnerability affects that an agent judged not_affected for its inventory (a resolved app-level judgment), KEV-listed first, then by EPSS score.

security.covered_package_exposures

Every occurrence holding a scope of a component an agent judged not_affected at package level (a resolved justification): one row per inventory holding it, KEV-listed first, then by EPSS score. An occurrence whose own resolved app-level verdict is affected is confirmed, not covered.

security.finding_verdicts · repo

Every finding of one repository with the agents' verdicts and the scans' verification.

security.findings_by_unit · unit

The findings found in one coverage unit (found_in), with their verdicts.

security.findings_on_weakened_facts · repo

The security.finding judgments to read again: each rests on at least one codebase fact of one repository that holds only partly or not at all, listed once however many. security.weakened_causes_of_findings names the facts.

security.findings_resting_on · fact

The security.finding judgments resting on one codebase fact (rests_on): read them again when the fact changes or stops holding.

security.inventory_components · inventory

One inventory's current components: each occurrence holding a scope, with the component's purl and its scope.

security.inventory_unjudged_exposures_over · inventory, min_epss

The exposures in one inventory (inventory_id) that hold no judgment Claim and whose vulnerability is KEV-listed, has an EPSS score at or above min_epss, or has no EPSS score yet; KEV-listed first, then by EPSS score. security.unjudged_exposures_over for one inventory.

security.kev_triage_backlog

The KEV-listed exposures nobody has judged yet, by EPSS score; a pair under investigation stays listed.

security.not_affected_judgments

Every package-level not_affected judgment: the component, the vulnerability and the VEX justification.

security.osv_components

Every component some inventory holds (an occurrence with a scope), once each: the components OSV is asked about.

security.pair_without_judgment_exposures

The exposures nobody has judged whose judgment pair exists but holds no judgment Claim: either a judgment was withdrawn (the pair stays as history) or the pair was created before any judgment, for instance to link a codebase fact with rests_on. A Query sees no history, so the rows cannot tell the two apart. A judgment whose cited code changed still stands; next lists it, not this Query.

security.sarif_held_findings · repo

Every finding the instance holds for one repository: the held rows the SARIF import receives.

security.unjudged_exposures

The exposures nobody has judged that hold no judgment Claim at all, KEV-listed first, then by EPSS score.

security.unjudged_exposures_over · min_epss

The exposures, in every inventory, that hold no judgment Claim at all and whose vulnerability is KEV-listed, has an EPSS score at or above min_epss, or has no EPSS score yet; KEV-listed first, then by EPSS score. A pair below min_epss, or whose EPSS score is contested, is listed only when KEV-listed; security.unjudged_exposures and security.urgent_exposures keep the whole worklist.

security.urgent_exposures

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

The CVE id of every watched vulnerability: the ids the EPSS Procedure asks about.

security.watched_vulnerabilities

Every vulnerability that affects a component of an imported inventory.

security.weakened_causes_of_app_exposures · repo

One row per security.app_exposure judgment and weakened codebase fact it rests on (a fact of one repository that holds only partly or not at all): the causes behind security.app_exposures_on_weakened_facts.

security.weakened_causes_of_coverage_units · repo

One row per security.coverage_unit judgment and weakened codebase fact it rests on (a fact of one repository that holds only partly or not at all): the causes behind security.coverage_units_on_weakened_facts.

security.weakened_causes_of_findings · repo

One row per security.finding judgment and weakened codebase fact it rests on (a fact of one repository that holds only partly or not at all): the causes behind security.findings_on_weakened_facts.

Procedures

10

security.epss-triage · 5 steps

Ask FIRST's EPSS API for the watched CVEs and write each one's score, percentile and score date.

security.exposure-attention.contested · 3 steps

Post one inbox item per contested urgent exposure (a judgment is on the pair but none counts), from security.contested_exposures, KEV-listed first, then by EPSS score.

security.exposure-attention.unjudged-inventory · 3 steps

Post one inbox item per exposure in the Line's inventory that nobody has judged and whose vulnerability is KEV-listed, has an EPSS score at or above min_epss, or has no EPSS score yet (security.inventory_unjudged_exposures_over); KEV-listed first, then by EPSS score.

security.exposure-attention.unjudged · 3 steps

Post one inbox item per exposure, in every inventory, that nobody has judged and whose vulnerability is KEV-listed, has an EPSS score at or above min_epss, or has no EPSS score yet (security.unjudged_exposures_over); KEV-listed first, then by EPSS score.

security.kev-triage · 4 steps

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

security.osv-query · 5 steps

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

security.osv-unkeyed · 4 steps

When a derived OSV match document lists advisories with no CVE alias, post one summary item to the Line's inbox: how many (advisory, component) pairs, a sample, and the document holding them all. No Claim records them until OSV lists a CVE.

security.sarif-attention · 4 steps

Post each regression and location gap in one derived SARIF findings document to the Line's inbox.

security.sarif-import · 5 steps

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

security.sbom-import · 4 steps

Read one CycloneDX JSON SBOM from the workspace and write each component's occurrence in the inventory it describes, with its scope; a component the SBOM no longer lists has its scope retired.

Capabilities

4

security.osv.match@1 · pure

Matches this run's OSV responses to the components asked about and returns one document of (component, CVE) pairs, each with its advisory and the versions OSV lists as fixed. A component OSV did not answer in full is not in queried, is listed in not_checked with why, and is never clean.

security.osv.query@1 · external_read

Asks OSV.dev which advisories affect each component (purl@version) and returns every response as canonical JSON, one Capture each. OSV does the version matching; distro packages are never asked.

security.sarif.findings@1 · pure

Reads this run's SARIF 2.1.0 logs for one repository, with the findings the instance holds for it, and returns one document of findings keyed by repository, weakness and locus, each present or fixed, plus attention records for regressions and results it could not place. Only a full run (every invocation succeeded and the run declares cruxible.coverage full) covers a held finding, and only a covered finding the logs no longer report is fixed: a partial scan marks nothing fixed. A result it cannot key is a location gap and taints its rule, which then covers nothing in this scan. A CVE or GHSA result in a manifest or lockfile is left to the SBOM loop, never a finding.

security.sbom.components@1 · pure

Reads one CycloneDX JSON SBOM and returns one document naming the inventory it describes and each distinct component by purl, with its scope. A component with no purl is counted but never listed, so the count marks the listing incomplete and absence retires nothing.

Providers

3

cruxible-provider-web 0.7.0 · search.web, web.fetch, web.fetch.pages, web.render, web.render.dom

security-osv-provider 0.1.0.dev0 · osv.match, osv.query, sbom.components

security-sarif-provider 0.1.0.dev0 · sarif.findings

Guidance

4

security.guidance.coverage

Keeping audit coverage

security.guidance.dependency

Judging a dependency exposure

security.guidance.hunter

Reporting a security finding

security.guidance.verifier

Judging a security finding

Automation template

7

automation.json is never installed: you copy it, tailor it, submit it for review, and enable its Lines. It holds 7 Lines, 8 Mandates, 2 Triggers and 2 Runbooks.

security.start · Runbook

Seed a fresh instance: import the SBOM, ask OSV what affects it, read KEV and EPSS for what it found, then post to the inbox the pairs nobody has judged that are KEV-listed, have an EPSS score at or above the attention Line's min_epss or have no EPSS score yet, and the pairs whose judgment does not count. The whole worklist stays in security.urgent_exposures. OSV advisories with no CVE id get one summary inbox item from security.osv-unkeyed, which its Trigger security.osv-matches-landed runs on each OSV result once the Line is enabled.

security.maintain · Runbook

Daily refresh: ask OSV what affects the inventory, read KEV and EPSS for what it found, then post to the inbox the pairs nobody has judged that are KEV-listed, have an EPSS score at or above the attention Line's min_epss or have no EPSS score yet, and the pairs whose judgment does not count. The whole worklist stays in security.urgent_exposures. OSV advisories with no CVE id get one summary inbox item from security.osv-unkeyed, which its Trigger security.osv-matches-landed runs on each OSV result once the Line is enabled.

security.kev-triage · Line · runs security.kev-triage · at most settle

security.epss-triage · Line · runs security.epss-triage · at most settle

security.sbom-import.app · Line · runs security.sbom-import · at most settle

security.osv-query · Line · runs security.osv-query · at most settle

security.osv-unkeyed · Line · runs security.osv-unkeyed · at most observe

security.exposure-attention.unjudged · Line · runs security.exposure-attention.unjudged · at most observe

security.exposure-attention.contested · Line · runs security.exposure-attention.contested · at most observe

security.osv-matches-landed · Trigger · security.osv-unkeyed · when a security.osv-matches capture lands

security.maintain-daily · Trigger · security.maintain · cron 0 14 * * *