ESET found PromptLock, ransomware that had a local AI model write its scripts at runtime. It turned out to be an NYU research prototype. What it showed.
Social Engineering Examples·5 sources
PromptLock was billed as the first AI-powered ransomware when ESET found it on VirusTotal in late August 2025. It turned out to be a university lab prototype. The sample, written in Go, carried plain-English prompts and asked a locally run open-weight model, gpt-oss:20b via Ollama, to write Lua scripts on the fly: find files, inspect them, copy them out, encrypt them. On 3 September 2025, ESET updated its research after NYU Tandon researchers said the upload was theirs. Status: Research prototype; no victims.
| Date (2025) | Event |
|---|---|
| 25 August | ESET researchers spot the samples on VirusTotal |
| 26 to 27 August | ESET writes it up on WeLiveSecurity and announces "the first known AI-powered ransomware" |
| 3 September | ESET updates its research: the authors of the academic paper "Ransomware 3.0: Self-Composing and LLM-Orchestrated" say the sample is their lab upload |
ESET's Anton Cherepanov and Peter Strýček found and analysed it without knowing where it came from. The researchers say the version they uploaded didn't work outside their contained test setup.
| Piece | What it did |
|---|---|
| The binary | Go code, with Windows and Linux samples, carrying natural-language prompts |
| The model | gpt-oss:20b, an open-weight model, running locally through Ollama |
| The output | Lua scripts written at runtime for file discovery, inspection, exfiltration and encryption |
| The encryption | SPECK-128, per ESET |
| The note | A ransom message with a Bitcoin address reportedly tied to Satoshi Nakamoto |
Think about what a scanner normally looks for: known bad code. Here, the bad code isn't in the file. It gets written fresh each time by a model sitting on the same machine. ESET and others called this "living off AI", like attackers "living off the land" with built-in system tools.
Tip: if nobody in your organisation runs local AI models, an unexpected process talking to an Ollama API is worth a look.
A prototype isn't an attack. But PromptLock is a clear, documented example of the design: prompts baked into the binary, logic generated during execution. The following summer, Sysdig reported JADEPUFFER, a real attack run largely by an AI agent. PromptLock showed the idea in a lab first.
It's also a lesson in reading headlines. "First AI-powered ransomware" was accurate about what ESET saw. It didn't tell readers who made it, because nobody knew yet.
See also AI-generated malware, PromptFlux and agentic AI attacks.
A Go-based ransomware prototype that used a local open-weight AI model to write its file-stealing and encryption scripts at runtime. ESET found it on VirusTotal in August 2025.
No. NYU Tandon researchers said it was their lab prototype, and no victim is known.
gpt-oss:20b, run locally through Ollama.
The harmful code is generated at runtime, so it isn't sitting in the file for a scanner to match.
Social Engineering Examples. “PromptLock: the "first AI ransomware" was a research prototype (2025)”. Accessed 3 November 2026. https://socialengineeringexamples.com/promptlock-ai-ransomware-poc-2025
The NYU Tandon paper and ESET analysis describe selecting an open-weight LLM, here OpenAI's gpt-oss:20b, and using Ollama for local inference.
Restricting which local AI-runtime software (such as Ollama) can be installed and run on managed endpoints, via application allow-listing and EDR alerts on new local inference-server installs, is the closest practical control since the underlying choice to run an open-weight model offline is otherwise invisible to network monitoring.
The sample embedded natural-language prompts for generating ransomware-related scripts, including filesystem enumeration, file inspection, exfiltration, encryption, and ransom-note text.
Prompt crafting happens entirely on the attacker's own machine before any contact with a target system, so there is no realistic external control at this specific stage; the nearest real lever is upstream, at model-safety training and refusal-tuning by open-weight model publishers, with Stage 1's endpoint control also mitigating by limiting where such prompts can be run in the first place.
The sample was a Go binary, with Windows and Linux samples reported by ESET; the binary contained the prompts and orchestration logic.
Static antivirus and YARA-style scanning for binaries embedding clusters of ransomware-consistent natural-language prompts (encryption, ransom, exfiltration terms) alongside Ollama/LLM API client code can flag suspicious packaging before execution, even though the actual attack script is not yet generated.
During execution, the binary called the local model through Ollama and received Lua scripts that were then used by the sample.
Endpoint detection and response tuned to flag unexpected local processes calling a local LLM inference API, an unusual 'living off AI' pattern analogous to living-off-the-land binary monitoring, can catch the runtime code-generation step regardless of what the generated script itself looks like.
The AI-generated Lua scripts enumerate the local filesystem and inspect file contents, with the model deciding per file whether to exfiltrate or encrypt it, a judgment call ESET notes is normally made by a human operator or a fixed rule in conventional ransomware.
Least-privilege file access and mandatory access controls that limit which processes can enumerate and read sensitive user files reduce what an untrusted binary's AI-generated scripts can discover in the first place, independent of the AI's own decision logic.
Files flagged for theft are copied out via the AI-generated exfiltration scripts.
Network egress monitoring and data-loss-prevention tooling that inspects outbound transfers for sensitive-file patterns can catch exfiltration regardless of whether the code that performed it was AI-generated or hand-written.
ESET describes an encryption path using the SPECK 128-bit cipher, and a ransom note is generated referencing a Bitcoin address later identified as one publicly associated with Bitcoin's creator, a detail researchers read as a placeholder rather than an attacker-controlled wallet.
Ransomware-specific behavioral detection, such as canary files and alerts on rapid mass file modification or renaming, can interrupt encryption in progress without relying on a static signature for the specific AI-generated encryption routine.
The designed end state is a ransom demand to the victim for payment; in this case the step was never exercised against a real target, and ESET, and later the NYU Tandon authors, confirmed the sample was a research upload to VirusTotal rather than a live extortion attempt.
Offline, tested backups and an incident-response playbook that removes any operational need to pay make the payout step moot even if a demand is received; publishing detection signatures (Filecoder.PromptLock.A) also lets anyone who encounters the sample identify it as a known, and in this case academic, artifact rather than a live threat.
Browse by what this case has in common with others in the library.
APT28's LAMEHUG malware asked an AI model on Hugging Face to write the spy commands it ran on Ukrainian government…
OpenAI says a Russian-speaking actor used throwaway ChatGPT accounts to build Windows malware, spread as a fake Crosshair-X gaming tool.…
Google found PROMPTFLUX, a dropper that asks Gemini for antivirus-evasion code mid-run. Its self-rewrite feature was switched off and it…
A Ukrainian-language "shared document" phishing wave used a fake reCAPTCHA "verify you are human" ClickFix page to trick victims into…
A Rapid7 penetration tester tailgated into a client's building using door-holding reciprocity and a cloned-looking badge, rode an elevator up…
A fraudster spoofed Wells Fargo's real 800 number nine minutes after a legitimate advisor call, phished a 2FA code from…
A Ukrainian-language "shared document" phishing wave used a fake reCAPTCHA "verify you are human" ClickFix page to trick victims into…
Argan's Fiscal 2024 cybersecurity disclosure described fraudulently induced outbound wire transfers in March 2023 and reported $2.7 million of loss,…
A Rapid7 penetration tester tailgated into a client's building using door-holding reciprocity and a cloned-looking badge, rode an elevator up…
Google found PROMPTFLUX, a dropper that asks Gemini for antivirus-evasion code mid-run. Its self-rewrite feature was switched off and it…
A fake email posing as DTC gave JE Cleantech false wire instructions for its 2026 dividend, diverting US$794,934 and delaying…
Employees scanned a QR code in a fake Microsoft MFA-setup PDF and gave up passwords on a cloned login. How…
A Rapid7 penetration tester tailgated into a client's building using door-holding reciprocity and a cloned-looking badge, rode an elevator up…
A civil complaint alleges that a retired New Jersey man lost $390,000 in two days after a fake Norton/PayPal refund…
The SEC's 2018 Section 21(a) report detailed how fake-executive and fake-vendor BEC emails caused nearly $100 million in combined losses…
An Austin man lost $1,408,850 to a fake DAIQ crypto platform found on LINE. A staged $40,000 handoff led police…
In 2025 the US sanctioned North Korean fronts that place fake IT workers abroad, and a US laptop farm operator…
Criminals posing as a vendor redirected $4.92M in North Dakota school building-fund payments in 2026. The FBI seized $4.86M. How…
A Rapid7 penetration tester tailgated into a client's building using door-holding reciprocity and a cloned-looking badge, rode an elevator up…
Researchers from UIUC, the University of Michigan, and Google dropped 297 USB drives across the UIUC campus and found that…
Noma Security hid a prompt injection in a Salesforce web form and made Agentforce leak CRM data to a $5…
Three separate congressional watchdog engagements, not one campaign. In 2000, GAO agents carrying counterfeit badges declared themselves armed officers and…
Imperva hid prompt injections behind whitespace in contact names, vCards and WhatsApp pins, making an OpenClaw agent run a script.…