A team of cybersecurity experts have shown how a self-replicating AI agent can take over a computer network at almost no cost.