commonshost / dohnut

🍩 DNS to DNS-over-HTTPS (DoH) proxy server
https://help.commons.host/dohnut/
85 stars 6 forks source link

Consider padding to preserve traffic flow confidentiality #18

Open sebdeckers opened 5 years ago

sebdeckers commented 5 years ago

Defense against network traffic analysis attacks.

HTTP/2

EDNS0

Padding for the DNS query.

sebdeckers commented 5 years ago

COSIC CRYPTOGRAPHY BLOG, COUNTERMEASURES: PADDING

We also simulate constant padding, i.e., all TLS record packets are padded to have the size of the maximum TLS record observed in the dataset. This padding strategy, as shown on the table of Figure 7, defeats the classifier by reducing its success rate to less than 7%.

sebdeckers commented 5 years ago

https://github.com/nodejs/node/blob/5207dec0175de92116262e8382d6ac57def3a203/src/node_http2.cc#L802-L852

Padding strategy ideas: