Trusted recovery from malicious attacks