National Cyber Warfare Foundation (NCWF)login

GPT_Vuln-analyzer for AI-assisted reconnaissance triage


0 user ratings
2026-10-26 17:30:10
milo
Red Team (CNA)
"GPT_Vuln-analyzer

GPT_Vuln-analyzer wraps nmap, DNS, subdomain, JWT, PCAP, GeoIP, and hash-cracking modules in a multi-provider LLM layer that turns raw scan output into structured, pentester-oriented reports for authorized assessments.








Toolmorpheuslord/GPT_Vuln-analyzer — AI-assisted recon and vulnerability-analysis toolkit with CLI and desktop GUI
CategoryReconnaissance and LLM-assisted vulnerability analysis
Primary UseRunning nmap, dns, sub, jwt, pcap, geo, and hash-cracking attacks, then having an LLM produce a structured analysis of the output
Safe UsePoint it only at systems you own or are explicitly authorized to assess — lab ranges, engagement scopes, and scanme-style targets; the AI layer is for report triage, not target selection
Telemetry NoteIt shells out to the system nmap binary, so scans leave ordinary nmap fingerprints on the wire; scan targets and raw results are also sent to third-party AI providers (OpenAI, Anthropic, Google) unless the local ollama provider is used — a significant data-handling consideration for sensitive engagements

GPT_Vuln-analyzer (GVA) sits in the growing niche of tools that treat the language model as an analyst rather than a scanner. It does not discover anything itself; it orchestrates well-known engines — the system nmap binary via python-nmap, DNS resolution libraries, tshark for packet captures, ipgeolocation.io for lookups — and then pipes the raw output into an LLM that returns a structured, pentester-oriented report. The value proposition is triage speed: instead of manually reading a 65,535-port scan or a wall of DNS records, you get a table with a critical score, OS guess, open services, and candidate CVEs. At 598 stars and MIT-licensed Python, it is one of the more visible entries in the ai-vulnerability-analysis space.


The architecture is provider-agnostic in a way that matters operationally. Each provider — openai, claude, gemini, or a local ollama model — is implemented as a Pydantic AI agent, meaning every response is validated against a schema before it reaches you. That is a meaningful design choice: hallucinated analyses from raw LLM output are the classic failure mode of this tool category, and structured validation at least guarantees the output shape (score, ports, services, CVEs) is coherent even when the content needs verification. You can also select multiple providers at once; each model analyses the scan independently and concurrently, and a --summarizer deliberation agent reconciles their reports into one consolidated output, viewable per-model with --show_individual.


Installation is deliberately polished. The install.sh script auto-detects the package manager (apt, dnf, pacman, zypper, apk, brew, or rpm-ostree), installs uv at user level, runs uv sync, and creates the .env file, elevating only the system-package step with sudo. The README explicitly warns against running it from a root shell because user-only mounts like /run/host break root's file access — a small detail that signals the maintainer actually tests on immutable distros like Bazzite and Silverblue. There is even documented remediation for the libssh2.so.1 missing-library failure on those platforms via conda install -c conda-forge nmap or rpm-ostree install libssh2.


The nmap attack is the centerpiece, organized around ten curated scan profiles exposed via --profile and --list_profiles. Profiles 1 through 5 run unprivileged — TCP connect scans such as -Pn -sT -sV -T4 --top-ports 100 for quick triage, up to a full-port -p- version scan and an NSE --script=vuln pass. Profiles 6 through 10 require root for SYN, UDP, and OS-detection flags; GVA escalates only the nmap step with sudo, which is the correct privilege-narrowing pattern rather than running the whole tool as root. The README documents the exact nmap command for each profile, so you always know what will hit the wire before you run it.


The auxiliary attacks round out a typical recon workflow. --attack dns performs forward, reverse, and zone-transfer lookups and has the AI type the results into A/NS/MX/SOA records; --attack sub resolves a subdomain wordlist (custom via --sub_list); --attack jwt decodes a token and surfaces likely attack classes and endpoints worth testing; --attack pcap inspects a capture for ARP/MAC spoofing and cleartext credentials; --attack geo geolocates an IP through the ipgeolocation.io API. A hash-cracking mode supports wordlist and brute-force attacks against common algorithms with an optional --parallel flag. Each attack type takes only the fields it needs, which keeps the CLI surface coherent.


