Skip to content

Malware That Uses AI Models: What Is Real in 2026, and What Defenders Should Change

A sober look at malware that calls large language models at run time: LameHug and PROMPTSTEAL, PROMPTFLUX, the PromptLock proof of concept, supply-chain malware abusing local AI tools, and the detections that work.

BY AISECURITYINTERVIEWS EDITORIAL · EDITORIAL TEAM · UPDATED NOVEMBER 8, 2026 · 4 MIN READ

PRACTICE THIS:Malware that calls LLMs (full answer) ·How AI providers disrupt misuse

Since 2025, headlines have announced "self-writing AI malware" and "the first AI ransomware". The underlying reports, read carefully, describe something narrower and more useful to defenders: malware that depends on someone else's model, someone else's API key, and an outbound connection you can see.

What the reports actually say

BLOG · STATUS OF REPORTED AI-USING MALWARE
Observed, experimental or academic
  1. Observed in operations

    LameHug / PROMPTSTEAL, QUIETVAULT, FRUITSHELL

    • Hosted model writes collection commands
    • Local AI CLIs used to hunt secrets

    Real, but narrow

  2. Experimental

    PROMPTFLUX and similar

    • Self-rewriting attempts
    • Second-stage code generation

    No proven compromises reported

  3. Academic proof of concept

    PromptLock

    • Reported as ransomware
    • Built by NYU researchers

    Not a criminal campaign

  4. Supply chain abusing local AI

    Nx s1ngularity, Aug 2025

    • Ran installed AI CLIs to find secrets

    Many AI steps refused or found little

LameHug / PROMPTSTEAL. In July 2025 Ukraine's CERT-UA reported malware, attributed with medium confidence to APT28, that sent fixed task descriptions to a coding model hosted on Hugging Face and ran the commands that came back, to collect system information and documents. Google's threat intelligence group (GTIG) called it the first malware it had seen querying a model in live operations, and noted the API tokens were likely stolen.

PROMPTFLUX. A script dropper GTIG found in 2025 that asked Gemini to rewrite its own code to evade detection. GTIG rated it experimental: the self-update function was disabled, and there was no evidence it could compromise a network. Google disabled the associated assets.

PromptLock. First reported in August 2025 as AI-powered ransomware generating scripts with a local model, then identified as an NYU academic prototype. It is a useful demonstration, not evidence of criminal use.

Local AI tools as a target. The Nx supply-chain malware of August 2025 tried to run developers' installed AI command-line tools to search for secrets, and GTIG reported a credential stealer doing similar things. The model was not the attacker's; it was the victim's.

GTIG's later reports in 2026 describe more experiments and actors using AI to speed up existing operations, and state that fully autonomous attack pipelines had not been observed in the wild.

What defenders should change

Control egress to AI APIs. Most endpoints and servers have no reason to call model APIs directly. Route sanctioned use through an AI gateway and alert on other processes contacting model providers or model hubs, especially script hosts, new binaries and build runners.

Detect behaviour, not bytes. Generated commands still have to do something: bursts of discovery commands, archive-and-upload, credential file access. Behavioural detections survive code that changes on every run.

Use the dependency. Malware that calls a hosted model needs a key. Extract it from samples and report it to the provider, which can revoke it and disable related projects. Watch your own AI keys for unusual volume and regions, because stolen keys pay for attackers' inference.

Treat local AI tools as sensitive. Log when AI command-line agents run, from which parent process and with which flags; alert when installers or scripts launch them non-interactively.

Keep AI triage evidence-based. Some samples already contain text written to mislead AI-assisted analysis. Verdicts must rest on observed behaviour.

What has not changed

Initial access, privilege escalation, persistence and exfiltration leave the same evidence whoever wrote the code. Least privilege, application control, phishing-resistant MFA, fast patching and egress control work just as well against code a model generated.

Go deeper

The full scored answer with a what-if ladder is malware that calls LLMs. For how AI providers find and ban the operators behind this activity, see how AI providers disrupt misuse, and for the supply-chain side, AI agents in CI/CD.

PRACTICE THIS

Interview questions and lessons that go deeper on this post:

FAQ

Is there real malware that uses AI models?▲

Yes. Google's threat intelligence group reported in 2025 that LameHug, which it tracks as PROMPTSTEAL and which CERT-UA attributed to APT28 with medium confidence, asked a hosted model for commands during live operations. Other reported families were experimental or academic.

Was PromptLock real AI ransomware?▼
How do you detect malware that calls an LLM?▼