Adversarial Attacks
An adversarial attack is a deliberate attempt to manipulate an AI model’s behavior by crafting inputs designed to cause a specific wrong output. The input looks normal. The model fails. The failure is not accidental.
This is not the same as finding a bug in code. Adversarial attacks exploit the statistical nature of machine learning itself. A model trained to distinguish cats from dogs does not understand “cat.” It has learned a decision boundary across a high-dimensional feature space. An adversarial attack finds a point just on the wrong side of that boundary and presents it as an input. The model classifies it with confidence. However, the classification is wrong by design.
In cybersecurity, that capability is not theoretical. Adversarial attacks against production security tools are documented. Endpoint detection systems, spam filters, malware classifiers, and network intrusion detectors have all been successfully evaded using adversarial techniques.
Types of Adversarial Attacks
Evasion attacks modify a malicious input at inference time to cause a trained model to misclassify it. A malware sample is altered at the byte level, preserving its payload while pushing its feature representation across the classifier’s decision boundary into benign territory. The antivirus flags nothing. The malware executes.
Poisoning attacks corrupt the model during training rather than at inference time. By injecting manipulated samples into the training dataset, an attacker shapes the model’s decision boundary to include a backdoor: a hidden misclassification that triggers on a specific input pattern. In contrast, the model performs normally on everything else. See the Training Data Poisoning entry in this glossary for full details.
Model extraction uses adversarial querying to reconstruct a proprietary model’s behavior without access to its weights or training data. By systematically probing the model’s outputs, an attacker builds a functional replica. The replica can then be used offline to develop evasion attacks without triggering the target’s monitoring systems.
Prompt injection is the adversarial attack most specific to large language models. Rather than manipulating numerical features, the attacker manipulates the natural-language input to override the model’s intended behavior. OWASP GenAI Security Project ranks it as the top risk for LLM-powered applications. The mechanism is adversarial. The medium is text.
Security Risks: Adversarial Attacks Introduce
Evasion of ML-based controls is the most immediate operational risk. Security tools that rely on machine learning classifiers as a primary detection layer are vulnerable to targeted evasion by any attacker who understands the model’s general architecture. Adversarial evasion does not require access to the model’s weights. It requires access to its outputs and enough queries to map its behavior.
Backdoored production models are the consequence of successful poisoning attacks. A model that has been poisoned during training will misclassify specific inputs consistently, in a way that appears intentional because it is. Routine performance evaluation will not surface a well-designed backdoor because the model performs correctly on standard test data.
Silent degradation occurs when adversarial inputs cause a model to underperform without triggering any alert. Unlike a system crash or a detected intrusion, a manipulated classifier fails quietly, returning confident but wrong classifications to every downstream process that trusts it.
Replica-based attack development is the threat of model extraction. An attacker who has cloned a target model can develop and test adversarial inputs locally, at scale, without exposing their activity to the target’s monitoring. When they deploy the evasion payload against the real system, it will already have been optimized for success.


