2
Threat Modeling AI Systems
AI security failures are rarely limited to the model weights. They usually come from the surrounding architecture: what data the model can access, what tools it can call, what permissions it inherits, and how its outputs are handled.
The real attack surface sits at the intersection of model capability, data access, and tool orchestration. For example, if an agent processes untrusted user input and also has write access to a database, that is a design-level issue. Prompt filters or system instruction changes may reduce some risk, but they will not fix the underlying problem. The architecture needs clearer data flows, stronger session boundaries, and tighter authorization logic.
Threat modeling gives engineers, data ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access