Academic Jobs - Home of Higher Ed Logo

Research spotlight: Krishan Pal on fooling Tor's website fingerprinting attackers

8 min read15 views

At a glance

ADEFTOR, a defense from Krishan Pal Singh and co-authors at LNM Institute of Information Technology and MNIT Jaipur, drops a 98 per cent Tor website fingerprinting attack to 29–39 per cent accuracy using adaptive adversarial traffic traces.

An open padlock surrounded by scattered black computer keyboard keys under red and green light
Photo by FlyD on Unsplash

Open a page in the Tor Browser and the content is scrambled many times over. The shape of the traffic is not. Packet sizes, their timing and whether each one travels out or comes back still form a pattern, and a trained neural network can read that pattern well enough to name the site you opened with roughly 98 per cent accuracy. That figure has been the uncomfortable benchmark in anonymity research for years, and it is the number a new defense is measured against.

A paper in IEEE Transactions on Networking goes after it from an unusual angle. ADEFTOR, built by Krishan Pal Singh and four co-authors, doesn't try to flatten traffic into a uniform blur. It nudges each trace toward a decoy website and reuses one prepared distortion per site across sessions, cutting the strongest attack's top-1 accuracy from 98 per cent to somewhere between 29 and 39 per cent. Top-2 accuracy falls to 47 per cent. The bandwidth bill is 45 per cent in the full-duplex setting and 60 per cent in half-duplex, well below what the oldest defenses charge.

The timing matters because the attack side has been winning on cost. Blocking a deep-learning fingerprinter used to require padding every connection to a fixed rate, which doubled or tripled traffic and slowed pages badly enough that few people would keep the setting on. Defenses that were cheap enough to use, such as WTF-PAD, were later broken by the same class of classifier they were designed to stop. ADEFTOR is an attempt to sit in the middle: serious protection, a tax a volunteer-run network could plausibly absorb.

The attack that made this necessary

To understand what the Jaipur team built, start with the adversary. Tor routes a connection through three relays, peeling off a layer of encryption at each hop, so no single relay knows both who you are and what you asked for. But an eavesdropper sitting between your laptop and the first relay sees every packet go by, and encryption doesn't hide the metadata.

Website fingerprinting turns that metadata into a classification problem. A page load generates a distinctive sequence of outgoing requests and incoming responses, and the sequence differs from site to site in ways that survive encryption. The classic 2018 Deep Fingerprinting attack, known as DF, feeds nothing but the direction of each packet into a convolutional neural network and reaches about 98 per cent accuracy against undefended Tor traffic. Var-CNN, a later and more data-efficient attack, pushed similar numbers with less training material.

Defenses have mostly tried to blur the sequence by injecting dummy packets or forcing fixed transmission rates. The constant-rate approach works, up to a point, and costs more than most users will pay. The cheap randomized approach leaves enough structure for a modern classifier to find.

Two mechanisms, one defense

ADEFTOR borrows an idea from image recognition research. An adversarial example is an input that looks ordinary to a person but has been tweaked so a classifier misreads it: a few altered pixels, and the model says panda instead of gibbon. Traffic traces can be tweaked the same way. Insert dummy packets in the right places and the classifier's picture of the site shifts.

The paper's first mechanism is what the authors call universal distortion. Rather than computing a fresh perturbation for every visit, the system generates one reusable distortion for each monitored website. That distortion applies across different user sessions and across traffic that flows mostly one way or both. Reusing it matters for engineering reasons as much as for accuracy: the perturbation can be prepared once and blended into live traffic without a per-visit optimisation step.

The second mechanism, incremental distance reduction, controls how the distortion is aimed. ADEFTOR picks random target traces and then progressively shrinks the distance between the modified example and those targets over successive rounds. Building the perturbation in small steps toward a moving target keeps it from overfitting to the quirks of one attack model, which is the failure mode that has sunk many adversarial defenses in this field.

There is a good analogy in a corridor. Most defenses try to disguise your walk by adding random extra footsteps, which just makes you sound like a person in heavy boots. ADEFTOR instead pushes your gait toward somebody else's — and picks a different somebody each time, so a listener can't learn the trick.

What the numbers show

