Shadow AI and jailbroken LLMs have sparked a global race to exploit legacy code