Error recovery is the process of detecting a failure and returning a system or interaction to a safe, usable state. It can involve retrying an operation, undoing a partial change, asking for clarification, or transferring the user and relevant context to a human operator. A good recovery path avoids forcing users to repeat information or leaving a process in an uncertain state.
In cyber security, recovery matters because failures can create openings for misuse or cause harmful actions to be repeated. For example, an attacker may exploit poorly handled timeouts or retries to trigger duplicate transactions, while an automated agent may continue acting after an error unless its permissions and workflow are bounded. Defenses include validating outcomes, making sensitive operations idempotent where possible, limiting retries, logging failures, and providing a safe escalation path. Recovery should preserve necessary context without exposing it to unauthorized users.


