TECHNOLOGY

KMS rotation does not replace an exposed document data key

In this article
THE QUICK TAKE

Identify the exposed cryptographic layer before choosing a replacement; rotating a KMS key or rewrapping the same data key does not replace the payload-encryption secret.

Name the key involved in the exposure

Consider an enterprise document service using envelope encryption: document bytes are encrypted with a data key, while a KMS key protects the stored copy of that data key. An investigation finds an exposed plaintext data key in a worker’s diagnostic artifact. Rotating KMS key material may be useful under an organization’s policy, but it addresses a different layer. The remediation question is whether the exposed data key can still decrypt the affected document ciphertext.

Distinguish key-material rotation from data reencryption

The AWS KMS rotation guide states that rotation changes current key material while retaining the same logical KMS resource. Existing ciphertext can be decrypted using the appropriate earlier material. The guide explicitly says rotation neither rotates generated data keys nor reencrypts protected data, and does not mitigate a compromised data key. Do not describe a successful rotation event as proof that previously exposed document-encryption material has become unusable.

Identify what ReEncrypt can actually transform

The ReEncrypt API reference describes ciphertext transformation inside KMS and limits accepted ciphertext formats. It can operate on compatible KMS-produced ciphertext, including a protected data-key blob. It is not a universal transformer for arbitrary ciphertext produced by client encryption libraries. Rewrapping the same data key under another KMS key changes its protection at rest; it does not change the document bytes encrypted with that data key or erase a plaintext copy already exposed elsewhere.

Scope a replacement to the affected encrypted objects

Inventory which document versions share the exposed data key and which derived encrypted artifacts depend on it. A proposed replacement workflow uses newly generated data-encryption material and the application’s supported payload-encryption format, then verifies the resulting object references before switching readers. Keep permissions, backups and recovery dependencies in view. This is a design analysis rather than an assertion that this article performed incident response or that one generic command can safely migrate every envelope format.

Verify the cryptographic boundary with disposable fixtures

Use harmless test plaintext and separately recorded old and replacement key relationships in an authorized isolated environment. Observe which ciphertext remains decryptable with the old data key after wrapping-key rotation, then compare a genuinely reencrypted payload using replacement material. Verify authorized reads through the application and retain format and key-reference metadata without publishing plaintext keys. Acceptance must concern the affected payload relationship, not only a successful KMS operation. No key rotation, reencryption operation or exposure experiment was executed here.

Separate historical readability from exposure containment

Encrypted etcd recovery dependencies explains why old encrypted state can require retained decryption paths. Secret rotation adoption distinguishes changing stored credentials from client use. This question concerns another boundary: which cryptographic secret was exposed and which ciphertext it still unlocks. A precise report distinguishes logical KMS key, key material, protected data-key blob and payload encryption. It should state the verified replacement scope and remaining copies rather than claim that a rotation timestamp alone invalidates previously disclosed data keys.

Earn rental income from GPUs

Have idle GPUs or looking to fund AI infrastructure? Retrivium finds a rental platform, sets up the server and helps you assess income and costs with a pilot.

Explore GPU hosting
← All articles