ChatGPT can be used to generate malicious code, finds research