TorPolice: Towards Enforcing Service-Defined Access Policies in Anonymous Systems

Zhuotao Liu, Yushan Liu, Philipp Winter, Prateek Mittal, Yih-Chun HuarXiv 2017

TL;DR

TorPolice introduces a novel capability-based access control system for the Tor network, allowing service providers and Tor itself to enforce policies against botnet abuse without compromising user anonymity. This framework enables finer-grained control than simply blocking all Tor traffic, improving usability for legitimate users and network resilience.

What Problem Does This Paper Address?

The Tor network, while crucial for online privacy, faces significant challenges due to a lack of access control. This absence allows malicious actors, particularly botnets, to abuse the network for various nefarious purposes. This includes using Tor exit relays as launchpads for attacks, leading service providers to implement harsh measures like CAPTCHAs or outright IP blacklisting, which severely impacts legitimate Tor users. Additionally, botnets can exploit Tor's anonymity features to run command-and-control servers or launch denial-of-service attacks against Tor relays, degrading network performance and reputation. Existing solutions are often too coarse-grained, impacting all Tor users, or lack the necessary privacy guarantees.

Methods

TorPolice introduces a capability-based access control framework. The core idea is to issue "capabilities" that act as verifiable credentials, allowing clients to prove they have met certain criteria before accessing a service or using a Tor relay.

Key components include:

  • Access Authorities (AAs): A set of distributed, partially trusted entities responsible for issuing capabilities. These AAs are not centrally controlled, aligning with Tor's decentralized philosophy.
  • Capability Seeds: A resource that clients must possess to request capabilities from AAs. These seeds are designed to be costly to scale, making it difficult for botnets to acquire them in massive quantities. Examples include solutions to CAPTCHAs or computational puzzles.
  • Site-Specific Capabilities: These allow service providers to define and enforce access policies for their services. A client presents a site-specific capability to a service provider, which then verifies it to grant or deny access.
  • Relay-Specific Capabilities: These enable the Tor network itself to control access to its relays. Clients need these capabilities to create Tor circuits, allowing Tor to throttle abusive circuit creation.
  • Blind Signatures: TorPolice heavily relies on blind signatures to ensure that AAs cannot link a client's identity to the capabilities they issue, thus preserving user anonymity.

The system is designed to be incrementally deployable, meaning existing Tor clients, relays, and services can continue to function while TorPolice is gradually adopted.

Datasets

Not discussed in the paper. The paper relies on existing measurements and simulations for evaluation.

Key Insights and Ideas

  • Capabilities as a Privacy-Preserving Access Control Mechanism: The core innovation is using capabilities, which are cryptographically verifiable credentials, to enforce access policies without revealing user identity. This is a significant departure from traditional IP-based blocking.
  • Decentralized Trust for Access Control: By distributing the role of issuing capabilities among multiple Access Authorities (AAs), TorPolice avoids creating single points of failure or control, mirroring Tor's own architecture.
  • Costly Capability Seeds as a Botnet Deterrent: Requiring a "costly to scale" resource like CAPTCHA solutions or computational puzzles as a prerequisite for obtaining capabilities makes it economically unfeasible for large-scale botnets to acquire enough to overwhelm the system.
  • Separation of Concerns: Site vs. Network Access: TorPolice provides distinct mechanisms for service providers (site-specific capabilities) and the Tor network itself (relay-specific capabilities), addressing different types of abuse effectively.
  • Incremental Deployability is Crucial: The design acknowledges that a complete overhaul of Tor is impractical. By allowing partial adoption, TorPolice can gain traction and demonstrate its benefits without disrupting the existing network.

Key Results

  • Preservation of Anonymity: Rigorous security analysis demonstrates that TorPolice does not weaken the anonymity guarantees of the Tor network. The use of blind signatures is key to this.
  • Effective Policy Enforcement: Evaluations show that TorPolice can effectively enforce site-defined access policies, bounding an adversary's service request rate. For example, it can limit the rate to a fraction (e.g., $\epsilon$) of the normal rate.
  • Mitigation of Botnet Abuse:
    • C&C Abuse: TorPolice can reduce circuit creation failure rates by approximately 74% during botnet C&C attacks.
  • DDoS Attacks: The system significantly increases Tor's resilience against cell flooding attacks.
  • Low Overhead: The computational overhead for capability-related operations (generation, verification, blinding, unblinding) is small, measured in microseconds. The deployment overhead for AAs is also manageable, requiring an estimated 11 cores to support current Tor users.
  • Negligible Latency Impact: TorPolice introduces negligible overhead to circuit creation latency, with capability verification being significantly faster than native Tor circuit creation.

Limitations and Future Work

  • Early Deployment Privacy: During the early stages of deployment, when not all Tor clients are upgraded, there might be a temporary privacy concern. The authors suggest the Tor Project could mandate upgrades to mitigate this.
  • Adversary Assumptions: The system assumes AAs are well-connected to the internet backbone to mitigate volumetric DDoS attacks against them.
  • Future Work: The paper mentions the need for further detailed design for the puzzle system and a capability exchange protocol for Tor onion services, with these details deferred to appendices or future work. The authors also suggest exploring other types of capability seeds and incentive mechanisms for Tor relays.

Summary updated

Abstract

Tor is the most widely used anonymity network, currently serving millions of users each day. However, there is no access control in place for all these users, leaving the network vulnerable to botnet abuse and attacks. For example, criminals frequently use exit relays as stepping stones for attacks, causing service providers to serve CAPTCHAs to exit relay IP addresses or blacklisting them altogether, which leads to severe usability issues for legitimate Tor users. To address this problem, we propose TorPolice, the first privacy-preserving access control framework for Tor. TorPolice enables abuse-plagued service providers such as Yelp to enforce access rules to police and throttle malicious requests coming from Tor while still providing service to legitimate Tor users. Further, TorPolice equips Tor with global access control for relays, enhancing Tor's resilience to botnet abuse. We show that TorPolice preserves the privacy of Tor users, implement a prototype of TorPolice, and perform extensive evaluations to validate our design goals.
BibTeX
@misc{liu2017torpolice,
  author = {Zhuotao Liu and Yushan Liu and Philipp Winter and Prateek Mittal and Yih-Chun Hu},
  title = {{TorPolice: Towards Enforcing Service-Defined Access Policies in Anonymous Systems}},
  year = {2017},
  eprint = {1708.08162},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1708.08162},
}

Loading related content...

Figure