Better HN
topnewbestaskshowjobs
Log inSign up

h4x3rotab

6 karma · joined Oct 23, 2025 (1y ago) · 3 submissions

Building phala.com / redpill.ai, bring trust to AI with accessible Confidential AI.
Submissions

comment 1w ago · link · parent

Thanks for the kind words. Any single point of failure must be handled with great care. In this case, the blockchain-based authentication is proven to be more robust than the central one. And there are a lot more to harden. It’s a lesson we learned in a hard way.

comment 1w ago · link · parent

Cofounder of Phala here. Happy to explain it.

The TEEs are real. The problem was caused by software bugs. Running a TEE app (CVM) is more than dropping a binary into TEE. Two problems remain: (1) migration, you don’t want to completely lose the data if the hardware dies, and (2) upgradability, you want to patch the app when there’s a bug without building the state from scratch. So we want to decouple the states from hardware.

Using the hardware key is painful. The solution is to introduce a separate key manager (KMS). It releases keys to the app iff. the app follows a predefined “policy” (code, hardware attestation, etc). We can decouple the states from hardware based on a remote KMS.

This is rather a common design. You can find it in our system, as well as other mature frameworks like Confidential Containers.

As the system grows, a bug was introduced to the policy of how we replicate a KMS’s key material (for redundancy). The attacker exploited it with multiple sophisticated attacks, eventually being able to cheat a running KMS to hand over the keys to a fake one, like it’s a legit KMS replica. As a result, the keys protected by the KMS became at risk.

To mitigate the problem, the legacy KMS was dropped and a new KMS was deployed. We have then rotated all the keys associated with the legacy KMS. A series of protocol and code audit is ongoing to prevent future failure.

comment 1y ago · link · parent

Close sourced. Can't find where the docker image is built. I'd like to trust the developer but it's really hard to tell what is packaged in the image and if it can leak any secret.