A targeted adversarial example is an input deliberately altered to make a machine learning model produce one chosen wrong output. In cyber security, attackers craft the perturbation so the model misclassifies a specific image, file or command in a controlled way, often while keeping the change hard to notice.
What Makes a Targeted Adversarial Example Dangerous?
A targeted adversarial example is dangerous because it does not just confuse a model, it steers the model toward one chosen mistake. That makes it especially useful when the attacker wants a specific misclassification, such as one label, one command, or one file verdict, rather than random error.
In practice, the risk comes from how little change may be needed to influence the output. The perturbation can be engineered to stay subtle enough for a human reviewer to miss, while still exploiting the model’s learned decision boundary.
How Targeted Attacks Work Against Machine Learning Systems
Targeted attacks usually depend on the model being sensitive to patterns that are meaningful to the algorithm but not obvious to people. The attacker adjusts the input until the model assigns the chosen false output with high confidence or at least enough certainty to change downstream automation.
This is why the term matters in cyber security. A targeted adversarial example can be used to bypass detection, misroute a workflow, or trigger an unsafe action in a system that trusts model output too much. NHIMG’s Adversarial Examples and Evasion Attacks Guide explains the attacker knowledge levels and evasion patterns that shape these attacks.
Where the model is exposed through an API or embedded in a decision pipeline, the attack surface can expand quickly. The same basic technique can be adapted across classifiers, detectors, ranking systems, and command interpretation layers.
Why Targeted Perturbations Are Hard to Defend Against
Targeted perturbations are difficult because the defender often sees only the final input, not the attacker’s search process. The adversary may use gradient access, transferability from a substitute model, or repeated queries to find a minimal change that produces the desired wrong output.
Defenses therefore have to address both robustness and abuse resistance. Techniques such as adversarial training, input screening, confidence monitoring, and query throttling can help, but none is a universal fix. NHIMG’s AI Model Security Guide covers adversarial examples alongside model extraction and inference API controls.
For defenders, the practical issue is not only whether the model is accurate on normal data, but whether it can be manipulated into a specific incorrect decision path under attack.
Where Targeted Adversarial Examples Matter Operationally
Targeted adversarial examples matter most where model output directly influences a security or safety decision. Examples include malware classification, phishing detection, document triage, biometric or identity-related inference, and AI-assisted moderation or approval workflows.
When that output feeds an automated action, a single chosen misclassification can create disproportionate impact. A false allow decision, a false block, or a diverted review path may be enough to let an attacker advance while appearing ordinary to operators. For a broader threat model view, see the MITRE ATLAS adversarial AI threat matrix and NHIMG’s MITRE ATLAS Guide.
The control lesson is simple: treat model output as a potentially attackable input to downstream systems, not as an unquestioned source of truth.
Risk and Threat Considerations
Targeted adversarial examples matter because an attacker can aim for one specific bad decision, not just generic model failure. That makes them attractive anywhere a model gates access, filters content, classifies threats, or triages high-value actions.
Failure mechanism: The attacker optimises the perturbation so the model crosses into a chosen incorrect class, often by exploiting sensitivity that is invisible or low-salience to human review.
Impact: A successful attack can suppress detection, misroute automation, or create a false trust signal that downstream systems act on as if it were legitimate.
Standards & Framework Alignment
This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.
MITRE ATT&CK and OWASP API Security Top 10 address the attack and risk surface, while NIST AI RMF and OWASP ASVS set the governance and control requirements practitioners need to meet.
| Framework | Control / Reference | Relevance |
|---|---|---|
| MITRE ATT&CK | T1565 — Data Manipulation | Adversarial perturbation deliberately manipulates input data to change a model's outcome. |
| Recommendation — Monitor for crafted input changes that alter decision outcomes and validate model outputs before acting on them. | ||
| NIST AI RMF | GV-2 — Map Context | Targeted adversarial examples require explicit AI risk context and downstream use-case understanding. |
| MEASURE-1 — Analyze and evaluate AI risks | Robustness against targeted adversarial inputs is an AI risk that must be measured and tested. | |
| Recommendation — Document the model’s operational context and the impact of a chosen false prediction on downstream decisions. Test the model with adversarial inputs that try to force a specific wrong output. | ||
| OWASP ASVS | V15 — Secure Coding and Architecture | Adversarial robustness depends on architecture that does not trust model output blindly. |
| Recommendation — Design workflows so model predictions are verified before they trigger sensitive actions. | ||
| OWASP API Security Top 10 | API8 — Security Misconfiguration | Exposed inference APIs can magnify targeted adversarial abuse when controls are weak. |
| Recommendation — Harden inference endpoints and rate-limit repeated queries used to search for adversarial perturbations. | ||
Practitioner Guidance
What to watch for: Prioritise systems where a single wrong label changes a security outcome, because those are the best candidates for targeted attack testing. Use adversarial evaluation on the model and the surrounding workflow, not just on clean accuracy or aggregate benchmark scores.
Governance implication: Assign ownership for model robustness, input validation, and post-decision review together, since the risk often sits in the full pipeline rather than in the model alone. If the model can be queried repeatedly or sits behind an exposed interface, treat that exposure as part of the control design.
Practitioner takeaway: The key question is not whether the model is usually right, but whether an attacker can make it wrong in one very specific and useful way.
Related resources from NHI Mgmt Group
Deepen Your Knowledge
Free weekly newsletter
Subscribe to the NHI & AI Identity Journal
The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.
Bonus 33% off our NHI Course when you subscribe.
Reviewed and updated by the NHIMG editorial team on November 3, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org