Skip to main content

Output format versions

Vulkro emits every machine-readable format below at a pinned specification version. The table is generated from the emitter constants in src/output/ so it can never claim a version the binary does not actually write.

  • Source of truth: src/output/format_spec.rs, fed by src/output/sarif.rs and src/output/sbom.rs.
  • Regenerate: vulkro formats --format markdown, then paste the output between the two GENERATED FORMAT VERSIONS markers below.
  • Guard: tests/format_docs_drift.rs::output_format_version_table_matches_code

The website repository mirrors this table into its own output-formats.md page, which carries the surrounding prose. If the two differ, this one is canonical: it is the one CI checks against the code.

Format--formatSpec versionSpecificationExtension
SARIFsarif2.1.02.1.0.sarif
CycloneDX SBOMcyclonedx1.61.6.json
CycloneDX SBOMcyclonedx-1.71.71.7.json
CycloneDX CBOMcbom1.61.6.json
CycloneDX CBOMcbom-1.71.71.7.json
CycloneDX ML-BOM (AIBOM)aibom1.61.6.json
SPDX SBOMspdxSPDX-2.3SPDX-2.3.json
SPDX SBOMspdx3SPDX-3.0.1SPDX-3.0.1.json
OpenVEXopenvex0.2.00.2.0.json
CycloneDX VEXcyclonedx-vex1.61.6.json
JUnit XMLjunitAnt/Surefire (de-facto)Ant/Surefire (de-facto).xml

Vulkro's own documents: format_version​

The Core --format json document and the --format ndjson summary line carry a top-level "format_version": 1. It is the version of Vulkro's own output shape (the SARIF and SBOM formats above carry their standard's version instead). It changes only when an existing field is renamed, removed or changes type, which also needs a deprecation release (CLAUDE.md rule 11). Adding a key does not change it, so a consumer should ignore keys it does not know. The schema key in the JSON document is something else: the database schema map the scan found in the project.

vulkro-sf JSON documents carry their own schema_version (currently 1), unchanged.

Stable output: the one volatile field​

Two scans of the same tree with the same binary produce the same JSON, NDJSON and SARIF bytes except for one field: scanned_at (RFC 3339), which the NDJSON summary also uses as scan_id. Ids are content hashes and every array has a fixed order. To make the whole document byte-identical, for a cache key or a baseline diff, pin the clock:

vulkro scan . --format json --no-timestamp # or VULKRO_DETERMINISTIC=1
SOURCE_DATE_EPOCH=1700000000 vulkro scan . --format json # pin to an instant

--no-timestamp sets scanned_at to 1970-01-01T00:00:00+00:00.

Deprecated: reachability.graph_built_at is no longer written (0.37.0). It was an optional debugging field serialised as {"secs_since_epoch", "nanos_since_epoch"} and duplicated scanned_at. It was always optional, so a consumer that read it already had to handle its absence; read scanned_at instead.

Error documents​

When a command is asked for --format json, ndjson or sarif (or --json) and fails, stdout carries a machine-readable error document instead of being empty, so a CI step that parses the output gets a reason, not a parse error. The human message is still on stderr, and the exit code is unchanged.

Exiterror.reasonWhen
1license_requiredno licence on this machine (stderr ends with vulkro: license_required)
2bad_argumentsan unknown flag, a bad value, a missing argument
2path_not_founda path the command needs does not exist
2permission_denieda path exists but cannot be read or written
2config_invalidvulkro.toml or a rule file could not be parsed
2io_errorany other read or write failure
2network_errora refused or failed network call (for example under --offline)
2internal_errora crash inside the scanner (a bug: please report it)
2not_salesforce_projectvulkro-sf scan only: the path holds no Salesforce source or metadata and --force was not passed
2already_existsthe command would overwrite a file that exists and --force was not passed (vulkro-sf rules new)
2errorany other operational error

Shapes:

{"format_version": 1, "error": {"reason": "path_not_found", "message": "...", "product": "vulkro", "exit_code": 2}}
  • ndjson: the same object on one line with "type": "error".
  • sarif: a valid SARIF 2.1.0 log with no results; runs[0].invocations[0] has executionSuccessful: false, exitCode: 2 and one toolExecutionNotifications entry whose descriptor.id is the reason.
  • The licence refusal (license_required) keeps its existing shape, which also carries machine_id and billing_url.

SARIF tool identity​

runs[0].tool.driver names the product that ran: name is vulkro or vulkro-sf, version is that binary's version, and informationUri points at its documentation. (Before 0.37.0 / 0.29.0 a vulkro-sf log said vulkro at the engine version.) GitHub code scanning keys alerts by tool name, so the first vulkro-sf upload after the upgrade opens its alerts under the new name and closes the old ones.

The licence marker​

