FalkorDB extends Valkey with native graph database capabilities

Learn more →
FalkorDB
Solutions
Use cases
Why FalkorDB
Developers

Why CVSS Is the Wrong Way to Prioritize Vulnerabilities

Vulnerability prioritization: a castle with one glowing path through the gate to a treasure chest

Security scanners sort findings by CVSS, so a big share of the backlog looks urgent and the dangerous findings get buried. Good vulnerability prioritization asks a different question: can an attacker get from the internet to the data that matters through this bug? Graph Hacks, FalkorDB's online hackathon in October 2026, drew 7,899 developers and 1,213 projects, and several teams built that check on a graph. In Atharv Sharma's generated test company, 3,525 of 6,862 findings (51%) scored CVSS 9.0 or higher, yet only 14 (0.2%) sat on a route from the internet to a crown-jewel data store.

Key takeaways. On six generated scans, three of them held out, Reachable's top 10 covered 100% of the planted attack paths, against 0% for a CVSS sort and 10% for a SQL agent. Reachable's first pick was a CVSS 7.5 that the scanner ranked #4,175, because three paths run through it. In Interdict's synthetic environment, 69 of 1,000 alerts sat on a real path, and only 33 of the 104 critical alerts were among them. Rung's naive count says 16 of 16 pods in its demo cluster reach cluster-admin. Checking preconditions leaves 6, and a second synthetic cluster went from 15 to 6.

What is vulnerability prioritization?

Vulnerability prioritization is the work of deciding which security findings to fix first, based on what each one puts at risk in your environment and not only on its severity score.

FalkorDB fits because reachability is a graph question, and the algorithms it needs run from Cypher: algo.bfs for reach, algo.SPpaths for the likeliest route, algo.maxFlow for the fewest fixes, algo.betweenness for the busiest hops. GRAPH.COPY makes a scratch copy to test a fix on, and one instance holds a separate graph per tenant.

Why does a severity sort miss what a graph can see?

QuestionUsual approachGraph approach
Can an attacker reach this bug and go on to the data?A CVSS score describes the bug aloneWalk from the internet to the data and keep the findings on a route
Do EPSS, KEV and exposure fix the ranking?They add facts about one node, so an exposed host that leads nowhere still ranks highExposure only counts if a route continues from that host
Is this permission usable?Count every granted permission as a capabilityDraw the edge only when its precondition holds
What do we fix first?Patch from the top of the listCompute the smallest set of fixes that cuts every route
Did the fix work?Wait for the next scanApply it to a copy of the graph and search again

How did Graph Hacks teams rank findings with a graph?

None of the results below comes from a production environment, so I say where each dataset came from. What happens after the ranking also differs, so I say who acts on a fix in each project.

1. Rank findings by route, then cut every route with the fewest fixes

Reachable · Atharv Sharma · See the code · Use the app · Blog

A scanner lists Ghostcat (CVE-2020-1938), a CVSS 9.8 known-exploited bug, at #1,487 and again at #1,488. One copy, on an edge web server, starts an attack path. The other sits in a quarantine zone that nothing leads to. Reachable's first pick is a CVSS 7.5 the scanner ranks #4,175, on an internal CI runner. Three web servers can each reach that runner through this bug, and the runner holds a cloud key that can read the deploy bucket. One patch closes three paths. A CVSS sort puts about 1,500 findings ahead of the first one on any path.

The demo company has 1,758 assets and 6,862 open findings, all generated by the project's own code. Only the threat intelligence is real: CISA KEV, FIRST EPSS, NVD and MITRE ATT&CK. Nine Cypher rules turn plain facts into about 30,600 ATTACK_STEP edges, each storing its likelihood, its fix and its evidence. Cost is -ln(likelihood), so the shortest path is the most likely one. A separate FLOW layer turns each fix into a gate of capacity 1, so max flow equals the minimum number of fixes. On this company that is 9 paths and 7 fixes.

My favorite part is that the tool refuses to answer unless the cut it recovers equals the max flow. Owners, on-call rotas and decision records share the graph, so a fix comes with its owner and the decision that opened the exposure. Agent memory lives there too. In one rescan test it cut findings investigated from 9 to 1, with the same fix set.

Reachable's output is a recommendation, tested first on a GRAPH.COPY. An analyst can reject a verdict, and that can become a new playbook version.

Reachable demo

Here are the likeliest paths and the minimum cut, as the README shows them.

MATCH (s:Internet {id: $source}) MATCH (t:DataStore {crown_jewel: true})
CALL algo.SPpaths({sourceNode: s, targetNode: t, relTypes: ['ATTACK_STEP'],
                   weightProp: 'cost', pathCount: $k, maxLen: $max_hops})
