Skip to main content
VulnParse-Pin emblem VulnParse-Pin emblem
VulnParse-Pin
Installation and Usage Input_Scan_Schemas.md
View source on GitHub ↗

Input Scan Schemas & Supported Formats

This guide explains what scanner files VulnParse-Pin (vpp) v2.1.1 accepts, which export format works best for each tool, which XML tags and CSV columns vpp recognizes, and how to spot missing data or unsupported exports early.

NOTE
Looking for vpp’s output formats (.vpp.db tables, normalized JSON, assets.yaml, or decisions.yaml)? See ScanResult, DuckDB, and Context Schemas. For streaming parser internals and how SchemaDetector scores candidates, see Detection and Parsing.


At-a-Glance Input Support Matrix

When you run vpp scan <files...>, VulnParse-Pin checks file extensions, validates structure, sniffs up to the first 64 KiB once, and selects the highest-confidence matching parser automatically.

  • Allowed scan extensions: .nessus, .xml, .csv, .sarif, .json, .jsonl, .ndjson
  • File size limits: 500 MiB by default; up to 50 GiB when you pass --allow-large (-al)
  • Multiple files in one run: You can mix formats in a single command (for example, vpp scan nessus.nessus trivy.sarif nuclei.jsonl --nmap nmap.xml).
Parser (source_format) Accepted Extensions Stability Default detection_mode (signal_reliability) Recommended Export per Tool
nessus-xml .nessus, .xml Stable credentialed_host (1.00) when credentialed; else uncredentialed_banner (0.85) Best for Nessus / Tenable.sc (Nessus XML v2 .nessus)
openvas-xml .xml Stable credentialed_host (1.00) for credentialed QoD; else uncredentialed_banner (0.85) Best for Greenbone / GVM / OpenVAS (XML report)
qualys-xml .xml Stable credentialed_host (1.00) when auth tag is truthy; else uncredentialed_banner (0.85) Best for Qualys VMDR (Scan, Asset Data, or Detection API XML)
nmap-xml .xml Stable network_probe (0.80) Best via --nmap nmap.xml as exposure context (vpp scan nmap.xml emits port/NSE findings)
sarif-2.1.0 .sarif, .json Stable sca_container (0.90) for container/SCA tools; static_sast (0.55, P1-capped) for SAST tools Best for Trivy, Grype, Semgrep, OpenGrep, CodeQL, Snyk, Syft, Clair, Anchore, Dockle
nuclei-jsonl .jsonl, .ndjson, .json Stable active_dast (1.00) Best for Nuclei (nuclei -jsonl / -je)
nessus-csv .csv Stable credentialed_host (1.00) on rows marked credentialed; else uncredentialed_banner (0.85) Fallback when .nessus XML is unavailable
qualys-csv .csv Stable credentialed_host (1.00) on rows marked authenticated; else uncredentialed_banner (0.85) Fallback when Qualys XML is unavailable
nessus-json .json, .nessus Experimental (Deprecated) Disabled (detect_file returns False; raises error if called) Do not use — export .nessus XML or CSV instead
openvas-json .json Experimental (Deprecated) Disabled (detect_file returns False; raises error if called) Do not use — export GVM/OpenVAS XML instead

TIPAlways prefer XML, SARIF 2.1.0, or Nuclei JSONL over CSV when available. Structured exports carry host-level properties, CVSS vectors, plugin output, and credentialed-scan proofs that flat spreadsheets often omit or truncate.


XML Scan Schemas & Supported Variants

Shared XML Security & Encoding Rules

All XML scan parsers (nessus-xml, openvas-xml, qualys-xml, nmap-xml, and --nmap) stream XML in constant memory using hardened lxml settings (resolve_entities=False, no_network=True, load_dtd=False, dtd_validation=False, huge_tree=False). Inputs fail closed if they violate any of these rules:

  • Supported encodings: UTF-8 (with or without a UTF-8 BOM), BOM-prefixed UTF-16, or BOM-prefixed UTF-32.
  • Rejected encodings: BOM-less UTF-16LE / UTF-16BE is rejected during input validation. Re-save or export the file as UTF-8 (or UTF-16 with a BOM).
  • XML prolog size limit: The prolog before the root start tag must be 1 MiB or smaller.
  • Blocked XXE / DTD constructs: Any <!ENTITY declaration, external DTD keyword (SYSTEM or PUBLIC), parameter entity (%), internal DTD subset ([...]), NUL byte (\x00), unterminated <!DOCTYPE, or XML entity node anywhere in the document is rejected. Simple entity-free declarations such as <!DOCTYPE nmaprun> or <!DOCTYPE SCAN> are allowed.