Every licence refusal from either binary ends its stderr with the line vulkro: license_required, so one CI check (grep -q '^vulkro: license_required') tells a licence block from findings. vulkro-sf also prints its older vulkro-sf: license_required line after it for one more release.

Evidence level​

Every finding carries an evidence level: one word for how sure Vulkro is, derived from named checks so it never claims more than they establish. It is evidence_level on each JSON / NDJSON finding, the finding card's certainty.level (with the checks in certainty.checks), SARIF properties["vulkro.evidenceLevel"], the editor's data.evidenceLevel, the MCP prove tool's evidence_level, guard check's per-finding evidence_level, and notifications. The table and the card text print it as a word, followed by what is established and what is not.

ValueMeaning
confirmedEvery check for this kind of finding holds.
tracedCode: the data flow was recorded from its source to the line, but a guard search or reachability from an entry point is not established.
configuredConfiguration or metadata: the setting is present as reported; whether the component is active, your own, and who holds it is not established.
matchedThe rule matched a known fact at the line (a guard-oracle verdict, a dispositive code shape, an advisory on a declared version) and no data flow was traced.
patternA heuristic shape; nothing proves it (disposition demoted).
not-checkedA class Vulkro cannot decide offline (disposition not-examined).

confirmed, traced, configured and matched are exactly the admitted disposition, so --disposition, the exit code and the severity gates are unchanged by the level.

The checks (certainty.checks[], each {key, result, detail} with result one of yes, no, not-run):

KindChecks
Codesource-read, flow-traced, guard-search, entry-reachable
Configurationsetting-read, active, own-component, holder-known
Secretvalue-verified
Dependencyversion-matched, symbol-reachable

A Salesforce card adds its domain checks (actor-granted, target-resolved, data-classified, metadata-compared) after these. They are listed in the text but never move the level.

Exploitability and its basis​

exploitability (exploitable / likely / theoretical, omitted when nothing on the finding bears on it) is a grade, not a severity. likely needs both a recorded data flow and an entry point attributed to the finding (its route, an entry-point hop, a positive reachability verdict, or an entry handler that reaches its function through resolved calls). A flow no entry is shown to start, a sink in a function with no caller that is not an entry point, and a sink the tainted value only constructs are all theoretical. exploitable needs a proven open sanitizer gap on the path.

exploitability_basis on each JSON / NDJSON finding (SARIF properties["vulkro.exploitabilityBasis"]) says what the grade rests on. It is omitted when the finding records no flow and none of these holds:

ValueMeaning
not-reachableThe sink is in dead code (its function has no caller and is not an entry point) or reachability proved it unreachable.
sink-constructed-onlyThe tainted value only builds a sink object that is never executed (a regex never matched, a query never sent).
reachable-unauthenticatedThe entry point that reaches the sink has no auth guard.
requires-authThe entry point that reaches the sink is authenticated.
sink-executedA flow reaches a sink that runs; no auth fact is known for the entry.

Base severity​

base_severity on each JSON / NDJSON finding is the severity before any calibration raise (the --ai-pr access-control bump, the risk model). It equals severity when nothing raised the finding. A raise never lifts a Medium- or Low-confidence finding to Critical, and the --ai-pr bump raises only a proven, High-confidence finding, and never above High.

SSRF to a fixed host​

