nmap-triage — Architecture

AI-assisted triage for Nmap scan results: one Python CLI, from scan XML to a severity-ranked report

nmap-triage — Architecture AI-assisted triage for Nmap scan results: one Python CLI, from scan XML to a severity-ranked report Security analyst · runs the tool, owns scan scope · Architecture component Security analyst runs the tool, owns scan scope Nmap · nmap -sV -oX scan.xml · Architecture component Nmap nmap -sV -oX scan.xml CLI entrypoint · main · argparse · Analyst machine (local) CLI entrypoint main · argparse Nmap XML parser · parse_nmap_xml · Analyst machine (local) Nmap XML parser parse_nmap_xml Scan summarizer · summarize · works without AI · Analyst machine (local) Scan summarizer summarize · works without AI Report output · stdout or --output file · Analyst machine (local) Report output stdout or --output file AI triage · analyze · Nemotron system prompt · Analyst machine (local) AI triage analyze · Nemotron system prompt NVIDIA API · integrate.api.nvidia.com · Third-party services NVIDIA API integrate.api.nvidia.com Severity extractor · extract_severities · regex · Analyst machine (local) Severity extractor extract_severities · regex Event builder · build_events · one per open port · Analyst machine (local) Event builder build_events · one per open port Axiom · dataset: nmap-triage · Third-party services Axiom dataset: nmap-triage Config (.env) · NVIDIA_API_KEY · AXIOM_TOKEN · Analyst machine (local) Config (.env) NVIDIA_API_KEY · AXIOM_TOKEN python nmap_triage.py scan.xml Nmap XML (-oX) xmlfile path hosts + open ports scan summary hosts JSON (unless --no-ai) POST chat/completions triage text === Triage === triage text (host, port) -> severity hosts + ports ingest_events (unless --no-axiom) NVIDIA_API_KEY AXIOM_TOKEN + dataset Analyst machine (local) Third-party services Legend Frontend Backend Security External