Graph-Based Fraud Detection with Didit and Amazon Neptune
Discover how to build a powerful, real-time fraud detection system by integrating Didit's robust identity verification data with Amazon Neptune's graph database capabilities.

Contents
In this guide
Jump to the part you need.
Leverage Graph DatabasesAmazon Neptune excels at identifying complex, non-obvious relationships in data, making it ideal for uncovering sophisticated fraud patterns that traditional relational databases might miss.
Integrate Didit's Rich Identity DataDidit provides high-fidelity, structured identity verification data, including biometric, document, and liveness insights, crucial for populating and enriching your fraud graph.
Uncover Fraud Rings in Real-TimeBy connecting data points like shared devices, addresses, and even facial biometrics, businesses can detect and prevent fraud rings proactively, improving overall security posture.
Didit's AI-Native AdvantageDidit's modular architecture and AI-native approach ensure that your graph-based system is fed with the most accurate and up-to-date verification signals, enabling dynamic and adaptive fraud detection workflows.
The Rising Threat of Sophisticated Fraud
In today's digital landscape, fraudsters are constantly evolving their tactics, moving beyond simple identity theft to orchestrate complex fraud rings. These networks exploit interconnected data points, often using synthetic identities, stolen credentials, and multiple accounts to evade detection. Traditional fraud detection systems, typically relying on rule-based engines and relational databases, often struggle to identify these intricate, non-obvious relationships. This is where graph databases, combined with rich, verified identity data, offer a significant advantage.
Imagine a scenario where multiple accounts are created from the same IP address, using different names but sharing the same physical address, or even similar facial biometrics across different identity documents. A relational database might flag individual suspicious activities, but a graph database can immediately visualize and connect these seemingly disparate events into a cohesive fraud network. By understanding these connections, businesses can move from reactive fraud detection to proactive prevention.
Why Graph Databases for Fraud Detection?
Graph databases are purpose-built to store and navigate relationships between data points, known as nodes and edges. This structure is inherently suited for fraud detection because fraud often manifests as a pattern of connections. For instance, an account (node) might be connected to a device (node), an IP address (node), an email (node), and a physical address (node). When multiple accounts share these connections, a graph database can quickly reveal these shared links, indicating potential collusion or a fraud ring.
Amazon Neptune, a fully managed graph database service, provides the scalability, performance, and security needed for real-time fraud detection. Its ability to perform fast traversals and pattern matching across billions of relationships makes it an invaluable tool. Instead of complex SQL joins across many tables, a single Gremlin or openCypher query can expose an entire network of suspicious activity, significantly reducing the time to detect and respond to fraud.
Integrating Didit Data into Your Fraud Graph
The effectiveness of any fraud detection system hinges on the quality and richness of its input data. This is where Didit, the AI-native identity platform, plays a pivotal role. Didit provides a comprehensive suite of identity verification primitives that generate high-fidelity, structured data essential for populating your Amazon Neptune graph.
Consider the data points Didit can provide:
- ID Verification: Didit's OCR, MRZ, and barcode scanning extract critical information from identity documents, such as names, dates of birth, document numbers, and issuing authorities. This data becomes foundational nodes in your graph.
- Passive & Active Liveness: Detecting deepfakes and presentation attacks, Didit's Liveness Detection ensures the person presenting the ID is physically present and real. A 'Liveness Status' (Approved, Declined, In Review) and a 'score' can be added as properties to a 'Verification' node, with a warning if a 'LIVENESS_FACE_ATTACK' is detected.
- 1:1 Face Match & Face Search: The similarity percentage from a 1:1 Face Match between a selfie and an ID document photo can be an edge property. If a 'FACE_IN_BLOCKLIST' warning is triggered by Face Search, this critical information can immediately flag a user in the graph.
- Proof of Address: Verifying residency adds another layer of connected data, linking users to physical locations.
- Phone & Email Verification: These data points are crucial for linking users to communication channels, often revealing shared resources among fraudsters.
liveness object with its status, score, age_estimation, and warnings, can be directly translated into nodes and edges within your graph. For example, a user node could be connected to a document node, a liveness_session node, an ip_address node, and a device node, with edges representing relationships like HAS_VERIFIED_DOCUMENT, PERFORMED_LIVENESS, USED_IP, or USED_DEVICE. Warnings like LOW_LIVENESS_SCORE or POSSIBLE_DUPLICATED_FACE can be attached as properties to the liveness_session or user nodes, triggering alerts or review processes.
Building Your Graph-Based Fraud Detection System
Here’s a simplified approach to building your system with Didit and Amazon Neptune:
- Data Ingestion: Integrate Didit's APIs into your user onboarding and transaction flows. Capture all relevant identity verification data (ID details, liveness scores, facial similarity, warnings, etc.).
- Graph Modeling: Design your graph schema. Define nodes for entities like
Person,Document,Device,IP_Address,Email,Phone_Number, andAddress. Define edges for relationships likeVERIFIED_BY,USED_DEVICE,SHARED_IP,HAS_EMAIL,HAS_PHONE,LIVES_AT,HAS_LIVENESS_SESSION, andFACE_MATCHED_TO. - Populate the Graph: Use Didit's output to create and update nodes and edges in Amazon Neptune. For instance, when a user completes ID verification and liveness, create a
Personnode, aDocumentnode, and aLiveness_Sessionnode, along with edges connecting them. Add properties likeliveness_score,document_type, oris_blocklistedto these nodes and edges. - Querying for Fraud Patterns: Develop Gremlin or openCypher queries to identify suspicious patterns.
- Shared Devices/IPs: Find multiple
Personnodes connected to the sameDeviceorIP_Addressnode. - Synthetic Identities: Look for
Personnodes with differing document details but strong facial similarity (from Didit's 1:1 Face Match) or shared addresses/emails. - Blocklist Matches: Immediately flag
Personnodes where Didit's Face Search or AML Screening indicates a match to a blocklist or watchlist. - Low Liveness Scores: Identify
Liveness_Sessionnodes with low scores orLIVENESS_FACE_ATTACKwarnings, especially when combined with other suspicious connections.
- Shared Devices/IPs: Find multiple
- Real-time Alerts and Actions: Integrate your graph queries with an alert system to notify fraud analysts or trigger automated actions (e.g., placing a transaction on hold, requesting additional verification, or declining an account) when a fraud pattern is detected.
How Didit Helps
Didit is uniquely positioned to be the cornerstone of your graph-based fraud detection strategy. As an AI-native, developer-first identity platform, Didit provides the precise, structured identity data necessary to feed and enrich your Amazon Neptune graph. Our modular architecture means you can pick and choose the verification primitives you need, from ID Verification and Passive & Active Liveness to 1:1 Face Match and AML Screening & Monitoring. This flexibility allows you to build highly customized and effective fraud detection workflows.
Didit's advantages are clear: we offer Core KYC, and pay-per-use pricing lets you start verifying identities and collecting valuable data without upfront costs. Our AI-native approach ensures high accuracy and resilience against new fraud vectors, while our clean APIs and instant sandbox make integration straightforward for developers. With Didit, you're not just getting a verification service; you're getting the foundational identity layer that automates trust and empowers your fraud prevention efforts, all without setup fees.
Ready to Get Started?
Ready to see Didit in action? Get a free demo today.
Start verifying identities for free with Didit's free tier.
Try it
Try this in the sandbox
Run the check this guide describes, free.
The product this post is about, taken from its topic. Run it free in the sandbox.
Author
Alberto Rosas
Co-founder and CEO

Questions
Blog questions
Who writes the Didit blog?
Which topics does the blog cover?
Is the blog available in my language?
Where do I find product updates?
Are these posts legal advice?
How do I find posts on one topic?
Are posts dated?
Do posts link to the docs?
Is the blog the same as the docs?
Compliance built in
Audited, certified and attested.
We hold the certifications and build each country's rules into your flows, so you can launch anywhere without worrying. Security and Compliance center
- Regulation encoded into your flows
Tell us what you do and where. Didit lists the rules that apply to you, with sources, and builds the checks each country needs into one workflow.
- Ready for AMLR
Every requirement of the new EU anti-money laundering rules, from checking customers to human review, is already covered by a Didit check.
- Tested in Spain's Treasury sandbox
Spain's Treasury published its supervised sandbox report on Didit's NFC plus active liveness onboarding; SEPBLAC took part and valued the added measures positively.
- Audited, not self-declared
iBeta Level 1 and Level 2. Liveness tested under ISO/IEC 30107-3.
Your obligations · 3 regions
SOC 2 Type 2
ISO 27001
iBeta Level 1 and Level 2
EU regulator attestation
FSM youth protection
GDPR
EBA remote onboarding
MiCA compatible
FIDO Alliance member
- AMLREU AML Regulation ready
Integration · Didit MCP
Run Didit from your own AI agent
Connect Didit to Claude, Cursor, VS Code or ChatGPT and just ask in plain words. Your agent can do anything you can do in the console, with the same permissions you have.
- Build workflowsDescribe the checks you need. The agent creates and publishes the flow.
- Run investigationsAsk why a session was declined, review cases, search people and companies.
- Change rulesCreate payment rules, test them on past data and switch them on.
- Pull reportsAsk for numbers, exports or the audit log.
Didit Academy


