TL;DR
RAPTEE is a novel protocol designed to make large-scale distributed networks more resilient to malicious "Byzantine" attacks by leveraging a tiny fraction of nodes equipped with Trusted Execution Environments (TEEs), such as Intel SGX. By allowing these few trusted nodes to securely identify each other and filter out "poisoned" data, RAPTEE can reduce the influence of attackers by up to 17% even when only 1% of the network has specialized hardware.
What Problem Does This Paper Address?
In large-scale distributed systems (like blockchains or peer-to-peer overlays), nodes rely on a Peer Sampling Service (PSS) to maintain a "view"—a small, random sample of the other nodes in the network. This view is essential for routing and data dissemination.
The problem arises when malicious nodes (Byzantine nodes) try to over-represent themselves in the views of honest nodes. If they succeed, they can launch "eclipse attacks," effectively isolating honest nodes and taking control of the network's communication. Current state-of-the-art protocols like BRAHMS are resilient to a point, but their performance degrades quickly as the number of attackers grows. For instance, in BRAHMS, if 18% of the network is malicious, the "random" views of honest nodes can become 81% poisoned by attacker IDs.
Methods
RAPTEE builds on top of the BRAHMS protocol but introduces a "trusted plan" for nodes equipped with TEEs (specifically Intel SGX). The core components include:
- Mutual Authentication: Trusted nodes use a secure handshake to recognize each other. Crucially, this happens without revealing their "trusted" status to untrusted or malicious neighbors, preventing attackers from targeting them.
- Trusted Communication: When two trusted nodes connect, they exchange information more efficiently and "gossip" more aggressively, acting as a high-integrity backbone for the network.
- Byzantine Eviction: Trusted nodes implement an "eviction rate." They intentionally ignore a portion of the IDs sent to them by untrusted nodes. This slows down the spread of potentially malicious IDs.
- Adaptive Eviction Rate: Rather than a fixed rule, RAPTEE uses an adaptive mechanism. If a trusted node has recently interacted with many other trusted peers, it becomes more aggressive in filtering out IDs from untrusted sources.
Datasets
The authors evaluated RAPTEE using a mix of real-world hardware benchmarks and large-scale emulation:
- Micro-benchmarks: Conducted on a cluster of 40 physical machines (Intel NUCs) to measure the actual CPU-cycle overhead of running RAPTEE functions inside Intel SGX enclaves.
- Large-Scale Emulation: Using the data from the micro-benchmarks, the authors emulated a network of 10,000 nodes on the Grid 5000 testbed. This allowed them to test scenarios with varying proportions of Byzantine nodes (up to 30%) and trusted nodes (from 1% to 50%).
Key Insights and Ideas
- The "Anchor of Truth" Effect: You don't need a majority of nodes to have expensive TEE hardware. Even a 1% "leaven" of trusted nodes can significantly purify the views of the entire 10,000-node network.
- Stealth is Security: A major insight is that trusted nodes must remain "hidden in the mass." If an attacker could easily identify SGX-capable nodes, they could overwhelm them with targeted traffic. RAPTEE’s mutual authentication ensures that trust is a "secret handshake."
- The Discovery Trade-off: There is a "bell curve" in system discovery time. Initially, adding trusted nodes can slightly slow down how fast the network "learns" about everyone because they are busy filtering out noise. However, once a certain threshold of trusted nodes is reached, they actually accelerate the discovery of honest nodes.
- Resilience to "Poisoned" Trusted Nodes: The authors tested a scenario where an attacker buys SGX hardware and injects "trusted" nodes that already have poisoned views. They found that RAPTEE’s gossip mechanism allows these nodes to "self-heal" by eventually finding real honest peers.
Key Results
- Resilience Gain: In a system with 10% Byzantine nodes, having just 1% trusted nodes reduced the proportion of malicious IDs in honest views by 17% compared to standard BRAHMS.
- Performance Overhead: This security boost comes at a modest cost: a 10% increase in the number of rounds needed for the network to reach stability and a 12% increase in the time to discover the full membership.
- Attack Resistance: The authors simulated a powerful adversary trying to identify trusted nodes based on their behavior. With the adaptive eviction strategy, the attacker’s precision remained below 2%, meaning they almost never correctly identified a trusted node.
Limitations and Future Work
- Hardware Specificity: The current implementation is tied to Intel SGX. While the authors suggest ARM TrustZone would work, the protocol's performance might vary across different TEE architectures.
- Sybil Attacks: While RAPTEE inherits BRAHMS' resistance to Sybil attacks (where one attacker creates thousands of fake IDs), it doesn't fundamentally solve the Sybil problem beyond what the underlying protocol provides.
- Future Directions: The authors suggest integrating count-min sketches (a probabilistic data structure) to further unbias the stream of identifiers and exploring IP-prefix-based rate limiting to further thwart large-scale botnets.
Summary updated