ChatGPT is proving to be something of a double-edged sword when it comes to cybersecurity.