Standard 3 stops to get here · leads to 4

ML Security

Protecting machine learning systems from attackers who tamper with training data, craft inputs that fool the model, or extract private data or the model itself.

Your route here

3 stops · basics first
  1. Machine Learning ✓ understood

    Building systems that learn patterns from data instead of following hand-written rules, getting better at a task as they see more examples.

  2. Dataset ✓ understood

    A collection of data examples used for training, validating, or testing machine learning models.

  3. Training Data ✓ understood

    The examples a model learns its weights from, kept separate from the validation and test data used to check how well it generalizes.

  4. ML Security · you are here ✓ understood

Picture it

Training time

  • Poisoning: corrupt the training data
  • Backdoors: hidden trigger, bad output

Deployment time

  • Evasion: inputs crafted to fool the model
  • Prompt injection against LLM apps

Privacy

  • Membership inference on training data
  • Model extraction via repeated queries
Notice that ML adds attack surfaces ordinary software does not have: the data the model learned from and the inputs it interprets.

ML security is the practice of keeping machine learning systems trustworthy when someone is actively trying to break them. Traditional security still applies: access control, patched servers, protected secrets. But a learned model also has weaknesses that ordinary software does not, because its behaviour comes from data and it has to interpret whatever inputs arrive.

NIST’s taxonomy of adversarial machine learning groups the main attacks by what the attacker targets.

The main attack families

  • Evasion: inputs crafted at inference time so the model gets them wrong, such as an image altered in ways a person would not notice. See adversarial attack.
  • Poisoning: corrupting the training data or the model itself. Data poisoning degrades or skews the model; a backdoor attack plants a hidden trigger that produces attacker-chosen output.
  • Privacy attacks: extracting what the model should keep private. Membership inference tests whether a specific record was in the training set; model extraction reconstructs a copy of the model through repeated queries.

LLM applications

Language model apps add their own risks. OWASP’s Top 10 for LLM applications lists prompt injection first: text in a user message, web page or document that overrides the developer’s instructions. When the model can call tools or read private data, a successful injection becomes a way to act or leak on the attacker’s behalf.

Defending

No single fix covers everything. Common layers include controlling where training data comes from, adversarial training and robustness testing, differential privacy to limit what a model memorizes, rate limits and monitoring on model APIs, and treating model output as untrusted before it triggers actions. Papernot and colleagues argue there can be real tension between model complexity, accuracy and resilience, so security is a design trade-off rather than a bolt-on.

Where it sits

Explore nearby

Sources

  1. NIST AI 100-2 E2023, "Adversarial Machine Learning: A Taxonomy and Terminology of Attacks and Mitigations" . National Institute of Standards and Technology, 2024
  2. OWASP Top 10 for LLM Applications . OWASP GenAI Security Project, 2025 edition
  3. Papernot, McDaniel, Sinha and Wellman, "Towards the Science of Security and Privacy in Machine Learning" . 2016