1. A system for processing and storing sensitive information, including messages received and generated by the system and keys used to encrypt and decrypt the messages, and securing the information against potential attacks, the system comprising: (a) a cryptographic engine for performing cryptographic operations on messages using a first key; (b) one or more detectors for detecting events characteristic of an attack; (c) a plurality of potential responses to detected events; and (d) a programmable filter for correlating detected events with one or more operational factors and for selecting and invoking one or more responses based upon the correlation.