A server-side request forgery finding whose request URL already fixes its scheme and host (https://api.example.com/v1/ + id, ${BASE_URL}?q= + id with a constant or config base) is reported as rule url-path-injection (CWE-74) at most Medium, with the message prefix "URL path or query injection into a fixed host (not SSRF)". The input can change the path or query sent to that host, not the host. The trace is kept.

Deprecated: proof tier (0.40, one release, CLAUDE.md rule 11)​

The older word is kept beside the level: card.certainty.tier and card.certainty.clauses, SARIF vulkro.proofTier, the editor's data.proofTier, MCP proof_tier, guard check's proof_tier and the notification proof_tier. Its values are proven (now confirmed or traced, or a verified secret / exact advisory), attributed (now matched), unproven (now pattern) and not-checked. A --format json document lists every deprecated field and its replacement in the top-level deprecations array. card.certainty.legacy_tier, announced for removal in 0.38, is removed.

The top-level risk_score of a scan document is a health score (higher is safer), the opposite direction of each finding's risk_score. It is now also emitted as health_score (null when the scan examined no source), and the top-level risk_score is deprecated.

Public-by-design endpoints​

An endpoint that is anonymous on purpose (sign-in, sign-up, token refresh, password reset, guest credentials, OAuth callbacks, health and status probes, storefront reads such as products, catalog, search and cart evaluation, and signed webhooks) is marked likely_public: true in the JSON endpoints array, and the missing-auth rules do not report it. Matching is on whole path segments and handler-name words, so publication is not public; a route with an admin segment or a delete handler is never public by design. stats.unprotected_endpoints_public_by_design counts the unprotected endpoints that are public by design, and the summary line reads N unprotected (M public by design). Both fields are written only when the value is true / non-zero, so a document without public routes is unchanged.

Engine agreement​

A flow that only the pattern-level AST engine reports (tainted-source-detected; its cross-file interproc-taint-source rows are exempt) on a JavaScript, TypeScript, Python, Go or Java file, where the proof engine examined the same code and reported nothing, keeps its trace and stays in the default view but is capped at Medium, with the evidence signal proof-engine-unconfirmed and the reason in confidence_reason. No later pass raises it. Its pre-cap severity is in base_severity.

Finding bucket (bucket)​

Every finding of a Core scan carries bucket: vulnerability or hardening (--format json and --format ndjson as bucket, SARIF as properties["vulkro.bucket"]). hardening marks a defense-in-depth gap: security headers, cookie flags, missing rate limits, the no-CSRF-middleware notice, dead code, an unresolved dependency licence, missing pagination, and debug or error-detail notices at Low or Info. Any other rule, including a rule not on the list, is vulnerability. The list lives in src/output/bucket.rs and the README section "Vulnerability and hardening buckets" spells it out. The key is additive: severities, the default view and the exit code do not change. vulkro scan --hide-hardening drops the hardening rows from the reported set (SARIF marks them suppressed instead).

Coverage ledger (coverage_ledger)​

A full vulkro scan --format json document (one that carries scan_coverage) also carries a top-level coverage_ledger array: one row per entry in endpoints, in the same order.

FieldValues
endpoint_id, method, pathas on the matching endpoints row
entry_kindhttp, rpc, graphql, server_action, trpc, mcp_tool, llm_tool, websocket, job
handler{resolved, file?, line?}: whether the extractor resolved the handler body, and where (root-relative)
taint{examined, reason?, detail?} for the entry-seeded taint backend
guard{examined, reason?, detail?} for the guard oracle's handler-body read
findingsfindings in the document attributed to the entry

reason is one of handler_not_resolved, outside_scan_root, language_not_supported, file_not_parsed, skipped_by_config and (on guard only) entry_kind_not_evaluated. It is absent when examined is true. New reason ids may be added; existing ones keep their meaning.

The data map document (data_map)​

vulkro scan --format json (as data_map, omitted when the project has no schema), vulkro-sf scan --format json (as data_map beside attack_graph, omitted when the project has no object metadata), vulkro data-map --format json, vulkro-sf data-map --format json, GET /api/scans/:id/data-map and GET /api/sf/scans/:id/data-map all emit one shape, versioned by its own version key (currently 1). Additive: a new key may appear inside attrs, coverage or stats; the top-level keys and the node and edge fields below are stable.

{
"version": 1,
"nodes": [
{"id": "table:users", "kind": "store", "label": "users",
"attrs": {"columns": "8", "sensitive_columns": "2", "policy": "tenant_column=org_id"},
"degree": 5, "blast_radius": 7}
],
"edges": [
{"from": "table:orders", "to": "table:users", "kind": "lookup", "grade": "metadata",
"fact": {"file": "prisma/schema.prisma", "line": 41}}
],
"coverage": {"product": "core", "facts": {"views": "not_collected"}, "notes": ["..."]},
"stats": {"nodes": 59, "edges": 106, "stores": 9, "sensitive_fields": 11, "nodes_dropped": 0}
}
FieldValues
nodes[].kindstore, field, policy, code_unit, entry_point, audience
nodes[].idlower-cased and stable across scans: table:<id> / object:<api name>, column:<table>.<column> / field:<object>.<field>, policy:rowscope:<table> / policy:owd:<object> / policy:guest-rule:<object>:<n>, entry:<METHOD> <path> / entry:door:... / entry:site:<name>, audience:<name>
nodes[].attrsstring-valued facts per kind (columns, sensitivity, policy, owd_internal, owd_external, auth, tier, grant_sets, ...)
edges[].kindlookup, master_detail, inferred_key, join, reads, writes, grants, exposes, has_field, governs
edges[].gradeproven, resolved, metadata, detector (the attack graph's static proof grades; live never enters a map)
edges[].fact{file, line}: repo-relative file and 1-based line. Every edge has one, or it is not drawn
edges[].finding_idpresent on exposes edges that a finding supplies
coverage.factsfact family to collected, partial, not_collected or unknown. A state never claims protection
statsnodes, edges, by_node_kind, by_edge_kind, stores, sensitive_fields, fields_as_counts, entry_points, audiences, nodes_dropped, edges_dropped, policy_unknown_stores

At most 500 nodes are drawn; past the cap the least connected fields go first, then code units, then entry points, and a store, policy or audience is never dropped. The standalone vulkro-sf data-map --format json document also carries the scanner build-provenance stamp every vulkro-sf machine-readable output has.