Malware Leveraging Large Language Models for Dynamic Capabilities
Emerging Technology Risk · 2 sources · Updated 5mo ago · First seen Nov 19, 2025

Security researchers have identified a new trend in which threat actors are embedding large language models (LLMs) directly into malware to enhance its capabilities and evade detection. Akamai Hunt discovered a novel malware strain that disguises its command and control (C2) traffic as legitimate LLM API requests, using Base64-encoded strings to communicate and potentially allowing attackers full control over compromised systems and data exfiltration. This approach enables malicious traffic to blend in with normal AI-related network activity, making detection more challenging for defenders.
Further analysis and industry reporting highlight that malware families such as PromptFlux and PromptSteal are now querying LLMs mid-execution to dynamically alter their behavior, obfuscate code, and generate system commands on demand. PromptFlux, for example, uses the Gemini API to regularly re-obfuscate its source code, while PromptSteal leverages the Hugging Face API for real-time reconnaissance and exfiltration commands. These developments underscore the need for organizations to adapt their security controls and detection strategies to address the evolving threat landscape where AI and LLMs are weaponized by attackers.
Why it matters
Impact assessment
Threat actors embedding LLM functionality into malware increases risk for enterprises that allow outbound access to AI platforms or already generate legitimate AI-related network traffic. Affected populations include organizations using developer tooling, cloud workloads, endpoints, and SaaS environments where traffic to Gemini, Hugging Face, or similar APIs may appear normal and evade coarse network controls.
The impact can be severe because this tradecraft supports stealthier command-and-control, adaptive payload behavior, reconnaissance, and data exfiltration from compromised systems. The scope is currently best assessed as emerging and targeted rather than indiscriminate, but the technique is broadly reusable across malware families and could scale quickly; the reporting describes active malware development patterns and researcher-observed samples, though it does not provide broad incident counts or confirmed mass exploitation statistics.
Supporting facts
- Entity: Akamai Hunt identified a malware strain that disguises C2 traffic as legitimate LLM API requests.
- Entity: Malware families named in reporting include PromptFlux and PromptSteal.
- Impacted environments: Enterprise endpoints, servers, cloud workloads, and networks where outbound AI API traffic is permitted or common.
- Potential consequences: Full attacker control of compromised systems, stealthier persistence of C2, and data exfiltration.
- Exposure characteristic: Malicious traffic can blend with legitimate AI-related traffic, reducing effectiveness of simple domain- or category-based allowlisting.
- Known in-the-wild activity: Research reporting indicates observed malware behavior and industry analysis of active techniques, but no victim count, sector concentration, or campaign scale is provided in the story.


