Skip to content

About

CVE-GHSA-MCP that use github repository, index it in a database and open an stdin MCP for even the smallest 1.7B AI can research and comprend

Resources

Stars

2 stars

Watchers

0 watching

Forks

Latest commit

 

History

13 Commits

Folders and files

Repository files navigation

🐱 CVE-GHSA-MCP — Cute & Cute-ish GitHub Security Advisor

A tiny MCP that lets even a 1.7B AI (like LFM3‑uncensored) research and comprehend the whole world from a single nmap fingerprint! 🎀

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


📦 1️⃣ Clone & prep

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 server

🔧 2️⃣ First full index (unoptimized — takes a while the first time)

python indexer.py          # ← runs the whole index (slow on first run)
# or, for quick updates:
git -C advisory-database pull && python indexer.py

Run it manually and let the database do its thing. 👇

🌐 3️⃣ Build a cute little search site

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)

🔎 4️⃣ Search the advisories (keywords → list of dicts)

search_advisories(keywords="<your keyword>", limit=10)   # → list[dict]
get_advisory(advisory_id="GHSA-XXXX")                  # → full advisory dict or None

🛠️ 5️⃣ Nmap fingerprinting (for a LAN / whole /24)

Run 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: -O gives fingerprints to throw at the AI. Use nmap -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.

Step 1: Parse the Nmap output

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.

Step 2: Build keyword sets

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.

Step 3: Retrieve details

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.

Step 4: Report

Structure the response as follows:

  1. Summary: Two or three sentences on the most important exposure (for example, an open telnet service).
  2. 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.
  3. 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 version output.
  4. Recommended next steps: Concrete, defensive actions, such as disabling telnet in favor of SSH, restricting access with ACLs, or verifying firmware version.

Rules

  • 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-guess or 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.

Input

"

and in less then 30 seconds for a whole /24 lan we should get a CVE complete and fast pentest everywhere

About

CVE-GHSA-MCP that use github repository, index it in a database and open an stdin MCP for even the smallest 1.7B AI can research and comprend

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages