Malware Leveraging AI for Adaptive Code Generation and Evasion
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.

Get ahead of threats like this
Mallory correlates global threat intelligence with your attack surface — know if you’re exposed before adversaries strike.
How this story unfolded
4 events from the most recent confirmed update back to the earliest known activity.
Google reports broader attacker experimentation with AI guardrail bypasses and services
Google's 2025-11-05 report also said attackers were testing deceptive prompts to evade model safety controls, while underground markets were beginning to commercialize AI modules for phishing, deepfakes, and malware creation. The report further noted early state-aligned experimentation with AI across multiple regions.
Google assesses current AI malware as experimental and low impact
In the same 2025-11-05 research, Google concluded that the observed AI-enabled malware was largely unfinished, easy to detect, and offered mostly productivity gains rather than breakthrough offensive capability. The company said the samples reused known techniques and did not require new defensive measures.
Google documents multiple AI-assisted malware families in the wild
On 2025-11-05, Google Threat Intelligence Group published research describing several malware samples that use large language models or AI tooling during execution, including PromptFlux, PromptSteal, QuietVault, FruitShell, and PromptLock. Google said the samples used AI for code generation, obfuscation, command generation, credential theft, and runtime behavior changes.
ESET identifies PromptLock as AI-powered ransomware proof of concept
Before Google's November 2025 report, ESET had previously discovered PromptLock and described it as the first AI-powered ransomware. Later analysis indicated it was tied to academic research and lacked key operational capabilities such as persistence, lateral movement, and advanced evasion.
Related entities
Vulnerabilities, threat actors, malware, products, organizations, and breaches Mallory has linked to this story.
Sources
8 references tracked. Mallory keeps watching after this page renders.
Great, now even malware is using LLMs to rewrite its code, says Google, as it documents new phase of 'AI abuse'
pcgamer.com
Open sourceGoogle spots malware in the wild that morphs mid-attack, thanks to AI
zdnet.com
Open source5 AI-developed malware families analyzed by Google fail to work and are easily detected
arstechnica.com
Open sourceGoogle researchers detect first operational use of LLMs in active malware campaigns
csoonline.com
Open sourceMalware Developers Test AI for Adaptive Code Generation
govinfosecurity.com
Open sourceAI-Enabled Malware Is No Longer Theoretical - Austin Larsen
austinlarsen.me
Open sourceNew malware uses AI to adapt during attacks, report finds
therecord.media
Open sourceMalware Developers Test AI for Adaptive Code Generation
bankinfosecurity.com
Open sourceSee the full picture, correlated to your attack surface.
Map indicators from this story to your assets and identify affected systems in minutes.
Every observed campaign, victim, and pivot linked to actors named in this story.
Malware, exploits, and IOCs connected to the activity described here.
YARA, Sigma, and Snort rules deployed to your SIEM as soon as they’re published.
Get matching new stories delivered to your team as they break — not the next morning.
Ask questions about this story and take action on the answers.


