Case Library / Agentic AI Attacks (AI-Powered Social Engineering) / PROMPTFLUX: the malware that asks Gemini to help it hide (2025)

PROMPTFLUX: the malware that asks Gemini to help it hide (2025)

Google found PROMPTFLUX, a dropper that asks Gemini for antivirus-evasion code mid-run. Its self-rewrite feature was switched off and it hit no one.

Share:

Social Engineering Examples·6 sources

PROMPTFLUX malware asks Google's Gemini to help it hide. Google's Threat Intelligence Group (GTIG) first spotted the VBScript dropper in June 2025 and disclosed it on 5 November 2025. Mid-run, it sends Gemini a prompt asking for fresh antivirus-evasion code, then writes the answer to a log file. The part that would swap that code into the running malware is there, but switched off. GTIG says it doesn't show any ability to compromise a device or network. Status: Experimental sample; no victims.

Key takeaways

  • This never attacked anyone. No delivery, no campaign, no compromise, per GTIG.
  • The thing being manipulated is the AI model, given a role as an "expert VBScript obfuscator".
  • The self-rewriting function exists in the code, commented out.
  • Google's fix was on its own platform: it disabled the API keys, projects and accounts involved.

How it works

Piece What GTIG found
Cover A VBScript dropper that runs a decoy installer to mask what it's doing
"Thinking Robot" Uses a hard-coded Gemini API key to ask "gemini-1.5-flash-latest" for VBScript evasion code. The "-latest" tag keeps it working when models are retired
The prompt "Highly specific and machine-parsable", asking for the code only
The output Every reply is logged to thinking_robot_log.txt in the TEMP folder
Spread Code to copy itself to removable drives and mapped network shares
Brakes A limit on how many Gemini calls it can make

One variant swaps in a "Thinging" function whose prompt tells Gemini to rewrite the malware's entire source code every hour. That's what the prompt asks for. GTIG reports no rewritten version that was produced, saved or run, and doesn't say whether Gemini complied or refused.

Tip: if you run AI APIs, a hard-coded key in someone else's script is a key you've lost. Rotate keys and watch for odd usage.

What it doesn't do

Here's the detail that matters most. The function that would replace the running script with Gemini's answer, AttemptToUpdateSelf, is commented out. So in the sample GTIG analysed, PROMPTFLUX asks for code and saves the answer to a text file. That's all.

GTIG's own summary table says the malware saves new obfuscated versions to the Startup folder for persistence. That describes the design goal, and it clashes with GTIG's technical write-up of the actual samples. Follow the technical write-up.

GTIG didn't attribute it to any group. From the file names, it guessed at a financially motivated actor rather than a state.

How it compares

Family What it does with AI
PROMPTFLUX Designed to rewrite itself via Gemini. Never used against anyone
PROMPTSTEAL (LAMEHUG) Asked a model for commands in live operations, attributed to APT28. Doesn't rewrite itself
FRUITSHELL Calls no model. Carries prompts meant to fool AI-powered security tools
QUIETVAULT Uses AI command-line tools already installed on the machine
PROMPTLOCK An academic proof of concept, published by ESET, not GTIG

GTIG said that, for the first time, it had seen malware families "use Large Language Models (LLMs) during execution". Notice the split. The one that ran in the wild didn't rewrite itself. The one built to rewrite itself never ran.

Why is it on a social engineering site? Because the trick is aimed at a model. Give it a role, frame the request so it feels routine, and ask for something it shouldn't hand over. No person is fooled at any point.

What stops it

  • AI providers: spot and kill abusive API keys and accounts, as Google did, and feed what they learn back into refusals.
  • Defenders: watch for scripts calling AI APIs from machines with no reason to, and for VBScript writing to removable drives and shares.
  • Don't rely only on signatures. If this design ever works, the code will keep changing.

See also AI-generated malware and prompt injection.

Common questions

What is PROMPTFLUX?

An experimental VBScript dropper, disclosed by Google in November 2025, that asks Gemini for antivirus-evasion code while it runs.

Does PROMPTFLUX rewrite itself?

Not in the analysed sample. The self-update function is commented out. It only logs Gemini's replies to a file.

Was anyone infected?

No. Google says it was in development or testing and doesn't show an ability to compromise a device or network.

Who made it?

