Step 26 of 38 · Risk and responsibility
Security of ML systems
Learned systems add attack surfaces: training data, model inputs, model files and connected tools. Put them in your threat model.
Your security team knows how to protect services. They may not know that a model can be manipulated through its inputs, poisoned through its training data or tricked into leaking what it learned.
Extend the threat model. Where does training data come from, and who could tamper with it? What can an attacker achieve with crafted inputs, including text hidden in documents or web pages your system reads? What can the model reach: tools, credentials, actuators? Treat model output as untrusted input to everything downstream, and give the model the least access that does the job.
Protect weights and datasets like source code. The common mistake is to assume an instruction in a prompt is a security control.
Try this week
- Run a threat modelling session with security covering data sources, model inputs, model outputs and tool access.
- List every action your model can trigger and remove any permission it does not need.
Signs you've got it
- Security reviews for ML features cover data and model attack paths, not only the API.
- No model output is executed, stored or acted on without validation suited to the risk.
Resources
- paperAdversarial Machine Learning: A Taxonomy and Terminology of Attacks and Mitigations (NIST AI 100-2 E2025) (opens in a new tab)NIST
- guideOWASP Top 10 for Large Language Model Applications (opens in a new tab)OWASP Foundation
- toolMITRE ATLAS (Adversarial Threat Landscape for Artificial-Intelligence Systems) (opens in a new tab)MITRE
- guideGuidelines for secure AI system development (opens in a new tab)UK National Cyber Security Centre
- articlePrompt injection (article series) (opens in a new tab)Simon Willison