Permutation symmetries can fully neutralize or embed stegomalware in LLM weights
Selecting weight permutations can displace all parameters, enabling complete stegomalware defense and lossless malware embedding
AI/ML arXiv 14 Sep 2026 Method Prototype evidence
Published as “Permutation-Based Stegomalware in Large Language Models: Threats and Countermeasures”
Why it matters
Defenders can safely neutralize weight-based stegomalware in untrusted LLMs by applying a random global permutation with negligible impact on model utility.
Summary
The paper shows that applying a global permutation to all weight matrices of an LLM can neutralize known stegomalware across 100% of the model’s parameters, improving on prior defenses that covered less than two thirds. It also introduces PermaNet, a method to embed hidden payloads by reordering rows and columns of weight matrices, which is theoretically lossless and requires no retraining. Experiments on models from 1.1 B to 22 B parameters report only negligible drops in accuracy and distributional metrics, comparable to mild quantization. The evidence is based on empirical evaluation of several open-source LLMs and comparison against quantization baselines.
What they found 3
- Global permutation symmetries can neutralize stegomalware in all parameters of an LLM, surpassing prior work that covered < 2/3 of parameters.
“We show how global permutation symmetries, propagating across the whole network, can be exploited to neutralize stegomalware in 100% of the parameters of a large language model, beating the previous which managed less than two thirds of all parameters.”
- PermaNet provides a theoretically lossless way to embed hidden information in neural networks.
“We introduce PermaNet, a , (theoretically) lossless method of embedding hidden information in neural networks.”
- Performance impact of both attack and defense is minimal and comparable to mild quantization.
“We test our methods of malware embedding and neutralization, verifying a minimal reduction in model performance. This is less than the effects of quantization levels considered to be ‘near lossless’, and disappears as the level of numerical precision at inference is increased.”
Caveats 6
- Applying permutations introduces numerical error that can slightly degrade model performance, especially at lower precision (bf16).
- The approach is not robust to pruning or quantization, which can destroy the encoded ordering.
- The extraction process for PermaNet is complex and requires knowledge of the canonical ordering and ranking algorithm.
- Our approach is not robust to pruning or quantization, due to its reliance on hashing functions or ordering schemes which would not survive these processes.
- It does not cover all bias vectors in models which have bias terms in self-attention layers or in the router networks of mixture-of-experts, with OpenAI’s GPT-OSS models being notable examples of both of these.
- Defensively, a drawback of our approach is that developing a neutralization tool for a model architecture requires explicit knowledge of the model’s architecture.
What’s new here 4
- Global permutation that displaces every parameter in an LLM, achieving full-coverage neutralization of stegomalware.
- PermaNet, a lossless weight-ordering steganography technique that embeds payloads without retraining or payload-specific extraction code.
- Empirical demonstration that both attack and defense cause minimal performance loss, even on models up to 22 B parameters.
- Analysis of detectability showing that static scanners cannot recover the payload and that a keyed hash can make the scheme perfectly secure in the information-theoretic sense.