
The defender's pivot: why security is an unfair advantage in AI engineering
On this page
When I tell people I came into AI engineering from a security background, they usually nod like I’ve changed careers. I don’t think I have. I picked up a set of habits breaking and defending systems, and most of them turned out to point straight at building good software with AI in it.
Here’s the honest version of why the lens transfers.
You already assume things are hostile#
Security teaches you a reflex: treat every input as if someone is trying to hurt you with it. Users, files, network calls, the lot.
Point that reflex at an AI feature and it lands immediately. A prompt is an input. A tool call the model makes is an input. Retrieved context is an input. The moment you stop trusting them by default, prompt injection stops being an exotic new threat and starts being the same old problem wearing a hat.
Prompt injection is just untrusted input reaching a powerful interpreter. We have been fighting that fight for decades.
You respect blast radius#
In incident response you learn to ask “if this goes wrong, how far does it spread?” before you touch anything.
That question is gold when you give a model tools. What can this agent actually do if it is confidently wrong, or quietly steered? What is the worst API it can reach? A defender designs for the bad day, so you scope the permissions down, you keep a human in front of anything expensive or irreversible, and you assume the model will occasionally do the daft thing.
You are comfortable not trusting the output#
Blue-team work is mostly deciding whether to believe what a log is telling you. That scepticism is exactly what evals are. You do not ship a detection rule because it felt right; you test it against real events and count what it misses.
Same with a model. “It seemed fine in the demo” is not a measurement. Writing the boring test set, the one that catches the failure you would rather not think about, is a security habit before it is an AI one.
The part that does not transfer#
For balance: security can make you slow and gloomy, and building needs a bit of optimism. Not every input is an attacker. Sometimes the right move is to ship the rough thing and learn from it, which the defender in me finds genuinely uncomfortable.
So I have had to add a builder’s habit on top: shipping, watching, fixing. The security instinct tells me where the sharp edges are. It does not get to stop me walking towards them.
That is the pivot, if it even is one. Same eye, pointed the other way.


