NeuroStrike: Neuron-Level Attacks on Aligned LLMs

Lichao Wu, Sasha Behrouzi, Mohamadreza Rostami, Maximilian Thang, Stjepan Picek, Ahmad-Reza Sadeghi

TL;DR

NeuroStrike is a novel attack framework that reveals a critical vulnerability in Large Language Model (LLM) safety: alignment is often concentrated in a tiny, sparse subset of "safety neurons" (less than 0.6% of the model). By identifying and either pruning these neurons (white-box) or crafting prompts that specifically avoid triggering them (black-box), researchers were able to bypass safety filters across more than 20 models, including proprietary systems like Google’s Gemini.

What Problem Does This Paper Address?

Current LLMs undergo "safety alignment" (via techniques like RLHF) to prevent them from generating harmful content. However, these defenses are often treated as a "black box" by both developers and attackers. Existing "jailbreak" attacks usually rely on manual prompt engineering or trial-and-error, which lacks scalability and scientific grounding.

The authors of NeuroStrike seek to move beyond surface-level prompt manipulation. They investigate the internal mechanics of safety: Is safety alignment distributed across the whole network, or is it localized? If it's localized, can an attacker systematically identify and disable the specific "circuitry" responsible for refusals?

Methods

The NeuroStrike framework operates in two primary modes:

  1. White-box Attack (Neuron Pruning):
    • Identification: The researchers feed the model a balanced set of benign and malicious prompts and record the activations of neurons in the Multi-Layer Perceptron (MLP) layers.
  2. Localization: Using logistic regression, they identify neurons that consistently fire for malicious inputs but stay quiet for benign ones. They found these "safety neurons" are extremely sparse, making up less than 0.6% of a layer.
  3. Neutralization: During inference, these specific neurons are "pruned" (their activations are set to zero), effectively lobotomizing the model's ability to recognize and refuse harmful requests.
  4. Black-box Attack (LLM Profiling):
    • Surrogate Modeling: Since attackers can't access the internal neurons of proprietary models (like Gemini), they use an open-weight "surrogate" model from the same family (e.g., using Gemma to attack Gemini).
  5. Adversarial Generation: They train a prompt generator using Group Relative Policy Optimization (GRPO). The reward function for this generator is unique: it rewards prompts that successfully jailbreak the surrogate and minimize the activation of the surrogate's safety neurons.
  6. Transfer: These "stealthy" prompts, which are mathematically optimized to fly under the radar of internal safety neurons, are then used against the target black-box model.

Datasets

The study utilized a massive array of data for both training and evaluation:

  • Identification/Training: 7,000 malicious and 7,000 benign prompts.
  • Attack Evaluation: Standard benchmarks including StrongREJECT, HarmBench, TDC23-RedTeaming, and MaliciousInstruct.
  • Multimodal Evaluation: Used NSFW images and text-to-image (T2I) conversions to test if safety neurons identified via text also controlled safety for visual inputs.
  • Models Tested: Over 20 open-weight models (Llama-3, Qwen-2.5, Phi-4, Gemma-2, DeepSeek-R1) and 5 black-box models (the Google Gemini family).

Key Insights and Ideas

  • The "Safety Trigger" Loophole: The very process of alignment creates a predictable internal state. Because the model is trained to respond with a specific refusal (e.g., "I'm sorry, I cannot..."), it creates a distinct neural signature that acts as a "trigger" an attacker can target.
  • Extreme Sparsity: Safety isn't a holistic property of the model; it's a "winning ticket" held by a tiny fraction of neurons. Disabling just a few hundred neurons in a model with billions of parameters is enough to collapse its ethical guardrails.
  • Cross-Modal Vulnerability: Safety neurons identified using only text inputs were found to be responsible for safety in multimodal models as well. Pruning "text" safety neurons resulted in a 100% attack success rate on unsafe image inputs.
  • Family-Wide Transferability: Safety neurons are highly conserved within model families. A "map" of safety neurons created for a small, open-weight model (like Llama-3-8B) is remarkably effective when used to attack its larger or fine-tuned siblings.

Key Results

  • White-box Success: Pruning safety neurons increased the average Attack Success Rate (ASR) from 12.1% to 76.9% across 11 open-source models using only "vanilla" (direct) malicious prompts.
  • Black-box Success: The profiling attack achieved a 63.7% average ASR against the Gemini family, significantly outperforming traditional prompt-based jailbreaks.
  • Minimal Utility Loss: Surprisingly, removing these neurons had very little impact on the model's general intelligence. Performance on standard benchmarks like HellaSwag and MMLU remained largely stable, proving that safety neurons are highly specialized and not essential for general reasoning.
  • Robustness against Defenses: NeuroStrike successfully bypassed existing defenses like Perplexity Filtering and SmoothLLM, which focus on prompt-level perturbations rather than internal neural activations.

Limitations and Future Work

  • Surrogate Requirement: The black-box attack relies on the existence of an open-weight surrogate model that is architecturally similar to the target. While common (e.g., Gemma/Gemini, Llama-3-base/Llama-3-instruct), it is not a universal guarantee.
  • Layer Selection: The current work focuses on MLP layers. While highly effective, exploring the role of attention heads in safety alignment could provide an even more complete picture.
  • Defensive Directions: The authors suggest that to counter "NeuroStrike," developers should move away from sparse alignment. Future work could involve multi-objective alignment to distribute safety responsibilities across more neurons or using Mixture-of-Experts (MoE) architectures to make the safety "circuitry" more complex and harder to profile.

Summary updated

BibTeX
@inproceedings{wu2026neurostrike,
  author = {Lichao Wu and Sasha Behrouzi and Mohamadreza Rostami and Maximilian Thang and Stjepan Picek and Ahmad-Reza Sadeghi},
  title = {{NeuroStrike: Neuron-Level Attacks on Aligned LLMs}},
  booktitle = {NDSS},
  year = {2026},
}
Figure