scan-vulnerabilities
Scan a target for known vulnerabilities using Nmap's scripting engine. Returns CVE identifiers for detected issues.
Instructions
Scan for known vulnerabilities using Nmap Scripting Engine (NSE).
Runs NSE vulnerability detection scripts against the target. Uses safe script categories by default. Results include CVE identifiers when available.
IMPORTANT: Only scan targets you are authorized to scan. Vulnerability scanning may trigger security alerts on the target network.
Returns: VulnScanResult with discovered vulnerabilities and their details.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ports | No | Port specification. If omitted, scans nmap default ports. | |
| target | Yes | Target to scan: IP address or hostname. | |
| timing | No | Timing template. Default: "normal". | normal |
| scripts | No | NSE script specification. Examples: "vuln", "auth", "default,safe", "http-vuln-*". Only categories from {auth, default, discovery, safe, version, vuln} are allowed. If omitted, uses "vuln" category. | |
| timeout | No | Maximum scan duration in seconds. Default: 600. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| command | Yes | The nmap command that was executed (sanitized) | |
| warnings | No | Scan warnings | |
| raw_output | No | Raw nmap output text | |
| hosts_scanned | No | Number of hosts scanned | |
| vulnerabilities | No | Discovered vulnerabilities |