This week, our series takes us to the other side of prompt injection. Two weeks ago, the manipulated AI was the customer’s.

Picture a fintech’s alert queue at 6 pm. An AI assistant, built on an engine like RAGFlow on Plain-AyI, has helped close 312 cases today. Case 2291 reads “Low risk. Close.” The investigator approves it. Its statement carried a hidden note for the AI, not for people. The assistant worked as designed.

As always: awareness for control owners, not a how-to, and not a case against AI.

The tool

RAGFlow is a free, open-source engine that lets AI read a firm’s own records before answering. Its makers built in “traceable citations”, so a person can verify where an answer came from. The project, explained in plain words on Plain-AyI

The risk I see

AI-assisted investigation rests on two quiet assumptions. What the customer sends us is evidence, and the agent works only for us. Prompt injection, which OWASP ranks as the top AI risk, breaks both. AI cannot always tell information from instructions, yet the customer supplies much of what it reads, through their documents and website. OWASP LLM01:2025 Prompt Injection

We have long defended against people deceiving people. Now the target can be the agent, steered to make a case look cleaner than it is and, where it can act, to alter records, leak data or tip off the customer. Compliance itself becomes a target, and since firms share a few engines, one working injection can travel widely.

Who carries the loss?

The firm: Wolfsberg holds firms responsible for “decisions that rely on AI/ML analysis”, whether the AI was built or bought. Wolfsberg Principles for Using AI and ML in Financial Crime Compliance (2022)

If the agent was tricked into closing one case, we can’t know which other closures to trust. Every closure needs re-checking, the work we automated returns at once, and any genuine SARs found are late.

The red flags

  • Summaries more confident than their documents.
  • Similar cases closed with the same wording.
  • Files whose hidden content differs from what a person sees.

How our controls might change

In my opinion, our QA has to evolve as much as our process has, since detailed checks re-create the work we automated with agents and sampling leaves errors hidden in the volume.

  • Govern how documents come in, and in what format.
  • Separate reading from acting (agent orchestration): the agent reading customer files shouldn’t close cases or contact customers.
  • Test it with misleading files before attackers do; make every closure show its sources.
  • Include AI agent testing in our effectiveness/independent reviews.

The questions I ask

  1. When our agent reads a case, how much did the customer write?
  2. How do we QA an AI investigator without going back to the manual work it replaced?
  3. If we found one manipulated case, could we find the others without re-reviewing every file?
  4. Is our agent in our security team’s threat model?

Sources