AWS Builder Center
Building SentinelGraph: Autonomous Financial Crime Investigation with Connected Graph Intelligence & FalkorDB

Building SentinelGraph: Autonomous Financial Crime Investigation with Connected Graph Intelligence & FalkorDB

How I built SentinelGraph, an autonomous AI agent powered by FalkorDB’s in memory graph engine and Gemini, capable of executing multi hop Cypher traversals, unmasking money laundering syndicates and quarantining malicious accounts in real time.

### 1. The Bottleneck of Traditional Financial Crime Detection
  Financial crime is inherently relational. Modern criminal syndicates rarely execute straightforward, single-hop transactions. Instead, they weaponize distributed networks: splitting illicit funds
  into fractional amounts across mule accounts (smurfing), routing them through synthetic shell corporations across multiple jurisdictions, passing them through circular wash-trading loops
  (layering), and funneling them into offshore kingpin vaults.
  Yet, traditional Anti-Money Laundering (AML) and fraud detection architectures evaluate transactions in silos. When compliance engines attempt to trace multi-hop chains in relational or tabular
  databases, they encounter computationally prohibitive recursive SQL JOINs that degrade query times into minutes or hours. By the time human analysts piece together disparate logs, the illicit funds
  have already cleared.
  We built SentinelGraph to solve this: an autonomous, graph-native intelligence agent that navigates live connected topologies in single-digit milliseconds to investigate anomalies, unmask covert
  infrastructure, and take real-time enforcement actions.
  ──────
  ### 2. Why FalkorDB: The Graph Context Engine for Autonomous Agents
  To empower an AI agent to reason over financial crime, the database cannot simply sit on the side—it must serve as the real-time reasoning foundation.
  We selected FalkorDB as our core knowledge graph engine for three critical technical reasons:
  1. Sub-Millisecond Multi-Hop Traversal: Built on Redis and powered by GraphBLAS sparse matrix linear algebra, FalkorDB executes deep, variable-length path queries in sub-millisecond response times.
  2. OpenCypher Expressiveness: It allows our autonomous agent to formulate declarative pattern-matching hypotheses dynamically.
  3. In-Place Atomic Mutations: In addition to querying patterns, the agent can mutate node properties (such as setting an account status to FROZEN) directly within the active graph layer with zero
  operational lag.
  ──────
  ### 3. System Architecture & The Autonomous Agent Loop
  When an anomaly triggers—such as an unexpected $143,000 dispersal from an enterprise payroll account—the AI agent does not generate speculative text. Instead, it systematically tests graph
  hypotheses using specialized Cypher tools:
  Step 1: Rapid Fan-Out Discovery
  The agent traverses outbound transaction paths up to 4 hops deep. In milliseconds, it identifies that $143,000 was split into three immediate transfers ($50K, $48K, and $45K) across three separate
  accounts (ACC-201, ACC-202, and ACC-203) within a 10-minute window.
  Step 2: Aggregator & Circular Kickback Detection
  The agent checks for intermediate consolidation and layering:
  • The three mule accounts instantly forward $137,000 into a central hub (Apex Global Logistics LLC, ACC-300).
  • ACC-300 transfers $135,000 to offshore account ACC-999.
  • A 3-hop cycle query instantly exposes a closed-loop kickback: ACC-999 returned $15,000 back to ACC-201, proving deliberate circular wash-trading.
  Step 3: Hardware & Beneficial Ownership Resolution
  The agent uncovers entity relationships beyond financial transfers:
  • Shared Infrastructure: Mule accounts ACC-201, ACC-202, and kingpin account ACC-999 all authenticated using the exact same Tor device (DEV-DARK-01, IP 194.26.29.112).
  • Beneficial Ownership Chain: Entity resolution reveals that shell company Apex Global Logistics is 100% owned by a flagged Politically Exposed Person (PEP) in Panama.
  Step 4: Autonomous Enforcement
  Once the syndicate is verified with graph certainty, the agent executes an atomic graph update: marking all 5 syndicate accounts as FROZEN in FalkorDB with audit timestamps, updating the live
  visualization canvas, and producing a complete, explainable audit dossier for human compliance officers.
  ──────
  ### 4. Key Takeaways & Results
  • Graph-Native Context Eliminates AI Hallucinations: Because every conclusion drawn by the agent is backed by an explicit Cypher path traversal, the resulting audit dossier is 100% verifiable and
  explainable.
  • Speed is Security: By replacing manual multi-table correlation with in-memory graph traversals, investigative triage time dropped from days to under 2 seconds.
  • Connected Intelligence is the Future of AML: Viewing accounts, people, shell companies, and network hardware on a unified graph topology turns fragmented transaction noise into undeniable
  structural evidence.
  ──────
  ### 5. Links & Open Source
  • Live Application:  https://graph-hacks.vercel.app 
Any opinions in this article are those of the individual author and may not reflect the opinions of AWS.
Enjoyed reading this content? Let the author know!

Your likes, comments, shares, and saves help creators reach more builders.

Loading recommendations

Loading article