HyperTEE

Secure your Hyperlane interchain messages with TEE powered by Phala

ETHGlobal BangkokShipped November 15, 2024Prize winner#infra#security
Repo
HyperTEE banner

About

Currently, Hyperlane employs a multisignature-based consensus mechanism to approve messages across chains. However, this approach introduces potential vulnerabilities, such as the risk of Sybil attacks. Additionally, maintaining transparency requires deploying multiple validators, which can increase complexity and operational overhead.

To address these challenges, we propose leveraging Trusted Execution Environments (TEE). A lightweight validator code will be executed within the TEE, continuously monitoring dispatch events on the origin chain. For each message, the TEE will generate secure proofs, which can be verified by a TEE-based Interchain Security Module (ISM) before the message is delivered to the destination chain.

This approach enhances security, mitigates the risk of Sybil attacks, and streamlines the validation process while ensuring transparency.

How it's made

We have implemented our TEE validator using Phala. The validator utilizes web3.py to listen for dispatch events emitted by the mailbox on the origin chain. These messages are batched, and a single TEE proof is generated for the entire batch. The payload of the proof includes the message_id associated with the messages in the batch.

The TEE proof is then submitted to the TEE-based Interchain Security Module (ISM), where it undergoes verification. This process ensures the proof originates from the correct binary file and validates that the payload matches the expected content. For hashing, we utilize SHA-384 and SHA-512, which are native to Phala.

Subsequently, the relayer queries the TEE ISM to verify whether the proof was successfully submitted for the corresponding message. If the verification is successful, an approval is issued, enabling the mailbox to deliver the message.

Prizes

  • Hyperlane · Best Infrastructure · Best Infrastructure

From the public ETHGlobal showcase page. Votes, swipes and the judge score are hackfeed's own.

AI judge

Not judged yet. A free model reads this page, compares it with similar projects and this event's winners, then scores it and says what would make it win.

Still being built?

Not checked yet.

Swipe stats

0upvotes
0skips
0saves

Discussion 0

No comments yet. Ask the team something, or say what you'd use it for.

Posting as a guest. Plain text, 1,000 characters max.

Already built nearby

Closest projects by meaning and shared words. Similar isn't the same as copied: read them.

TotalFusion

1inch Fusion+ multi-chain extension: atomic swaps with TEE security & Chain Signatures

SyncSafe

Introducing a minimal multisig safe module and guard for seamless multichain operation. Using Layer Zero, it generates a multichain safe and synchronizes states across chains, ensuring state-drifting resistance and enhancing cross-chain multisig reliability.