ai newsFr., 4. Dez.
EilmeldungAlibaba Releases Qwen4-35B-A3B: Open-Weight MoE Model With 1M Context

We Benchmarked Automated KYB & OFAC Sanctions Screening for AI Agents: Live GLEIF LEI + US Treasury SDN at $0.006/Entity

If you are building B2B onboarding, fintech underwriting, ERP supplier intake, or autonomous AI compliance agents, you hit the same wall quickly: Ask an LLM directly ( "Is this counterparty active and clear of OFAC sanctions?" ) and it hallucinates 20-character LEI codes or cites stale sanctions li

dev.toMittwoch 19:02 · 02.12.4 Min. Lesezeit
Bild: dev.to

If you are building B2B onboarding, fintech underwriting, ERP supplier intake, or autonomous AI compliance agents, you hit the same wall quickly:

To solve both halves in one deterministic API / MCP call, we built Global Counterparty KYB, GLEIF LEI & OFAC Sanctions Screener — unifying the official GLEIF Legal Entity Identifier (LEI) Registry (2.7M+ verified entities across 200+ countries) with fresh US Treasury OFAC SDN & Alias (AKA) feeds downloaded live from treasury.gov on every run.

Below is our live 10-entity benchmark (run today, December 2, 2026), an honest breakdown of a real-world sanctions edge case we caught and patched during testing, and a transparent head-to-head comparison against competing Apify Actors, OpenSanctions, ComplyAdvantage, and DIY open-source scripts.

We ran 10 diverse counterparties — US/EU/India multinationals, a raw 20-character LEI code, a recently delisted crypto protocol, active US Treasury OFAC SDN targets, sanctioned banks with live GLEIF records, and a fictional shell company — in a single 256 MB batch run:

Look at Row #9 ( VTB Bank ). If you query GLEIF alone, VTB Bank resolves to LEI 335800LW6BBDNFASPG17 with:

A corporate-registry-only tool passes it with flying colors. Only unifying live GLEIF resolution with live OFAC SDN + AKA screening catches entNum: 17013 ( JSC VTB BANK, sanctioned under UKRAINE-EO13662, IRAN-EO13902, and RUSSIA-EO14024 ) and overrides the decision to BLOCK.

Ask an older LLM prompt about Tornado Cash and it confidently flags OFAC SDN BLOCK. In reality, following the Fifth Circuit ruling in Van Loon v. Department of the Treasury, OFAC formally removed Tornado Cash from the SDN list on March 21, 2025 (while maintaining separate sanctions on individual developers). Because our Actor fetches fresh SDN.CSV and ALT.CSV directly from treasury.gov on every run, it reflects real-time regulatory truth ( OFAC_CLEAR ) while still routing Tornado Cash to REVIEW ( NO_GLEIF_LEI_FOUND ).

When we ran our first dry benchmark before writing this article, a naive English-only suffix stripper ( Inc., LLC, Ltd., GmbH ) missed Gazprombank because US Treasury lists it as GAZPROMBANK JOINT STOCK COMPANY ( "joint" and "stock" weren't stripped, diluting the single-token Jaccard overlap!).

We immediately expanded LEGAL_SUFFIXES in v0.1.4 to normalize international corporate designators ( Joint Stock, JSC, PJSC, OJSC, OAO, PAO, ZAO, AO, Aktiengesellschaft, S.p.A., S.r.l., S.A.S., KGaA, Oyj, Ltda, Bhd ) and tightened auto- APPROVE so LEI_LAPSED entities can never silently auto-approve. On re-run:

We audited both the Apify Store and public commercial compliance APIs to see what developers actually pay and what they still have to wire up themselves:

Honest scope note: If you are a Tier-1 bank needing EU/UN/UK PEP lists, adverse media monitoring, and SOC-2 case management, use ComplyAdvantage, Castellum.AI, or OpenSanctions. If you are building fintech onboarding, B2B SaaS vendor checks, ERP guardrails, n8n workflows, or AI compliance agents and want verified legal-entity existence + live US Treasury OFAC SDN/AKA in one $0.006 call with zero monthly subscription, this Actor eliminates 2 separate APIs and hundreds of lines of brittle parsing code.

Apify's $5 monthly Free plan credit covers ~830 counterparty screenings (and Free plan users can test up to 10 entities per run immediately):

Give any AI agent deterministic KYB + OFAC verification in 6 lines of JSON:

{ "mcpServers": { "apify": { "url": "https://mcp.apify.com?actors=jacobianflux/global-counterparty-kyb-lei-screener", "headers": { "Authorization": "Bearer YOUR_APIFY_TOKEN" } } } } Enter fullscreen mode Exit fullscreen mode 2. Python ( apify-client ) from apify_client import ApifyClient client = ApifyClient ( "YOUR_APIFY_TOKEN" ) run = client. actor ( "jacobianflux/global-counterparty-kyb-lei-screener" ). call ( run_input = { "queries": [ "Apple Inc.", "5493001KJTIIGC8Y1R12", "Siemens Aktiengesellschaft", "VTB Bank", "Northstar Phantom Shell 99999 LLC", ], "includeOfacScreening": True, "maxResults": 20, } ) for row in client. dataset ( run [ "defaultDatasetId" ] ). iterate_items ( ): print ( f "[{row['complianceDecision']:7}] {row['query']:34} | " f "LEI={str(row['lei'] or 'NONE'):20} | " f "OFAC={row['sanctionsRisk']:10} | Score={row['kybScore']}" ) Enter fullscreen mode Exit fullscreen mode 3. Autonomous n8n Vendor Onboarding Gate We also wired this Actor directly into an autonomous 5-tool B2B Compliance & Vendor Due-Diligence AI Agent in n8n (combining KYB/OFAC screening with EAA website compliance, PDF invoice math reconciliation, US contractor licenses, and B2B security headers — routing APPROVE, REVIEW, and BLOCK verdicts into an n8n Data Table audit trail).

Need to extend vendor due diligence beyond KYB & OFAC? Every Actor below follows the same deterministic, zero-charge-on-error, MCP-ready schema:

What sanctions lists or national corporate registries (EU consolidated sanctions, UK OFSI, UN, Companies House) would you want added next? Drop a comment below!

Quelle: dev.to (dev.to). Original öffnen