How vulnerscom/nmap-vulners works
nmap-vulners is an Nmap NSE vulnerability-enrichment plugin. Its main workflow takes Nmap’s service identities, supplements web-port detection with a polite fingerprint sweep, queries Vulners, then ranks and renders findings in the scan report. The repository also maintains the fingerprint catalog used by that sweep. The README documents the runtime capabilities; source excerpts show parts of catalog generation, so the graph omits unverified runtime-to-catalog wiring.
Main entry points: build.py Catalog builder · normalize.py CPE normalization · vulners.nse NSE plugin · probes.py Probe assembly
Components 18
Nmap scan workflow
- NSE plugin
vulners.nse - Service identity
vulners.nse - Web sweep
vulners.nse - Fingerprint matching
vulners.nse - Targeted version probes
vulners.nse - CPE normalization
tools/fingerprints/normalize.py
Fingerprint catalog
- Fingerprint data
catalog - Catalog builder
tools/fingerprints/build.py - Catalog index
tools/catalog.py - Source readers
tools/fingerprints/sources - Sweep path catalog
tools/fingerprints/paths.py - Pattern translation
tools/fingerprints/pcre2lua.py - Probe assembly
tools/fingerprints/probes.py
Vulnerability lookup
- Vulners database
- CVE lookup
vulners.nse - Finding ranking
vulners.nse - Scan report output
vulners.nse
Other components
- Nmap scanner
Connections 19
- Nmap scanner → NSE plugin: runs script
README.md - NSE plugin → Service identity: uses scan identity
README.md - NSE plugin → Web sweep: sweeps web ports
README.md - Web sweep → Fingerprint matching: matches responses
README.md - Fingerprint matching → Targeted version probes: triggers probes
README.md - Service identity → CPE normalization: normalizes identity
- Fingerprint matching → CPE normalization: identifies software
- Targeted version probes → CPE normalization: extracts version
- CPE normalization → CVE lookup: provides CPE
README.md - CVE lookup → Vulners database: requests findings
README.md - CVE lookup → Finding ranking: returns findings
README.md - Finding ranking → Scan report output: orders results
README.md - Scan report output → Nmap scanner: adds report output
README.md - Source readers → Catalog builder: loads sources
tools/fingerprints/build.py - Catalog builder → Pattern translation: translates patterns
tools/fingerprints/build.py - Catalog builder → Sweep path catalog: uses path data
tools/fingerprints/build.py - Catalog builder → Probe assembly: assembles probes
tools/fingerprints/build.py - Probe assembly → Pattern translation: translates extractors
tools/fingerprints/probes.py - Catalog index → Fingerprint data: indexes catalog