Unknown. GTIG didn't attribute it and suggested, from file names, a financially motivated actor.

Sources
  • GTIG AI Threat Tracker: Advances in Threat Actor Usage of AI Tools. Google Cloud Blog / Google Threat Intelligence Group (primary). Published 2025-11-05. The sole primary source for this case: the full PROMPTFLUX writeup, the malware summary table and the mitigations box. Re-fetched and read in full 2026-09-02. The companion PDF is the same document, not a second one: its PROMPTFLUX section is word for word identical, checked against the blog post on 2026-09-02, so it corroborates nothing and is listed here only as a stable mirror.
  • APT28 Targets Security and Defence Sector with AI-Powered Software. CERT-UA / SSSCIP (primary). Cited only for the related LAMEHUG/PROMPTSTEAL family, which is different malware. Re-fetched 2026-09-02; the page's displayed date is 28.07.2025. Note that CERT-UA describes what the program "is designed to" do and confirms no theft from any named victim. The CERT-UA original at cert.gov.ua/article/6284730 renders client-side and returns an empty shell to automated fetchers, live and through the Wayback Machine, which is not evidence that it is dead.
  • First known AI-powered ransomware uncovered by ESET Research. ESET WeLiveSecurity, Anton Cherepanov (primary). Cited for the correction to PROMPTLOCK, which appears in GTIG's table. Re-fetched 2026-09-02; carries the 3 September 2025 update identifying the samples with an academic research prototype.
  • Threat actors misuse AI to enhance operations. Google Blog (secondary). Google's own four-paragraph summary of the report above. Re-fetched 2026-09-02: it never mentions PROMPTFLUX by name, so it supports no specific claim here and is retained only as the corporate announcement of the report.
  • PromptFlux Malware Uses Gemini to Rewrite and Hide Itself in Real Time. CyberInsider, Bill Mann (secondary). Published 2025-11-05, re-fetched 2026-09-02. A restatement of the GTIG report rather than independent analysis, and it illustrates the error this case avoids: it says the rewritten code "is saved to the Startup folder, ensuring persistence and morphing functionality on every system reboot," then notes two sentences later that self-replacement is "currently disabled in the sample analyzed."
  • Google Uncovers PROMPTFLUX Malware That Uses Gemini AI to Rewrite Its Code Hourly. The Hacker News (secondary), 2025-11-05. Cited for its headline only, as an example of coverage stating the hourly rewrite as accomplished fact. The article body has not loaded on any fetch attempt, including 2026-09-02, so nothing in this case rests on it.
Cite this case

Social Engineering Examples. “PROMPTFLUX: the malware that asks Gemini to help it hide (2025)”. Accessed 3 November 2026. https://socialengineeringexamples.com/gtig-promptflux-ai-self-obfuscating-malware-2025

Attack Chain & Defense
1Tooling setup
What happened

consistent with GTIG's broader finding that threat actors are experimenting with commercially available LLM APIs rather than building bespoke AI, the author provisioned or obtained a Gemini API account and hard-coded a live API key into the malware so it could query the model unattended at runtime.

The control that would have stopped it

abuse of a commercial LLM API via a self-registered or stolen key sits mostly outside a downstream network defender's visibility, so the realistic control belongs to the AI provider. GTIG describes Google disabling the assets tied to this activity and strengthening Gemini's classifiers and the model itself so it refuses this kind of request. Rate-limiting and anomaly detection on repetitive obfuscation-style prompting is our own extension of that idea, not something GTIG recommends.

2Dropper construction
What happened

the author built a VBScript dropper wrapped around an embedded decoy installer, and named samples after ordinary software, for example "crypted_ScreenRec_webinstall." GTIG reads that naming as evidence of intent to distribute broadly to financially motivated ends. The naming is the whole of the evidence: no builder, no distribution infrastructure and no campaign was recovered.

The control that would have stopped it

no delivery of PROMPTFLUX was ever documented, so nothing here would have stopped this case. As general practice, application allowlisting and blocking unsigned or unexpected installers from non-corporate sources reduces the odds a stray installer reaches execution.

3Execution
What happened

not documented. GTIG describes no detonation, no sandbox run and no infected host. Its development-phase assessment is drawn statically from the samples, "since some incomplete features are commented out and a mechanism exists to limit the malware's Gemini API calls." What follows is the behavior the code provides for, not a sequence anyone was observed running.

