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