Lamehug
- Type
- Infostealer
- Capabilities
- ReconnaissanceExfiltration
- Delivery
- Spearphishing
- Platforms
- Windows
LAMEHUG, also known as PROMPTSTEAL, is a Windows information stealer that uses a hosted large language model to generate commands during execution. Publicly disclosed by CERT-UA in July 2025 following spearphishing against Ukrainian executive authorities, its deployment has been linked to the Russian state-sponsored threat actor APT28 with moderate confidence.
The malware submits embedded natural-language prompts to Alibaba’s Qwen2.5-Coder-32B-Instruct model through the Hugging Face Inference API and executes the returned Windows commands. Its reconnaissance covers system configuration, running processes, services, network configuration, users, and Active Directory information. It also collects Office documents, PDFs, and plain-text files from common user folders and exfiltrates collected output using SFTP or HTTP. Its distinguishing feature is the use of model-generated operational commands at runtime rather than an entirely fixed command set; this does not establish autonomous planning or self-modifying malware behavior.
Associated threat actors
2 distinct threat actors Mallory has associated with this family across public reporting. Open in Mallory to see the full evidence chain and overlapping campaigns.
LameHug is the first APT28 malware observed delegating its operational logic to a large language model.
„PROMPTSTEAL ist demnach die erste in freier Wildbahn beobachtete Malware, die LLMs abfragt… Um Befehle zu generieren, verwende dieser Data Miner die Hugging Face API…“
Techniques & procedures
46 distinct techniques documented for this family, organized by ATT&CK tactic.
Reconnaissance
1 technique
Reconnaissance
"FANCY BEAR deployed LAMEHUG malware, which queried the Hugging Face LLM... through hardcoded prompts to perform reconnaissance"
Resource Development
2 techniques
Resource Development
Early criminal use focused on leveraging AI tools like ChatGPT to assist in coding malware...
Для MITRE ATT&CK это маппируется на технику T1588.007 (Artificial Intelligence) из тактики Resource Development
Initial Access
2 techniques
Initial Access
APT28 LAMEHUG has sent spearphishing emails impersonating Ukrainian government officials.
[LAMEHUG](https://attack.mitre.org/software/S9035) has been distributed through spearphishing emails with various AI-themed malicious attachments.(Citation: Splunk LAMEHUG SEP 2025)
Execution
7 techniques
Execution
[LAMEHUG](https://attack.mitre.org/software/S9035) can use wmic to collect system information.(Citation: Splunk LAMEHUG SEP 2025)
“LAMEHUG used Alibaba’s Qwen model through Hugging Face to generate commands during attacks reported in 2025.”
[LAMEHUG](https://attack.mitre.org/software/S9035) can use `cmd.exe` to display a decoy file to spearphishing victims.(Citation: Splunk LAMEHUG SEP 2025)
[LAMEHUG](https://attack.mitre.org/software/S9035) can use Python scripts for execution.(Citation: Splunk LAMEHUG SEP 2025)(Citation: Nov AI Threat Tracker)
"Once opened, a decoy PDF appears while the hidden binary executes in the background"
[LAMEHUG](https://attack.mitre.org/software/S9035) has been executed through victim interaction with malicious email attachments made to look like legitimate AI applications or documents.(Citation: Splunk LAMEHUG SEP 2025)
First observation of “just-in-time” AI malware, like APT28’s PROMPTSTEAL, using LLMs in live operations.
Stealth
5 techniques
Stealth
Both malware strains can "dynamically generate malicious scripts, obfuscate their own code to evade detection and leverage AI models to create malicious functions on demand," according to the report.
"ZIP archives entitled “Додаток.pdf.zip.” Once opened, a decoy PDF appears while the hidden binary executes in the background"
[LAMEHUG](https://attack.mitre.org/software/S9035) payloads have been disguised with legitimate looking filenames including AI_generator_uncensored_Canvas_PRO_v0.9.exe and AI_image_generator_v0.95.exe.(Citation: Splunk LAMEHUG SEP 2025)(Citation: Nov AI Threat Tracker)
[LAMEHUG](https://attack.mitre.org/software/S9035) can decode and drop a decoy file attached to spearphishing emails.(Citation: Splunk LAMEHUG SEP 2025)
First observation of “just-in-time” AI malware, like APT28’s PROMPTSTEAL, using LLMs in live operations.
Discovery
10 techniques
Discovery
[LAMEHUG](https://attack.mitre.org/software/S9035) can gather service information on targeted systems.(Citation: Nov AI Threat Tracker)(Citation: Cato LAMEHUG JUL 2025)
[LAMEHUG](https://attack.mitre.org/software/S9035) can enumerate network information on compromised hosts.(Citation: Nov AI Threat Tracker)
[LAMEHUG](https://attack.mitre.org/software/S9035) can use `whoami` to enumerate the system user.(Citation: Splunk LAMEHUG SEP 2025)
"gather computer, hardware, service, and network information"
[LAMEHUG](https://attack.mitre.org/software/S9035) can gather process information on targeted systems.(Citation: Nov AI Threat Tracker)(Citation: Cato LAMEHUG JUL 2025)
[LAMEHUG](https://attack.mitre.org/software/S9035) can use [dsquery](https://attack.mitre.org/software/S0105) to gather domain group information.(Citation: Cato LAMEHUG JUL 2025)
[LAMEHUG](https://attack.mitre.org/software/S9035) has the ability to execute Windows commands returned from C2 to gather system information.(Citation: Splunk LAMEHUG SEP 2025)(Citation: Nov AI Threat Tracker)
[LAMEHUG](https://attack.mitre.org/software/S9035) can target directories on victim machines for file collection.(Citation: Splunk LAMEHUG SEP 2025)(Citation: Nov AI Threat Tracker)
[LAMEHUG](https://attack.mitre.org/software/S9035) can use [dsquery](https://attack.mitre.org/software/S0105) to enumerate domain user information.(Citation: Cato LAMEHUG JUL 2025)
[LAMEHUG](https://attack.mitre.org/software/S9035) can gather Active Directory domain information.(Citation: Nov AI Threat Tracker)
Collection
6 techniques
Collection
[LAMEHUG](https://attack.mitre.org/software/S9035) has the ability to collect system information and files of interest from compromised systems.(Citation: Splunk LAMEHUG SEP 2025)(Citation: Nov AI Threat Tracker)
The content repeatedly describes adversaries and malware storing collected data, command output, credentials, archives, or files in local temporary folders, working directories, hidden directories, registry locations, recycle bins, or specific files prior to exfiltration.
[LAMEHUG](https://attack.mitre.org/software/S9035) can save collected data and files of interest in `C:\ProgramData\info\` to consolidate for exfiltration.(Citation: Splunk LAMEHUG SEP 2025)(Citation: Nov AI Threat Tracker)
[LAMEHUG](https://attack.mitre.org/software/S9035) can recursively copy files from targeted directories on victim hosts.(Citation: Splunk LAMEHUG SEP 2025)(Citation: Nov AI Threat Tracker)
"recursively harvested Office, PDF, and text documents are staged in %PROGRAMDATA%\info"
[LAMEHUG](https://attack.mitre.org/software/S9035) can xcopy for file collection on targeted systems.(Citation: Splunk LAMEHUG SEP 2025)
Command and Control
10 techniques
Command and Control
The dynamically generated commands enable the malware to gather system information and identify sensitive files before transmitting them across the network to an adversary-controlled server.
[LAMEHUG](https://attack.mitre.org/software/S9035) can use HTTP POST requests to exfiltrate data from compromised hosts to C2.(Citation: Splunk LAMEHUG SEP 2025)
Output is collected from Documents, Desktop and Downloads, then exfiltrated over SFTP or HTTP.
Path: /datasets/malware/lamehug/T1071.004/hugging_face/huggingface.log
[LAMEHUG](https://attack.mitre.org/software/S9035) has used the Hugging Face API to query the Qwen2.5-Coder-32B-Instruct LLM to generate one-line Windows commands for the collection of system information and documents in specific folders on compromised hosts. [LAMEHUG](https://attack.mitre.org/software/S9035) subsequently executed the returned commands and exfiltrated the collected files and information to adversary-controlled C2 servers.(Citation: Nov AI Threat Tracker)(Citation: Splunk LAMEHUG SEP 2025)
该组织从稳定的恶意软件框架转向部署短效、单一用途的工具,一旦暴露立即弃用。
[LAMEHUG](https://attack.mitre.org/software/S9035) can encode queries sent to LLMs.(Citation: Splunk LAMEHUG SEP 2025)
expanded its tactics to include X-Agent, X-Tunnel, and LameHug
AI駆動型マルウェア... マルウェア自体が実行時にLLM APIを呼び出し、必要なコードを動的に生成・取得します。
[LAMEHUG](https://attack.mitre.org/software/S9035) can use SSH to transfer information to C2.(Citation: Splunk LAMEHUG SEP 2025)
Exfiltration
4 techniques
Exfiltration
[LAMEHUG](https://attack.mitre.org/software/S9035) can exfiltrate collected system information and documents to C2.(Citation: Splunk LAMEHUG SEP 2025)(Citation: Nov AI Threat Tracker)
It uses the Paramiko SSH module for Python to upload the stolen files using hardcoded IP (144[.]126[.]202[.]227) credentials.
"exfiltration via either an SFTP tunnel to 144.126.202.227"
"or an HTTP POST to the compromised domain stayathomeclasses.com/slpw/up.php"
Observables
19 indicators attributed across vendor reports, sandbox runs, and researcher write-ups. Values are masked here and available in full in Mallory.
Recent activity
181 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.