{
 "id": "AIT-1365",
 "slug": "2025-lamehug-malware-reportedly-integrates-large-language-model-for-real-time",
 "standard": "full",
 "title": "Ukraine's CERT-UA reported LameHug malware that used an AI model to write its commands, linking it to APT28",
 "seoTitle": "LameHug malware: CERT-UA on the APT28-linked tool that asked an AI model for commands",
 "summary": "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.",
 "date": "2025-07-10",
 "room": "other",
 "severity": "medium",
 "status": "official",
 "statusNote": "CERT-UA advisory #16039 of July 17, 2025.",
 "published": "2026-11-19",
 "aiid": 1220,
 "entities": {
  "deployers": [
   "fancy-bear",
   "apt28"
  ],
  "developers": [
   "hugging-face",
   "alibaba"
  ]
 },
 "where": "Ukraine",
 "cover": {
  "word": "PROMPT",
  "line": "Malware that asked an AI model to write its commands.",
  "number": "270",
  "numberLabel": "tokens for Hugging Face access, per Cato Networks"
 },
 "wall": [
  "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."
 ],
 "label": [
  {
   "k": "AI system",
   "v": "Qwen 2.5-Coder-32B-Instruct, via the Hugging Face API"
  },
  {
   "k": "Used in",
   "v": "LAMEHUG, a Python information stealer"
  },
  {
   "k": "Targets",
   "v": "Ukrainian executive authorities"
  },
  {
   "k": "Attribution",
   "v": "APT28 (UAC-0001), moderate confidence"
  },
  {
   "k": "Delivery",
   "v": "Phishing email with a fake ministry attachment"
  },
  {
   "k": "Credit",
   "v": "CERT-UA; Cato Networks"
  }
 ],
 "steps": [
  {
   "when": "July 10, 2025",
   "text": "CERT-UA learns of phishing emails carrying LAMEHUG.",
   "mark": true
  },
  {
   "when": "July 17, 2025",
   "text": "CERT-UA publishes advisory #16039."
  },
  {
   "when": "July 23, 2025",
   "text": "Cato Networks publishes its analysis."
  }
 ],
 "quote": {
  "text": "An obvious feature of LAMEHUG is the use of LLM (large language model)",
  "by": "CERT-UA advisory, as translated by The Hacker News",
  "source": "s-thehackernews-20250718"
 },
 "confirmed": "CERT-UA's advisory sets out the phishing emails, the malware's use of Qwen through Hugging Face, what it collected and the attribution.",
 "unconfirmed": "How many systems were infected, and whether the generated commands succeeded, are not in the sources we read.",
 "document": {
  "title": "UAC-0001 cyberattacks on the security and defense sector using the LAMEHUG software tool, which uses LLM (CERT-UA#16039)",
  "agency": "CERT-UA",
  "office": "Advisory CERT-UA#16039",
  "url": "https://cert.gov.ua/article/6284730",
  "fields": [
   {
    "k": "Detected",
    "v": "July 10, 2025"
   },
   {
    "k": "Published",
    "v": "July 17, 2025"
   },
   {
    "k": "Model",
    "v": "Qwen 2.5-Coder-32B-Instruct",
    "highlight": true
   },
   {
    "k": "Attribution",
    "v": "UAC-0001 (APT28), moderate confidence"
   }
  ]
 },
 "faq": [
  {
   "q": "What is LameHug malware?",
   "a": "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."
  },
  {
   "q": "Who was behind LameHug?",
   "a": "CERT-UA linked it with moderate confidence to APT28, a group associated with Russian military intelligence."
  },
  {
   "q": "What did LameHug steal?",
   "a": "System and network information, plus Office, PDF and text documents from common folders, which it sent to the attackers."
  }
 ],
 "history": [
  {
   "date": "2026-11-24",
   "event": "Written up in full and checked against CERT-UA's advisory, Cato Networks' analysis, The Hacker News and MITRE ATT&CK. Status: official record.",
   "source": "a1220r6242; a1220r6241; s-thehackernews-20250718; s-mitre-s9035"
  },
  {
   "date": "2026-11-19",
   "event": "Imported from the AI Incident Database (incident 1220) with the reports it lists.",
   "source": "a1220"
  },
  {
   "date": "2026-11-19",
   "event": "Checked 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.",
   "source": "s-securityaffairs-20250718; a1220r6242"
  }
 ],
 "sources": [
  {
   "id": "s-mitre-s9035",
   "title": "LAMEHUG, Software S9035",
   "publisher": "MITRE ATT&CK",
   "date": "2025",
   "url": "https://attack.mitre.org/software/S9035",
   "kind": "news"
  },
  {
   "id": "s-thehackernews-20250718",
   "title": "CERT-UA Discovers LAMEHUG Malware Linked to APT28, Using LLM for Phishing Campaign",
   "publisher": "The Hacker News",
   "date": "2025-07-18",
   "url": "https://thehackernews.com/2025/07/cert-ua-discovers-lamehug-malware.html",
   "kind": "news"
  },
  {
   "id": "a1220r6242",
   "title": "Кібератаки UAC-0001 на сектор безпеки та оборони із застосуванням програмного засобу LAMEHUG, що використовує LLM (велику мовну модель) (CERT-UA#16039)",
   "publisher": "cert.gov.ua",
   "date": "2025-07-17",
   "url": "https://cert.gov.ua/article/6284730",
   "archive": "https://web.archive.org/web/20261117003956/https://cert.gov.ua/article/6284730",
   "kind": "official",
   "domain": "cert.gov.ua"
  },
  {
   "id": "a1220r6241",
   "title": "Cato CTRL™ Threat Research: Analyzing LAMEHUG – First Known LLM-Powered Malware with Links to APT28 (Fancy Bear)",
   "publisher": "Cato Networks",
   "date": "2025-07-23",
   "url": "https://www.catonetworks.com/blog/cato-ctrl-threat-research-analyzing-lamehug/",
   "archive": "https://web.archive.org/web/20261031030150/https://www.catonetworks.com/blog/cato-ctrl-threat-research-analyzing-lamehug/",
   "kind": "news",
   "domain": "catonetworks.com"
  },
  {
   "id": "s-securityaffairs-20250718",
   "title": "LameHug: first AI-Powered malware linked to Russia's APT28",
   "publisher": "Security Affairs",
   "author": "Pierluigi Paganini",
   "date": "2025-07-18",
   "url": "https://securityaffairs.com/180092/apt/lamehug-first-ai-powered-malware-linked-to-russias-apt28.html",
   "kind": "news",
   "archive": "https://web.archive.org/web/20260412061931/https://securityaffairs.com/180092/apt/lamehug-first-ai-powered-malware-linked-to-russias-apt28.html"
  },
  {
   "id": "a1220",
   "title": "AIID incident #1220",
   "publisher": "AI Incident Database",
   "date": "2025-07-10",
   "url": "https://incidentdatabase.ai/cite/1220",
   "kind": "index"
  }
 ],
 "labelTitle": "Malware that asked an AI model what to do",
 "labelLine": "LAMEHUG, Ukraine, 2025",
 "level": "full",
 "checked": "2026-11-24",
 "url": "https://aiincidenttracker.com/incidents/2025-lamehug-malware-reportedly-integrates-large-language-model-for-real-time",
 "permalink": "https://aiincidenttracker.com/AIT-1365",
 "roomName": "Other"
}
