A Chinese AI agent was supposed to be trained. Instead, it secretly mined cryptocurrency and established tunnel connections to the internet.