Attacks on machine learning systems and how to defend them: adversarial examples, prompt injection, jailbreaks, data poisoning, model theft and red teaming.
53 terms
Adversarial machine learning studies how attackers manipulate machine learning models through crafted inputs, poisoned data or extraction, and the defenses.
An adversarial patch is a small, printable image region optimized to make a vision model misclassify or miss objects wherever the patch appears.
Adversarial Robustness Toolbox (ART) is an open-source Python library for attacking, defending, evaluating and certifying machine learning models.
Adversarial training hardens machine learning models against evasion attacks by training them on deliberately perturbed inputs generated during learning.
Adversarial transferability is the tendency of adversarial examples crafted against one model to also fool other models, enabling black-box attacks.
An AI bill of materials (AIBOM) is a machine-readable inventory of the models, datasets and dependencies that make up an AI system.
AI security is the discipline of protecting machine learning models, their data and AI apps from attacks such as poisoning, evasion and prompt injection.
AI security posture management (AI-SPM) continuously inventories AI models, data and agents and finds misconfigurations and risks across an organization.
AI supply chain security protects the models, datasets, code and services an AI system depends on from tampering, poisoning and malicious substitution.
AI threat modeling systematically identifies how attackers could abuse data, models, prompts and tools in an AI system, and plans defenses in advance.
A black-box attack in machine learning manipulates or extracts a model using only its inputs and outputs, without access to weights, gradients or training data.
CaMeL is a prompt injection defense for LLM agents that separates trusted control flow from untrusted data and enforces capability-based security policies.
The Carlini–Wagner attack is an optimization-based adversarial attack that finds minimal input changes that make a neural network misclassify confidently.
Certified robustness is a mathematical guarantee that a model's prediction cannot change under any input perturbation within a defined bound.
A clean-label poisoning attack inserts correctly labeled but subtly perturbed samples into training data to make a model misclassify chosen targets.
Constitutional classifiers are safeguard models trained on synthetic data from a written rule set to block jailbreaks and harmful language model outputs.
The DAN jailbreak is a role-play prompt attack that asks a chatbot to adopt a Do Anything Now persona supposedly free of its safety rules and…
Data exfiltration via prompt injection is an attack in which injected instructions make an LLM application leak private data to an attacker-controlled channel.
DeepFool is an adversarial attack that finds a near-minimal perturbation pushing an input across a classifier's decision boundary, used to measure robustness.
Defensive distillation retrains a neural network on softened labels at high temperature to resist adversarial examples, a defense later shown to be breakable.
The Dual LLM pattern splits an agent into a privileged model with tools and a quarantined model that reads untrusted text, limiting prompt injection.
An evasion attack manipulates inputs at inference time so a trained machine learning model misclassifies them, without changing the model or its training data.
The fast gradient sign method (FGSM) creates adversarial examples by shifting each input value one small step in the direction that raises model loss.
garak is an open-source LLM vulnerability scanner that probes language models for jailbreaks, prompt injection, data leakage and other failures.
Gradient masking is a flawed adversarial defense that hides useful gradients from attackers, creating a false impression of model robustness.
Improper output handling is a flaw where an application passes language model output to browsers, databases or shells without validation or encoding.
An instruction hierarchy is a training policy that tells a language model which instructions take priority when system, user and tool inputs conflict.
A label flipping attack is a data poisoning technique that changes the labels of training examples to degrade or bias a machine learning model.
The lethal trifecta is the risky mix of private data access, untrusted content and external communication that lets prompt injection steal data from AI agents.
An LLM firewall inspects prompts, retrieved content and model outputs to block prompt injection, jailbreaks and data leaks in language model applications.
Memory poisoning is an attack that plants false facts or hidden instructions in an AI agent's persistent memory so they shape its later sessions and actions.
MITRE ATLAS is a public knowledge base of adversary tactics, techniques and case studies targeting machine learning and AI-enabled systems.
Model denial of service is an attack that drives an AI model into excessive resource use, degrading availability or inflating inference costs.
Model fingerprinting identifies a machine learning model from its unique behavior or weights, proving ownership and detecting stolen or derived copies.
Model poisoning is an attack in which adversaries submit manipulated model updates, often in federated learning, to degrade or backdoor a shared model.
A model serialization attack hides executable code in a saved machine learning model file so that simply loading the model compromises the host system.
Model signing attaches a cryptographic signature to machine learning model files so users can verify who published a model and that it was not altered.
A multi-turn jailbreak spreads an attack on a language model across several conversation turns, escalating gradually until safety behavior gives way.
Multimodal prompt injection hides malicious instructions in images, audio or video so that a multimodal AI model follows them instead of its intended task.
NIST AI 100-2 is the NIST report that defines a shared taxonomy and terminology for adversarial machine learning attacks on AI systems and their mitigations.
The OWASP Machine Learning Security Top 10 is a community list of the ten most critical attack categories against machine learning systems and their defenses.
A physical adversarial attack places a crafted real-world object, patch or signal in front of a sensor to make a machine learning model misperceive a scene.
A projected gradient descent attack crafts adversarial examples through repeated gradient steps, projecting each result back into a small allowed set.
PyRIT, the Python Risk Identification Tool, is an open-source framework that automates red teaming of generative AI systems to find safety and security risks.
RAG poisoning is an attack that plants crafted documents in a retrieval corpus so a language model retrieves them and produces false or harmful answers.
Randomized smoothing turns any classifier into a provably robust one by voting over noisy copies of an input, certifying a radius against adversarial changes.
A safety classifier is a model that screens AI inputs or outputs and flags harmful, prohibited or manipulative content before it reaches a user or tool.
The Secure AI Framework (SAIF) is a conceptual framework from Google that organizes security controls and risks across the full lifecycle of AI systems.
A sponge attack feeds crafted inputs to a machine learning model to maximize its energy use and latency, degrading availability rather than accuracy.
Spotlighting is a prompt engineering defense that marks untrusted input so a language model can resist indirect prompt injection in AI security.
Terms explained in another topic that belong here too.
An adversarial example is an input deliberately perturbed so that a machine learning model makes a confident mistake that a human would…
Adversarial robustness is the ability of an AI model to keep correct behavior when inputs are deliberately manipulated to make it fail.
An adversarial suffix attack appends an optimized string of tokens to a prompt so that an aligned language model ignores its safety…
Agent hijacking is an attack in which hostile content steers an AI agent into using its tools and permissions for goals its…
AI guardrails are the technical and policy controls placed around an AI model that check its inputs, outputs and actions against safety…
An AI jailbreak is an input crafted to make a language model ignore its safety training and policies and produce output it…
AI red teaming is the structured adversarial testing of AI models and systems to uncover harmful, insecure or unintended behavior before attackers…
A backdoor attack plants a hidden trigger in a machine learning model so it behaves normally until a secret input pattern switches…
Data poisoning is an attack that corrupts the data a machine learning model learns from, so the trained model fails, misbehaves or…
Excessive agency is an AI safety flaw in which an LLM agent holds more functions, permissions or autonomy than its task needs,…
Indirect prompt injection hides attacker instructions in content a language model reads, such as web pages or emails, to hijack its behavior.
Many-shot jailbreaking is an AI safety attack that fills a long context window with fake dialogues so a language model imitates harmful…
A membership inference attack tries to determine whether a specific person's record was part of a machine learning model's training data.
A model extraction attack copies the behavior of a deployed AI model by querying it repeatedly and training a substitute on the…
A model inversion attack uses a trained machine learning model's outputs or parameters to reconstruct sensitive features of the data it was…
Model weight security is the protection of trained AI model parameters against theft, leakage and tampering across storage, training and inference.
The OWASP Top 10 for LLM Applications is a community ranking of the most critical security risks in systems built on large…
Prompt injection is an attack in which crafted text makes a language model follow an attacker's instructions instead of those set by…
Prompt leaking is an attack that makes a language model reveal its hidden system prompt, exposing instructions, business logic and sometimes secrets.
Tool poisoning is an attack that hides malicious instructions in AI agent tool descriptions or outputs so the model misuses its tools.