Permutation-Based Stegomalware in Large Language Models: Threats and Countermeasures
Not on the map. Why?
Abstract (arXiv)
The difficulty of training large language models (LLMs), together with their ubiquity, raises the threat of stegomalware, where malicious payloads are embedded into model weights. Recent work has demonstrated the use of permutation symmetry in model weights to mitigate these threats, but failed to show neutralization of stegomalware across all weights for LLMs. In this paper, we demonstrate the full potential of behavior-preserving symmetries as a defense against stegomalware, as well as the risks these symmetries pose when exploited by attackers. For stegomalware neutralization, we improve upon previous work, demonstrating that it is possible to select permutations which displace all model parameters. This contrasts with previous methods which left a significant percentage of weights unaltered in LLMs. When used in an attack, we show that permutation symmetries can encode malware into the weights of a model in a way that is theoretically lossless, requires no retraining after encoding, and needs no payload-specific information in the extraction script---a combination of characteristics not previously seen in any single method. While theoretically lossless, permutation can in practice alter model behavior due to the accumulation of numerical error. We therefore quantify the loss in model performance associated with applying these methods, for both attack and defense, showing it to be minimal.
Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 13 of its 27 references that are in the map. First posted on arXiv 14 Sep 2026.
Builds on
13 of 27 references.
References · 13
- 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 4,703
- 2016Pointer Sentinel Mixture Modelscited by 3,096
- 2022SmoothQuant: Accurate and Efficient Post-Training Quantization for Large Language Modelscited by 1,386
- 2022LLM.int8(): 8-bit Matrix Multiplication for Transformers at Scalecited by 906
- 2022Git Re-Basin: Merging Models modulo Permutation Symmetriescited by 471
- 2023Quantizable Transformers: Removing Outliers by Helping Attention Heads Do Nothingcited by 151
- 2024Accuracy is Not All You Needcited by 31
- 2023Functional Invariants to Watermark Large Transformerscited by 15
- 2021EvilModel 2.0: Bringing Neural Network Models into Malware Attackscited by 13
- 2026Which Quantization Should I Use? A Unified Evaluation of llama.cpp Quantization on Llama-3.1-8B-Instructcited by 8
- 2025NeuPerm: Disrupting Malware Hidden in Neural Network Parameters by Leveraging Permutation Symmetrycited by 3
- 2025Defending against Stegomalware in Deep Neural Networks with Permutation Symmetrycited by 2
1 more
Built on by
Not cited yet.