The evaluation pits ADEFTOR against deep-learning attacks on a public Tor traffic dataset. Two results stand out, and they answer different questions. Top-1 accuracy tells you how often an attacker lands on the correct site; top-2 asks whether the correct site is even in the attacker's shortlist of two guesses. The second number matters more for some threat models than the first, because a stalker or a censor who gets the right site in a shortlist can investigate further.

MetricUndefended baselineWith ADEFTOR
Top-1 attack accuracy98%29%–39%
Top-2 attack accuracyNot reported in the abstract47%
Bandwidth overhead, full-duplex traffic0%45%
Bandwidth overhead, half-duplex traffic0%60%

A drop from 98 per cent to the thirties puts the attacker close to guessing. With 95 monitored sites, random guessing tops out near 1 per cent, so the defense hasn't made the attack meaningless, only dramatically worse. The authors describe the result as a promising route to better privacy on Tor, and the full article in IEEE Xplore sets out the method and the evaluation in detail across pages 843 to 856 of volume 34.

The bill arrives in bandwidth, and in trust

Forty-five per cent extra traffic is not free. It is, however, a real improvement on the alternative. BuFLO and its derivatives, which pad to a constant rate, routinely add more than 100 per cent overhead. Mockingbird, the best-known adversarial-trace defense, reported drops from 98 per cent to as low as 29 per cent for about 56 per cent bandwidth overhead, according to its own 2019 preprint. ADEFTOR's full-duplex figure undercuts that slightly and its half-duplex figure lands just above it.

The half-duplex case is the awkward one. Sixty per cent extra traffic is paid by Tor's volunteer relays, not by an advertising budget. Tor carries somewhere around two million direct connections on a typical day, according to the network's public metrics, and the operators of the roughly seven thousand relays that move that traffic are donating bandwidth they already pay for. A defense that asks them for 60 per cent more will be judged on whether users actually enable it, which is a deployment question the paper doesn't settle.

Then there is the adversarial-training problem, which is the standing suspicion hanging over every defense of this type. An adversary who knows how ADEFTOR works can train a classifier on defended traffic and try to recover accuracy. The authors designed against this: universal distortion is applied across sessions and traffic types, and incremental distance reduction adds randomness to where the perturbation lands, both intended to blunt a classifier that retrains. Whether that holds up against an attacker who has the defense's code and unlimited time is the test the field will run next, and the abstract doesn't claim to have already run it.

A second caveat is scope. The results come from a public dataset with top-1 and top-2 accuracy as the yardsticks, and the open-world setting — where an attacker must also decide whether a trace belongs to any monitored site at all — is the harder version of the problem. Latency also goes unmentioned in the paper's headline figures, and page-load delay is what has killed well-defended schemes in the past.

Who did the work, and where it landed

Singh is an assistant professor in the Department of Computer Science and Engineering at LNM Institute of Information Technology in Jaipur, India, with a research background in Tor traffic analysis, dark web forensics and anonymous communication networks. His co-authors are Emmanuel S. Pilli and Vijay Laxmi of Malaviya National Institute of Technology Jaipur, along with Kashish Yusuf and Meenal Yadav.

The venue is worth a note for anyone outside networking. IEEE Transactions on Networking is the title the long-running IEEE/ACM Transactions on Networking took in 2025, so a paper appearing in volume 34 sits in a lineage that runs back to 1993. The work was authored by researchers in India, with the evaluation built on a public Tor dataset rather than a national or institutional testbed.

What to watch over the next five years

The realistic path for a defense like this is the pluggable transport layer of Tor, where client-side and bridge-side code can be updated without rebuilding the network's routing. A client-side implementation that precomputes distortions per site, as ADEFTOR does, fits that architecture better than schemes requiring relay cooperation on every circuit.

The harder question is whether the arms race stabilises. Each round of fingerprinting research trains on the previous round's defenses, and a defense that holds at 29 per cent against today's classifier may sit at 60 per cent against one retrained on its output. That is why the randomness in incremental distance reduction deserves more scrutiny than the headline accuracy drop: it is the part of the design aimed at the next attacker, not this one.

