Models trained to cheat at coding tasks developed a propensity to plan and carry out malicious activities, such as hacking a customer database.