Bank AI XSS Hid in Payment References

Positive Security · High sophistication
Last updated November 28, 2026

Researchers demonstrated that a business bank’s AI chatbot could be tricked into rendering malicious content from uploaded invoices and payment-reference text. When a customer asked the chatbot to process a PDF or list transactions, the flaw could run code in the customer’s active banking session and expose account data. The issue was responsibly disclosed and the bank deployed a fix.

How the attack worked

Researchers found that a business bank's AI chatbot would render untrusted HTML content returned in its own responses. This created a cross-site scripting opening that executed inside a customer's authenticated banking session. Two delivery paths were demonstrated.

The first used an invoice PDF containing hidden white-on-white text. When a customer uploaded the PDF and asked the chatbot to add the beneficiary named in it, the hidden instructions steered the chatbot's response through indirect prompt injection, requesting that an unusually long or strange beneficiary name be reproduced, which triggered the XSS.

The second path used SEPA payment references. Because of character and length limits, the payload and a decoding instruction were split across two separate one-cent transactions. When the customer later asked the AI assistant to list that month's transactions, the assistant reconstructed the encoded content and rendered it, triggering the same XSS without the victim interacting with the payload directly.

Why it succeeded

The underlying issue was that the AI assistant treated content from uploaded documents and transaction references as safe to render as-is. Document uploads and payment references are normal parts of accounts payable and treasury workflows, so neither looked suspicious to the customer. Once triggered, the injected JavaScript ran with the access of the authenticated session, making authenticated API requests and sending retrieved data to an external server.

What to watch for

  • PDFs or invoices that are unusually formatted, contain hidden or invisible text, or come from unfamiliar senders.
  • Beneficiary names that are unusually long, strange, or inconsistent with the sender's identity.
  • Unexpected small-value transactions, such as one-cent payments, appearing in account activity.
  • Transaction descriptions containing unusual technical-looking text or encoded characters.
  • Chatbot responses that display broken formatting, unexpected images, or odd rendering behavior.

How to build resistance

Teams in accounts payable, finance, and treasury who upload invoices or rely on AI banking assistants should treat all uploaded documents as untrusted, even when they appear to be ordinary invoices from a known business partner. Any unusual instruction or formatting returned by an AI assistant, especially around beneficiary names or payment details, should prompt a pause and manual verification rather than automatic trust. Reviewing unexpected low-value payments and odd reference text before using an AI tool to summarize transactions adds another layer of defense. Finally, beneficiary additions and payment changes should be confirmed through a separate, known-good verification channel rather than relying solely on AI-generated output, since multi-factor authentication alone may not prevent all downstream actions once a session is compromised.

Key findings

  • The AI chatbot rendered untrusted HTML in its responses, allowing cross-site scripting (XSS) in an authenticated banking session.
  • A malicious PDF could contain hidden white-on-white text that instructed the AI to reproduce a harmful beneficiary name in its response.
  • The researchers showed that SEPA payment references could carry split instructions that caused the AI to reconstruct encoded characters and render the malicious content.
  • A customer merely asking the chatbot to list transactions could trigger the transaction-reference attack without manually copying malicious text into the chat.
  • The proof of concept loaded external JavaScript, made authenticated API requests, and sent retrieved data to an external server.
  • The bank acknowledged the report and, after remediation, AI responses appeared to HTML-encode content consistently.

Who’s being targeted

  • Commonly targeted roles: Accounts Payable, Finance, Treasury, Business banking users, Customer support teams, Employees who upload invoices or use AI banking assistants.
  • Affected industries: Banking, Financial services, Business banking customers.
  • Attack channels: website.
  • Impersonated: Third-party invoice sender, Bank transfer sender.

Red flags to watch for

  • The PDF contains hidden white-on-white text.
  • The beneficiary name is unusually long or strange.
  • The chatbot response displays broken images or unexpected formatting.
  • Transaction references ask the AI to combine parts or decode characters.
  • Unexpected one-cent transactions appear in the account.
  • Transaction descriptions contain unusual technical-looking text or encoded symbols.
