Attackers have found a faster way to write malicious code. They have not found a way to avoid delivering it.
Artificial intelligence is rapidly changing the economics of cybercrime. Over the past year, security researchers have increasingly documented what has become known as vibe-coded malware, meaning malicious software produced largely through natural-language prompts rather than traditional software development.
The concept is straightforward. Instead of spending hours writing PowerShell, JavaScript, or Python code by hand, an attacker describes the desired behavior to a large language model. The model generates functional code, which is then tested, adjusted if necessary, and incorporated into a delivery framework. Tasks that previously required experienced developers can now be completed in minutes by operators with far less programming expertise.
The result is not necessarily more sophisticated malware. Rather, it is malware that can be produced faster, in greater quantities, and with virtually unlimited variation. That distinction matters.
The New Industrialization of Malware Development
For decades, defenders have benefited from a certain degree of stability in malware development. Threat actors typically invested considerable effort into developing a malware family, refining it over time while security vendors gradually built signatures, heuristics, and behavioral detections around its characteristics.
AI disrupts that economic model. Instead of maintaining one malware family for months or years, operators can now generate fresh implementations whenever they need them. Function names change. Code organization changes. APIs may differ. Comments, variable names, and implementation details vary from one build to the next while the underlying objective remains identical.
Huntress framed the consequence directly when it compared vibe-coded tooling to established offensive frameworks. Where defenders can flag BloodHound, PowerSploit, or Cobalt Strike using known signatures and file hashes, an AI-generated script is unique on every run and carries no such history. From a detection perspective, defenders are increasingly facing malware that performs familiar actions using unfamiliar code, which shifts the emphasis from identifying what the malware looks like to understanding what it attempts to accomplish.
Real-World Evidence: The Huntress Active Directory Case
Recent investigations demonstrate that AI-assisted malware is no longer theoretical.
In a report published on July 8, 2026, Huntress researchers Jevon Ang and Dray Agha documented an intrusion from June 3 in which a threat actor deployed a bespoke PowerShell script, recovered as Untitled1.ps1, to enumerate an Active Directory environment. The researchers reconstructed the script entirely from Windows Event ID 4104 telemetry in the Microsoft-Windows-PowerShell/Operational log, which captures script blocks at execution time.
The evidence of AI authorship was unusually direct. The script carried the internal title “100% Working AD Information Gathering Script – FULLY FIXED,” a phrase that reads less like documentation and more like the closing turn of a prompt-and-error-correction cycle with a chatbot. The operator had left in an unedited placeholder server name that the model had supplied as example output, indicating the generated code was pasted into production without review. Huntress also pointed to a five-step cascading fallback routine for locating the domain controller, spanning DNS, nltest, the Active Directory PowerShell module, environment variables, and a hardcoded default, describing it as the kind of exhaustive and redundant logic a language model produces when instructed to make sure something does not fail, rather than the leaner single-method approach a human operator would typically write.
Once the script located the domain controller, it harvested users, computers, groups, organizational units, and trusts into a staging directory, exported the results to CSV, and generated an HTML file named AD_Report.html summarizing the collection. Roughly thirty minutes later the attacker moved to the exfiltration stage, deploying s5cmd, a legitimate Amazon S3 utility, alongside SharpShares, a C# share enumeration tool, to identify additional accessible repositories beyond standard administrative shares.
Nor would content-layer prevention have intercepted the Huntress intrusion as it actually unfolded, since the attacker arrived with valid credentials over RDP and staged the script locally, with no file crossing an ingress boundary. Had the same script been delivered as an attachment or download — the far more common pattern — it would have been squarely within CADR’s scope. The lesson is not that content prevention is irrelevant to script-based tradecraft, but that it operates on ingress, and an attacker holding valid credentials has no need to use it.
Real-World Evidence: The McAfee Distribution Campaign
The delivery-layer case is better made by a second investigation. In January 2026, McAfee Labs observed 443 malicious ZIP archives impersonating software that users were actively searching for online, including AI image generators and voice-changing tools, stock trading utilities, game mods and hacks, graphics card and USB drivers, ransomware decryptors, VPNs, and emulators. Across those archives, McAfee identified 48 unique malicious variants of a component named WinUpdateHelper.dll responsible for the infections. The company noted it had been detecting variants of the underlying threat since December 2024, with the vibe-coded elements appearing as a more recent addition.
Notably, this campaign was not delivered by phishing. The archives were hosted on legitimate content delivery networks and file-hosting services, including Discord, SourceForge, FOSSHub, and MediaFire, along with a dedicated site at mydofiles[.]com. The attack begins when a user searches for a tool, downloads what appears to be the software they wanted, and extracts an archive that contains malicious components alongside the expected content.
The AI fingerprints appeared in the second-stage PowerShell payloads, which contained explanatory-style comments of a kind uncommon in operational attacker code. McAfee highlighted one comment referring to downloading a payload from “your GitHub URL,” a phrasing that had clearly been generated as a template placeholder by a model and then carried into the shipped script unchanged, with the threat actor’s own repository substituted in below it. The delivered payloads included credential stealers, remote management agents, and cryptocurrency miners.
AI Is Accelerating Intrusions, Not Replacing Their Mechanics
It is tempting to describe AI-generated malware as a completely new category of threat. The current evidence does not support that conclusion, and the researchers closest to it say so plainly. Huntress stated in its own analysis that AI was not changing the game during the incident it investigated, and characterized the intrusion as a familiar smash-and-grab that had been accelerated by AI assistance rather than fundamentally altered by it.
Attack chains remain remarkably consistent. Attackers still conduct phishing campaigns, poison search results, and rely on social engineering. They still persuade users to open documents, extract archives, launch scripts, or otherwise execute active content, or they simply log in with credentials they already hold. Once execution begins, the remainder of the intrusion typically follows a well-understood sequence of reconnaissance, credential theft, persistence, lateral movement, privilege escalation, and payload deployment.
AI has shortened development cycles. It has not eliminated the requirement for malicious code to reach a system and run on it.
The Emerging Complication: Just-in-Time AI
Honesty about the trend requires acknowledging where it is heading, because one development genuinely does move beyond faster code authorship.
In November 2025, the Google Threat Intelligence Group reported the first malware families observed calling large language models during execution rather than only during development. PROMPTFLUX, an experimental VBScript dropper identified in early June 2025, contains a module GTIG named Thinking Robot that periodically queries the Gemini API for fresh obfuscation and evasion techniques, enabling what Google described as just-in-time self-modification intended to defeat static signature-based detection. PROMPTSTEAL, also tracked as LAMEHUG and attributed to the Russian state-sponsored actor APT28 in operations against Ukraine, is a Python data miner that queries a hosted model through the Hugging Face API to generate one-line Windows commands at runtime rather than hardcoding them. GTIG has since documented related families including FRUITSHELL, QUIETVAULT, and PROMPTLOCK, and in a subsequent report added HONESTCUE to the list of families using LLM-enabled obfuscation.
Two qualifications matter. First, GTIG assessed PROMPTFLUX as being in a development or testing phase, with incomplete features commented out and no demonstrated ability to compromise a victim network, and Google disabled the associated assets. Some researchers, including Marcus Hutchins, have argued publicly that the significance of such experimental samples is being overstated. Second, and more importantly for defensive architecture, even a malware family that rewrites itself hourly must still arrive on the endpoint and achieve its first execution. Just-in-time AI changes what happens after the payload runs. It does not change the fact that something has to run.
Why Detection Alone Faces Increasing Pressure
Modern endpoint detection platforms, behavioral analytics engines, and threat intelligence systems remain essential components of enterprise security architectures. The Huntress case is itself a demonstration that behavioral telemetry works: the activity was caught precisely because enumeration behavior stays constant even when its syntax does not.
However, those systems are also being asked to evaluate an expanding population of unique samples. If attackers can generate thousands of functionally equivalent but structurally different scripts, maintaining comprehensive detection coverage becomes increasingly resource-intensive. This is not because existing security products are failing. It is because AI shifts the balance between offensive and defensive effort. Producing another variant now costs attackers very little, while analyzing, classifying, testing, and responding to each new variation continues to require significant defensive resources. That asymmetry is likely to widen as generative models continue to improve.
The Delivery Mechanism Has Changed Very Little
Perhaps the most overlooked aspect of the AI malware discussion is that while code generation has evolved rapidly, malware delivery has evolved much more slowly. The McAfee campaign is instructive precisely because its delivery layer is entirely conventional. The payload logic may have been generated in seconds by a model, but it still depended on a ZIP archive, a file-hosting service, and a user who extracted it.
Across today’s campaigns, the initial access vector continues to involve familiar content: Office documents, PDF files, ZIP archives, PowerShell scripts, JavaScript files, VBScript files, and virtual disk containers such as VHDX. The delivery layer remains one of the few stages where defenders can interrupt an attack before execution begins, and it is the stage that generative AI has done the least to disturb.
A Growing Role for Content-Centric Prevention
This changing landscape has renewed interest in security controls that focus on the content itself rather than the malware family embedded within it. Content Analysis, Disarm and Reconstruction technologies exemplify this architectural approach. Rather than attempting to determine whether a particular script matches known malware, CADR validates supported file formats, identifies embedded active content, removes or neutralizes potentially dangerous components, and reconstructs a safe version of the file before it reaches the endpoint.
The objective is not to predict every future malware family. It is to reduce the opportunity for active content to execute in the first place. A vibe-coded PowerShell loader is novel to a signature engine and unremarkable to a disarm engine, because the disarm engine is not asking what the script is. It is asking whether active content belongs in the file at all.
FileDNA’s implementation of CADR currently focuses on scripting-based attack vectors commonly used during initial access campaigns, including PowerShell, JavaScript, and VBScript. The platform also analyzes VHDX virtual disk images, reflecting the growing use of virtual containers to bypass traditional attachment controls. Native Java archives and conventional software installers are outside its present scope, which illustrates an important reality: no single preventive technology addresses every possible delivery mechanism. Nor would content-layer prevention have helped in the Huntress case, where the attacker arrived with valid credentials over RDP and no file crossed the perimeter at all.
Those limitations do not diminish the architectural value of upstream content sanitization. They reinforce the need for layered defenses in which prevention, detection, and response each address different stages of the intrusion lifecycle, and in which no single control is asked to carry the whole weight.
AI Raises the Value of Prevention
Generative AI is unlikely to replace sophisticated malware developers anytime soon. What it has already done is reduce development costs, shorten release cycles, and make customized tooling accessible to a much broader population of threat actors. Huntress made the point bluntly, observing that vibe coding has equipped mediocre threat actors with the ability to generate bespoke, single-use scripts. That trend is unlikely to reverse.
As malware becomes increasingly disposable and individualized, security strategies built primarily around recognizing previously observed samples will face growing operational pressure. Prevention therefore becomes more valuable, not because detection is obsolete, but because stopping malicious content before execution scales more effectively than attempting to classify an ever-expanding universe of generated variants.
Looking Ahead
The cybersecurity industry often focuses on what makes the newest threat different. In the case of vibe-coded malware, the more interesting observation may be what has stayed the same.
Attackers have found a faster way to write malicious code. They have not found a way to avoid delivering that code, or executing it. Even the most forward-looking families that Google has documented, the ones that call a model mid-execution to rewrite themselves, still need a first execution to rewrite from.
As AI continues to compress development timelines, organizations should pay increasing attention to the point where untrusted content first enters the enterprise. That is where prevention technologies, including CADR, can complement endpoint protection, email security, EDR, MDR, and XDR by reducing the volume of active content that ever reaches those downstream systems. The era of AI-generated malware is already underway. The organizations best positioned to manage it will be those that recognize AI as an accelerator of existing attack methods, not as a replacement for the fundamental mechanics of intrusion.
References
- Ang, J. and Agha, D. “AI-Coded Malware: Analyzing Vibe-Coded Active Directory Enumeration.” Huntress, July 8, 2026.
- “Attacker Uses Suspected AI-Generated PowerShell Script to Map Active Directory.” The Hacker News, July 2026.
- “Vibe-Coded Malware Caught in Active Directory Attack.” Infosecurity Magazine, July 2026.
- “AI Wrote This Malware: Dissecting the Insides of a Vibe-Coded Malware Campaign.” McAfee Labs, March 18, 2026.
- “New Research: Hackers Are Using AI-Written Code to Spread Malware.” McAfee, March 24, 2026.
- Google Threat Intelligence Group. “GTIG AI Threat Tracker: Advances in Threat Actor Usage of AI Tools.” Google Cloud, November 5, 2025.
- Google Threat Intelligence Group. “Adversaries Leverage AI for Vulnerability Exploitation, Augmented Operations, and Initial Access.” Google Cloud, 2026.
- “Google Uncovers PROMPTFLUX Malware That Uses Gemini AI to Rewrite Its Code Hourly.” The Hacker News, November 6, 2025.
- “Google Warns of New AI-Powered Malware Families Deployed in the Wild.” BleepingComputer, November 5, 2025.
- “Malicious PowerShell Script Pushing Malware Looks AI-Written.” BleepingComputer, April 10, 2024. Covering Proofpoint’s TA547 / Rhadamanthys analysis.