HONESTCUE is a .NET-based downloader and launcher framework that integrates Google's Gemini API into its execution chain to generate second-stage functionality at runtime. First observed in September 2025, it submits prompts to Gemini and receives C# source code rather than carrying a hardcoded implementation of its second-stage downloader. The generated code downloads and executes additional malware.
HONESTCUE uses the legitimate .NET CSharpCodeProvider component to compile and execute the generated C# code directly in memory. This fileless secondary-stage execution reduces on-disk artifacts and complicates static analysis and file-based detection. Its use of a legitimate AI service for runtime code generation also complicates network detection based on known malicious download infrastructure.
HONESTCUE has not been linked to an established threat-activity cluster. Its initial infection vectors and specific geographic or industry targets have not been established.
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.
14 distinct techniques documented for this family, organized by ATT&CK tactic.
"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
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
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.”
...the development of evasive malware. The report highlighted two previously discovered and two newly disclosed malware families that leverage AI for evasive techniques...
"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.”
17 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.