Reactive Attestation: Automatic Detection and Reaction to Software Tampering Attacks