Nmap output with an LLM
Triaging Nmap output with a model
Paste the XML from an Nmap scan you have already run under authorization into qwen3.8-27b-cybersecurity at https://api.pentestllm.ai/v1 to get a plain-language summary of each open service and a triage order for follow-up. The scan is finished and the host is in scope, the model reads the output you give it and returns text, running no scan, sending no packet and reaching no host, and a tester decides which services are worth a closer look.
curl https://api.pentestllm.ai/v1/chat/completions \ -H "Authorization: Bearer sk-ptl-live-…" \ -H "Content-Type: application/json" \ -d '{ "model": "auto/security", "messages": [{"role": "user", "content": "Rank these scanner findings by severity and say what to verify first."}] }'This is reading, not scanning
The work here starts after nmap has exited. You ran it against a target the client listed in the signed scope, with the flags your methodology calls for, and you have the XML or the greppable output in front of you. This guide does not run Nmap, write a custom script or probe a service. The model is handed the results as text and summarizes them. If the output is long, that is a reason to let a model group it, not a reason to let a model drive the scanner. Keep the rules of engagement beside the file so the summary names only hosts the scope allows.
Export the machine-readable output
Run your authorized scan with XML output (-oX) so you have a structured file rather than the console text. The XML carries, per host, each port, its state, the service name Nmap guessed, the product and version where a probe found one, and the script output if you ran the default scripts. That structure is what makes a model summary reliable: it is reading fields, not guessing from a screenshot. Convert the XML to a compact JSON of host, protocol, port, state, service and version in your own script before the request, which both shrinks the prompt and lets you drop anything out of scope.
Generalize the addresses before the request
A scan names real IP addresses and sometimes resolves hostnames that identify the client. Replace them with placeholders in your conversion script, so 10.0.4.12 becomes HOST_1, and keep the map on your side. The gateway’s redaction setting is a second pass, but the addresses are yours to generalize first. The model triages by service and version, which it can do without knowing the real address.
Ask for a summary and a triage order
Give the model the per-port facts and ask two things: a one-line summary of what each service is and why it is commonly interesting to a tester, and a triage order that puts the services most worth a closer look first. Ask it to say, for each, what published information would confirm whether the version is current, without asking it to assert that a specific flaw is present. Pin the answer to a schema keyed by host and port so your script can check every entry against a port you actually sent. Set the model to auto/security: it routes a request bound to a schema to a build that honors response_format. An entry for a port that was not in your scan is the model filling gaps, so drop it.
Treat version-to-risk as a lead, not a finding
A model will often recognize that a service banner looks old and suggest the version is worth checking against an advisory. That is a useful lead and nothing more. The banner can be wrong, the client may have backported a fix, and a version string is not proof of anything. Use the model’s note to decide where to spend time, then confirm the real state of the service the way you always would, with the client’s own information and your own authorized checks. The page on AI vulnerability triage covers keeping that match-versus-finding line clean.
Keep the analyst between the output and the report
The product of this step is an explained, ordered list of services, which is a better starting point than a raw port list, and nothing more. A service becomes something you test, and later perhaps a finding, when a person on the engagement has looked at it, decided it is in scope and worth the time, and run the authorized follow-up themselves. The model read your output and helped you sort it; it did not find anything, because it never looked at the target.
16 security builds, priced per token
USD per million tokens, live on 2026-11-27; auto/security bills at the build that answers.
Detected refusals and invalid non-streamed JSON qualify for automatic refunds within the daily cap. Verify your receipt.
| Wire formats | |||||
|---|---|---|---|---|---|
| Qwen3.8 27B Cybersecurity | Security | $0.40 | $2.40 | 262K | |
| Uncensored Qwen3.8 27b Cybersecurity | Security | $0.40 | $2.40 | 262K | |
| Gemma 4 26B A4B Cybersecurity | Security | $0.4224 | $1.3376 | 262K | |
| Gemma 4 26B A4B Cybersecurity (Uncensored) | Security | $0.48 | $1.52 | 262K | |
| GLM-5.3 Flash Cybersecurity | Security | $0.4935 | $1.645 | 1049K | |
| GLM-5.3 Flash Cybersecurity (Uncensored) | Security | $0.5093 | $1.6975 | 1049K | |
| Red Team (Flash) | Security | $0.90 | $3.00 | 1000K | |
| Red Team (Pro) | Security | $1.50 | $6.00 | – | |
| OrcaCyber MiniMax M3.1 Flash | Security | $2.00 | $4.00 | 262K | |
| OrcaCyber MiniMax M3.1 Flash (Uncensored) | Security | $2.00 | $4.00 | 262K | |
| OrcaCyber Qwen3.8 Flash Next (Uncensored) | Security | $2.00 | $4.00 | 262K | |
| OrcaCyber Qwen3.8 Flash Next | Security | $2.00 | $4.00 | 262K | |
| Uncensored Qwen3.8 Flash Next Cybersecurity | Security | $2.00 | $4.00 | 262K | |
| Cyber Frontier | Security | $5.25 | $15.75 | 1049K | |
| OrcaCyber Zero 1.5 | Security | $7.50 | $18.75 | 999K | |
| OrcaCyber Zero 1.5 (Uncensored) | Security | $7.50 | $18.75 | 999K |
Questions
Does the model scan the target?
No. It reads the Nmap output you already collected and returns a summary and a triage order as text. It has no scanner, no network tool and no access to the host. The scan happened earlier, under your scope, with your own copy of Nmap.
Why convert the XML to JSON first?
It shrinks the prompt, lets you drop out-of-scope hosts and replace real addresses with placeholders, and gives the model clean fields to read instead of console text. Your script keeps the placeholder map so you can match the summary back to real hosts.
Can the model tell me a service is vulnerable?
It can flag a version worth checking, which is a lead, not a finding. Banners can mislead and fixes can be backported. Confirm the real state with the client’s information and your own authorized checks before anything goes in the report.
What should I ask the model for?
Two things: a one-line summary of what each service is and why a tester usually looks at it, and a triage order that puts the services most worth a closer look first. Ask what published information would confirm whether a version is current, without asking it to assert that a specific flaw is present.