How Jailbreak Attacks Compromise ChatGPT and AI Models’ Security