HONESTCUE
- Type
- Downloader
- Capabilities
- Defense evasion
- Platforms
- Windows
HONESTCUE is a .NET-based downloader and launcher framework first observed in September 2025 that integrates Google's Gemini API into its execution chain. Rather than embedding a fixed second-stage implementation, it submits a prompt to Gemini and receives C# source code implementing functionality that downloads and executes additional malware. It uses the legitimate .NET CSharpCodeProvider framework to compile and execute the generated code directly in memory, without writing that generated stage to disk.
By generating functionality at runtime and executing it in memory, HONESTCUE reduces disk-based artifacts and complicates static analysis and file-based detection. Its communication with a legitimate AI service also complicates network detection based solely on destination reputation. HONESTCUE has not been associated with an established threat-activity cluster.
Associated threat actors
1 distinct threat actor Mallory has associated with this family across public reporting. Open in Mallory to see the full evidence chain and overlapping campaigns.
The report identified attempts to coerce disclosure of internal reasoning, AI-assisted reconnaissance by DPRK, PRC, Iranian, and Russian actors, and AI-integrated malware such as HONESTCUE leveraging Gemini’s API for second-stage payload generation.
Techniques & procedures
14 distinct techniques documented for this family, organized by ATT&CK tactic.
Resource Development
2 techniques
Resource Development
"detected a malware called HONESTCUE that leverages Gemini's API to outsource functionality generation for the next-stage" ... "receives C# source code as the response."
threat actors are using large language models to write polymorphic loaders... Public reporting now names specific actor clusters in the wild... APT27... used Gemini to accelerate development of fleet management tooling... APT45... sending thousands of repetitive prompts that recursively analyze CVEs and validate proof-of-concept exploits
Execution
2 techniques
Execution
There were no new MITRE attack techniques. Seven of eight operations ran T1059, Command & Scripting Interpreter, the single most ordinary technique in the framework.
HONESTCUE queries Gemini at runtime to request specific VBScript obfuscation routines just-in-time
Stealth
6 techniques
Stealth
HONESTCUE (just-in-time obfuscation via Gemini).
...two newly disclosed malware families that leverage AI for evasive techniques such as polymorphism...
PROMPTFLUX makes live calls to the Gemini API to dynamically modify itself, HONESTCUE queries Gemini at runtime to request specific VBScript obfuscation routines just-in-time so the bytes on disk at minute zero differ from the bytes at minute thirty.
Promptflux : A self-morphing dropper that calls the Gemini API to periodically rewrite its own source code, bypassing static signature-based detection.
...the development of evasive malware. The report highlighted two previously discovered and two newly disclosed malware families that leverage AI for evasive techniques...
“...receives source code for a second-stage downloader, compiles it in memory with .NET tools, and executes it without writing files to disk. This fileless approach helps evade detection.”
Discovery
1 technique
Discovery
...the development of evasive malware. The report highlighted two previously discovered and two newly disclosed malware families that leverage AI for evasive techniques...
Command and Control
4 techniques
Command and Control
"HONESTCUE ... sends a prompt via Google Gemini's API and receives C# source code as the response"
Promptflux : A self-morphing dropper that calls the Gemini API to periodically rewrite its own source code
“...malware called HONESTCUE that uses the Gemini API to generate malicious C# code on demand.”
“Attackers also host payloads on platforms like Discord CDN.”
Recent activity
20 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.