ROKH
← All recipes

Catch a fake bank account before you pay the invoice

parts checkedwith an AI agent

What you get

Before each payment run, every IBAN, BIC and VAT number in the batch is checked for validity, the bank's country is compared with the supplier's, and EU VAT numbers are confirmed with the official register; anything changed since last month is flagged.

Why this combination

Invoice-redirection fraud usually swaps only the bank account; three number-checking libraries plus a “changed since last time” comparison catch it in seconds.

Parts

schwifty GitHubChecks IBAN and BIC and finds the bank behind them.licence: MIT261 starslast update: November 23, 2026OpenSSF Scorecard: 5/10
python-stdnum GitHubValidates over 200 kinds of numbers: VAT IDs, IBAN, EAN, container codes.licence: LGPL-2.1611 starslast update: November 14, 2026OpenSSF Scorecard: 3.4/10
EU VIES open APIEuropean Commission service that checks whether an EU VAT number is valid.licence: free public serviceterms read: November 26, 2026

What was checked

On November 26, 2026 a script checked all 3 parts: each exists, is not archived, was updated within the last 12 months and has a known licence. The parts were chosen so their inputs and outputs fit together.

Nobody has yet run this exact combination end to end on real data. Build it on a copy of your data first; the prompt below asks your AI agent to tell you plainly what does not work.

Limits, honestly

A valid IBAN can still belong to a fraudster: when a supplier's account changes, confirm by phone using a number you already had.

How to start

It runs on your own computer. Copy the prompt into an AI agent (Claude Code or similar); it installs the parts, joins them, and runs a test with sample data before your real files.

Prompt for your AI agent

Build this for me: Catch a fake bank account before you pay the invoice.
What I want to get: Before each payment run, every IBAN, BIC and VAT number in the batch is checked for validity, the bank's country is compared with the supplier's, and EU VAT numbers are confirmed with the official register; anything changed since last month is flagged.

Use these open projects and data:
- schwifty: https://github.com/mdomke/schwifty (MIT)
- python-stdnum: https://github.com/arthurdejong/python-stdnum (LGPL-2.1)
- EU VIES: https://ec.europa.eu/taxation_customs/vies/ (free public service, check its terms of use)

Why this combination: Invoice-redirection fraud usually swaps only the bank account; three number-checking libraries plus a “changed since last time” comparison catch it in seconds.
Known limits: A valid IBAN can still belong to a fraudster: when a supplier's account changes, confirm by phone using a number you already had.

Run it on my computer. Tell me first what you will install and where.
Explain each step in plain words for someone who does not program.
Do not ask me for passwords or keys and do not use administrator rights.
Before installing anything, check that each project is still maintained and its licence allows my use. Do not add other agent skills, MCP servers or plugins without showing me their code first.
When it works, tell me how to open it again. If something does not work, say so plainly.

Fits

Accounting and financeImport, export, foreign suppliers