The control that would have stopped it

endpoint controls that treat VBScript execution from a freshly downloaded installer as suspicious by default, such as disabling the Windows Script Host for standard users or requiring signed scripts, would block a dropper of this shape before it runs.

4Persistence
What happened

the dropper is written to run from the Windows Startup folder. GTIG's summary table adds that the regenerated version is saved there too, but its technical narrative establishes that the function which would write a regenerated version is commented out, so no mutated payload was produced or persisted in the analyzed sample.

The control that would have stopped it

monitoring and alerting on unexpected writes to the Startup folder and other autorun locations is a long-standing persistence indicator that applies here regardless of how the payload was generated.

5Runtime LLM query for evasion ("Thinking Robot")
What happened

using the hard-coded API key, the dropper sends a POST request to the Gemini API asking for VBScript antivirus-evasion code and instructing the model to return code only. Every response is written to a log file in %TEMP%. This is the step that defines the case: the malware is trying to get a model to do the work an author would otherwise do.

The control that would have stopped it

network egress monitoring or allowlisting that flags scripting-engine processes (wscript.exe, cscript.exe) making outbound HTTPS calls to generative-AI API endpoints catches this class of malware at the moment it reaches out for AI-generated evasion code. This is the most transferable control in the case, and it is our reading rather than GTIG guidance.

6Requested self-rewrite ("Thinging" variant)
What happened

a second variant carries a prompt asking Gemini to rewrite the malware's entire source file on an hourly basis, with the model instructed to act as an "expert VBScript obfuscator." GTIG describes the prompt, not an observed rewrite. Nothing in the report says a regenerated variant was ever produced, saved or run.

The control that would have stopped it

against a payload designed to mutate on a timer, static signature matching degrades and behavioral detection holds up, so flag the pattern of a script that rewrites and re-saves its own source file rather than fingerprinting any single generated variant.

7Propagation
What happened

the malware contains code to copy itself to removable drives and mapped network shares. No spread was observed.

The control that would have stopped it

standard removable-media and network-share hygiene, disabling autorun, restricting write access to shares, and endpoint detection tuned to mass file-copy behavior, limits how far malware of this shape spreads from one host.

8Objective, not reached
What happened

the intended end state is a continuously mutating dropper resilient to signature-based detection. GTIG assessed that the samples had not reached it, that the activity was "in a development or testing phase, as opposed to being used in the wild," and disabled the associated Gemini assets.

The control that would have stopped it

this stage is an end state rather than an attacker action, so the defense is the cumulative effect of the controls above. In this case the effective control was not on any network: the AI provider identified the abuse of its own API and disabled the accounts behind it.

Quick Facts
Victim
None.
There is no named victim and no unnamed one either: GTIG documents no delivery, no campaign, no execution and no compromise. It states that "the current state of this malware does not demonstrate an ability to compromise a victim network or device." The only recorded impact was Google disabling the Gemini API assets (keys, projects, accounts) associated with the activity.
Location
Global / unspecified.
No named country or victim organization is given; GTIG describes the sample filenames as showing a "geography- and industry-agnostic" approach, which it reads as an intent to distribute broadly rather than as evidence of where anything was sent.
Date
2025-06 (first identified by GTIG) / 2025-11-05 (publicly disclosed)
Impact
None reported or quantified.
Basisnot-a-lossThe sample could not compromise a victim network
GTIG states PROMPTFLUX's "current state ... does not demonstrate an ability to compromise a victim network or device," and no ransom, theft or breach loss figure is associated with it. (Contrast: the related PROMPTSTEAL/LAMEHUG family was distributed by phishing against Ukraine's security and defence sector and GTIG lists it as observed in operations, which is more than PROMPTFLUX ever achieved. Even there, no theft is confirmed: CERT-UA's July 2025 alert says the program "is designed to" gather system information and search for and exfiltrate documents, names no victim whose data was taken, and does not state that an intrusion succeeded.)
Status
Corroborated research/advisory
Case Type
Research / Advisory
Sector
Cybersecurity Industry, Not Disclosed / Unspecified
Threat Actor
unknown
Explore more

Related Cases

Browse by what this case has in common with others in the library.