Malware Leveraging AI for Adaptive Code Generation and Evasion
Emerging Technology Risk · 8 sources · Updated 5mo ago · First seen Nov 5, 2025

Malware developers are actively experimenting with artificial intelligence, specifically large language models (LLMs), to create adaptive malware capable of rewriting its own code during execution. Google Threat Intelligence Group has identified malware families such as PromptFlux and PromptSteal that utilize LLMs to dynamically generate, modify, and execute scripts, allowing these threats to evade traditional detection methods. PromptFlux uses Gemini's API to regularly mutate its VBScript payloads, issuing prompts like "Act as an expert VBScript obfuscator" to the model, resulting in self-modifying malware that continually alters its digital fingerprints. PromptSteal, meanwhile, masquerades as an image generator but leverages a hosted LLM to generate and execute one-line Windows commands for data theft and exfiltration, effectively functioning as a live command engine.
These AI-driven malware samples are still considered experimental, with limited reliability and persistence compared to traditional threats, but they represent a significant evolution in attack techniques. Notably, PromptSteal was reportedly used by Russia-linked APT28 (also known as BlueDelta, Fancy Bear, and FROZENLAKE) against Ukrainian targets, marking the first observed use of LLMs in live malware operations. The emergence of purpose-built AI tools for cybercrime is lowering the barrier for less sophisticated actors, and researchers warn that the integration of AI into malware development could soon lead to more autonomous, adaptive, and harder-to-detect threats. Google has taken steps to disrupt these operations, but the trend signals a shift toward more unpredictable and rapidly evolving attack patterns.
Why it matters
Impact assessment
Google reports an emerging but still immature class of AI-enabled malware that uses LLMs during execution to mutate code, generate commands, and alter behavior. The immediate risk is highest for organizations exposed to credential theft, developer-secret theft, and targeted espionage activity, especially government, defense-adjacent, SaaS, software development, and organizations supporting Ukraine.
The current operational impact appears limited and targeted rather than widespread. Google and independent commentary assess most observed samples as experimental, easy to detect, and lacking persistence or advanced tradecraft, but PROMPTSTEAL was reportedly used by APT28 against Ukrainian targets, confirming real-world exploitation of LLM-assisted malware in live operations.
Affected populations and sectors
- Ukrainian targets were reportedly targeted by APT28 using PROMPTSTEAL in June.
- Government, public sector, NGOs, and critical organizations in Eastern Europe face elevated espionage risk from Russia-linked activity.
- Software developers, CI/CD environments, and cloud/SaaS tenants are exposed through theft of GitHub, NPM, and other access tokens.
- Enterprises relying heavily on signature-based malware detection may face reduced visibility if malware behavior is generated at runtime.
Severity and business impact
- Primary impacts are credential theft, secret theft, data collection, and exfiltration.
- Potential downstream effects include account takeover, software supply chain compromise, cloud abuse, reputational damage, and incident response costs.
- Current samples are not assessed as highly disruptive at scale; Google states they had no major operational impact and did not require fundamentally new defenses.
- Risk is strategic: AI-assisted malware lowers development barriers and may accelerate future malware adaptation and evasion.
Scope and exploitation status
- Scope is currently limited and targeted, not a broad mass-exploitation event.
- Known live use: PROMPTSTEAL by APT28 against Ukrainian targets.
- Other families including PROMPTFLUX and PROMPTLOCK are described as experimental or proof-of-concept.
- Underground commercialization of AI-enabled criminal tooling suggests likely broader adoption over time.


