Recovering from an attack