Shape-Shifting Malicious Code in Software Backdoors via Language Models
Open Access
- 4 June 2026
- conference paper
- Published by Association for Computing Machinery (ACM)
- p. 456-471
Abstract
Supply-chain attacks in open-source software are a notorious threat to security. Current defenses focus primarily on detecting backdoor functionality within the software. However, we show that seemingly benign documentation and configuration scripts can also serve as carriers of malicious code. To this end, we introduce an attack that uses large language models to encode a malicious payload into benign cover data. The resulting material appears natural and plausible to human reviewers, yet it can be easily reconstructed into its malicious form without access to a language model. Our evaluation demonstrates the efficacy of this approach in hiding code from audits. We argue that this form of shape-shifting code poses a notable risk and derive corresponding recommendations for software development.Keywords
Funding Information
- Deutsche Forschungsgemeinschaft (492020528)
- European Research Council (101043410)
This publication has 23 references indexed in Scilit:
- SoK: Taxonomy of Attacks on Open-Source Software Supply Chains2023
- Membership Inference Attacks From First Principles2022
- Backstabber’s Knife Collection: A Review of Open Source Software Supply Chain Attacks2020
- Analysis of malware application based on massive network trafficChina Communications, 2016
- SoK: Deep Packer Inspection: A Longitudinal Study of the Complexity of Run-Time Packers2015
- Automatic Generation of Compact Alphanumeric Shellcodes for x862014
- Towards reducing the attack surface of software backdoors2013
- A Framework to Eliminate Backdoors from Response-Computable Authentication2012
- On the infeasibility of modeling polymorphic shellcode2007
- Evading network anomaly detection systems2006