scan-vulnerabilities
Run Nmap Scripting Engine (NSE) vulnerability scans against a target to discover known vulnerabilities, including CVE identifiers. Uses safe scripts by default.
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 |
|---|---|---|---|
| target | Yes | Target to scan: IP address or hostname. | |
| ports | No | Port specification. If omitted, scans nmap default ports. | |
| 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. | |
| timing | No | Timing template. Default: "normal". | normal |
| timeout | No | Maximum scan duration in seconds. Default: 600. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| command | Yes | The nmap command that was executed (sanitized) | |
| vulnerabilities | No | Discovered vulnerabilities | |
| hosts_scanned | No | Number of hosts scanned | |
| raw_output | No | Raw nmap output text | |
| warnings | No | Scan warnings |