Skip to main content

Real-time Sanctions Screening with Programmable Logic

Discover how to implement real-time sanctions screening by integrating Didit's powerful AML API with WebAssembly. This approach offers unparalleled flexibility, allowing businesses to define custom risk logic and achieve.

Real-time Sanctions Screening with Programmable Logic

Contents

In this guide

Jump to the part you need.

Programmable ComplianceIntegrate Didit's AML API with WebAssembly to create highly customizable and dynamic sanctions screening workflows, adapting to evolving regulatory landscapes in real-time.

Enhanced Risk OrchestrationLeverage WebAssembly to define granular, context-aware risk scoring and decision-making logic, complementing Didit's two-score AML system for superior compliance.

Developer-First ApproachDidit's clean APIs and modular architecture make it simple for developers to embed advanced AML capabilities and custom logic directly into their applications.

Seamless Integration with DiditDidit offers an AI-native, modular AML Screening solution, providing real-time checks against 1300+ global watchlists, PEPs, and sanctions databases, further enhanced by programmable logic.

The Challenge of Dynamic Sanctions Screening

In today's rapidly changing regulatory environment, static sanctions screening processes are no longer sufficient. Financial institutions and businesses across various sectors face immense pressure to comply with Anti-Money Laundering (AML) and Counter-Terrorist Financing (CTF) regulations. This requires screening individuals and entities against global watchlists, politically exposed persons (PEPs) lists, and sanctions databases in real-time. However, the true challenge lies not just in performing the check, but in dynamically interpreting the results and applying custom business logic to determine the appropriate action. How do you integrate real-time data with your unique risk appetite and operational workflows efficiently?

Many traditional AML solutions offer limited flexibility, forcing businesses into predefined workflows that may not align with their specific compliance needs or risk models. This often leads to either over-screening, causing unnecessary friction for legitimate customers, or under-screening, exposing the business to significant regulatory penalties and reputational damage. The need for a more programmable, adaptable approach to sanctions screening has never been more critical.

WebAssembly: The Key to Programmable Compliance Logic

WebAssembly (Wasm) emerges as a powerful solution for embedding custom, high-performance logic directly into your compliance workflows. Wasm allows you to run pre-compiled code, written in languages like Rust, C++, or Go, in a secure, sandboxed environment. When combined with a robust AML API like Didit's, Wasm enables businesses to define highly specific, programmable rules for handling screening outcomes.

Imagine a scenario where a potential match is found during a sanctions screening. Instead of a generic 'In Review' status, you can use Wasm to implement a custom function that:

  • Evaluates the match score from Didit's AML Screening against internal thresholds.
  • Checks the matched entity's country of origin against your company's high-risk country list.
  • Cross-references additional internal customer data (e.g., transaction history, geographic location of recent activities).
  • Automatically triggers different actions based on a weighted combination of these factors – perhaps a direct approval for low-risk matches, an immediate decline for high-risk, and a specific escalation path for ambiguous cases.

This level of granularity is crucial for optimizing operational efficiency while maintaining stringent compliance standards. Wasm's near-native performance ensures these complex evaluations happen in milliseconds, supporting true real-time decision-making.

Integrating Didit's AML API with WebAssembly

Didit's AML Screening API is designed with modularity and developer-friendliness in mind, making it an ideal partner for WebAssembly integration. Didit screens users against over 1300 global sanctions, PEP, and watchlist databases in real-time. The API provides a comprehensive report, including a two-score system: a Match Score (identity confidence) and a Risk Score (entity risk level).

Here’s how the integration works:

  1. Initiate Screening: Your application sends a request to Didit's AML API with the user's details (e.g., full name, entity type).
  2. Receive Didit's Report: Didit returns a detailed AML Screening Report, including potential matches, match scores, risk scores, and adverse media intelligence.
  3. Invoke Wasm Module: Your application's backend then passes Didit's report data to a pre-compiled WebAssembly module.
  4. Execute Custom Logic: Inside the Wasm module, your custom logic processes Didit's data. This could involve advanced fuzzy matching algorithms, complex risk calculations based on multiple data points, or dynamic policy enforcement that adapts to specific business contexts. For example, you might have different thresholds for a low-value transaction versus a high-value one, or for customers from certain jurisdictions.
  5. Automated Decision: The Wasm module returns a definitive action (e.g., 'Approve Automatically', 'Escalate to Manual Review', 'Decline').

