A Few Notes on AWS Nitro Enclaves–KMS Integration - #336
Open
carlospolop wants to merge 1 commit into
Open
Conversation
Collaborator
Author
🔗 Additional ContextOriginal Blog Post: https://blog.trailofbits.com/2026/08/05/a-few-notes-on-aws-nitro-enclaves-kms-integration Content Categories: Based on the analysis, this content was categorized under "Pentesting Cloud > AWS Pentesting > AWS - Post Exploitation > AWS - KMS Post Exploitation, as a Nitro Enclaves–KMS Integration Attacks subsection; cross-reference AWS - Services > AWS - EC2, EBS, ELB, SSM, VPC & VPN Enum > AWS - Nitro Enum". Repository Maintenance:
Review Notes:
Bot Version: HackTricks News Bot v1.0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🤖 Automated Content Update
This PR was automatically generated by the HackTricks News Bot based on a technical blog post.
📝 Source Information
🎯 Content Summary
Overview
The post analyzes the security boundary between AWS Nitro Enclaves and AWS Key Management Service (KMS). KMS can validate Nitro attestation documents, restrict customer-managed key usage according to enclave Platform Configuration Register (PCR) measurements, and encrypt sensitive responses to a public key generated by the requesting enclave. However, these mechanisms do not automatically protect the application protocol around KMS. Because encrypted keys, ciphertexts, identi...
🔧 Technical Details
Wrapped-key substitution: When multiple data keys or shared secrets are wrapped by the same CMK and stored outside a trusted execution environment, an attacker can replace the expected wrapped value with another valid KMS ciphertext. Successful KMS decryption establishes cryptographic validity under the CMK but not application-level identity. Bind wrapped material to trusted object, tenant, purpose, protocol, and version fields using KMS encryption context.
Ciphertext-and-context pair swapping: Encryption context does not prevent substitution if the attacker controls both the wrapped ciphertext and every context field. The attacker can replace them as a matching pair. At least one security-critical context component must be generated or validated from trusted enclave state, and permissions for
EncryptandGenerateDataKeymust prevent attackers from manufacturing arbitrary valid ciphertext/context pairs.<...
🤖 Agent Actions
Done.
Updated:
src/pentesting-cloud/aws-security/aws-post-exploitation/aws-kms-post-exploitation/README.mdAdded:
Recipient/ weak PCR enforcement## Referencessectionaws-nitro-enum.mdVerified:
Note:
mdbook buildcould not be run becausemdbookis not installed in this environment.This PR was automatically created by the HackTricks Feed Bot. Please review the changes carefully before merging.
📚 Repository Maintenance
All .md files have been checked for proper formatting (headers, includes, etc.).