LAMEHUG / PROMPTSTEAL: Malware That Queries an LLM at Runtime
Phishing-delivered Python malware queried Qwen2.5-Coder-32B-Instruct via the Hugging Face API to generate Windows reconnaissance and file-harvesting commands on the fly, then blindly executed whatever the model returned — the first live observation, per Google, of malware querying an LLM in live operations.
What happened
CERT-UA reported LAMEHUG in July 2025 (first reported 10–17 July 2025), targeting Ukrainian government officials; Google Threat Intelligence Group called it PROMPTSTEAL and its first observation of malware querying an LLM in live operations. CERT-UA attributed it to APT28 with medium confidence. Phishing-delivered Python malware queried Qwen2.5-Coder-32B-Instruct via the Hugging Face API to generate Windows reconnaissance and file-harvesting commands on the fly, then blindly executed whatever the model returned.
Why it maps to ATLAS
Catalogued by MITRE ATLAS as AML.CS0044. The techniques below are drawn from that case study’s procedure in ATLAS 2026.10.
- AML.T0102 — Generate Malicious Commands: the malware’s commands are generated by the model at runtime, not embedded in the binary.
- AML.T0025 — Exfiltration via Cyber Means: the generated commands harvest files for exfiltration.
Detection notes
The cited structural signal is the malware’s call to the LLM API mid-operation plus execution of the model’s reply, because there is no fixed enumeration routine in the binary to signature-match. No vendor detection rule text is quoted in the cited sources, so the signals above are that described signal, not a ready rule. As calibration against hype, CrowdStrike’s assessment, via secondary coverage, is that LAMEHUG did not demonstrate a meaningful increase in effectiveness over traditional malware.
Detection
Log sources
- Endpoint process + network telemetry (outbound LLM API calls mid-operation)
- Proxy / egress logs for LLM API endpoints from unexpected hosts
Signals
- A process calling an LLM API mid-operation, then executing the model's reply
- Reconnaissance / file-harvesting commands with no fixed enumeration routine in the binary to signature-match
Mitigations
- Alert on LLM API calls from hosts and processes that have no legitimate LLM use
- Block or proxy LLM API egress from endpoints; treat model-generated commands as untrusted input
- Hunt for execution chains where a command's origin is a model reply, not a local script