Podcast
Root Causes 285: Can ChatGPT Write Malware?


Hosted by
Tim Callan
Chief Compliance Officer
Jason Soroko
Fellow
Original broadcast date
March 14, 2023
In our ongoing exploration of the security implications of AI, in this episode we examine the suitability of ChatGPT as a malware-writing tool and possible future directions for AI in software creation.
Podcast Transcript
Lightly edited for flow and brevity.
Really, Tim, on this podcast wanted to bring up ChatGPT. A lot of people are asking, oh my goodness, can this thing write malware? Well, the answer is, yes, of course.
So, Tim, what is malware? Maybe that’s the big question. I think a lot of people, maybe everybody listening to this podcast, is way to smart obviously to have to ask that question but malware really is just software. It’s just software like any other. And it’s often using operating systems, desktop operating systems, using mobile operating systems as they were intended to be used. A lot of people think of hackers like breaking something or hacking and breaking sound like there’s something incredibly subversive going on but really, a lot of times malware is just utilizing a stolen credential and then automating a set of tasks to perform an end goal against a target. That’s all it’s doing. And so it’s just software. In fact, often, it’s just automation software.
ChatGPT doesn’t know that you are doing something potentially malicious and, in fact, if I were to do a code review with a lot of people and look at software, it would be difficult for a lot of people to tell whether or not malware was going to be maliciously used or not by not having that context given ahead of time, Tim.
So, Tim, I gotta tell you, I had my own experiences in terms of getting ChatGPT to author software for me. I was more than amused. In fact, I was kind of impressed. I asked it to do something fairly basic, which was to give me example scripts in Python and Go language and a few other languages that I’m kinda handy in. I’m not an expert in any of them, but I’m certainly handy in them and I asked it to actually do an evaluation of an SSL certificate from a website. So, in other words, reach out to a website, grab the certificate and give me attributes about it. Parse it and tell me what is in there.
And I looked at the code and darn tootin’, Tim, it was very accurate. Like I could literally copy and paste that code and become very productive with it if I didn’t have those functions already stashed away in my files. So, I can see why this is used because I can use human language, English language that is easy for me to say and type and the output is just some darn good code. Now, of course, we already have millions and millions of posts on message boards where I can copy and paste very good code that was written by a human being but I am depending on search engines and I am depending on a lot of reading and sorting out. ChatGPT kind of short circuits a lot of that and just allows me in my own language to enter input into a prompt and get out code snippets and sometimes fully baked code, long sections of code that are not bad and sometimes really good. So, Tim, I mean I’m not saying this from a position of, I’ve never used this before. It seems interesting. It’s like, no. I’ve used this and it’s more than interesting. In fact, my next little coding expedition, I’m opening up a ChatGPT prompt right away.
So, let’s just for the developers who are listening right now, Tim, you and I not long ago talked about Microsoft and putting code signing as a first class citizen right within Visual Studio. The big IDE. The development environment for Microsoft and I foresee - - if Microsoft hasn’t done this already, you can credit me with this idea. But I would say with Microsoft’s gigantic investment in ChatGPT recently, which you guys can go and do an internet search on that topic, I wouldn’t be surprised if Microsoft puts ChatGPT or whatever other AI algorithm that they want to use directly into Visual Studio so you don’t even have to leave Visual Studio to be doing this kind of software development, Tim.

