I fail to see how ChatGPT would help here.
It's only useful when you have some cognitive work that you want to automate so it saves you time and you can do it on a large scale, but I don't think writing massive amounts of viruses is the goal here. The objective is to code very specific and particular viruses or exploits for very specific targets.
Also, writing code is only a small part of hacking, especially when it is against specific targets.