{ "title": "A potential technique to deanonymise users of the TOR network", "type": "REPORTED", "description": "A TOP SECRET GCHQ research presentation describing a traffic correlation attack against Tor — using cumulative packet counts observed simultaneously at a controlled exit node and at SIGINT collection points near a target's guard node to deanonymise Tor users without breaking the encryption — with GTE and JTRIG having adapted owned exit nodes to collect the required data for live deployment.", "long_description": "This is a UK TOP SECRET STRAP1 COMINT GCHQ research presentation, produced by OPC-MCR. The document describes a traffic correlation attack against the Tor anonymity network that exploits the statistical relationship between packet timing at the exit node and packet timing between the client and guard node, without attacking the encryption itself.\n\nThe attack operates on a simple insight: while Tor re-encrypts traffic and routes it through multiple hops, the cumulative packet counts at the exit node and at the client-to-guard-node link are statistically correlated. By controlling a Tor exit node — allowing observation of all traffic associated with a particular circuit — and simultaneously collecting packet timing data from SIGINT collection on internet bearers near the client's guard node, GCHQ can correlate the two streams to identify the client's IP address. The technique bins time into one-second intervals, computes cumulative packet counts at both observation points, measures the correlation between them using an r² statistic with a threshold of 0.998 for server-to-client direction, fits a linear model to filter out sessions with packet count ratios outside the range 0.5 to 2, and slides the traces against each other to account for unknown timing offsets from relay delays and unsynchronised clocks.\n\nCircuit tracing through each Tor hop was considered and rejected: GCHQ tested spotting all links in GCHQ-created circuits and found only 13 out of 8294 potential inter-router links were visible — far too low for a practical attack. The direct correlation approach between exit node and guard-to-client traffic was therefore adopted instead. An ICTR-NE researcher is credited with observing that Tor's rate-limiting store-and-forward procedure can flatten timing patterns, which the cumulative packet count approach addresses by preserving the overall packet volume relationship even when individual timing is disrupted.\nFalse positive testing used 2027 bearer hours of logs from four 10G internet bearers, filtered to traffic involving Tor nodes, with time slides of up to two hours permitted. The server-to-client direction showed low false positive rates — 540 false hits identified across the entire dataset, with 92% of those against a single large download session with little correlation structure. The client-to-server direction showed more false positives due to lower data volume in web browsing scenarios.\n\nThe operational status section is significant: GTE and JTRIG had already adapted some Tor exit nodes owned by GCHQ to collect the required exit node data, and the presentation notes a desire to engage with others holding exit nodes. SIGINT collection of guard-to-client packet times was being set up for live deployment. The document notes that the attack would \"basically work\" but some additional filtering may be needed to restrict queries to sessions with sufficient correlation structure, pending availability of bulk data.\n\nThe document was presented as first-place work, with a full paper and R package available internally. The R package includes the algorithm and collected web-browsing test data, described as runnable examples with documentation and unit tests.\n\nTaken together this document shows GCHQ had developed a practically deployable Tor deanonymisation technique based entirely on external traffic analysis — requiring no cryptographic attack, no compromise of the Tor software, and no visibility into the encrypted content — relying instead on SIGINT collection infrastructure already in place on internet bearers combined with operational control of Tor exit nodes through GTE and JTRIG.", "tags": [ "Tor", "OPC-MCR", "GTE", "JTRIG", "de-anonymization", "traffic correlation", "exit node", "traffic analysis", "timing analysis", "externals-based attack", "bearers", "10G", "internet bearers", "statistical analysis", "anonymity", "passive attack" ], "document": { "creator": "GCHQ", "date_created": "", "classification": [ "UK TOP SECRET", "STRAP 1", "COMINT" ], "dissemination": [], "banner": "UK TOP SECRET STRAP1 COMINT", "genre": "slides", "programs": [ "JTRIG", "GTE" ], "countries": [], "people": [] }, "publication": [ { "publisher": "Der Spiegel", "date_published": "2014-12-28", "title": "Prying Eyes: Inside the NSA's War on Internet Security", "link": "https://www.spiegel.de/international/germany/inside-the-nsa-s-war-on-internet-security-a-1010361.html", "reporters": [ "Appelbaum, Jacob", "Gibson, Aaron", "Grothoff, Christian", "Müller-Maguhn, Andy", "Poitras, Laura", "Sontheimer, Michael", "Stöcker, Christian" ], "contributors": [], "doc_url": "https://cdn.prod.www.spiegel.de/media/199fc70d-0001-0014-0000-000000035538/media-35538.pdf" } ], "pdf_sha256": "990706c8cb0ae6f0d4cbbda031f3ad5a5426ba91e2e34a9972b1af8ae571c08d", "pages": 23 }