Try Mirage

Mirage safely runs attacks like this one against your own team, so you find out what happens before a real adversary does.

Get a demo

Frequently asked questions

How did the XSS attack on the banking AI chatbot work?

The chatbot rendered untrusted HTML in its responses. Hidden white-on-white text in an uploaded PDF or encoded text split across SEPA payment references could instruct the AI to reproduce content that triggered cross-site scripting in the customer's authenticated session.

Did a victim need to do anything unusual to trigger the attack?

No. A customer simply asking the chatbot to add a beneficiary from an attached PDF or to list recent transactions could trigger the attack without copying any malicious text manually.

What could the attacker do once the XSS executed?

The proof of concept loaded external JavaScript, made authenticated API requests, and sent retrieved data to an external server, all within the victim's active banking session.

Was the vulnerability fixed?

Yes. The bank acknowledged the report and after remediation, AI responses appeared to HTML-encode content consistently.

Read the video transcript

Two one-cent payments could put your banking session at risk. Researchers split instructions across the SEPA references. Ask the bank’s AI, ‘List this month’s transactions,’ and it could reassemble them into harmful HTML. That’s the twist: payment text became code in an authenticated session. A PDF invoice could do it too, using hidden white-on-white instructions and a strange beneficiary name. The bank fixed this flaw. Still, if AI shows strange payment details, stop and verify them outside the chat.

MITRE ATT&CK techniques

T1059.007 - Command and Scripting Interpreter: JavaScript · Command and Scripting InterpreterT1204.002 - User Execution: Malicious File · User Execution

Similar attacks

Iranian Spy Group Uses Fake CVs and Health Lures

Iranian Spy Group Uses Fake CVs and Health Lures

Iran-aligned Volant Manticore used fake, AI-generated job applicant CVs to persuade targets to download a “complete resume” from a link. The group also sent healthcare-themed ZIP files from a compromised Saudi hospital account and used a macro-enabled Word document against a Cypriot defense-related…

November 24, 2026
Blind Eagle Hides RAT in Fake Court Notices

Blind Eagle Hides RAT in Fake Court Notices

Blind Eagle is using Spanish- and Portuguese-language phishing emails that look like court, prosecutor, and administrative notices to target organizations in Latin America. The emails pressure people who handle legal or institutional requests to open an attachment, which ultimately installs…

November 10, 2026
Fake Roblox Cheats Put Work Accounts at Risk

Fake Roblox Cheats Put Work Accounts at Risk

Researchers documented a Windows malware campaign using fake Xeno Executor downloads marketed to Roblox players as working, “undetected” cheat tools. Once a user runs the installer, the malware can steal browser passwords and active login sessions, meaning a personal gaming download could expose…

November 27, 2026
Downloads File Hijacks AI Coding Agents

Downloads File Hijacks AI Coding Agents

Researchers found a malicious instruction file in a customer’s Downloads folder that attempted to manipulate an AI coding agent into installing a rogue npm package. The technique can work because browsers may save files into Downloads without prompting, and coding agents may treat nearby…

October 26, 2026
AI Agents Leak Data Without an Attacker

AI Agents Leak Data Without an Attacker

This report describes real-world AI agent failures that exposed internal screenshots and personal bank information without a traditional attacker. It also documents a prompt-based technique that can bypass some AI safety controls and a repository-delivery flaw that can run code before a developer…

October 22, 2026
Hidden Email Text Targets AI Assistants

Hidden Email Text Targets AI Assistants

Microsoft reports blocking nearly 10,000 email prompt-injection attempts in four weeks. These messages can hide instructions in concealed text that a human recipient may not notice, but an AI email assistant could read and act on, such as collecting financial documents and sending them externally.…

November 25, 2026