PromptLock: The First AI-Powered Ransomware Has Arrived (2025)
Cybersecurity firm ESET uncovered PromptLock, a proof-of-concept ransomware unlike anything we have seen before. It is the first known malware to weaponize a generative AI model in real time.

Share this post

Cybersecurity firm ESET uncovered PromptLock, a proof-of-concept ransomware unlike anything we've seen before. It's the first known malware to weaponize a generative AI model in real time.
Here's what makes it a game-changer 👇
Key Traits of PromptLock
- Written in Golang for portability
- Uses GPT-OSS:20B (an open-source LLM) via Ollama API
- Generates malicious Lua scripts on the fly
- Scripts adaptively decide: exfiltrate or encrypt
- Cross-platform: Windows, Linux, macOS
- Encryption: NSA's SPECK 128-bit algorithm
- Includes a Bitcoin ransom wallet (bizarrely linked to Satoshi Nakamoto)
How AI Fits In
Instead of hardcoding malicious logic, PromptLock queries an LLM for Lua code during runtime.
- Each infection = a different script
- No static payloads
- Constantly mutating attack surface
This variability makes signature-based detection nearly useless.
Why Lua Scripts Matter
Lua is lightweight, cross-platform, and perfect for quick automation. AI-generated Lua gives PromptLock flexibility to:
- Crawl directories
- Decide which files to steal or lock
- Adjust behavior based on environment
It's not just automation. It's adaptive decision-making.
SPECK Encryption: Speed Over Complexity
PromptLock uses SPECK 128-bit, an NSA-designed lightweight cipher. Unlike bulky AES payloads, SPECK is:
- Faster on low-resource devices
- Small enough to run efficiently across OSs
- Accelerates file-locking, shrinking defender reaction windows
The Bigger Picture
PromptLock is "just" a proof-of-concept. But it signals the future:
- AI lowers the barrier for cybercriminals
- Malware becomes self-modifying and adaptive
- Traditional defenses (signatures, static rules) won't cut it
- We've entered the era of AI-powered cyber weapons
Questions Security Teams Must Ask
- How can defenders detect AI-generated malicious code with no static signature?
- Which platforms and file types face the highest risk?
- Could AI-driven ransomware scale faster than current SOC response times?
- Is lightweight encryption like SPECK a new ransomware trend?
- What mitigation strategies can stop a proof-of-concept today before it evolves tomorrow?
The 21st-Century Triptych
The visual representation of PromptLock tells the complete story:
Left Panel: Cross-Platform Targeting
A large metallic padlock glows with the Apple logo against a dark background. Beneath it, glowing icons for Windows and Linux suggest multi-platform targeting. The visual communicates cross-platform adaptability and technical sophistication.
Center Panel: AI-Generated Mutation
The title "AI-Generated Lua Scripts" is positioned above a futuristic neural network made of glowing nodes, with digital file icons representing Windows, Linux, and macOS beneath it. Key traits are highlighted:
- SPECK 128-bit encryption – Faster, lightweight
- Self-modifying – Every infection unique
- Ransom wallet – Linked to Satoshi Nakamoto
- AI-generated Lua scripts mutate in real time, undermining traditional detection methods
Right Panel: Evolution of Threat
The left half displays a traditional red ransomware lock screen with a padlock and "Threat Action" text, while the right half shows a glowing blue digital neural net, representing adaptive AI-powered code.
Overall, the triptych design communicates that PromptLock is a breakthrough malware prototype: AI-driven, cross-platform, adaptive, and far more difficult to counter than traditional ransomware.
The Strategic Implications
For Cybersecurity Teams
- Signature-based detection is obsolete against AI-generated payloads
- Behavioral analysis becomes critical for identifying adaptive threats
- Response times must shrink to match AI-accelerated attack speeds
For Enterprise Security
- Zero-trust architectures become even more essential
- AI-powered defense may be the only viable counter to AI-powered attacks
- Incident response playbooks need complete revision for adaptive threats
For the Industry
- The arms race has fundamentally shifted from static to dynamic
- Open-source AI models create new attack vectors
- Regulatory frameworks lag behind AI-enabled threat evolution
The Takeaway
PromptLock shows us the future:
- Ransomware that writes itself
- Adapts in real time
- Cross-platform by design
- Nearly impossible to preempt with today's tools
Defenders must rethink strategy: From chasing signatures → to anticipating AI-driven mutations.
The Critical Question
Is PromptLock the warning shot of a new AI-driven cybercrime wave or an isolated experiment?
The answer may determine whether we're prepared for the next generation of cyber threats—or whether we're already behind.
The age of AI-powered malware has begun. The question is: are we ready?