Skip to main content
Mallory
← Back to News
ai-enabled-threat-activitydefense-evasion-methodstate-sponsored-espionagedata-exfiltration-method

Malware Leveraging AI for Adaptive Code Generation and Evasion

Emerging Technology Risk · 8 sources · Updated 5mo ago · First seen Nov 5, 2025

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.

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.
New surface, new adversariesTrack how attackers are adapting to this technology.
Track this risk
Event timeline

How this story unfolded

Events from the most recent confirmed update back to the earliest known activity.

4 events · Nov 5, 2025
  1. Nov 5, 20251y ago

    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.

  2. Nov 5, 20251y ago

    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.

  3. Nov 5, 20251y ago

    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.

  4. Date unknown

    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.

Linked entities

Related entities

Vulnerabilities, threat actors, malware, products, organizations, and breaches Mallory has linked to this story.

Open in app →

Threat actors

1 linked

Malware

1 linked

Organizations

1 linked
APT28
Do you run this?Follow how adversaries are adapting to this technology, and where it touches your stack today.
Track This Risk
Mallory platform

See the full picture, correlated to your attack surface.

This page covers what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which threat actors are using it right now, and what to deploy next.

Exposure mappingMap indicators from this story to your assets and identify affected systems in minutes.
Threat actor evidenceEvery observed campaign, victim, and pivot linked to actors named in this story.
Associated malwareMalware, exploits, and IOCs connected to the activity described here.
Detection signaturesYARA, Sigma, and Snort rules deployed to your SIEM as soon as they’re published.
Scheduled alertsGet matching new stories delivered to your team as they break, not the next morning.
AI threadsAsk questions about this story and take action on the answers.