Dev.to Security 🔐 Cybersecurity 👁 2 📖 3 min read

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

  1. 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, plus MA), 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.
  2. Check PDF incremental revision markers (%%EOF) in volatile RAM. Legitimate accounting exports usually have 1 or 2 %%EOF trailers. 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.
  3. Parse raw .eml headers for BEC spoofing. Passive RFC 5322 inspection catches From vs. Reply-To domain divergence, failed SPF / DKIM / DMARC authentication results, and lookalike sender domains registered days ago.
  4. Cross-check corporate existence & VAT status — with honest not_checked fallback. Cross-checking French INSEE/SIRENE, UK Companies House, live EU VAT (VIES), and global GLEIF LEI (CC0-1.0) catches struck-off entities or name mismatches. Crucially, if an upstream registry (such as an EU VIES member state returning MS_UNAVAILABLE) is temporarily unreachable, an automated gate must receive not_checked — never a silent clean.

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

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 %%EOF edit 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):

  1. SEPA IBAN & Supplier Wire Gate (sepa-iban-fraud-gate.json)
  2. Brand Impersonation & Lookalike Scan (brand-impersonation-scan.json)
  3. Crypto Withdrawal OFAC & Drainer Guard (crypto-withdrawal-guard.json)
  4. 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?

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.

📰 Read the original article on Dev.to Security

Originally published by Dev.to Security. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.