APT28 malware asks an LLM to generate its commands at run time (PROMPTSTEAL)

ConfirmedReviewed

Ukraine's CERT-UA published malware it calls LAMEHUG. Google calls it PROMPTSTEAL and reports that APT28 used it. Google describes it as the first time it has seen malware that queries an LLM for commands at run time in a real operation.

Activity
2025-06
Disclosed
2025-07-17
Actor type
Nation-state
What the AI did
Malware calls an LLM at runtime
Autonomy
Semi-autonomous
Models (as named)
Qwen2.5-Coder-32B-Instruct
Victim country
UA

What happened

On 2025-07-17, Ukraine’s CERT-UA published malware that was sent by email, posing as ministry officials, to government agencies in the security and defense sector. CERT-UA classifies it as LAMEHUG and links it with moderate confidence to UAC-0001 (APT28).

In its 2025-11-06 report, Google’s Threat Intelligence Group (GTIG) covers the same malware under the name PROMPTSTEAL. GTIG says it identified the malware in 2025-06 as new malware that APT28, which is backed by the Russian government, uses against Ukraine.

CERT-UA’s document doesn’t state how many agencies were affected or whether data was actually exfiltrated. Google says later samples changed their obfuscation and communication methods.

What the AI did

Both organizations report that the malware queries an LLM (Qwen2.5-Coder-32B-Instruct) through the Hugging Face API. It sends the model a prewritten description and has it generate commands to run on Windows. The commands collect basic information about the machine and look for document files to copy into a set folder. The malware itself sends the collected data out.

Google says the generated commands run as they are, and it assesses that the API tokens were probably stolen. It also says the malware poses as an image-generation program and shows the user that screen. Google calls the approach of generating commands at run time instead of writing them into the malware the first example it has seen in a real operation.

Why this confidence grade

CERT-UA, a public body in Ukraine, analyzed and published the malware, and Google’s GTIG also reports that it observed the malware in a real operation, so the case is graded Confirmed. CERT-UA’s attribution to the actor is at moderate confidence.

What to check

  • The malware was delivered as an attachment: a ZIP file that contains an executable. Check whether your email gateway or endpoint products restrict these attachment types.
  • Look in your proxy or firewall logs for traffic from machines with no business need to the APIs of external AI services.

Sources

  1. CERT-UA「UAC-0001 による安全保障・防衛部門への攻撃と LLM を使う LAMEHUG(CERT-UA#16039)」(ウクライナ語)CERT-UA(ウクライナ国家特別通信・情報保護庁) · cert.gov.ua · Primary · checked 2026-11-28(opens in a new tab)
  2. Google GTIG「脅威アクターによる AI ツールの利用の変化」Google Threat Intelligence Group · cloud.google.com · Primary · checked 2026-11-28(opens in a new tab)

Field schema from hackingincidents.ai (Daniel Miessler, MIT License). Incident text and grades are written by this site after checking the sources.