This architecture allows you to offload computationally intensive or highly specific compliance logic to a secure, performant Wasm module, keeping your primary application code cleaner and more focused. Didit's API provides the foundational, up-to-date screening data, while Wasm provides the custom intelligence layer.

Benefits of This Hybrid Approach

Combining Didit's AML Screening with WebAssembly offers significant advantages:

  • Unmatched Flexibility: Adapt your compliance rules on the fly without redeploying your entire application. Wasm modules can be updated independently.
  • Enhanced Performance: Wasm executes at near-native speeds, ensuring your real-time decisions are genuinely real-time, even with complex logic.
  • Reduced False Positives: Custom logic can more accurately distinguish between true matches and false positives by incorporating additional contextual data, minimizing unnecessary manual reviews.
  • Future-Proof Compliance: As regulations evolve, you can quickly modify your Wasm-based logic to remain compliant, significantly reducing time-to-market for compliance updates.
  • Cost Efficiency: Automate more decisions, reducing reliance on expensive manual review processes and allowing your compliance team to focus on high-risk cases.
  • Stronger Audit Trails: Every decision made through your programmable logic can be logged, providing a clear and auditable trail for regulators.

Didit's modular design, combined with its AI-native capabilities, ensures that the data feeding your WebAssembly logic is always accurate, comprehensive, and up-to-date, providing a solid foundation for your programmable compliance framework.

How Didit Helps

Didit is at the forefront of providing AI-native, developer-first identity solutions, and our AML Screening product is a perfect example of this. We offer a comprehensive solution for compliance, screening users against 1300+ global sanctions, PEP, and watchlist databases in real-time. Our two-score risk system (Match Score and Risk Score) provides granular insights, allowing businesses to configure compliance thresholds that align with their specific risk appetite. With Didit's modular architecture, you can easily integrate our AML API into your existing systems and augment it with programmable logic using WebAssembly. Didit also stands out with its Core KYC offering and no setup fees, making advanced compliance accessible to businesses of all sizes. Our platform streamlines the entire identity verification process, from ID Verification to AML Screening and Monitoring, providing a robust, scalable, and adaptable solution for modern compliance challenges.

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.

ID Verification

The product this post is about, taken from its topic. Run it free in the sandbox.

$0.15 per checkStart free

Author

Alberto Rosas

Co-founder and CEO

Alberto Rosas

Alberto Rosas

Co-founder and CEO

About Didit

Questions

Blog questions

Who writes the Didit blog?
The Didit team. Guides reviewed by Alberto Rosas, co-founder and CEO, carry his byline. The rest are published as Didit.
Which topics does the blog cover?
Eight topics: ID verification, business verification (KYB), AML, sanctions and compliance, fraud prevention, transaction monitoring and crypto, country guides, agents and developers, and product updates.
Is the blog available in my language?
Yes, in 15 languages: English, Spanish, French, German, Brazilian and European Portuguese, Catalan, Russian, Arabic, Chinese, Japanese, Hindi, Indonesian, Korean and Swahili. Not every post is translated, so each language shows the posts it has.
Where do I find product updates?
In the changelog at /changelog/ and under the Product updates topic.
Are these posts legal advice?
No. Regulation posts explain rules; your legal team decides how they apply.
How do I find posts on one topic?
Open one of the eight topics, or search the blog.
Are posts dated?
Yes. Every post shows when it was published and when it was last updated.
Do posts link to the docs?
Developer posts link to the matching page on docs.didit.me and to the API reference.
Is the blog the same as the docs?
No. The blog explains rules, markets and product changes for a general reader, while docs.didit.me holds the integration guides and the API reference. Developer posts link the matching docs page and the API reference they describe.

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.

Compliance assistant

Your obligations · 3 regions

EU · AMLRCustomer due diligence, human reviewCovered
Illinois, Texas, ColoradoExplicit biometric consentCovered
Germany · Youth protectionVerified adults only (JMStV)Covered
Workflow checked. Every obligation is met
  • 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.

Add to ClaudeChatGPT
Didit Academy · Lesson 04 · Use Didit with MCP
  • 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.

Verify your first user today.

Start free

Free sandbox. Credit applies to work-email sign-ups.