{"slug": "netsniff-passive-network-traffic-analyzer-for-finding-vulnerabilities", "title": "NetSniff – Passive network traffic analyzer for finding vulnerabilities", "summary": "VulnDog, a CLI traffic-listening vulnerability highlighter built for AI agents, has shipped all milestones M1.1 through M3.4, including the capture-to-analysis pipeline, config v2, scope/SSRF rail, MCP server, AI-provider layer, and the `vulndog db build / info / verify` store-management surface, unified behind the `vulndog` console entry. The tool runs as a local forward proxy that redacts query values before persisting, then matches requests against an offline vulnerability knowledge base using a deterministic pipeline with one local ML step — query embedding via a local Ollama endpoint running `embeddinggemma:300m` (768-d vectors) — and never makes cloud LLM calls or issues requests of its own. No store ships in the tree yet and there are no releases, with store distribution awaiting the GAP-1 decision; the engine reports 690 tests green at the 2026-10-28 state.", "body_md": "**VulnDog is a CLI traffic-listening vulnerability highlighter built for AI agents.**\nIt sits as a local forward proxy, watches the requests flowing through it, and\nhighlights the ones that look potentially vulnerable — matching them against a\nbuilt-in offline vulnerability knowledge base. Every highlight is advisory: a\n*candidate / possible direction*, never a finding.\n\n**Status: the capture → analysis pipeline, config v2, scope/SSRF rail,\nMCP server, AI-provider layer, and the `db` store-management surface are\nshipped** (`src/vulndog/`), unified behind the `vulndog` console entry\n(M2.5): the observing proxy, timestamped run folders, redaction-before-persist,\nthe offline matching engine, and `vulndog db build / info / verify` (M3.1)\nall work today via `vulndog …` (or `python -m vulndog …`). The CI/release\nworkflow scaffolding is in place (M3.3), the docs are finalized (M3.2), and\nthe independent-extension validation is shipped (M3.4 — stranger\nwalkthroughs, re-proven by permanent offline tests): **all milestones\nM1.1–M3.4 are delivered**. Still planned (see PLAN.md for the milestone\ntable): the first public release — **no store ships in the tree yet** and\nthere are no releases (store distribution awaits the GAP-1 decision).\n\nSecurity engineers and AI agents increasingly drive HTTP traffic through local\nproxies (scanner batteries, browser rigs, agent tooling). VulnDog answers one\nquestion about that traffic, live: **\"does this request look like a known\nvulnerability class?\"** — without sending a single byte to a cloud service and\nwithout issuing a single request of its own. It observes, matches, and writes\ncandidates down. That is all it does, by design: it never issues a request of\nits own, and its scope/rail denials are a safety floor — not a security control\nto rely on.\n\nVulnDog's engine is a fully reused, production-proven core (690 tests green at the 2026-10-28 state) with a deterministic pipeline plus one local ML step:\n\n```\nproxied request\n  → tap (pure observer, bounded queue)          # redaction happens BEFORE persist\n  → events.jsonl (redacted spool, per-run dir)\n  → event text shaping                          # deterministic\n  → query embedding via local Ollama            # the one ML step\n  → FTS5 BM25 prefilter (top-500)               # deterministic SQL\n  → cosine re-rank vs pre-embedded KB vectors   # pure Python\n  → score floor (0.49, calibrated) + top_k      # deterministic\n  → regex \"exact-id pins\" for literal CVE-/CWE- tokens\n  → highlights (highlights.jsonl + highlights.md)\n```\n\n- **No cloud LLM calls, ever.** The only model service is a local Ollama*embedding* endpoint (`/api/embed` , model`embeddinggemma:300m` , 768-d vectors).\nThere is no chat completion, no prompt, no per-request LLM verdict anywhere in\nthe pipeline. See docs/AI-INTEGRATION.md.\n- **The embedder is required for matching** (including exact-id pins): with the\nembedding backend down, matching enters a buffer-and-retry down-mode and no\nhighlights are produced until it recovers. There is no fts-only fallback in v1 —\nsee docs/AI-INTEGRATION.md (\"When the embedder is down\").\n- **Redaction before persist.** Query values are length-masked (`<len-N>` ), secret\nlook-alikes are replaced (`<redacted>` ), and anything that fails redaction is\ndropped fail-closed. See docs/RUNS-AND-LOGS.md.\n\n| # | Feature | Notes | \n|---|---|---|\n| 1 | **CLI-only interface** | shipped entry: `vulndog run / status / version / mcp / db` (console script after`pip install .` ;`python -m vulndog …` is the equivalent module form); English product language | \n| 2 | **Configurable proxy** | local observing forward proxy, loopback by default ( `--host` /`--port` ); Mode A only — absolute-form HTTP + CONNECT tunnel. A non-loopback bind requires`--allow-remote-bind`**plus** a client credential (`--client-token` /`--client-allow` ), otherwise the proxy refuses to start | \n| 3 | **Per-run timestamped folders** | every run creates `runs/<YYYYMMDD-HHMMSS>[-<tag>]/` inside the project, containing the flagged-request log (`highlights.jsonl` /`highlights.md` ) | \n| 4 | **Scope + SSRF rail** | in/out host patterns (exact or `*.suffix` ; out wins) — out-of-scope requests get HTTP 403 and never leave the machine; under that, an SSRF rail**default-denies private/loopback/link-local/metadata targets** (`--allow-private` to opt in) | \n| 5 | **Built-in vulnerability DB** | offline SQLite knowledge base built from CVE (cvelistV5), ExploitDB, CWE, OWASP Top 10 archives — 456,460 records / 437,782 chunks in the full corpus | \n| 6 | **Optional AI hook** | semantic matching via local Ollama embeddings (default) or a custom provider config; reacts to requests and searches vulnerability matches | \n| 7 | **MCP server** | first-class consumers are AI agents: stdio JSON-RPC MCP server exposing `vuln_query` ,`highlights` ,`run_status` — shipped, run it with`vulndog mcp` (docs/MCP.md) | \n| 8 | **Proven engine, fully reused** | the `vuln_watchdog` core is vendored unchanged (module names identical); no redesign of what works | \n| 9 | **Advisory-only semantics** | output is \"candidate / never a finding\"; no auto-promotion; the engine issues zero target-bound requests | \n\n**Explicit non-features** (so nobody expects them): no GUI (CLI only), no\nMITM/TLS decryption (owner-rejected permanently), no LLM verdicts or prompt-driven\nreasoning (embeddings only).\n\nThe proxy is network-facing code, so its safety floors are explicit:\n\n- **SSRF rail (default-deny).** Requests to loopback, RFC1918, link-local\n(including the cloud-metadata address`169.254.169.254` ), CGNAT`100.64.0.0/10` , IPv6 ULA/link-local,`localhost` and`*.internal` names are\nrefused with 403 (`denial_reason:\"proxy_private\"` ) before any upstream socket —\non both the HTTP and CONNECT legs, under any scope. Numeric IP spellings\n(decimal/hex/octal shorthand) are normalized before classification, and other\nnames are classified at connect time against their**resolved** address: a\npublic name that resolves to a private address (DNS rebinding) is denied, and\nthe connection uses that classified address — one resolution per request, no\nre-resolution at connect. Honest residual: a DNS record flipping between\nseparate resolutions across requests (the rebinding TOCTOU) is a narrow known\nrace — the socket never re-resolves the name, but there is no resolver-level\npinning; treat the rail as a floor, not a full SSRF defense.`--allow-private` is the explicit opt-in for testing private targets (it skips the rail but\nkeeps the single-resolution pinning).\n- **No accidental open relay.**`--allow-remote-bind` (a non-loopback listen\naddress)**refuses to start** unless you also pass`--client-token <secret>` (per-request`Proxy-Authorization: Bearer <token>` check, constant-time\ncompared) or`--client-allow <cidr>` . The credential is hop-by-hop: it is\nnever forwarded to the origin and never written to disk. Loopback binds (the\ndefault) need no credential.\n- **Resource brakes.** Concurrent connections are capped — excess connections\nare answered 503 before a handler thread spawns; the event queue drops oldest\nat 1000 and reports the delta as a`drop_counter` meta line; the per-run\nspool freezes at 100 000 events behind a visible`spool_cap` marker. Every\ndrop/refusal class is counted in the run state (`watchdog-run.json` ).\n- **Redaction before persist.** One fail-closed redaction door: the spool and\nthe flagged-request log both derive from redacted data, and anything that\nfails redaction is dropped and counted, never persisted raw. The limits of\nthat guarantee are documented honestly in docs/RUNS-AND-LOGS.md.\n\n| Traffic | What VulnDog inspects | Why | \n|---|---|---|\n| Plain HTTP (absolute-form requests) | full request: method, URL incl. path, params (names kept, values length-masked), status, content type, redacted body | leg is not encrypted | \n| HTTPS (CONNECT) | tunnel-level metadata only: host:port, timing, tunnel events (no path, no body) | the tunnel is relayed opaque; MITM/TLS interception is **rejected by design** | \n\nMost real-world traffic is HTTPS — plan your expectations accordingly. If you need request-level inspection of an HTTPS target, front it with plain HTTP in your own test rig or use a target that speaks HTTP.\n\nPrerequisites: Python >= 3.11; a local Ollama with the embed model\n(`ollama pull embeddinggemma:300m`) for analysis; and a vulnerability store —\n**no store ships in the tree yet**, so build one (see docs/VULNERABILITY-DB.md)\nor pass `--store <path to vulnkb.sqlite>`.\n\n```\n# install (zero runtime dependencies)\npip install .\n\n# capture + analyze — proxy on 127.0.0.1:8080, Ctrl-C to stop\nvulndog run\nvulndog run --store /path/vulnkb.sqlite --duration 300\n\n# point your tool / test rig at the proxy (default 127.0.0.1:8080)\n# read flagged candidates when the run stops:\n#   runs/<YYYYMMDD-HHMMSS>/highlights.md       (human)\n#   runs/<YYYYMMDD-HHMMSS>/highlights.jsonl    (machine)\n\n# show the latest run (pid liveness, counters, stop state)\nvulndog status                      # add --json for machine-readable output\n\n# AI agents: start the MCP server over stdio (setup: docs/MCP.md)\nvulndog mcp --project .\n\n# build / inspect / verify the vulnerability store (needs a local Ollama;\n# full surface: docs/VULNERABILITY-DB.md)\nvulndog db build --raw-dir <dir-with-4-archives>\nvulndog db info\nvulndog db verify\n```\n\nEvery command above also works as `python -m vulndog <subcommand>` without\nthe console script. `vulndog db` (store management — `build` / `info` /\n`verify`, plus a release-asset dry-run) is shipped (M3.1); see\ndocs/VULNERABILITY-DB.md.\n\nA run without a reachable store still captures and preserves every event. When captured events meet a down or disabled match path (missing store, embedder outage, analysis failure), the run exits 4 with an actionable message (\"build one … or pass --store\") — an unanalyzed run is never reported as a clean \"no vulnerabilities\" result. Exit 4 means analysis was skipped or failed, never \"no vulnerabilities found\"; a run that captured zero events exits 0 (empty-spool semantics). Full flag surface: docs/CONFIGURATION.md. Run-folder layout and formats: docs/RUNS-AND-LOGS.md.\n\nVulnDog is a passive monitoring tool for traffic **you are authorized to test**.\nIt never sends requests to targets and never modifies traffic. You are responsible\nfor complying with the laws and scopes that apply to what you point through the\nproxy. Run directories contain real target hostnames from your traffic — treat\nthem as sensitive and never redistribute them.\n\n| Doc | Contents | \n|---|---|\n| [PLAN.md](https://github.com/Keutonim/VulnDog/blob/main/PLAN.md) | phased implementation plan: milestones, acceptance criteria, deltas, risks | \n| [docs/CONFIGURATION.md](https://github.com/Keutonim/VulnDog/blob/main/docs/CONFIGURATION.md) | CLI flags, config file + 3-layer merge, scope, proxy settings, thresholds, mutes | \n| [docs/RUNS-AND-LOGS.md](https://github.com/Keutonim/VulnDog/blob/main/docs/RUNS-AND-LOGS.md) | run folder layout, flagged-request log formats with real examples, redaction guarantees and limits | \n| [docs/MCP.md](https://github.com/Keutonim/VulnDog/blob/main/docs/MCP.md) | MCP server for AI agents: transport, tools, agent setup | \n| [docs/VULNERABILITY-DB.md](https://github.com/Keutonim/VulnDog/blob/main/docs/VULNERABILITY-DB.md) | built-in vuln DB: sources, schema, build pipeline, seed/full/subset options, how to populate and extend it yourself | \n| [docs/AI-INTEGRATION.md](https://github.com/Keutonim/VulnDog/blob/main/docs/AI-INTEGRATION.md) | the AI hook: Ollama setup, custom provider config, outage behavior | \n| [CONTRIBUTING.md](https://github.com/Keutonim/VulnDog/blob/main/CONTRIBUTING.md) | dev setup, running the tests, adding a KB recipe, extending docs, commit style | \n| [SECURITY.md](https://github.com/Keutonim/VulnDog/blob/main/SECURITY.md) | supported versions, reporting a vulnerability in VulnDog itself, the tool's safety model | \n\nVulnDog ships a **MIT** license: the `LICENSE` file at the repository root plus\nthe `license` declaration in `pyproject.toml`. The choice is **provisional** —\nit stands in until the owner's final licensing decision (PLAN.md GAP-1, which\nalso covers the per-source data-terms review for the redistributable\nvulnerability store).\n\nDecision pending: license choice — a provisional **MIT** `LICENSE` ships\ntoday (recommended default, owner to confirm; alternatives considered:\nApache-2.0).", "url": "https://wpnews.pro/news/netsniff-passive-network-traffic-analyzer-for-finding-vulnerabilities", "canonical_source": "https://github.com/Keutonim/VulnDog", "published_at": "2026-11-23 18:08:48+00:00", "updated_at": "2026-11-23 18:17:27.461334+00:00", "lang": "en", "topics": ["ai-agents", "ai-tools", "ai-safety", "developer-tools", "ai-infrastructure"], "entities": ["VulnDog", "Ollama", "embeddinggemma:300m", "MCP"], "also_reported_by": [], "takeaway": "VulnDog matches proxied HTTP requests to known vulnerability classes with a deterministic FTS5 BM25 top-500 prefilter plus cosine re-rank against pre-embedded KB vectors, a calibrated 0.49 score floor, and regex pins for literal CVE-/CWE- tokens, using only a local Ollama embedding endpoint (embeddi", "recommendation": null, "alternates": {"html": "https://wpnews.pro/news/netsniff-passive-network-traffic-analyzer-for-finding-vulnerabilities", "markdown": "https://wpnews.pro/news/netsniff-passive-network-traffic-analyzer-for-finding-vulnerabilities.md", "text": "https://wpnews.pro/news/netsniff-passive-network-traffic-analyzer-for-finding-vulnerabilities.txt", "jsonld": "https://wpnews.pro/news/netsniff-passive-network-traffic-analyzer-for-finding-vulnerabilities.jsonld"}}