YIELD path, pathWeight
RETURN t.id, pathWeight, path ORDER BY pathWeight

MATCH (s:Internet) MATCH (t:DataStore) WHERE t.id IN $targets
WITH s, collect(t) AS ts
CALL algo.maxFlow({sourceNodes: [s], targetNodes: ts,
                   capacityProperty: $cap_prop, relationshipTypes: ['FLOW']})
YIELD edges, edgeFlows, maxFlow
RETURN maxFlow, edges, edgeFlows

Atharv ranked the same findings five ways on six generated scans, three for development and three held out. An independent networkx oracle scored each run against paths the generator planted. Path coverage is the share of planted paths with at least one finding in the top 10.

Method, on 6 generated scansPath coverage in top 10Decoys in top 10Paths cut per fix
CVSS sort0%0%0.00
Score from CVSS, EPSS, KEV and exposure0%33%0.00
Same LLM with vector search0%0%0.00
Same LLM with read-only SQL10%11%0.30
Reachable100%0%1.16

The SQL agent is the fairer rival. Walking one or two hops back from the crown jewels by hand, it reached 17% on the held-out scans and 33% on one rescan. Reachable scored the same on held-out and development scans.

The limits are Atharv's own. All three companies are generated, so the 14 findings come from paths the generator planted. The headline uses one model seed. CVSS and the combined score are free and instant, while a Reachable run here costs about $0.007. The ranker and the oracle also define priority the same way, so the README leads with these numbers and not its perfect ranking score.

In the builder's words. "Same CVE, same score, opposite answers." Atharv Sharma, Reachable

Try it. Give every attacker step a fix token, add a capacity 1 gate for each token, and run algo.maxFlow from the internet to your crown jewels. Start free on FalkorDB Cloud.

2. Try to break the fix on a copy before it counts

Interdict · Yash Soni, Rohan Jaiswal · See the code · Use the app · Blog

It is Monday morning, and the scanner has 1,000 alerts, 104 of them critical. The usual plan is to fix the critical ones first. In the environment this team generated, only 33 of those 104 sit on a real attack path. Another 36 alerts rated high do too, so fixing critical alerts first leaves out 52% of the alerts on a path.

The graph holds 1,235 nodes and 2,566 relationships from a fixed seed: internet exposure, image vulnerabilities, observed network flows and IAM grants. Every evidence edge records its source, when it was observed and when it expires. Expired evidence makes a verdict inconclusive, never safe. Cypher joins this evidence into ATTACK_STEP edges, and algo.bfs sorts all 1,000 alerts in a median of 58 ms.

A planner then picks at most three Kubernetes egress policies, ranked by how many declared dependencies they break. A Path Hunter applies them to a GRAPH.COPY, and max flow, bounded chains and a BFS must agree that no path survives. In the demo it finds a 4-hop path to customer-pii-db, beyond the planner's 3-hop bound, and re-plans to close it.

The agent here has no AI model. Written rules call seven MCP tools, so runs are free and repeatable. No person signs off in the flow the README describes. The gate is a valid certificate at the current graph revision, and what comes out is a simulation receipt. Nothing changes real infrastructure.

Interdict demo

A lateral move exists only where an observed flow reaches a pod with an active, network-exploitable vulnerability.

MATCH (a:Pod)-[c:CAN_REACH]->(b:Pod) WHERE a.id <> b.id
MATCH (b)-[:RUNS_IMAGE]->(:ContainerImage)-[:HAS_VULNERABILITY]->(v:Vulnerability {status: 'ACTIVE'})
WHERE coalesce(v.attack_vector, 'NETWORK') IN ['NETWORK', 'ADJACENT']
WITH a, b, collect(DISTINCT c.port) AS ports, collect(DISTINCT c.id) + collect(DISTINCT v.id) AS backing
CREATE (a)-[:ATTACK_STEP {kind: 'LATERAL', capacity: 1, ports: ports, backing_evidence_ids: backing,
        built_at_revision: $revision, technique_id: 'T1210', technique: 'Exploitation of Remote Services'}]->(b)
Verdict, on 1,000 synthetic alertsAlertsShare
On a real attack path, in 4 clusters696.9%
Vulnerable, but on no path38238.2%
Not actionable54954.9%

Three policies do not always work. Ask Interdict to protect both crown jewels at once and it answers "No safe plan within 3 changes", because 4 independent paths need 4 actions, and it returns the best partial plan. The certificate covers only modelled threats on the synthetic snapshot, and the team notes that its BFS check reads the same derived edges as max flow.

In the builder's words. "Honest outcomes are part of the product." Yash Soni and Rohan Jaiswal, Interdict

