Skip to main content
QUICK REVIEW

[Paper Review] Anomalous keys in Tor relays

George Kadianakis, Claudia V. Roberts|arXiv (Cornell University)|Apr 3, 2017
Internet Traffic Analysis and Secure E-votingComputer Science8 references4 citations
TL;DR

This paper analyzes 3.7 million RSA public keys from Tor relays and identifies 3,557 relays sharing prime factors, 10 sharing moduli, and 122 using non-standard exponents—indicating misconfigurations or malicious intent. The authors develop a tool, itos, to detect which onion services were targeted by malicious relays, revealing four compromised services, and provide open-source tools to help The Tor Project and onion service operators detect and block vulnerable relays proactively.

ABSTRACT

In its more than ten years of existence, the Tor network has seen hundreds of thousands of relays come and go. Each relay maintains several RSA keys, amounting to millions of keys, all archived by The Tor Project. In this paper, we analyze 3.7 million RSA public keys of Tor relays. We (i) check if any relays share prime factors or moduli, (ii) identify relays that use non-standard exponents, (iii) characterize malicious relays that we discovered in the first two steps, and (iv) develop a tool that can determine what onion services fell prey to said malicious relays. Our experiments revealed that ten relays shared moduli and 3,557 relays -- almost all part of a research project -- shared prime factors, allowing adversaries to reconstruct private keys. We further discovered 122 relays that used non-standard RSA exponents, presumably in an attempt to attack onion services. By simulating how onion services are positioned in Tor's distributed hash table, we identified four onion services that were targeted by these malicious relays. Our work provides both The Tor Project and onion service operators with tools to identify misconfigured and malicious Tor relays to stop attacks before they pose a threat to Tor users.

Motivation & Objective

  • To detect cryptographic weaknesses in RSA keys used by Tor relays, particularly shared prime factors, shared moduli, and non-standard exponents.
  • To identify and characterize malicious or misconfigured relays that could compromise Tor anonymity.
  • To develop a practical tool that enables onion service operators to detect if their services were targeted by malicious relays.
  • To support The Tor Project in proactively identifying and removing vulnerable relays before they can be exploited.
  • To promote long-term network security through open-source tools and continuous key validation for new relays.

Proposed method

  • Collected and analyzed a public dataset of 3.7 million RSA public keys from Tor relays, archived by The Tor Project.
  • Performed pairwise GCD computations across moduli to detect shared prime factors and shared moduli.
  • Identified relays using RSA exponents other than the standard 65537, flagging them as potential threats to onion services.
  • Clustered relays based on shared metadata (nicknames, IP blocks, uptime, port numbers) to trace operational entities.
  • Built the itos tool to simulate onion service placement in Tor’s DHT and determine which services were likely targeted by malicious relays.
  • Shared findings with The Tor Project and the research community via public reports, open code, and mailing list disclosure.

Experimental results

Research questions

  • RQ1How many Tor relays use weak RSA keys due to shared prime factors or moduli?
  • RQ2What is the origin and nature of relays with non-standard RSA exponents, and do they pose a threat to onion services?
  • RQ3Which onion services were likely targeted by malicious relays using non-standard exponents?
  • RQ4Can a tool be built to identify which onion services are at risk from specific malicious relays?
  • RQ5How can the Tor ecosystem proactively detect and mitigate cryptographic anomalies in new relays?

Key findings

  • Ten Tor relays were found to share the same RSA modulus, indicating deliberate interference in key generation.
  • 3,557 relays shared prime factors with at least one other relay, enabling factorization attacks to recover private keys.
  • 122 relays used non-standard RSA exponents, likely in an attempt to manipulate Tor’s distributed hash table for onion service attacks.
  • Four onion services were identified as likely targets of malicious relays using non-standard exponents.
  • Most anomalous relays were linked to a single 2013 research project, though some were likely operated by adversaries.
  • The authors developed and open-sourced the itos tool to detect targeted onion services and enable proactive monitoring by service operators.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.