Stop Fake Supplier IBAN Swaps in n8n: Zero-Disk PDF Forensics & 11 Bank Directories
Every year, accounts-payable teams lose millions to vendor IBAN swap fraud (Business Email Compromise / fake updated bank details). Most ERPs and accounting tools only run one check when a supplier sends a new IBAN: the
Every year, accounts-payable teams lose millions to vendor IBAN swap fraud (Business Email Compromise / fake updated bank details).
Most ERPs and accounting tools only run one check when a supplier sends a new IBAN: the ISO 7064 Mod-97 checksum. The problem is that anyone can generate a mathematically valid Mod-97 IBAN in two seconds — including a fraudster editing a legitimate supplier's PDF invoice.
Here is how to wire 4 deterministic, zero-disk technical checks directly into an n8n pre-payout workflow (as a fast technical filter before your mandatory human callback on a previously known phone number).
The 4 checks your ERP skips
-
Resolve the real bank behind the IBAN bank code — and compare it to the invoice text.
Inside a SEPA / European IBAN (
FR,MC,DE,NL,BE,CH,ES,IT,LU,GB, plusMA), fixed BBAN slices encode the actual holding institution (e.g., 499 French banks from the ECB Payment Service Providers register). If an invoice displays a traditional tier-1 bank logo while the IBAN bank code resolves to a completely different payment provider or e-money institution, flag it immediately. -
Check PDF incremental revision markers (
%%EOF) in volatile RAM. Legitimate accounting exports usually have 1 or 2%%EOFtrailers. When an attacker opens a real supplier PDF and overlays a new IBAN block, incremental saves often push the count to%%EOF >= 3. Inspecting the raw bytes strictly in volatile memory (<= 5 MB, zero disk writes) catches naive tampering without storing sensitive supplier invoices. -
Parse raw
.emlheaders for BEC spoofing. Passive RFC 5322 inspection catchesFromvs.Reply-Todomain divergence, failedSPF/DKIM/DMARCauthentication results, and lookalike sender domains registered days ago. -
Cross-check corporate existence & VAT status — with honest
not_checkedfallback. Cross-checking FrenchINSEE/SIRENE, UKCompanies House, live EU VAT (VIES), and globalGLEIF LEI(CC0-1.0) catches struck-off entities or name mismatches. Crucially, if an upstream registry (such as an EU VIES member state returningMS_UNAVAILABLE) is temporarily unreachable, an automated gate must receivenot_checked— never a silentclean.
Wiring this into n8n in 60 seconds
We published the open-source MIT community node n8n-nodes-intelliacore on npm (with usableAsTool: true, so n8n AI Agent nodes can also invoke it autonomously).
Step 1 — Install the node
In your n8n instance:
Settings → Community Nodes → Install → enter:
n8n-nodes-intelliacore
- npm package: https://www.npmjs.com/package/n8n-nodes-intelliacore
- GitHub (MIT) + 4 ready-to-import JSON workflows: https://github.com/HamzaQai/n8n-nodes-intelliacore
Step 2 — Run 2 forensic operations with ZERO API key
Both core accounts-payable forensic operations work immediately without an API key:
-
Inspect Invoice / Bank Details(inspectInvoiceRib) — accepts invoice text or a base64-encoded PDF (<= 5 MB), runs strictly in volatile RAM with zero disk persistence, and returns Mod-97 validity, real bank resolution across 11 bank directories, IBAN/BIC alignment, and%%EOFedit markers. -
Inspect Email (.EML)(inspectEmailEml) — passive RFC 5322 header & body check for BEC redirects and authentication failures.
Step 3 — Import the ready-made SEPA Wire Gate workflow
Instead of wiring nodes from scratch, import any of the 4 JSON templates directly from workflows/ (Workflows → Import from File):
-
SEPA IBAN & Supplier Wire Gate (
sepa-iban-fraud-gate.json) -
Brand Impersonation & Lookalike Scan (
brand-impersonation-scan.json) -
Crypto Withdrawal OFAC & Drainer Guard (
crypto-withdrawal-guard.json) -
Batch Phishing URL & Domain SOC Triage (
phishing-url-soc-triage.json)
For the 6 additional operations (single/batch screening up to 100 indicators, live RDAP/TLS/DNS/ML storefront audit, EU VIES/GLEIF/SIRENE/UK KYB, 24-permutation live DNS brand scan, and 5-chain live crypto RPC on BTC/ETH/TRX/SOL/TON), you can generate a free 500 checks/month Sandbox key (no credit card) at https://intelliacore.fr/en/offer/.
Prefer a no-code check or browser button?
- Free browser IBAN & bank-code checker (no account, no cookie): https://intelliacore.fr/en/tools/iban-checker/
-
Free
.emlemail header analyzer: https://intelliacore.fr/en/tools/email-header-analyzer/ - Zero-tracking Chrome/Edge extension (on-demand website & right-click IBAN/crypto check): https://chromewebstore.google.com/detail/dndekfddancdmcedkkaggdpcnlkaicop
- One-time timestamped A4 Supplier & Invoice dossier (€19, no subscription): https://intelliacore.fr/en/products/supplier-rib-compliance/ (fictional sample reports available at https://intelliacore.fr/en/report/)
Full transparency: Intelliacore (https://intelliacore.fr/en/) is our own fraud-intelligence platform. Every output separates Proven deterministic findings from Reported open-list sightings with source origin and UTC timestamp — always a technical signal to catch obvious traps faster, never legal proof and never a substitute for human callback verification.
Originally published by Dev.to Security. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.