The larger the network, the larger the attack surface. Computational models may pinpoint the best places for investment.