Malwarebytes Profile picture
Protection you can trust. Need support? ā¬‡ļø

Mar 31, 2023, 12 tweets

ChatGPT says it won't write ransomware.

It will.

šŸ§µ

There's been A LOT of talk about how ChatGPT might revolutionize malware, so we decided to see if it could be used to write ransomware.

When we just asked it to do that, ChatGPT told us it "cannot provide code that is intended to harm or exploit computer systems."

However, if you build the code up feature by feature, it will happily create code that:

āœ… Encypts a file.

āœ… Encrypts all the files in a directory.

āœ… Deletes the original copies of the files, leaving only the encrypted versions.

āœ… Uses asymetric encryption.

āœ… Stops running databases, so it can encrypt them.

āœ… Saves the private key to a remote server.

āœ… Drops ransom notes.

Thankfully, while ChatGPT can be coaxed into writing code "intended to harm or exploit computer systems," it's not exactly a master criminal.

For now at least, it does half of what you ask, drops features at random, and regularly gives up half way through.

If you have the knowledge to fix the code ChatGPT created for us, then you don't need ChatGPT.

That may change in future, but we reckon there's still time to beef up those safeguards before we have to worry about script kiddies armed with ChatGPT-written ransomware.

You can read more about how we turned ChatGPT into our "criminal" accomplice here:

malwarebytes.com/blog/news/2023ā€¦

Share this Scrolly Tale with your friends.

A Scrolly Tale is a new way to read Twitter threads with a more visually immersive experience.
Discover more beautiful Scrolly Tales like this.

Keep scrolling