# \[tor-dev\] \[CRITICAL\] DeepCorr Traffic Confirmation Attack

**URL:** https://forum.torproject.org/t/tor-dev-critical-deepcorr-traffic-confirmation-attack/6720
**Category:** tor-dev
**Created:** [February 28, 2023, 11:08am UTC](https://forum.torproject.org/t/tor-dev-critical-deepcorr-traffic-confirmation-attack/6720 "2023-02-28T11:08:29Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Martin\_Neuenhofen\_vi](https://forum.torproject.org/letter_avatar_proxy/v4/letter/m/df705f/32.png) [@Martin\_Neuenhofen\_vi](https://forum.torproject.org/u/Martin_Neuenhofen_vi)
#### Post date: [February 28, 2023, 11:08am UTC](https://forum.torproject.org/t/tor-dev-critical-deepcorr-traffic-confirmation-attack/6720/1 "2023-02-28T11:08:29Z")

</div>

Hi,

I was just reading a paper on traffic confirmation attacks over here  
[https://arxiv.org/pdf/1808.07285v1.pdf](https://arxiv.org/pdf/1808.07285v1.pdf). This attack runs with the help of  
deep learning algorithm called DeepCorr. This attack can be run in a Five  
Eyes country or an authoritarian regime like Russia where companies are  
compelled to cooperate with the government making this attack plausible.  
The ISP and the website operators are the two endpoints for this attack.  
This attack was able to achieve a success rate of over 96% which  
represents a serious threat to Tor users in these regions. The paper also  
includes some countermeasures on how to defeat this method of traffic  
confirmation.

Thanks.

> **···**
>
> \_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_  
> tor-dev mailing list  
> tor-dev@lists.torproject.org  
> [https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-dev](https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-dev)

---

<div class="post-metadata">

### Author: ![Holmes\_Wilson](https://forum.torproject.org/letter_avatar_proxy/v4/letter/h/8edcca/32.png) [@Holmes\_Wilson](https://forum.torproject.org/u/Holmes_Wilson)
#### Post date: [February 28, 2023, 12:59pm UTC](https://forum.torproject.org/t/tor-dev-critical-deepcorr-traffic-confirmation-attack/6720/2 "2023-02-28T12:59:00Z")

</div>

This attack looks especially bad for situations where both ends of the connection are controlled by the attacker, so it seems really bad for onionshare, ricochet refresh, Briar, and Quiet, at least when users are communicating with others in the same country. 96% correlation after 900k of data sent! That’s just a few images or files.

It probably would work again cwtch too at least if it was trained for that, since while users might be connected to a server outside the attacker’s region of control, but the data flows would correlate since the cwtch server is also just relaying data.

Should all of these apps be using obs4 with IAT mode on? (The mitigation recommended by the paper?)

How meaningful is Tor’s metadata protection for an app like Quiet, Briar, or OnionShare given this attack, assuming most users are communicating with others within a country that can mount such an attack?

> **···**
>
> On Tue, Feb 28, 2023, 8:23 AM Guard via tor-dev \<[tor-dev@lists.torproject.org](mailto:tor-dev@lists.torproject.org)\> wrote:
> 
> > Hi,
> > 
> > I was just reading a paper on traffic confirmation attacks over here  
> > [https://arxiv.org/pdf/1808.07285v1.pdf](https://arxiv.org/pdf/1808.07285v1.pdf). This attack runs with the help of  
> > deep learning algorithm called DeepCorr. This attack can be run in a Five  
> > Eyes country or an authoritarian regime like Russia where companies are  
> > compelled to cooperate with the government making this attack plausible.  
> > The ISP and the website operators are the two endpoints for this attack.  
> > This attack was able to achieve a success rate of over 96% which  
> > represents a serious threat to Tor users in these regions. The paper also  
> > includes some countermeasures on how to defeat this method of traffic  
> > confirmation.
> > 
> > Thanks.
> > 
> > * * *
> > 
> > tor-dev mailing list  
> > [tor-dev@lists.torproject.org](mailto:tor-dev@lists.torproject.org)  
> > [https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-dev](https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-dev)

---

<div class="post-metadata">

### Author: ![Martin\_Neuenhofen\_vi](https://forum.torproject.org/letter_avatar_proxy/v4/letter/m/df705f/32.png) [@Martin\_Neuenhofen\_vi](https://forum.torproject.org/u/Martin_Neuenhofen_vi)
#### Post date: [February 28, 2023, 3:29pm UTC](https://forum.torproject.org/t/tor-dev-critical-deepcorr-traffic-confirmation-attack/6720/3 "2023-02-28T15:29:01Z")

</div>

I have not read this paper thoroughly, and it definitely seems to make  
a significant contribution. But the concerns that you raise are not  
what is new, and I hope this message will reduce your sense of alarm.

If an attacker is interested in a given user or onion service and can  
watch both ends of a connection, it is well documented that they can  
correlate with high accuracy and low false positives. And this was  
understood, if not yet experimentally validated, not just when we  
first made Tor, but for pre-Tor versions of onion routing.

The issue discussed in the paper is to be able to look at (both ends  
of) \_large volumes\_ of traffic flow and be able do correlations with  
low false positives. I haven't had a chance to look carefully at the  
contribution, but even in this area the novelty is somewhat  
overstated, because IMO the authors understate the contributions of  
their reference [49].

Murdoch and Zielinski showed back in 02007 that an IXP could correlate  
quite well sampling only around 1/2000 packets. Somebody should  
idiot-check me, since I'm pulling those results from memory without  
looking (too busy today). Nonetheless, even if the numbers aren't  
exactly right, Murdoch and Zielinksi showed the ability to correlate  
at scale with low sampling. Again, I believe the paper being discussed  
substantially improves on [49] in many respects, but the basic idea  
that correlation at scale is feasible was not only understood but  
demonstrated sixteen years ago. HTH.

> **···**
>
> On Tue, Feb 28, 2023 at 09:59:00AM -0300, Holmes Wilson wrote:
> 
> > This attack looks especially bad for situations where both ends of the  
> > connection are controlled by the attacker, so it seems really bad for  
> > onionshare, ricochet refresh, Briar, and Quiet, at least when users are  
> > communicating with others in the same country. 96% correlation after 900k  
> > of data sent! That's just a few images or files.
> > 
> > It probably would work again cwtch too at least if it was trained for that,  
> > since while users might be connected to a server outside the attacker's  
> > region of control, but the data flows would correlate since the cwtch  
> > server is also just relaying data.
> > 
> > Should all of these apps be using obs4 with IAT mode on? (The mitigation  
> > recommended by the paper?)
> > 
> > How meaningful is Tor's metadata protection for an app like Quiet, Briar,  
> > or OnionShare given this attack, assuming most users are communicating with  
> > others within a country that can mount such an attack?
> > 
> > On Tue, Feb 28, 2023, 8:23 AM Guard via tor-dev \< \> tor-dev@lists.torproject.org\> wrote:
> > 
> > \> Hi,  
> > \>  
> > \> I was just reading a paper on traffic confirmation attacks over here  
> > \> [https://arxiv.org/pdf/1808.07285v1.pdf](https://arxiv.org/pdf/1808.07285v1.pdf). This attack runs with the help of  
> > \> deep learning algorithm called DeepCorr. This attack can be run in a Five  
> > \> Eyes country or an authoritarian regime like Russia where companies are  
> > \> compelled to cooperate with the government making this attack plausible.  
> > \> The ISP and the website operators are the two endpoints for this attack.  
> > \> This attack was able to achieve a success rate of over 96% which  
> > \> represents a serious threat to Tor users in these regions. The paper also  
> > \> includes some countermeasures on how to defeat this method of traffic  
> > \> confirmation.  
> > \>  
> > \> Thanks.  
> > \>  
> > \> \_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_  
> > \> tor-dev mailing list  
> > \> tor-dev@lists.torproject.org  
> > \> [tor-dev Info Page](https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-dev)  
> > \>
> 
> > \_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_  
> > tor-dev mailing list  
> > tor-dev@lists.torproject.org  
> > [tor-dev Info Page](https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-dev)
> 
> \_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_  
> tor-dev mailing list  
> tor-dev@lists.torproject.org  
> [https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-dev](https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-dev)
