A tiny MCP that lets even a 1.7B AI (like LFM3‑uncensored) research and comprehend the whole world from a single
nmapfingerprint! 🎀Goal: Index every CVE/GHSA in the
github/advisory-database, spin up an stdin MCP, and run fast keyword searches for any small AI model. 🚀 NEW: ipbuf.com POC scraper
git clone https://github.com/ITALICOder/CVE-GHSA-MCP
cd CVE-GHSA-MCP
git clone --depth 1 https://github.com/github/advisory-database.git
pip install mcp # optional, only if you want to run it as an MCP serverpython indexer.py # ← runs the whole index (slow on first run)
# or, for quick updates:
git -C advisory-database pull && python indexer.pyRun it manually and let the database do its thing. 👇
python build_site.py netgear "SV8100 PBX" # export matches, one keyword per line
python -m http.server 8000 -d site # serve it locally (port 8000)search_advisories(keywords="<your keyword>", limit=10) # → list[dict]
get_advisory(advisory_id="GHSA-XXXX") # → full advisory dict or NoneRun the two classic nmap commands and paste the output below. I'll parse it into:
- Target IP & host state
- Open ports, protocol/state/service
- Version strings from
-sV - OS / device guesses + confidence
Example (filled in later):
Host is up (0.031s latency).
PORT STATE SERVICE VERSION
23/tcp open tcpwrapped
6969/tcp closed acmsoda
Aggressive OS guesses: Huawei S9300 switch (89%), TiVo series 1 (Linux 2.1.24-TiVo-2.5) (89%), Netgear WGR614v7 wireless broadband router (87%)...
No exact OS match for host.
Tip:
-Ogives fingerprints to throw at the AI. Usenmap -sV -O --osscan-limit --version-light <IP/subnet>and grab banner text on port 23.
throw the result at the ai with some prompt like that:
You are a vulnerability research assistant. Use the vuln-research MCP server to identify known vulnerabilities for a host, based only on the Nmap output I provide. This is for an authorized assessment of a device I control or have permission to test.
Extract these facts exactly as written:
- Target IP address and host state
- Open ports, with their protocol, state, and service name (ignore filtered and closed ports for the search, but mention them in the report)
- Any version strings from service detection (-sV), if present
- Any OS or device guesses, with their confidence percentages
Treat the OS guesses as hypotheses. A confidence below 95% or a "no exact match" note means they are unconfirmed. Do not present a guessed OS as the device's identity.
Create separate, specific keyword sets for each open service. Use vendor, product, protocol, and version terms, not generic words like "network device" or "vulnerability."
For each open port, produce:
- The service name (for example, "telnet")
- The likely vendor and product, based on the strongest OS guess and any banner text
- Known CWE classes relevant to that service (for example, cleartext transmission or authentication bypass for telnet)
- Known CVE or GHSA IDs, if you already recognize them. Mark these as "from memory, unverified" until the tool confirms them
Then run one search per keyword set using search_advisories. Start with narrow queries (vendor + product + service) and broaden only if results are empty. Use at most 10 results per query unless I ask for more.
For every advisory that looks relevant, call get_advisory with its ID to confirm:
- Affected products and versions
- Whether the affected version range could match the device
- CVSS score and severity
- Whether the advisory describes a fix or workaround
Discard matches where the product or version clearly does not fit. Explain briefly why you excluded them.
Structure the response as follows:
- Summary: Two or three sentences on the most important exposure (for example, an open telnet service).
- Confirmed findings table: Columns for Port, Service, Advisory ID, Affected product and versions, CVSS, Severity, Match confidence (high, medium, or low), and Fix or mitigation.
- Weak or unconfirmed leads: Advisories that might apply but need version confirmation. State what evidence would confirm them, such as a banner grab or a
show versionoutput. - Recommended next steps: Concrete, defensive actions, such as disabling telnet in favor of SSH, restricting access with ACLs, or verifying firmware version.
- Cite the advisory ID for every finding. Never invent an ID, CVE number, or CVSS score.
- If the tools return nothing, say so and suggest what additional scan data would help, such as
nmap -sV -O --osscan-guessor a banner grab on port 23. - Keep OS identification separate from vulnerability matching. Say explicitly when a finding depends on an uncertain OS guess.
- Do not provide exploit code, payloads, or step-by-step attack instructions. Focus on identification, impact, and remediation.
"
and in less then 30 seconds for a whole /24 lan we should get a CVE complete and fast pentest everywhere