KYC due diligence rarely ends at one record. A company can look ordinary until you follow a nominee shareholder into a second company, whose own shareholder matches a name on a sanctions list. The answer is a path, and a row lookup can't find it. Graph Hacks, FalkorDB's online hackathon in October 2026, drew 7,899 developers and 1,213 projects, and two of the sharpest walked public offshore leak data to answer this question. The best result is a refusal. Casefile found a 4-hop link between two directors, with every link stated in the leak, and still marked it Low confidence, because the path runs through an address that 6,120 records share.
Key takeaways. Casefile marks any path through a node with 500 or more links as Low confidence, so a mass-registration address can't pass as strong evidence. In its pre-registered test of 28 questions, Casefile got 28 right and a pandas agent got 26, and a label audit shrinks that gap to one question. Shell Game searched for paths to sanctioned parties in a median 0.03 s on 241,847 nodes across 155 random entities, and fixed rules set the verdict. Khoj found 81% of hidden risk with no false positives on 200 synthetic projects, where each project's own records revealed none of it.
What is KYC due diligence? #
KYC due diligence is the work of finding out who a customer or partner really is, who stands behind it, and whether it connects to sanctioned or high-risk parties before you do business with it.
FalkorDB fits because those connections are typed edges an agent can walk with plain Cypher. PageRank, betweenness and WCC run from the same query language. One instance holds many isolated graphs, which these projects use to give each investigator, desk, buyer or newsroom its own memory. And all four send their read tools through a read-only query, so the database itself refuses a write.
Why can't a single-record check see this risk? #
| Question | Usual approach | Graph approach |
|---|---|---|
| Is this company connected to a sanctioned party? | A row lookup or vector search reads one record at a time | Walk officers, intermediaries and addresses up to 6 hops to a sanctioned node |
| Are two records with the same name one person? | A plain agent may say "same person" | A name alone is unsupported, so look for a shared address, company or intermediary |
| Does a shared address mean a real link? | Agents get misled by mailbox hubs shared by thousands of companies | A path through a node with 500 or more links is marked Low confidence, with the reason |
| Is there really no link? | A vector search can't prove a negative | Connected components tell "no chain of any length" apart from "a longer chain exists" |
How did Graph Hacks teams trace KYC due diligence risk through a graph? #
Casefile and Shell Game both use the ICIJ Offshore Leaks data, and Shell Game adds OpenSanctions lists. Casefile's notice says "Appearing in the Offshore Leaks data does not imply illegal or improper conduct." Shell Game's says "Possible links, not findings of wrongdoing." So I describe the patterns here and leave out the names in their examples.
1. Grade an offshore link before you trust it
Casefile · Arjun Chaudhary · See the code · Blog
Two officers in the leak share a name. A plain agent may call them the same person. Casefile answers unsupported, because only the name matches, the countries differ and nothing else links them. Addresses cause the same trouble. When thousands of companies register at one address, two strangers can look connected through it.
Casefile loads the leak as one graph of 2,016,523 records and 3,339,267 relationships. Every node has a shared :Node label plus a type, such as Officer, Entity, Intermediary or Address. Every edge keeps ICIJ's type and carries its source leak, dates and a provenance value, one of verified, icij_inferred or ours_inferred. Every node stores deg, its link count, and 500 or more marks a hub. A link's confidence is its weakest edge plus a hub penalty, so graph structure sets the grade.
An agent gets 16 tools over MCP, and the model only writes one paragraph of the report. A validator throws that draft out if it cites a reference that isn't in the evidence, if the chain fails the graph check, or if it uses accusatory wording. Records never merge. An identity verdict is stored as a SAME_AS_CANDIDATE edge.
The detail I'd copy first is how it explains a missing link. algo.WCC runs once at load, 63 s over 2.0M nodes, and tags every node with a component. When a search finds no path, Casefile can say there's no chain of any length, or that a longer chain exists past the hop limit.
Casefile doesn't detect crime or score risk. It hands over a case file with the evidence chain, its confidence, innocent explanations and what the data cannot conclude. The call stays with whoever reads it.
This is the hub guard, as the README prints it, with the edge list shortened to "...".
UNWIND $ids AS id
MATCH (n:Node) WHERE n.id = id
MATCH (n)-[:OFFICER_OF|INTERMEDIARY_OF|REGISTERED_ADDRESS|...]-(m)
WHERE m.deg < $hub OR m.id = $target
RETURN id AS f, m.id AS t
Arjun fixed a benchmark before any run, with 28 questions, ground truth computed from the raw CSVs, the same model in four setups and one run per question. Median time covers a whole agent run. The pandas agent reloads 260 MB of CSV on every question, and a separate fewest-hop query in Casefile takes about 0.3 s over 3.3M edges.
| Agent setup | Correct of 28 | Correct after the label audit | False identity links of 5 | Median time |
|---|---|---|---|---|
| Grep and read on the CSVs | 23 | 24 | 3 | 11.4 s |
| Python, pandas and networkx on the CSVs | 26 | 27 | 2 | 22.4 s |
| Casefile's MCP graph tools | 28 | 28 | 0 | 8.5 s |
| Casefile without validator, identity rule or confidence labels | 27 | 27 | 1 | 8.6 s |
The perfect score is less clean than it looks. After the run, an audit found one identity label is probably wrong. The grep and pandas agents had spotted a shared street address and a company recorded in two leaks, and Casefile had missed both. Accept their answer and the gap to the pandas agent shrinks to one question. That same question is one of the false links counted against each of them. The repo's own verdict on the miss is "Being cautious is not the same as being thorough." It reports the re-run with a fixed identity_check separately.
Every setup got every path, no-path, cluster, expansion and time-window question right. Casefile's lead of 7 points also missed the 15-point bar set in advance, so the README presents its value as provenance, validation and identity discipline. No setup invented a chain edge either, 0 of 64 across all four, so this test never made the chain check catch anything. The repo's tests do that with seeded fabrications.
In the builder's words. "Graph structure, not the model, decides how much a link is worth." Arjun Chaudhary, Casefile
Try it. Store a link count on every node when you load, then add WHERE m.deg < $hub each time your agent expands a neighbor. Start free on FalkorDB Cloud.
2. Turn a path to a sanctions list into a verdict
Shell Game · Muhammad Asjed · See the code · Use the app · Blog
You're about to sign with a supplier. Its record shows a name, a jurisdiction and an incorporation date. In one run, a company like that looks unremarkable until the graph shows its nominee shareholder also holds shares in a second company, whose shareholder exactly matches a sanctions-listed name. That's three hops. The product calls this a possible link and never says "guilty".
The graph holds 241,847 nodes and 506,015 edges. It's a focused cut of the leak, with everything within 3 hops of a name match plus a random background of 40,000 entities, so ordinary companies exist too. Sanctioned parties are :Sanction nodes joined by a MATCHES edge that stores the score and method. An edge weight w holds evidence strength. Registry links are 1, "similar name" links are 3, and a name match is 1 only when it scores at least 0.95.
The Investigator chooses among fixed, read-only tools, and any node ID it invents gets rejected. The Skeptic attacks weak edges and token-only name matches. The Gatekeeper applies five rules. Those rules make the verdict, and the LLM can explain it but can't change it. The README describes no human sign-off step.
| Rule | Verdict | When |
|---|---|---|
| R1 | REJECT | Path to a sanctioned party within 5 ICIJ hops, no weak edge, name-match score at least 0.95, not weakened by the Skeptic |
| R2 | EDD (enhanced due diligence) | Path within 6 hops but weakened by a weak edge, a lower score or a token-only match |
| R3 | EDD | Strong path longer than 5 ICIJ hops |
| R4 | EDD | 25 or more entities share the subject's registered address |
| R5 | APPROVE | No path within 6 hops and no cluster signal |
Look at R4 next to Casefile. A crowded address makes a Casefile link weaker, and it pushes a Shell Game subject toward a closer look. Both make sense, because one asks whether two parties are really linked and the other asks whether this subject needs more checking.
// sanction_paths / counterfactual: exact layered BFS inside FalkorDB, one query per hop
UNWIND $frontier AS i MATCH (n) WHERE ID(n) = i WITH n, i
MATCH (n)-[r]-(m) WHERE r.w <= $max_w AND m.id <> $remove_id
RETURN i, ID(m), m:Sanction
The search stops at the first hop that reaches a sanctioned party and rebuilds only the shortest paths. If the best path has a weak edge, a second pass allows strong edges only, so a short weak path can't hide a slightly longer strong one. Set $remove_id and the same query becomes a counterfactual. Cut one nominee and you learn whether any path survives without it.
Each case goes into the desk's own graph, cases_<desk>, with EXAMINED, FLAGGED and CLEARED edges to the nodes it touched. The next investigation that reaches those nodes gets the precedent back, and another desk's graph never sees it.
| Measured by Muhammad on the real graph | Result |
|---|---|
| Path search on 155 random entities | Median 0.03 s, p95 2.0 s, max 3.4 s |
| Name matches | 1,712, of which 503 exact, 602 alias and 607 token |
The repo publishes no labeled test of how often a verdict is right, and its README says matches can be wrong even under strict rules. Names need at least 2 tokens and 8 characters, countries must overlap when both sides list them, and a name that matches more than 5 records is dropped. Token matches are 35% of the total, and they can only reach EDD. "No path within 6 hops" is a provable negative for this graph, which is a cut of the leak.
In the builder's words. "The evidence only exists as a path." Muhammad Asjed, Shell Game
Try it. Give every edge a weight for evidence strength, then run one r.w <= $max_w query per hop and stop at the first hop that reaches a flagged node.
Which other due diligence projects should you look at? #
Run the same check for homebuyers. Khoj, by Ibrahim Jaffer, follows a Bangalore housing project's directors, land and contractor to red flags up to 4 hops away. All its data is synthetic. On 200 held-out projects that all look clean on the surface, half of them hiding risk, each project's own records found 0%. Khoj found 81% with no false positives, up from 77% on its first run, before a model change that makes the land result in-sample. Without its rules on which paths count, it flags 93% of clean projects. The team designed the risk patterns too, so this shows the model does what it claims on known patterns. Watch the demo.
Check who funds an expert. TieTrace, by Aaryan Degama, Jalendu Pandey, Kavyan Hembrom and Abdul Azeem Ansari, checks how connected an expert is to the company in a news story, using a research graph from OpenAlex. Every tie comes with a paper DOI, and every "no tie found" states its scope, since only 56.3% of the loaded topic works list a funder. It never calls anyone "independent" or "conflicted". On one documented case, it found 4 of 4 publicly confirmed leaders of an industry-funded group as direct evidence. Two other tests failed, so only direct evidence counts as a finding. Watch the demo.
Keep going with how a company brain stays safe with fixed read-only queries and 5 agent memory patterns from 647 Graph Hacks projects.
Frequently asked questions #
How does a graph database help with KYC due diligence?
The risk often sits two or three relationships away from the company's own record, and a graph stores those relationships as edges an agent can walk. In Shell Game, path search to sanctioned parties took a median 0.03 s across 155 random entities on a graph of 241,847 nodes and 506,015 edges.
How do you stop an agent from merging two people with the same name?
Make name-only matches a fixed answer. In Casefile a name alone is always unsupported, and records never merge. In its 28-question test it made 0 false identity links out of 5, against 2 for a pandas agent and 3 for a grep agent, though an audit found one of those labels is probably wrong.
Who makes the final call in these KYC due diligence projects?
Casefile issues no risk score and leaves the call to whoever reads its case file. In Shell Game, five fixed rules set the verdict, and the LLM can't change it. In Khoj, a verifier rejects any verdict that doesn't follow from fixed rules. In TieTrace, ruling out a paper and approving a note are human only.
Does "no path found" mean a company is clean?
No. It only covers the data in the graph. Shell Game calls it a provable negative for its dataset, which is a focused cut of the leak. Casefile says whether a longer chain exists past its hop limit. Khoj reports "no known connection", never "safe". TieTrace gives every "no tie found" a scope.
Were these projects tested on real KYC cases?
No README reports a deployment at a bank or compliance team. Casefile and Shell Game run on real public data, but Casefile's test covers 28 questions about the graph and Shell Game publishes speed, not verdict accuracy. Khoj uses synthetic data. Casefile states it has no evidence beyond its benchmark that it improves anyone's investigations.
Walk your first company path #
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 company with its officers, intermediaries and addresses, store a link count on each node, then run one 3-hop search that skips the busy ones.
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.