Try it. Store observed_at and valid_until on every evidence edge, and return "inconclusive" when any edge on a route has expired.

3. Count only the permissions an attacker can use

Rung · Atharva Joshi, Harsh Pashine, Om Yerkar · See the code · Use the app · Blog

A Kubernetes chain to cluster-admin is spread across pods, service accounts, roles and bindings, and no single object looks alarming. The opposite mistake is reading every permission as a capability, and then the whole cluster looks owned.

Rung loads a cluster snapshot into FalkorDB and marks each edge attack_path: 1 only when the fact behind it holds. create pods does not count in a namespace enforcing restricted Pod Security Admission. secrets: list does not yield service account tokens since Kubernetes 1.24, because tokens are projected. create rolebindings needs bind too. And a host escape needs both privileged and hostPID.

An agent answers plain questions from 20 graph tools, including betweenness for the single best fix. Memory nodes sit outside the label that gets wiped on each re-ingest, so a risk a person accepted last scan comes back as REGRESSED when a new route avoids the control they trusted. Rung recommends and simulates, and it never acts on your cluster.

Rung demo

Blast radius walks only the edges that passed the check.

MATCH p = (a {id: $id})-[*1..5 {attack_path: 1}]->(t)
WITH t, min(length(p)) AS hops
RETURN t.id AS id, labels(t)[0] AS kind, hops
ORDER BY hops, id LIMIT 20

The team counted the same graph twice, so the naive column is their own count and not a run of another tool. The demo is a throwaway kind cluster built for the project, and the second cluster is a synthetic sample.

MeasureEvery permission countsPreconditions checked
Demo cluster: pods reaching cluster-admin16 of 166
Demo cluster: TOKEN_LIST edges1,47216
Second cluster: pods reaching cluster-admin156

That is about 99% fewer token edges on the demo cluster.

In the builder's words. "Kubernetes hands out permissions in tiny pieces that each look harmless, but chain a few together and you've got cluster-admin." Atharva Joshi, Harsh Pashine and Om Yerkar, Rung

Try it. Put an attack_path property on every edge, set it to 1 only when the precondition holds, and run the blast radius query from one pod.

Which change helps most after an account is compromised?

Choke Point, by Anish Kumar, finds every route from a compromised user, group or host to the crown jewels and ranks links by how many routes use them. In its synthetic demo company, a contractor has 33 paths, and one mistakenly nested group, planted by the generator, sits on 30 of them. Cut it and 3 are left. Only a person can approve a fix. A path here is a route through permissions, not proof that an attacker could use it. Watch the Choke Point demo.

Keep reading: a company brain with fixed read-only queries and 5 agent memory patterns from 647 Graph Hacks projects.

Frequently asked questions

Why is CVSS not enough for vulnerability prioritization?

CVSS describes one bug on its own. It cannot see whether an attacker can reach that bug or what sits behind it. In Reachable's generated test company, 51% of 6,862 findings scored 9.0 or higher, while only 14 sat on a route to a crown-jewel data store, and 12 of those 14 scored 7.5 or lower.

How does a graph database help with vulnerability prioritization?

It stores hosts, identities, secrets and findings as connected nodes, then adds one edge for each move an attacker could make. A query walks from the internet to your sensitive data, and findings on no route drop down, whatever their score.

Do EPSS and KEV solve vulnerability prioritization?

They add useful facts, but those facts describe one bug or host. In Atharv Sharma's test on six generated scans, a score combining CVSS, EPSS, KEV and internet exposure covered 0% of the planted paths in its top 10 and put a decoy in every top 10. That decoy was an exposed host that led nowhere.

Can an agent apply security fixes on its own?

These projects draw that line in different places. Reachable recommends a tested fix set and names the owner. Rung recommends and simulates, and never acts on your cluster. Interdict acts only through a simulation, gated by a certificate. Choke Point lets only a person approve a fix, and nothing runs its fix text.

Does vulnerability prioritization need an LLM?

Not for the verdict. Interdict's agent has no AI model, and every verdict comes from a graph query or algorithm. Reachable uses an LLM to choose follow-up calls and judge results, and drops ids, numbers and claims that are not in the tool output.

Find out which findings can reach your data

Every project here runs on the same FalkorDB you can start as a free cloud instance, or with one Docker command, docker run -p 6379:6379 -p 3000:3000 -it --rm falkordb/falkordb:latest. Load one environment's hosts, findings and data stores, add one edge per attacker move, and run algo.bfs from the internet.

Start free on FalkorDB Cloud

Not ready to build yet? Join the FalkorDB Discord to get help from our engineers, share what you build, and hear about the next Graph Hacks first.

Author