A few notes on AWS Nitro Enclaves: KMS integration

2026年8月5日

AI 摘要 AI 生成,可能有误

本文是 AWS Nitro Enclaves 系列文章的第三篇,探讨了 Nitro Enclaves 与 AWS 密钥管理服务 (KMS) 之间的集成,解释了基于证明的密钥策略和加密响应如何使 enclave 能够安全地卸载密钥管理任务。文章列举了针对 enclave 与 KMS 通信通道的被动和主动攻击类别——包括数据调换、CMK 替换、重放攻击和中间人攻击——并提供了缓解措施清单,例如硬编码 CMK ARN、使用加密上下文,以及采用由 enclave 发起并带有经证明 CA 的 TLS。文章还强调了即使密码学实现正确也依然存在的运营风险,例如 IAM 凭证篡改、时序侧信道,以及在证明新鲜度限制范围内的重放窗口。

Nitro Enclaves and Key Management Service (KMS) feel like a natural fit: since the KMS can verify attestation documents generated by the enclaves, developers can offload key management tasks from their applications to the AWS-managed service. But integrating an external service with your trusted enclaves comes with new threats, even if that service comes from the same provider.

In this blog post—the third in our series on Nitro Enclaves, following our posts on attack surface and images and attestation—we catalog passive and active attack classes against the enclave-KMS communication channel, and cover the operational risks that persist even when the cryptography is correct.

Intro to KMS

继续阅读全文

为了尊重作者,这里只展示开头几段。你可以去原文阅读,或者在 HorizonReader 里读:划线做笔记、让 AI 帮忙。

更多来自 Trail of Bits Blog

Answering your questions about Anthropic's lattice cryptography results

AI 摘要Anthropic's newly announced quantum algorithms for module lattices raise theoretical concerns about lattice-based cryptography but do not break deployed standards like ML-KEM, ML-DSA, or FN-DSA, since the attacks are asymptotic and impractical at real-world parameter sizes. Implementers are advised to take no immediate action, though cryptographers and standards bodies should study whether the attack could be improved in the future. Other cryptography, including RSA, elliptic curves, and symmetric schemes, is completely unaffected by these results.

After Binance, check what your signing systems can approve

AI 摘要The article examines Binance's October 2026 security incident, in which an attacker obtained valid signatures from the exchange's wallet-signing service via social engineering and stolen credentials, then used an EIP-7702 delegation to repeatedly drain funds without further signatures. It warns that many transaction monitoring and signing-policy systems fail to account for newer Ethereum execution paths such as EIP-7702 delegations, session keys, Safe modules, and ERC-4337 UserOperations, allowing malicious wallet-authority changes to go undetected. The author recommends four measures—reducing access to signing infrastructure, treating delegation as an administrative privilege, limiting damage even if signing is compromised, and detecting wallet-authority changes—each with verification tests to confirm the controls work.

The cryptography behind electronic voting (and why paper ballots are still essential)

AI 摘要The article explains why paper ballots remain essential for elections despite cryptographic advances, describing how systems like Helios and ElectionGuard use techniques such as homomorphic encryption, threshold key-sharing, and zero-knowledge proofs to protect voter privacy and provide verifiable tallies. It highlights that electronic voting introduces unique risks—such as scalable software vulnerabilities, compromised clients, and coercion—that paper-based systems largely avoid through physical controls and detectability of failures. Ultimately, cryptography can strengthen verifiability as a layer atop paper infrastructure, but it cannot fully replace the security and trust of paper ballots in high-stakes public elections.

Backporting security fixes at scale with Codex

AI 摘要The article describes how thousands of known CVEs remain unfixed in stable software like Linux kernel stable branches, Ubuntu LTS, and Debian because backporting security patches is time-consuming, thankless volunteer work that rarely gets prioritized. Using Codex with GPT-5.6, the team reduced backporting effort from days to roughly 30 minutes to three hours of human attention per fix, with AI agents handling patch adaptation, testing, and evidence gathering while engineers review and submit the patches. By October 29, this workflow had helped land fixes for 149 distinct CVEs in stable Linux kernel releases, along with patches for Fedora and Ubuntu packages, demonstrating that AI assistance can make neglected security work practical at scale.

Your AI agent fixed the bug, but what else did it change?

AI 摘要Trail of Bits has released two plugins, patching-bugs and regression-hunt, developed through its Patch the Planet initiative with OpenAI, which let AI agents reproduce reported bugs, develop fixes, and check whether changes break previously working behavior in open-source projects. The plugins standardize patching through strict input/output schemas, live proof-of-concept validation, and project-specific threat models and patching guidelines, with regression-hunt producing 25% fewer false-positive findings than a baseline Codex agent in preliminary evaluations. The authors argue that as AI accelerates bug discovery, the industry needs reliable, standardized patching workflows, and they encourage maintainers to add THREAT_MODEL.md and PATCHING_GUIDELINES.md files so the agents work within each project's rules.