AWS Details Point-in-Time Recovery for Amazon Cognito User Pools

· Original article ↗

Summary

AWS explains how Amazon Cognito’s point-in-time recovery restores user-pool data after erroneous changes, including preview and approval steps, plan-dependent recovery windows, and safeguards for permissions, restored accounts, and monitoring.

Key points

  • Point-in-time recovery (PITR) is enabled automatically for eligible Cognito user pools, with recovery windows of up to one day on Essentials and 14 days on Plus.
  • A recovery generates a preview of user, group, MFA-setting, and passkey changes before approval; reads and sign-ins continue while writes are paused.
  • Operators can approve or cancel a recovery. A preview cancels automatically after 24 hours if no action is taken.
  • Restores happen in the existing pool, preserving its ID, configuration, and recreated users’ sub identifiers.
  • Review recreated users after a restore: deleted accounts, including intentionally removed or compromised accounts, may return and need to be disabled and have sessions revoked.
  • AWS recommends separating initiation and approval permissions across different people or teams and granting the approver role only when needed.
  • Monitor PITR API calls in CloudTrail and use EventBridge notifications; a pool allows one recovery at a time and one successful recovery per 24 hours.

Article Details

Defense Focus
Protect Amazon Cognito user-pool identity data from accidental or erroneous changes through point-in-time recovery, with controlled approvals and monitoring.
Detection Methods
  • Monitor Amazon Cognito point-in-time recovery API calls and alert when a recovery is initiated or approved.
  • Review the recovery preview’s create, update, and delete counts before approving a recovery.
  • After recovery, compare recreated users with the incident timeline and identify accounts that should remain removed.
Data Sources
  • AWS CloudTrail records of point-in-time recovery API calls, including InitiatePointInTimeRecovery and StartPointInTimeRecovery.
Rule Types
  • Amazon EventBridge rule notifying the security team when InitiatePointInTimeRecovery or StartPointInTimeRecovery is called.
Defensive Actions
  • Assign recovery initiation and approval permissions to separate IAM roles, with different people or teams assigned to those roles.
  • Grant the approver role only for the duration of an approved change.
  • Give both roles the permissions needed to review recovery previews and cancel a recovery.
  • Disable restored accounts that should remain removed and revoke their sessions with AdminUserGlobalSignOut.
  • Practice the preview-based recovery workflow on a test user pool before an incident.

Vendors

Products

Tools

Related Articles