nessus-xml (Nessus / Tenable.sc .nessus XML v2)

Export Nessus XML v2 (.nessus) from Nessus or Tenable.sc.

  • Required structure: Root <NessusClientData_v2> (or nested <NessusClientData_v2>) containing at least one <Report name="..."> element with <ReportHost name="...">, <HostProperties>, and <ReportItem ...> elements. <Policy> blocks are skipped and pruned immediately to keep memory flat.
  • Host identity & metadata (<HostProperties><tag name="...">):
    • IP address: host-ip, falling back to ReportHost/@name if it is a valid IP.
    • Hostname: host-fqdn > hostname > netbios-name > ReportHost/@name.
    • Operating system: cpe-0 > operating-system > os (strips any -> prefix).
    • Scan timestamp & open ports: HOST_END (or HOST_START) for scan date; enumerated-ports-* tags with value open for open port numbers.
  • Automatic credentialed scan detection (Plugin 19506 + HostProperties):
    • A host is marked credentialed_host (signal_reliability = 1.00) when <HostProperties> sets one of the exact tag names Credentialed_checks, Credentialed_Scan, credentialed_checks, or credentialed_scan to a case-insensitive truthy value (true, yes, or 1) — or when Plugin 19506 (Nessus Scan Information) <plugin_output> matches Credentialed checks : yes (case-insensitive).
    • Up to 50,000 items per host are buffered before finalization, so Plugin 19506 applies to every finding on that host regardless of whether it appears before or after other plugins.
  • Finding fields (<ReportItem>):
    • Attributes: pluginID, pluginName, severity (0=Informational, 1=Low, 2=Medium, 3=High, 4=Critical; overridden when <risk_factor> is present), port, protocol, svc_name (general is ignored), and pluginFamily (stored as a tag).
    • Child elements: <plugin_name>, <description> (falls back to <synopsis>), <solution>, <plugin_output>, <risk_factor>, <cve>, <cwe>, and <see_also> (split per line into references and scanned for GHSA IDs).
  • CVSS precedence (v4.0 > v3.x > v2.0):
    • Score: <cvss4_base_score> > <cvssV4_base_score> > <cvss3_base_score> > <cvssV3_base_score> > <cvss_base_score>
    • Vector: <cvss4_vector> > <cvssV4_vector> > <cvss3_vector> > <cvssV3_vector> > <cvss_vector> (leading CVSS2#/CVSS3# prefixes and wrapping (...) are stripped automatically)
  • Exploit evidence tags: Sets exploit_evidence = true when any of <exploit_available>, <exploit_framework_metasploit>, <exploit_framework_canvas>, <exploit_framework_core>, <exploit_framework_d2_elliot>, <exploited_by_malware>, or <exploited_by_nessus> equals true, yes, or 1.
  • Why Nessus v1 XML is unsupported: Legacy Nessus v1 exports use <NessusClientData> instead of <NessusClientData_v2>. Because the v1 schema lacks modern v2 host/plugin metadata, nessus-xml requires <NessusClientData_v2> and rejects v1 files. Re-export using Nessus XML v2 (.nessus).

openvas-xml (Greenbone / GVM / OpenVAS)

Export standard XML reports from Greenbone Security Assistant (GSA), gvm-cli, or GMP/OMP APIs.

  • All 4 supported root wrappers: <report>, <get_reports_response>, <omp>, and <get_results_response>. Files containing <NessusClientData_v2> are explicitly rejected so OpenVAS never misclassifies a Nessus export.
  • Scan metadata: Uses <report id="..."> as the scan name and top-level <creation_time> as the scan date. Summary <ports>, <tls_certificates>, and <host> blocks outside <result> are pruned to keep memory low.
  • Finding fields (<results>//<result>):
    • Host: <host> text (IP or hostname) plus optional nested <host><hostname>. Results missing a host are dropped with a warning.
    • Port & protocol: <port> parsed as port/protocol (for example 443/tcp; general/tcp records protocol="tcp" with no port number).
    • NVT metadata (<nvt oid="...">): <name> (falls back to <result><name>), <family> (stored as a tag), <solution> (falls back to <result><solution>), <tags> (pipe-delimited key=value entries — extracts summary= for plugin_output, see_also= for references, and CVSS vectors), <refs><ref type="cve|cwe|url|xref" id="...">, and <xref> (ignores NOXREF).
    • Evidence & severity: <description>, <detection>//<detail> (<name> + <value>, used as plugin_output if summary= is empty), <threat> (e.g., High, Medium, Low, Log), and <severity> (numeric 0.0–10.0 fallback when CVSS is absent).
    • CVSS precedence (v4.0 > v3.x > v2.0): Reads <cvss4_base>, <cvss3_base>, <cvss_base>, <cvss_base_score>, <nvt>//<severities>/<severity type="..."> (<score> and <value>), and <tags> entries (cvss4_vector=, cvss3_vector=, cvss_base_vector=).
    • Credentialed detection (<qod><type>): Results whose <qod><type> is package, registry, executable_version, authenticated, or ssh_func (case-insensitive) are tagged credentialed_host (1.00); all other QoD types (such as remote_banner) default to uncredentialed_banner (0.85).
  • CVE extraction note: openvas-xml extracts CVEs from <refs><ref type="cve" id="..."/> and from CVE IDs appearing inside <tags> or <description> (on <nvt> or <result>). It does not currently inspect a standalone legacy <nvt><cve> element if <refs>, <tags>, and <description> omit the CVE — use modern GVM XML reports that include <refs> or <tags>.

qualys-xml (Qualys VMDR)

qualys-xml matches XML tags case-insensitively (ignoring XML namespaces) across all 3 standard Qualys VMDR XML schemas:

Qualys VMDR Schema Root Tag(s) Host Element Finding Element Notes
Scan Report XML <SCAN>, <SCAN_REPORT> <ASSET>, <HOST> <VULN>, <VULNERABILITY> Self-contained host and vulnerability blocks
Asset Data Report XML <ASSET_DATA_REPORT> <HOST_LIST><HOST> <VULN_INFO_LIST><VULN_INFO> Automatically joins <GLOSSARY><VULN_DETAILS_LIST><VULN_DETAILS> by QID (even when <GLOSSARY> appears at the end of the file)
VM Detection API XML <HOST_LIST_VM_DETECTION_OUTPUT> <RESPONSE><HOST_LIST><HOST> <DETECTION_LIST><DETECTION> Matches /api/2.0/fo/asset/host/vm/detection/ XML responses
  • Recognized host & finding tags:
    • Host: IP (IP, IP_ADDRESS, HOST_IP); Hostname in priority order FQDN > DNS/DNS_NAME > HOSTNAME > NETBIOS; OS (OS, OPERATING_SYSTEM); Credentialed (AUTHENTICATION, AUTH_STATUS, CREDENTIALED matching yes/true/passed/authenticated/1). Assets with neither an IP nor a hostname are dropped with a warning.
    • Vulnerability: QID (QID, QID_ID, VULN_ID, stripping any qid_ prefix), Title (TITLE, NAME, VULN_TITLE, falling back to Qualys QID <qid>), Description (DESCRIPTION, DIAGNOSIS, DETAILS, else THREAT/IMPACT), Solution (SOLUTION, FIX, REMEDIATION), Evidence (RESULTS, RESULT, EVIDENCE, DIAGNOSIS), Port (PORT, SERVICE_PORT, AFFECTED_PORT, including 443/tcp or tcp/443), Protocol (PROTOCOL, PROTO, defaulting to tcp), CVEs (CVE_ID, CVE, CVES), CWEs (CWE_ID, CWE, CWES), References (VENDOR_REFERENCE, URL, REFERENCE).
    • Qualys severity scale (SEVERITY, RISK, THREAT): 5→Critical, 4→High, 3→Medium, 2→Low, 1→Informational (plus text labels).
  • CVSS precedence (v4.0 > v3.1 > v3.0 > v2.0): Prefers CVSS4_BASE/CVSS_V4_BASE/CVSS40_BASE, then CVSS3_1_BASE/CVSS31_BASE/CVSS_V3_1_BASE/CVSS3.1_BASE, then CVSS3_BASE/CVSS_V3_BASE, then CVSS_BASE/CVSS2_BASE/CVSS_V2_BASE/CVSS_SCORE (and matching *_VECTOR tags).
  • Active vs. Fixed detections: qualys-xml does not currently skip detections based on <STATUS>Fixed</STATUS>. When exporting from the Qualys VM Detection API or report templates, filter to active states (New, Active, Re-Opened) so already-remediated detections are not ingested as open findings.

nmap-xml (Nmap -oX XML)

Nmap XML exports (<nmaprun>) work in two different ways depending on how you pass them to vpp:

How You Pass nmap.xml Component Used What Happens Best Used For
vpp scan nessus.nessus --nmap nmap.xml NmapAdapter@1.0 (--nmap / --nmap-ctx) Does not create extra port findings. Reconciles open ports, OS hints, and inferred internet exposure onto matching .vpp.db assets, links co-located shadow-IP assets, and surfaces Nmap-only hosts as unmatched_shadow. Recommended — adding verified network exposure context to vulnerability scans
vpp scan nmap.xml (positional) NmapXMLParser (nmap-xml, network_probe, 0.80) Emits one finding per open or open|filtered port (Informational for plain open ports; High or CVSS-based severity when NSE <script> or <hostscript> reports CVEs or "vulnerable"). Reviewing standalone Nmap + NSE vulnerability script output (--script vuln / vulners)
vpp assets compile nmap.xml Inventory compiler (vpp assets) Compiles live hosts into assets.yaml rules with IP CIDRs, hostnames, OS tags, and open-port tags. Bootstrapping an asset inventory from a discovery scan

In <nmaprun>, vpp reads <host>, <status state="up|down"/>, <address addr="..." addrtype="ipv4|ipv6|mac"/>, <hostnames><hostname name="..."/>, <os><osmatch name="..." accuracy="..."/> (fallback <osclass> or service ostype), <ports><port protocol="..." portid="..."> with <state state="open|open|filtered"/>, <service name product version extrainfo> + <cpe>, port <script>, and <hostscript><script> (extracting CVEs, CWEs, GHSAs, URLs, and NSE cvss4/cvss3/cvss scores and vectors). Down hosts with no findings are skipped.


CSV Scan Schemas & Column Variants

Shared CSV Validation Rules

Both nessus-csv and qualys-csv follow these shared rules:

  • Delimiters: Automatically detects comma (,), semicolon (;), tab (\t), or pipe (|), falling back to comma.
  • Encoding: Strips leading UTF-8 BOM (\xef\xbb\xbf), decodes UTF-8, and falls back to Windows CP1252 if non-UTF-8 characters appear.
  • Field size cap: Up to 32 MiB per cell (handles large Plugin Output / Results blobs).
  • Safety checks: Binary NUL bytes (\x00) anywhere in the file are rejected, as are CSV files whose first line begins with XML/JSON markup (<, {, [).
  • Header matching: Case-insensitive and punctuation-insensitive (Plugin ID, plugin_id, and PluginID all match the same column).
  • Row-shape protection: Rows containing more columns than the header row are skipped as malformed and logged to the decision ledger.

nessus-csv (Nessus / Tenable.sc CSV Exports)

  • Detection & required headers: Must be a .csv file with at least 3 header columns on the first row. To parse cleanly, the header must include a recognized Title column and either a Severity or CVSS Score column, and each row must supply an asset identifier (IP or hostname), a title, and a severity (or valid 0.0–10.0 CVSS score). Rows missing these minimum signals — or with only an out-of-range CVSS score — are dropped and logged.
  • Per-row CVSS precedence: When multiple CVSS columns exist in the same file, nessus-csv resolves each row in strict version order CVSS v4.0 > CVSS v3.x > CVSS v2.0, falling back cleanly to a lower version if the higher-version cell is blank on that row.
Canonical Field Recognized Column Names (case- & punctuation-insensitive) Notes
Plugin ID Plugin ID, PluginID, plugin_id, Plugin, Plugin OID Falls back to csv_row_<N> if absent
Title (required) Plugin Name, plugin_name, Name, Title, Vulnerability, Vulnerability Name Required in header and on every row
Severity / Risk (required unless CVSS present) Risk, Severity, Severity Level, Threat Derived from CVSS if blank and CVSS is present
CVSS v4.0 Score CVSS v4.0 Base Score, CVSS4.0 Base Score, CVSS4 Base Score, CVSS v4 Base Score, cvss_v4_base_score, cvss4_base_score Highest score priority
CVSS v3.x Score CVSS v3.1 Base Score, CVSS v3.0 Base Score, CVSSv3 Base Score, CVSS3 Base Score, CVSS v3 Base Score, cvss_v3_base_score, cvss3_base_score Second score priority
CVSS v2.0 Score CVSS v2.0 Base Score, CVSS v2 Base Score, CVSS Base Score, cvss_base_score, CVSS Score, CVSS Fallback score priority
CVSS v4.0 Vector CVSS v4.0 Vector, CVSS4.0 Vector, CVSS4 Vector, CVSS v4 Vector, cvss_v4_vector, cvss4_vector Highest vector priority
CVSS v3.x Vector CVSS v3.1 Vector, CVSS v3.0 Vector, CVSSv3 Vector, CVSS3 Vector, CVSS v3 Vector, cvss_v3_vector, cvss3_vector Second vector priority
CVSS v2.0 Vector CVSS v2.0 Vector, CVSS v2 Vector, CVSS Vector, cvss_vector Fallback vector priority
IP Address IP, IP Address, Host IP Also populated from Host column if that cell is an IP
Hostname Hostname, Host Name, DNS Name, DNS, FQDN, NetBIOS Name, NetBIOS, Host Supports Nessus & Tenable.sc host columns
CVE CVE, CVEs, cve_id, CVE ID Multiple CVEs in one cell are extracted automatically
CWE CWE, CWEs, cwe_id, CWE ID Also extracted from Description and Plugin Output
Port Port, affected_port, Plugin Port, Service Port Accepts 443, 443/tcp, or tcp/443
Protocol Protocol, Proto, Transport Defaults to tcp
Description Description, Synopsis Description preferred over Synopsis
Solution Solution, Remediation, Fix Remediation guidance
Plugin Output Plugin Output, plugin_output, Plugin Text, Evidence Recognizes Tenable.sc Plugin Text
References See Also, see_also, References, Xref Split on newlines, commas, or semicolons; scanned for GHSAs
Credentialed Credentialed, Credentialed Scan, Credentialed Checks, Authenticated yes/true/1, or Credentialed checks : yes in that row’s output

NOTEnessus-csv does not currently parse an Exploit Available column (exploit_evidence stays unset from CSV, though vpp still enriches every CVE against CISA KEV and Exploit-DB). Also, Credentialed checks : yes inside CSV plugin output only marks that single row rather than the whole host. Use .nessus XML when you need scanner exploit flags and host-wide Plugin 19506 detection.


qualys-csv (Qualys VMDR CSV Exports)

  • Metadata preamble skipping: Qualys VMDR CSV exports often include report summary lines above the real table. qualys-csv scans up to the first 25 non-empty rows to skip preamble metadata and locate the real column header automatically. Reports with more than 25 non-empty preamble rows before the header are rejected.
  • Header detection contract: A row is recognized as the Qualys CSV header when it has at least 3 non-empty cells containing:
    1. A QID column (QID, Vuln ID, Vulnerability ID, ID), and
    2. A host/IP column (IP, IP Address, Host IP, Asset IP, Hostname, FQDN, DNS, DNS Name, NetBIOS, NetBIOS Name, Host), and
    3. At least one detail column (Title, Name, Vulnerability, Vulnerability Title, Severity, Risk, Threat, Type, Vuln Status, VulnStatus).
  • Required fields per row: The header must include a recognized Title column and a Severity or CVSS column. Rows missing an asset identifier, title, or valid severity/CVSS are dropped and logged.
  • Active vs. Fixed rows: Although Vuln Status helps identify the Qualys header row, qualys-csv does not currently skip Fixed rows during parsing. Configure your Qualys CSV report filter to include only active detections (New, Active, Re-Opened) before exporting.
  • Per-row CVSS precedence: Evaluates each row in order CVSS4 Base > CVSS3.1 Base > CVSS3 Base > CVSS Base (and matching vector columns).
Canonical Field Recognized Column Names (case- & punctuation-insensitive) Notes
QID QID, Vuln ID, Vulnerability ID, ID Required for Qualys auto-detection
Title (required) Title, Name, Vulnerability, Vulnerability Title Required in header and on every row
Severity (required unless CVSS present) Severity, Risk, Threat Maps Qualys 5→Critical, 4→High, 3→Medium, 2→Low, 1→Informational
CVSS v4.0 Score CVSS4 Base, CVSS v4.0 Base, cvss4_base, CVSS v4 Base Highest score priority
CVSS v3.1 Score CVSS3.1 Base, CVSS31 Base, CVSS 3.1 Base, CVSS v3.1 Base, cvss3_1_base, CVSS3.1, CVSS31 Second score priority
CVSS v3.0 Score CVSS3.0 Base, CVSS3 Base, CVSS v3.0 Base, cvss3_base, CVSS3 Third score priority
CVSS v2.0 Score CVSS Base, cvss_base, CVSS v2.0 Base, CVSS2 Base, CVSS Score, CVSS Fallback score priority
CVSS v4.0 Vector CVSS4 Vector, CVSS v4.0 Vector, cvss4_vector, CVSS v4 Vector Highest vector priority
CVSS v3.1 Vector CVSS3.1 Vector, CVSS31 Vector, CVSS 3.1 Vector, CVSS v3.1 Vector, cvss3_1_vector Second vector priority
CVSS v3.0 Vector CVSS3.0 Vector, CVSS3 Vector, CVSS v3.0 Vector, cvss3_vector Third vector priority
CVSS v2.0 Vector CVSS Vector, cvss_vector, CVSS v2.0 Vector, CVSS2 Vector Fallback vector priority
IP Address IP, IP Address, Host IP, Asset IP Also populated from Host column if that cell is an IP
Hostname Hostname, FQDN, DNS, DNS Name, NetBIOS, NetBIOS Name, Host Supports standard Qualys DNS / NetBIOS headers
CVE CVE, CVEs, CVE ID, cve_id Multiple CVEs in one cell are extracted automatically
CWE CWE, CWEs, CWE ID, cwe_id Also extracted from Description and Results
Port Port, Service Port, affected_port Accepts 443, 443/tcp, or tcp/443
Protocol Protocol, Proto, Transport Defaults to tcp (accepts tcp, udp, icmp)
Description Description, Details, Diagnosis First populated alias wins
Solution Solution, Fix, Remediation Remediation guidance
Plugin Output Results, Result, Evidence, Plugin Output Recognizes both plural Results and singular Result
References References, Vendor Reference, See Also Split on newlines, commas, or semicolons; scanned for GHSAs
Credentialed Authenticated, Authentication, Credentialed yes, true, passed, authenticated, or 1

Asset Inventory Spreadsheets (vpp assets compile, Not vpp scan)

CMDB or asset inventory CSVs are not vulnerability scans and should not be passed to vpp scan. Instead, compile them into assets.yaml with vpp assets compile (supports UTF-8 files up to 64 MiB, plus netbox-json, aws-ec2, gcp-compute, azure-vm, and nmap-xml):

vpp assets compile cmdb_export.csv --source auto --merge assets.yaml --output assets.yaml

# Remap custom spreadsheet headers on the fly
vpp assets compile servers.csv --source csv --column-map owner=AppTeam --column-map ip=PrimaryIP -o assets.yaml

With --source auto, any CSV header containing primary_ip4, primary_ip6, primary_ipv4, primary_ipv6, device_role, or device_type is detected as netbox-csv; all other inventory CSVs compile as generic csv. Header matching is case-insensitive with spaces and hyphens normalized to underscores:

Canonical Rule Field Recognized CSV Column Aliases (csv & netbox-csv)
id id, rule_id
asset_id asset_id
hostname / hostnames hostname, host, fqdn, dns_name, dns, server_name, name, computer_name, hostnames
ip / ips ip, ip_address, ipv4, ipv6, private_ip, public_ip, address, primary_ip4, primary_ip6, primary_ip, ips, ip_addresses, private_ips, public_ips (plus primary_ipv4, primary_ipv6, oob_ip in netbox-csv)
cidr / cidrs cidr, subnet, network, cidrs, subnets, networks
alias / aliases alias, aliases
uri / uris uri, url, target_uri, uris, urls
image / images image, container_image, images
repo / repos repo, repository, repos, repositories
internet_facing internet_facing, public, exposed, external, cf_internet_facing
criticality criticality, tier, importance, business_criticality, cf_criticality
owner owner, team, owner_team, contact, tenant, cf_owner
env env, environment, environments, env_tags, cf_env, cf_environment
tags tags, labels (supports key=val, key:val, or bare tokens separated by ,, ;, or |)
status status, state, lifecycle, power_state (inactive rows such as decommissioned, offline, stopped, or terminated are skipped unless --include-inactive is passed)

In netbox-csv, additional columns device_role/role, site, tenant (also used as owner fallback), platform, cluster, and device_type are preserved automatically as netbox_* tags.


SARIF 2.1.0 & Nuclei JSONL Summary

sarif-2.1.0 (SCA, Container & SAST Tools)

Accepts .sarif or .json files conforming to OASIS SARIF 2.1.0 (top-level JSON object with "version": "2.1.0" and "runs", "$schema" referencing SARIF, or "runs" with "tool.driver"). Inputs exceeding 512 JSON nesting levels are rejected fail-closed before exhausting memory or recursion limits.

  • Automatic mode classification:
    • sca_container (signal_reliability = 0.90): Assigned when tool.driver.name matches Trivy, Grype, Snyk Container, Clair, Anchore, Syft, or Dockle.
    • static_sast (signal_reliability = 0.55, subject to the SAST P1-cap guardrail): Assigned for all other SARIF tools, including Semgrep, OpenGrep, CodeQL, Bandit, and Snyk Code.
  • What vpp extracts:
    • Rule details from runs[].tool.driver.rules[] (matched by ruleId or ruleIndex) and tool.extensions[].rules[].
    • File path (location_uri), line number (region.startLine), and code snippet (region.snippet.text).
    • Container image or repository target (image_or_repo / target_uri) from run/result properties, versionControlProvenance[].repositoryUri, originalUriBaseIds, container image references in locations/logicalLocations, or a common absolute source directory for SAST scans.
    • Package PURL (pkg:...) from properties (purl, packagePurl, pkgPurl, package_purl, PkgID), logicalLocations, or finding messages.
    • CVEs, CWEs, and GHSAs across rule IDs, messages, descriptions, tags, and helpUri.
    • CVSS scores and vectors from properties (cvss4_score, security-severity, cvss3_score, cvss_score, nested Trivy properties.cvss.<source>.{V40Score,V3Score,V2Score}), computing the base score from a vector when only a vector is supplied, and falling back to SARIF level (error→High, warning→Medium, note→Low).

nuclei-jsonl (ProjectDiscovery Nuclei)

Accepts .jsonl, .ndjson, or newline-delimited .json exported by Nuclei (for example nuclei -u https://target -jsonl -o nuclei.jsonl).

  • Structure & limits: One UTF-8 JSON object per line, capped at 8 MiB per line. Auto-detection checks up to 16 non-empty lines for template-id and an info object.
  • What vpp extracts: template-id, info.name, info.description, info.remediation, info.severity, info.tags, info.reference, info.classification (cve-id, cwe-id, cvss-score, cvss-metrics), target (host, ip, matched-at, port, type, scheme), and proof (matcher-name, extracted-results, excerpted curl-command). Embedded user:pass@ credentials in URLs are stripped automatically.
  • Reliability & malformed lines: Always scores as active_dast (signal_reliability = 1.00, fidelity_tier = "high"). Malformed JSON lines are skipped with a warning, logged to the ledger (INGESTION_MALFORMED_ROWS_SKIPPED), and flag records in that file with degraded_input = true.

Spotting Missing Columns, Degraded Inputs & Current Ingestion Gaps

How vpp Signals Incomplete Scanner Data

When a scanner export omits important fields, vpp never invents fake scores or CVEs — instead it tracks data quality on every finding:

  • fidelity_tier: Each finding is graded by how complete its scanner signals are (typically checking for cves, cvss_vector, plugin_output, and affected_port, or location_uri, cves_or_cwes, and plugin_output for SARIF):
    • high (mapped to full in ScanResult) — complete signal set.
    • medium (mapped to partial in ScanResult) — some optional fields missing.
    • low (mapped to minimal in ScanResult) — sparse signal set.
  • degraded_input & missing_fields: degraded_input is set to true whenever a finding falls below high/full fidelity (for nmap-xml, only low port-only rows without banner/script output are marked degraded; for nuclei-jsonl, skipped malformed lines trigger degraded_input = true). missing_fields lists the exact missing fields.
  • SENTINEL:* placeholders: In ScanResult objects, missing descriptive text uses explicit placeholders such as SENTINEL:No_Description, SENTINEL:No_Plugin_Output, SENTINEL:No_Evidence, SENTINEL:No_Solution, or SENTINEL:No_Title rather than blank or guessed values. (In .vpp.db DuckDB tables, missing CVEs and CVSS vectors are stored cleanly as empty lists / NULL.)

Inspecting and Enforcing Quality Gates on the CLI

Use these vpp scan flags to surface or fail closed on low-fidelity exports:

# Print an ingestion quality summary (average confidence, degraded count, fidelity breakdown)
vpp scan report.csv --show-ingestion-summary

# Fail closed (exit 1) if any finding is degraded (partial/minimal signal)
vpp scan report.nessus --strict-ingestion
# Equivalent toggle:
vpp scan report.nessus --no-allow-degraded-input

# Fail closed (exit 1) if any finding's ingestion confidence drops below 0.75
vpp scan report.csv --min-ingestion-confidence 0.75

Every dropped row or gate failure is recorded in the hash-chained decision ledger (ledger_events and RunManifest):

Ledger Reason Code Trigger
INGESTION_ROWS_DROPPED CSV rows lacked minimum required fields (asset ID, title, severity/CVSS) or had only an out-of-range CVSS value
INGESTION_MALFORMED_ROWS_SKIPPED CSV rows had more columns than the header, or Nuclei JSONL contained unparseable JSON lines
INGESTION_STRICT_REJECTED --strict-ingestion or --no-allow-degraded-input rejected degraded findings
INGESTION_CONFIDENCE_THRESHOLD_FAILED One or more findings scored below --min-ingestion-confidence

Unsupported Exports & Known Ingestion Gaps

Format or Export Variant Current Status in v2.1.1 Practical Workaround
Custom / arbitrary vulnerability CSVs (without Nessus or Qualys headers) Rejected by SchemaDetector (or drops rows) Export native XML/SARIF from the scanner, or rename headers to match the nessus-csv or qualys-csv tables above. Use vpp assets compile for asset spreadsheets.
Qualys WAS (Web Application Scanning) XML Unsupported (qualys-xml expects VMDR roots: <SCAN>, <SCAN_REPORT>, <ASSET_DATA_REPORT>, <HOST_LIST_VM_DETECTION_OUTPUT>) Use Qualys VMDR XML/CSV for host scans; pair with Nuclei JSONL or a SARIF 2.1.0 DAST export for web findings.
Qualys Fixed detections (XML & CSV) Not auto-filtered (parsed alongside open findings) Filter Qualys API calls or report templates to New, Active, Re-Opened detections before exporting.
Nessus CSV Exploit Available column Not parsed from CSV (exploit_evidence stays unset) Export .nessus XML (nessus-xml). Note that vpp still enriches CSV CVEs against CISA KEV and Exploit-DB.
Legacy OpenVAS <nvt><cve> without <refs> / <tags> Not read directly unless CVE also appears in <refs>, <tags>, or <description> Export standard GVM/Greenbone XML reports that include <refs> or <tags>.
Qualys CSV with >25 metadata preamble rows Header scan stops after 25 non-empty lines Trim report summary blocks in the Qualys report template or export Qualys XML instead.
Burp Suite / OWASP ZAP XML No native XML parser Export SARIF 2.1.0 (for example via ZAP’s SARIF report template) or pair with Nuclei JSONL.
Raw CycloneDX / SPDX SBOMs (inventory-only JSON/XML without vulnerability SARIF) Not a vulnerability scan input for vpp scan Scan the SBOM into SARIF first (trivy sbom sbom.cdx.json --format sarif -o sbom.sarif or grype sbom:sbom.cdx.json -o sarif > sbom.sarif), then pass sbom.sarif to vpp scan.
Nessus v1 XML (<NessusClientData>) Unsupported (nessus-xml requires <NessusClientData_v2>) Re-export in Nessus XML v2 (.nessus).
Nessus JSON (nessus-json) & OpenVAS JSON (openvas-json) Experimental, deprecated, and disabled Export .nessus XML / CSV for Nessus or GVM XML for OpenVAS.
VEX documents (OpenVEX / CycloneDX VEX) Planned for v2.2 (not in v2.1.1) Track not_affected / mitigated posture with verifiable assumptions in decisions.yaml via vpp defer.