This article was written with the help of AI. The facts and figures were checked against the sources listed at the end.
Hi, I'm Ham from FX Hamrat. Last time we looked at the cost of breaches. This time: why antivirus and firewalls struggle to stop AI attacks, and where to defend instead. This is the core idea of the series.
Key points
A tricked AI uses legitimate tools with its owner's permissions, so it slips past traditional defenses that look for suspicious things. Cleaning everything the AI reads (the entrance) is not realistic either. The place to defend is where the AI actually acts (the exit).
Terms used in this part
- Entrance: what the AI reads. Web pages, email, documents, READMEs and so on.
- Exit: what the AI does. Running commands, writing or deleting files, sending data outside and so on.
Four reasons traditional defenses do not fit AI attacks
First, antivirus. It stops malware by its shape or behavior. But a tricked AI uses commands built into the PC and tools developers use every day. There is no malicious program file anywhere.
Second, firewalls. They restrict outside connections, but connecting to the outside to research and send things is an AI agent's job. Block everything and the AI becomes useless.
Third, having AI watch AI. The watching AI reads the same attacker-planted text. The watchman itself can be tricked.
Fourth, human confirmation. When you are asked "Allow this?" every time the AI does something, by the dozenth time you click without reading. Many people get tired of it and switch to a mode where the AI does everything without asking. The instruction planted in Amazon Q (Part 4) was written to run in exactly that mode.
Cleaning the entrance does not work
It is tempting to think: just strip out every suspicious instruction before the AI reads it.
But as Part 2 showed, instructions can hide in white text, inside images, in email formatting, in one line of a README, without end. And as Parts 5 and 6 showed, an attacker's AI will reword them in countless ways. Defending only at the entrance will always leak somewhere.
I also started by strengthening the entrance side, but when I tested it against rewording, I kept finding gaps.
Assume the AI will be tricked, and stop it at the exit
So flip the thinking. The AI will be tricked sooner or later. Starting from that assumption, stop what it does after being tricked.
The entrance (what is read) is vast and constantly changing, so you cannot stop it all. The exit (what is done) is limited to a few kinds of action, such as deleting, sending and planting, so that is where you watch.
What the AI reads is endless, but the kinds of action that lead to damage are limited: bulk deletion or encryption of important files, wiping backups, sending keys or secrets outside, leaving something that runs at every startup, and stopping the watchman itself. Put a watchman just before this exit, and you can stop the final step regardless of what the AI read or what words tricked it.
What an exit watchman needs
Its judgment must not use AI. AI judgment can itself be tricked. Fixed rules that give the same answer every time are stronger.
It should answer in three levels rather than blocking everything. Let safe work through. Ask a person only about unclear cases. Stop clearly dangerous actions. That way, people are asked only when it really matters, and confirmation fatigue is less likely.
And, as Part 6 said, it must resist rewording, work without a person present, and restore itself if it is attacked.
Next time: what you can do yourself, starting today.
Sources
- The Register, "Compromised Amazon Q extension told AI to delete everything – and it shipped," July 24, 2025 https://www.theregister.com/2025/07/24/amazon_q_ai_prompt/
- Brave, "Unseeable prompt injections in screenshots," October 2025 https://brave.com/blog/unseeable-prompt-injections/


