ChatGPT can apparently make malware code on the fly, too

Welp.
 By 
Alex Perry
 on 
Malware symbol
Uh oh. Credit: sarayut Thaneerat/Getty Images

We know that the popular ChatGPT AI bot can be used to message Tinder matches. It can also turn into a swankier version of Siri or get basic facts completely wrong, depending on how you use it. Now, someone has used it to make malware.

In a new report by the security company CyberArk (and reported by InfoSecurity Magazine), researchers found that you can trick ChatGPT into creating malware code for you. What’s worse is that said malware can be difficult for cybersecurity systems to deal with.

The full report goes into all the nitty-gritty technical details, but in the interest of brevity: it’s all about manipulation. ChatGPT has content filters that are supposed to prevent it from providing anything harmful to users, like malicious computer code. CyberArk’s research ran into that early, but actually found a way around it.


You May Also Like

Basically, all they did was forcefully demand that the AI follow very specific rules (show code without explanations, don’t be negative, etc.) in a text prompt. After doing so, the bot happily spit out some malware code as if it was totally fine. Of course, there are lots of additional steps (the code needs to be tested and validated, for example), but ChatGPT was able to get the ball rolling on making code with ill intent.

So, you know, watch out for that, I guess. Or just get off the grid and live in the woods. I’m not sure which is preferable, at this point.

journalist alex perry looking at a smartphone
Alex Perry
Tech Reporter

Alex Perry is a tech reporter at Mashable who primarily covers video games and consumer tech. Alex has spent most of the last decade reviewing games, smartphones, headphones, and laptops, and he doesn’t plan on stopping anytime soon. He is also a Pisces, a cat lover, and a Kansas City sports fan. Alex can be found on Bluesky at yelix.bsky.social.

Mashable Potato

Recommended For You
Florida man uses ChatGPT to sell his home. This is a real headline.
A pair of hands typing on a laptop as glowing images of houses float over their hands. The word "AI" glows in the middle.

Do you have one of these 17 browser extensions? They could be tracking your browsing history.
safari and chrome apps on phone

FBI investigates Steam games with hidden malware
Steam logo on laptop

Popular Chrome extension disabled for containing malware
Google Chrome logo

Everything you need to know about the malware stealing data from Mac users
MacBook in the dark using Terminal

Trending on Mashable
NYT Connections hints today: Clues, answers for April 3, 2026
Connections game on a smartphone

Wordle today: Answer, hints for April 3, 2026
Wordle game on a smartphone

NYT Strands hints, answers for April 3, 2026
A game being played on a smartphone.

Wordle today: Answer, hints for April 2, 2026
Wordle game on a smartphone

The Earth is glowing in new Artemis II pictures of home
One half of the Earth is seen floating in space through the open door of the Orion spacecraft.
The biggest stories of the day delivered to your inbox.
These newsletters may contain advertising, deals, or affiliate links. By clicking Subscribe, you confirm you are 16+ and agree to our Terms of Use and Privacy Policy.
Thanks for signing up. See you at your inbox!