> Back to All Posts

Experimental PromptLock Ransomware Uses AI for Encryption and Data Theft

PromptLock Ransomware

The PromptLock ransomware is an experimental prototype that demonstrates how artificial intelligence can be weaponized in cybercrime. Unlike traditional strains, this proof-of-concept leverages generative AI to encrypt files and exfiltrate data, making it a potential game-changer in ransomware evolution. Researchers warn that while it has not yet appeared in live attacks, PromptLock highlights the dangers of AI-driven malware.

How PromptLock Works

PromptLock is written in Golang and connects to an AI model, specifically gpt-oss:20b, through the Ollama API. It uses hard-coded prompts to generate Lua scripts dynamically. These scripts allow the ransomware to perform different tasks, including:

  • Scanning the file system for valuable data.
  • Exfiltrating sensitive files before encryption.
  • Encrypting documents using the lightweight SPECK 128-bit algorithm.

This modular design gives the ransomware flexibility. Each execution can generate unique scripts, making its behavior less predictable and harder to detect.

Why PromptLock Is Significant

PromptLock matters because it introduces AI into an already devastating form of cybercrime. Three factors stand out:

Polymorphic Malware

The use of dynamically generated scripts makes the ransomware polymorphic. It can change its behavior in each run, making signature-based detection far less effective.

Lower Barrier for Attackers

Generative AI reduces the technical expertise needed for cybercriminals. Even less skilled actors could develop dangerous ransomware using similar methods.

A Glimpse Into the Future

PromptLock shows how future malware may evolve toward self-directed attacks, with AI automating reconnaissance, data theft, and encryption in a closed loop.

Security Implications

The emergence of PromptLock highlights several challenges for defenders:

  • AI-enhanced obfuscation makes detection more complex.
  • Cross-platform capabilities through Lua scripting expand the attack surface.
  • Potential for automation suggests future attacks could become faster and more adaptive.

Organizations must prioritize AI-aware security strategies, strengthen endpoint detection, and monitor abnormal behaviors rather than relying only on known malware signatures.

Final Thoughts

The PromptLock ransomware may be experimental, but it represents a turning point. Its use of AI to generate malicious scripts marks the beginning of a new era in ransomware development. While it has not yet been deployed in the wild, the threat is clear: AI-powered attacks are coming. Cybersecurity teams must adapt now, developing strategies that account for intelligent, polymorphic, and increasingly automated forms of malware.

Janet Andersen

Janet is an experienced content creator with a strong focus on cybersecurity and online privacy. With extensive experience in the field, she’s passionate about crafting in-depth reviews and guides that help readers make informed decisions about digital security tools. When she’s not managing the site, she loves staying on top of the latest trends in the digital world.