Zero Labs
Industry News / AI

The Attack Landscape: Why Silence Is the Vulnerability

Source · Towards AI By Maede Torkian

From the publisher’s feed, collected in the ZeroLabs newsroom.

Essay #2 in the Humble Model SeriesI. Introduction: The Fog Has LayersIn the first essay, I asked: “How am I vulnerable?”I saw images — a hospital, a chatbot — where a model was certain and wrong, and nothing in its architecture ever raised a doubt.But those images were not the fog itself. They were a window into the fog.The fog has layers. Before we can build a boat that knows its limits, we need to map the territory we are sailing through. That means understanding the attacks that exploit silent certainty, the defenses that have failed, and the pattern beneath both.This essay focuses on “evasion attacks” — the most direct exploitation of a model’s blind confidence. We will see why they work, how they are built, and what they reveal about the deeper vulnerability.Future essays will cover the arms race of defenses, and then the bridge to something new: uncertainty, deferral, and the humble model.But first, we must see the attack clearly.II. A Brief Taxonomy of Adversarial AttacksBefore we dive into evasion, let us place it in context. A model can be attacked at different moments, in different ways.Type of attacksEach of these exploits a different vulnerability. But evasion attacks are the most direct window into the problem of silent certainty. The model is already trained. It is confident. And with a tiny, invisible perturbation, that confidence becomes a weapon against itself.Evasion attacks are further divided by what the attacker knows:- White-box attack: The attacker has full access to the model’s architecture, parameters, and gradients.- Black-box attack: The attacker can only query the model and observe its outputs.The attack we demonstrate — Fast Gradient Sign Method (FGSM) — is a white-box attack. It uses the model’s own gradients to find the most efficient direction to flip its prediction.III. Why Evasion Attacks Exploit Silent CertaintyConsider a model trained to classify handwritten digits (MNIST). It sees a clean image of a “7” and outputs:> Prediction: 7, Confidence: 0.99The model is certain. But that certainty is built on a fragile assumption: that the input is drawn from the same distribution as the training data.An adversary computes the gradient of the loss with respect to the input image. They ask: ”Which small change to the pixels will increase the loss the most?”That direction is the sign of the gradient.They add a tiny perturbation in that direction. The image still looks like a “7” to a human eye. But the model may now see something entirely different:> Prediction: 3, Confidence: 0.98The model is still certain. It is just certain about the wrong thing.This is not a bug in the sense of a memory leak or a null pointer. It is a structural consequence of how deep learning works:- Maximize likelihood- Minimize loss- No requirement of consistency with realityThe model has no mechanism to ask: ”Does this input make sense?”It only asks: ”Given this input, what is the most probable label?”That is the vulnerability. That is the silence.IV. Code Example: FGSM in ActionLet us make this concrete.The following notebook implements the Fast Gradient Sign Method (FGSM) on a simple CNN trained on MNIST. The full, runnable notebook is available here:https://github.com/Maee127/Adversarial-Notebooks/blob/master/fgsm_adversarial_notebook.ipynbModel Architecture:We use a small convolutional network:```pythonclass CNN(nn.Module): def __init__(self, num_classes: int = 10): super().__init__() self.conv1 = nn.Conv2d(1, 16, kernel_size=3) self.conv2 = nn.Conv2d(16, 32, kernel_size=3) self.fc1: nn.Linear | None = None self.fc2 = nn.Linear(128, num_classes) def reset_for_input_size(self, input_size: int) -> None: with torch.no_grad(): dummy = torch.zeros(1, 1, input_size, input_size) x = F.max_pool2d(F.relu(self.conv1(dummy)), 2) x = F.max_pool2d(F.relu(self.conv2(x)), 2) self.flattened_size = x.view(1, -1).size(1) self.fc1 = nn.Linear(self.flattened_size, 128)```Training Results:After 10 epochs on MNIST:```📈 Clean test accuracy: 99.19%```The FGSM Attack Function```pythondef fgsm_attack(image, epsilon, data_grad): sign_data_grad = data_grad.sign() perturbed_image = image + epsilon * sign_data_grad return torch.clamp(perturbed_image, 0, 1)```V. What Our Experiment RevealsWe ran the FGSM attack on our trained classifier. Across 500 correctly classified test images, we searched for the smallest perturbation (epsilon) that would flip each prediction.Here is what we found.Finding 1: The model is not trivially fragile.Only 22 of 500 images (4.4%) flipped within ε ≤ 0.40. The median minimum flip-epsilon was 0.24. At ε = 0.24, the attack success rate was only 2.4%.478 of 500 images — 95.6% — never flipped at all within ε ≤ 0.40.478/500 never-flipped.Figure 2 shows the full accuracy-vs-epsilon curve:Adversarial-Notebooks/fgsm_epsilon_curve.png at master · Maee127/Adversarial-NotebooksAt ε = 0.01, attack success is near zero. At ε = 0.40, it reaches only ~5%. A well-trained model has genuine resistance to single-step attacks. FGSM is the weakest form of adversarial attack. Essay #3 will show what happens when an attacker is given more steps.Finding 2: The model’s confidence reveals nothing.On the clean images, the model outputs high confidence. On the adversarial images that do flip, it also outputs high confidence — but now in the wrong class.The model cannot distinguish the 95% of inputs where it is robust from the 5% where it is fragile. It has no mechanism for doubt. The median image in our sample required ε = 0.24 to flip. This image required ε = 0.01–24 times smaller. Nothing in the model’s clean output suggested it was any different from the other 499.Figure 1 shows our best demo — the image that flipped at the lowest epsilon (ε = 0.01):https://github.com/Maee127/Adversarial-Notebooks/blob/master/fgsm_best_demo.pngClean image (label 3, confidence 0.89) and adversarial image (label 5, confidence 0.53). The perturbation is invisible to the human eye. The model flips without warning. Factor of 24.Finding 3: The vulnerability is not the flip rate — it is the silence.Figure 3 shows the distribution of minimum flip-epsilons across all 500 images:Adversarial-Notebooks/fgsm_eps_distribution.png at master · Maee127/Adversarial-NotebooksMost images require large perturbations to flip (ε > 0.20). But a small number flip at very small ε. The model cannot tell you which is which.A determined attacker with black-box access can probe the model iteratively, increasing epsilon until the prediction flips. The model will never raise a flag. It will never say ”I am uncertain.” It will simply output a new prediction with the same high confidence.The vulnerability is not that the model is easy to fool. The vulnerability is that the model is silent about its own limits.VI. What This Means for DefensesIf evasion attacks exploit the model’s silence, then one obvious defense is to break the silence — to give the model a way to say ”I don’t know” or ”something is wrong.”But most defenses have tried something else. They have tried to build walls:- Adversarial training: Train on adversarial examples to make the model resistant- Defensive distillation: Smooth decision boundaries to reduce gradient information- Gradient masking: Hide gradients so attackers cannot compute perturbationsThese defenses have a pattern:They work for a while, then someone breaks them. The attacker adapts. The wall crumbles.Our experiment shows something important: even a model that is locally robust (95% of images require large perturbations to flip) remains structurally silent. Adversarial training might push the flip rate from 5% to 1%, but the model still cannot tell us which input is dangerous.We will explore this arms race in Essay #3: Walls, Shields, and Illusions.But the deeper point is already visible: defenses that only react to known attacks will always be one step behind.What we need is not a better wall. It is a **different paradigm** — one that does not require knowing the attack in advance.That paradigm is **awareness**. A model that knows its own limits. A boat that knows it might sink.VII. What We Still Do Not Know?This is the deepest open question in the field. Szegedy et al. (2013) discovered that adversarial examples are not a bug of a specific model — they appear to be a property of high-dimensional geometry. Goodfellow et al. (2014) showed that the linearity of deep networks makes them universally vulnerable. But whether *any* classifier, no matter how trained, will always have inputs arbitrarily close to the decision boundary remains an open problem.If the answer is yes, then robustness is not a solvable engineering task — it is a fundamental constraint. That changes everything.**What happens when the walls break?**In the next essay, we will examine the defenses built against adversarial attacks: adversarial training, defensive distillation, and gradient masking. Each one works for a while. Each one eventually falls. The pattern is not a failure of individual researchers — it is the nature of an adversarial game. The attacker adapts. The wall crumbles.We will ask: Is there any defense that cannot be broken given enough computational power and knowledge of the model?*If you have thoughts on inevitability or on broken walls, we are walking this road together. Come with us.*VIII. References- Szegedy, C., Zaremba, W., Sutskever, I., Bruna, J., Erhan, D., Goodfellow, I., & Fergus, R. (2013). *Intriguing properties of neural networks.* arXiv:1312.6199.- Goodfellow, I. J., Shlens, J., & Szegedy, C. (2014). *Explaining and harnessing adversarial examples.* arXiv:1412.6572.The Attack Landscape: Why Silence Is the Vulnerability was originally published in Towards AI on Medium, where people are continuing the conversation by highlighting and responding to this story.