LameHug, also known as PromptSteal, is an AI-assisted malware family associated with APT28. It uses Alibaba’s Qwen large language model to generate malicious code on demand, accessing the model through Hugging Face’s routing service. Its on-demand generation of variable code represents an experimental application of language models within malware operations. Samples were first observed in July 2025, and CERT-UA linked the malware to APT28.
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.
MITRE revealed LameHug, an APT28 experiment using Alibaba’s Qwen LLM to generate polymorphic malware code on demand.
„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…“
46 distinct techniques documented for this family, organized by ATT&CK tactic.
"FANCY BEAR deployed LAMEHUG malware, which queried the Hugging Face LLM... through hardcoded prompts to perform reconnaissance"
Early criminal use focused on leveraging AI tools like ChatGPT to assist in coding malware...
Для MITRE ATT&CK это маппируется на технику T1588.007 (Artificial Intelligence) из тактики Resource Development
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)
[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.
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.
[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)
[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)
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)
[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"
19 indicators attributed across vendor reports, sandbox runs, and researcher write-ups. Values are masked here and available in full in Mallory.
174 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.