Invocation is straightforward for authorized lab use, e.g. python gpt_vuln.py --target scanme.nmap.org --attack nmap --ai openai against the intentionally scannable scanme.nmap.org, or python gpt_vuln.py --target example.com --attack dns --ai openai,claude,gemini to exercise the multi-model deliberation path. Configuration is entirely through .env (OPENAI_API_KEY, ANTHROPIC_API_KEY, GEMINI_API_KEY, GEOIP_API_KEY), and any provider without a key is silently skipped rather than erroring mid-scan. The Ollama path runs llama3 in a local Docker container with no key and no egress, started automatically when selected.


That provider choice is the single most important decision an operator makes with this tool, and it deserves emphasis. Selecting a commercial provider means your scan output — hostnames, open services, potentially credentials found in PCAPs — is transmitted to a third-party API. On engagements with data-handling clauses, the ollama provider is the only defensible default, even at the cost of analysis quality. The README's pricing table ($0.20/$1.20 per million tokens for OpenAI, up to $1.00/$5.00 for Anthropic) frames this as a cost question, but for professional work it is fundamentally a confidentiality question.


The desktop GUI, built with customtkinter and launched via GVA_gui.py, mirrors the CLI faithfully: a sidebar listing attacks, per-attack field sets, an AI-provider dropdown, nmap-profile selection with root warnings, and provider status dots showing which keys are configured. Scans run on a background thread so the window stays responsive, results render in a console-style panel with Copy and Clear buttons, and a status bar surfaces errors. For teams less comfortable with terminals, it lowers the barrier without hiding the profile semantics.


The example output shows what the LLM layer actually produces: a table with a critical score, OS information, open ports and services, a flagged vulnerable service, and candidate CVEs such as CVE-2023-28531. This is where professional skepticism belongs. The model is correlating version strings against its training data, which means the CVE associations are plausible leads, not verified findings — versions can be spoofed, banners misread, and model knowledge stale. Treat every found cve row as a triage pointer for follow-up with authoritative sources, never as a reportable conclusion.


A few engineering touches suggest genuine production maturity. If nmap is missing or broken, the attack reports a clean error instead of crashing; if a scan completes with zero open ports, GVA says so explicitly rather than emitting a blank analysis that could be mistaken for success. The interactive --menu mode walks through target, options, and provider selection step by step, and --rich_menu help gives formatted assistance. These are small things, but silent-failure handling is what separates tools you can script against from demos.


For defenders, GVA is also worth studying from the outside. Its scans are ordinary nmap traffic — the profile table is effectively a map of what an AI-assisted reconnaissance phase looks like on the wire, from top-100 TCP triage to full-port SYN audits and UDP sweeps against DNS, SNMP, and NTP. Blue teams building detection for scan-and-analyze pipelines should note that the tool's fingerprint is the same as vanilla nmap; the LLM analysis happens entirely off-network. Its most observable side effect in your own environment is outbound API traffic carrying scan results, which belongs in any acceptable-use monitoring for security tooling.


Overall, GPT_Vuln-analyzer earns its stars by doing the orchestration boringly well: validated structured output via Pydantic AI, privilege-escalation limited to the one step that needs it, graceful failure modes, and a local-model escape hatch. It will not replace an analyst's judgment on CVE relevance, and its commercial-provider default makes it unsuitable for confidential scopes without care, but as a triage accelerator for authorized labs, training ranges, and scoped assessments it is one of the more complete implementations of the LLM-as-analyst pattern available.



Official project repository for morpheuslord/GPT_Vuln-analyzer.

Download Tool

Educational analysis for authorized security professionals. Use only in controlled, authorized environments.






Source: OffensiveSec
Source Link: https://www.offsecblog.com/2026/10/gptvuln-analyzer-for-ai-assisted.html


Comments
new comment
Nobody has commented yet. Will you be the first?
 
Forum
Red Team (CNA)



Copyright 2012 through 2026 - National Cyber Warfare Foundation - All rights reserved worldwide.