Drishti
Drishti: See your network the way an attacker does
Created on 12th July 2026
•
Drishti
Drishti: See your network the way an attacker does
The problem Drishti solves
Security teams are drowning in vulnerability scans. A single scan returns hundreds of CVEs sorted by CVSS score — but CVSS rates each flaw in isolation. It never asks the only question that matters: can an attacker actually reach this?
The result is dangerous mis-prioritization:
- Teams burn hours patching a scary "9.8" buried three firewalls deep — unreachable from the internet.
- Meanwhile an exposed "5.3" on the internet-facing load balancer — the real front door — stays open.
- A real breach is almost never one bug; it's a chain of small hops from the edge to the crown-jewel database. Scanners score the links, never the chain.
Drishti fixes this by modeling your network the way an attacker actually reads it:
- Maps the real attack path — builds a live directed graph and traces every route from the internet to your most valuable assets (Yen's k-shortest-paths on NetworkX).
- Prices risk in dollars — every attack path gets a deterministic dollar-exposure figure a CISO can take to the board, not a vague CVSS number.
- Drafts the fix — one click generates a defensive Ansible/shell/CLI remediation, grounded in the real finding, reviewed by a human before it runs.
- Proves the fix worked — resolve a finding and total exposure recomputes live (e.g. $902,900 → $702,900), because the math is real, not a mock-up.
Who it's for: security analysts and blue teams who need to answer "what do I fix first?" — with reachability, dollars, and a ready fix, instead of a spreadsheet of thousands of CVEs.
Defensive by design: Drishti maps and prices risk — it never attacks. Real scanning (Nmap + NVD) is consent-gated to private networks only, and every finding is honestly reported (an unavailable check is never shown as "safe").
Challenges we ran into
1. Attack-path enumeration exploded on dense graphs.
Naively finding "every path from the internet to every asset" is a combinatorial nightmare — on a well-connected network it hangs forever. We solved it with Yen's k-shortest-paths, bounded hard: a max hop-length, top-K paths per target, and a global cap. This keeps the engine fast and the output focused on the paths that actually matter.
2. Making the risk number trustworthy — and un-fakeable.
For judges (and real users), a dollar figure is worthless if an AI could hallucinate it. We split the system cleanly: the engine computes every dollar figure deterministically from the graph, and the AI only explains it — the /impact endpoint overwrites the model's output with the engine's value after it returns. Same inputs always produce the same number, and make smoke asserts the exact live drop ($902,900 → $702,900) on every run.
3. Keeping the AI strictly defensive.
An AI that writes "fixes" could be coaxed into writing exploits. We prepend a hard guardrail to every prompt, analyze the CVE context without ever using it to justify offensive output, and treat every generated script as a review-first suggestion. An AI_MOCK fallback also means a flaky network never breaks a live demo.
4. Real device scanning — without becoming an attack tool.
We wanted to detect real vulnerabilities on a live network, not just seeded data. The hard part was doing it ethically. So scanning is consent-gated: it runs on the host by default, and on the wider subnet only after an explicit "I'm authorized" toggle; it accepts private RFC1918 targets only and refuses public IPs; and it uses direct Nmap on the local subnet — never MITM or another device's traffic. Deep Scan matches detected service versions against the NVD database via CPE, then feeds results into the same risk engine.
5. The honesty problem: "unknown" is not "safe".
Most tools show "0 vulnerabilities" for a device they never actually scanned — which is a lie. We built three distinct states end-to-end: "not scanned" (grey), "0 CVEs — scanned, clean" (green, with the note that absence of a match isn't proof of safety), and "N CVEs found" (red). Unscanned nodes never masquerade as clean, and empty scans create no findings.
6. Autonomous scanning at scale.
Manually re-scanning each device doesn't scale. We added a background scheduler that round-robins deep-scans across discovered devices on a configurable interval, with concurrency and port caps and polite rate-limiting — surfacing a live per-device vulnerability count that rolls up to each parent node.
7. Shipping something that isn't a "works-on-my-laptop" hack.
We kept the whole thing typed end-to-end (Pydantic schemas mirrored in the TypeScript client), backed by 180+ backend tests (~195 cases passing) across the engine, AI, ingest, deep-scan, netconfig, and auth, and enforced green CI gates before every feature — then deployed it live (Railway + Vercel + real Groq).