Outside Tor, the same machinery applies to VPN traffic, censorship circumvention tools and any tunnel where an observer can watch packet directions. If the technique survives adversarial retraining, it becomes a reusable building block rather than a single defense for a single network. If it doesn't, the field will have learned something useful anyway about how far adversarial perturbations can carry in the discrete, timing-sensitive world of network traffic.

  • website-fingerprinting
  • tor-anonymity
  • adversarial-examples
  • network-security
  • traffic-analysis
Portrait of Jarrod Kanizay
About the author

Jarrod KanizayView author

Academic Jobs In House Author

Visionary leader transforming academic recruitment with 20+ years in higher education.

Discussion

Sort by:

Be the first to comment on this article!

You

You’ll be asked to sign in before your comment is posted.

Browse by Faculty

Browse by Subject

Frequently Asked Questions

🔍What is website fingerprinting?

It is a traffic analysis attack that identifies which web pages a person visited, even when the connection is encrypted. The attacker watches packet sizes, timing and direction between the user and the first Tor relay, then feeds that sequence into a classifier. Deep learning models have reached about 98 per cent accuracy on undefended Tor traffic.

🛡️What does ADEFTOR stand for and what does it do?

ADEFTOR is the name of the defense proposed in the paper: Adaptive Adversarial Example Generation for Website Fingerprinting Defense in Tor. It generates adversarial traffic traces by injecting dummy packets in positions that push a classifier toward the wrong website, lowering top-1 attack accuracy from 98 per cent to between 29 and 39 per cent.

♻️What is a universal distortion in this context?

It is a single reusable perturbation generated for each monitored website, rather than a fresh one computed for every visit. Because the same distortion applies across user sessions and across unidirectional or bidirectional traffic, the system can prepare it in advance and blend it into live traffic without a per-visit optimisation step.

📐How does incremental distance reduction work?

The method selects random target traces and progressively decreases the distance between the modified example and those targets over successive rounds. Working in small steps toward randomly chosen targets keeps the perturbation from overfitting to one attack model's quirks, which is a common failure mode for adversarial defenses in traffic analysis.

📶How much bandwidth does ADEFTOR add?

The paper reports bandwidth overhead of 45 per cent for full-duplex traffic and 60 per cent for half-duplex traffic. For comparison, constant-rate defenses such as BuFLO often add more than 100 per cent. The overhead is carried by Tor's volunteer relays, which makes deployment economics part of the story.

⚖️How does it compare with Mockingbird?

Mockingbird, published in 2019, reported dropping the strongest attack from 98 per cent to as low as 29 per cent for about 56 per cent bandwidth overhead. ADEFTOR's full-duplex overhead is slightly lower and its half-duplex overhead slightly higher, and both defenses rely on the same underlying idea of adversarial traces rather than constant-rate padding.

🤔Could an attacker retrain to defeat ADEFTOR?

That is the open question for every adversarial defense. An adversary who knows the defense exists can train a classifier on defended traffic. The authors build in randomness through random target selection and reuse a single distortion across sessions to resist that, but the abstract does not claim a result against an attacker who has fully adapted to the scheme.

🗂️What dataset was used for the evaluation?

The evaluation uses a public Tor traffic dataset and tests the defense against deep-learning based fingerprinting attacks in both full-duplex and half-duplex configurations. The paper reports top-1 and top-2 accuracy alongside bandwidth overhead as its main metrics.

📍Where was the research carried out?

Krishan Pal Singh is an assistant professor in the Department of Computer Science and Engineering at LNM Institute of Information Technology in Jaipur, India. His co-authors are Emmanuel S. Pilli and Vijay Laxmi of Malaviya National Institute of Technology Jaipur, with Kashish Yusuf and Meenal Yadav.

📚Which journal published the paper?

It appears in IEEE Transactions on Networking, volume 34, pages 843 to 856, with a 2026 volume year and a September 2025 online publication date. The title is the successor to IEEE/ACM Transactions on Networking, which was published under that name from 1993 to 2024.

🌐Why does this matter beyond Tor?

The same metadata leaks through VPNs, censorship circumvention tools and any encrypted tunnel where an observer can see packet directions and timing. If the technique holds up against retrained attackers, it becomes a reusable building block for traffic-shaping defenses rather than a single fix for a single network.