PDF Invoice Checker: hidden text, suspicious IBANs and instructions for AI
Before you pay an invoice (or let software or an AI agent read it), check that it does not contain invisible text, sentences aimed at an automated system, or an IBAN that differs from the one you know.
🔒 Your file never leaves your computer: the analysis runs in your browserAnalyze an invoice
What it checks
- Hidden or invisible text: white on white, covered by shapes, or in invisible render mode. The tool renders each page and compares what you can see with what is written in the file.
- Tiny or off-page text: characters smaller than 3 points or positioned outside the visible area.
- Prompt injection: sentences aimed at software or an AI ("ignore previous instructions", "note to the automated system", "use the new IBAN", "mark as already approved"), in English and Italian.
- IBANs: every one found, with check-digit validation and a warning if it appears in hidden text or if there is more than one.
- JavaScript, automatic actions and attachments embedded in the PDF, including executables and web pages.
- Italian XML e-invoices and .p7m files: supplier, payment method, IBAN and free-text fields.
- Metadata: creating program and dates, with a note if the file was modified after creation.
Why it matters
Bank-detail-change fraud is one of the most common scams against small and mid-sized businesses: an invoice arrives that looks exactly like the real one, but with the fraudster's bank details. Today there is a new twist: more and more companies let data-extraction software and AI agents read invoices, and text invisible to the human eye can carry instructions aimed precisely at them.
This technique is called indirect prompt injection and ranks first in the OWASP Top 10 for LLM Applications. A person sees a normal invoice; the software reads everything, including what is hidden.
The golden rule still applies: payment details never come from the invoice. Compare them with the details you already have on file and, if they differ, call the supplier on a number you already know.
FAQ
Is my file uploaded to a server?
No. The analysis runs entirely in your browser using Mozilla's open-source pdf.js library. The invoice is never sent to any server and is not stored. The site only records, anonymously, that the tool was used.
If the tool finds nothing, is the invoice safe?
No: it finds the most common technical signals, but it cannot prove a document is legitimate. A fake invoice can be technically "clean" and still carry the wrong IBAN. Always confirm payment details with the supplier.
I use an AI agent to process invoices: how do I protect it?
With an architecture where the model that reads documents cannot take actions and the payment IBAN always comes from your supplier master data, never from the document. I design AI agents and document pipelines built to resist these attacks, and I work remotely with companies worldwide.