Ukraine's CERT-UA reported LameHug malware that used an AI model to write its commands, linking it to APT28
Ukraine's CERT-UA reported a phishing campaign, identified on July 10, 2025, that sent malware called LameHug to executive authorities in a fake ministry file. The malware used the Qwen 2.5-Coder-32B-Instruct model through a Hugging Face API to turn text descriptions into commands. It gathered system details and copied Office, PDF and text files to send to the attackers. CERT-UA linked the activity to Russia's APT28 group with moderate confidence.
On July 10, 2025, Ukraine's computer emergency response team, CERT-UA, learned that emails had been sent to executive authorities, supposedly from a representative of a ministry, from a compromised account. They carried a ZIP archive posing as an attachment, which held an executable built with PyInstaller from Python code. CERT-UA named the malware LAMEHUG and published its advisory on July 17.
The malware's notable feature, CERT-UA said, was its use of a large language model. It sent text descriptions of tasks to Qwen 2.5-Coder-32B-Instruct, an open model from Alibaba, through the Hugging Face API, and ran the commands the model returned. Those commands gathered information about the computer and the network and searched folders for Office, PDF and text documents, which were then sent to the attackers.
CERT-UA attributed the activity with moderate confidence to UAC-0001, better known as APT28, a group associated with Russian military intelligence. It did not say whether the commands the model generated worked as intended.
In a follow-up analysis, Cato Networks found the attackers had used about 270 Hugging Face access tokens and several payload formats, which it read as signs of testing. MITRE ATT&CK later listed LAMEHUG as a malware family that queries language models to generate its commands.
- Detected
- July 10, 2025
- Published
- July 17, 2025
- Model
- Qwen 2.5-Coder-32B-Instruct
- Attribution
- UAC-0001 (APT28), moderate confidence
How it unfolded
- July 10, 2025
CERT-UA learns of phishing emails carrying LAMEHUG.
- July 17, 2025
CERT-UA publishes advisory #16039.
- July 23, 2025
Cato Networks publishes its analysis.
“An obvious feature of LAMEHUG is the use of LLM (large language model)”
Provenance
Where each fact comes from, and what is still missing.
On the record
CERT-UA's advisory sets out the phishing emails, the malware's use of Qwen through Hugging Face, what it collected and the attribution.Not yet confirmed
How many systems were infected, and whether the generated commands succeeded, are not in the sources we read. Send us a sourceSources
- News report
MITRE ATT&CK, 2025. LAMEHUG, Software S9035. Read - News report
The Hacker News, July 18, 2025. CERT-UA Discovers LAMEHUG Malware Linked to APT28, Using LLM for Phishing Campaign. Read - Official record
cert.gov.ua, July 17, 2025. Кібератаки UAC-0001 на сектор безпеки та оборони із застосуванням програмного засобу LAMEHUG, що використовує LLM (велику мовну модель) (CERT-UA#16039). Read, archived copy - News report
Cato Networks, July 23, 2025. Cato CTRL™ Threat Research: Analyzing LAMEHUG – First Known LLM-Powered Malware with Links to APT28 (Fancy Bear). Read, archived copy - News report
Pierluigi Paganini, Security Affairs, July 18, 2025. LameHug: first AI-Powered malware linked to Russia's APT28. Read, archived copy - Incident index
AI Incident Database, July 10, 2025. AIID incident #1220. Read
Rewritten and checked Nov 24, 2026. First published Nov 19, 2026.
Status history
Changes to this exhibit's status, with the date and what changed it.
- Nov 24, 2026Written up in full and checked against CERT-UA's advisory, Cato Networks' analysis, The Hacker News and MITRE ATT&CK. Status: official record.cert.gov.ua; Cato Networks; The Hacker News; MITRE ATT&CK
- Nov 19, 2026Imported from the AI Incident Database (incident 1220) with the reports it lists.AI Incident Database
- Nov 19, 2026Checked against Security Affairs' report on CERT-UA's alert and summarized in our own words. Marked CERT-UA's alert as an official record. Moved to the Other room, as the entry is about malware, not a chatbot's answers to its users.Security Affairs; cert.gov.ua
Questions visitors ask
What is LameHug malware?
A Python information stealer that CERT-UA found in phishing emails to Ukrainian authorities in July 2025. It sent task descriptions to the Qwen 2.5-Coder model through Hugging Face and ran the commands the model wrote.
Who was behind LameHug?
CERT-UA linked it with moderate confidence to APT28, a group associated with Russian military intelligence.
What did LameHug steal?
System and network information, plus Office, PDF and text documents from common folders, which it sent to the attackers.
Take it with you
Share the cover
Cite this exhibit
AI Incident Tracker. (2026, November 24). Ukraine's CERT-UA reported LameHug malware that used an AI model to write its commands, linking it to APT28 (AIT-1365). https://aiincidenttracker.com/AIT-1365
Up next
More like this
See the room- Jul 13, 2015Study of FDA reports linked robotic surgery systems to 144 deaths in the US from 2000 to 2013Other
- Nov 14, 2023UnitedHealth was sued over its nH Predict algorithm, and a Senate report found nursing-home denials rose ninefold as naviHealth took overOther
- Sep 7, 2020Coding errors in Ireland's 2020 Leaving Cert calculated-grades model gave thousands of students wrong gradesOther
- Jan 20, 2026Job seekers sued Eightfold AI, alleging its hiring tools secretly compiled reports on applicants and scored themOther