Device Tracking via Linux's New TCP Source Port Selection Algorithm
Moshe Kol, Amit Klein, Yossi Gilad
摘要
We describe a tracking technique for Linux devices, exploiting a new TCP source port generation mechanism recently introduced to the Linux kernel. This mechanism is based on an algorithm, standardized in RFC 6056, for boosting security by better randomizing port selection. Our technique detects collisions in a hash function used in the said algorithm, based on sampling TCP source ports generated in an attacker-prescribed manner. These hash collisions depend solely on a per-device key, and thus the set of collisions forms a device ID that allows tracking devices across browsers, browser privacy modes, containers, and IPv4/IPv6 networks (including some VPNs). It can distinguish among devices with identical hardware and software, and lasts until the device restarts. We implemented this technique and then tested it using tracking servers in two different locations and with Linux devices on various networks. We also tested it on an Android device that we patched to introduce the new port selection algorithm. The tracking technique works in real-life conditions, and we report detailed findings about it, including its dwell time, scalability, and success rate in different network types. We worked with the Linux kernel team to mitigate the exploit, resulting in a security patch introduced in May 2022 to the Linux kernel, and we provide recommendations for better securing the port selection algorithm in the paper.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 2 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- Tales of Favicons and Caches: Persistent Tracking in Modern Browsers 引用了 DNS Cache-Based User Tracking
- You Can Rand but You Can't Hide: A Holistic Security Analysis of Google Fuchsia's (and gVisor's) Network Stack 引用了 Flaw Label: Exploiting IPv6 Flow Label
- You Can Rand but You Can't Hide: A Holistic Security Analysis of Google Fuchsia's (and gVisor's) Network Stack 引用了 Cross Layer Attacks and How to Use Them (for DNS Cache Poisoning, Device Tracking and More)
- You Can Rand but You Can't Hide: A Holistic Security Analysis of Google Fuchsia's (and gVisor's) Network Stack 引用了 DNS Cache-Based User Tracking
- You Can Rand but You Can't Hide: A Holistic Security Analysis of Google Fuchsia's (and gVisor's) Network Stack 引用了 From IP ID to Device ID and KASLR Bypass
- Flaw Label: Exploiting IPv6 Flow Label 引用了 DNS Cache-Based User Tracking
- Flaw Label: Exploiting IPv6 Flow Label 引用了 From IP ID to Device ID and KASLR Bypass
- Cross Layer Attacks and How to Use Them (for DNS Cache Poisoning, Device Tracking and More) 引用了 Flaw Label: Exploiting IPv6 Flow Label
- Cross Layer Attacks and How to Use Them (for DNS Cache Poisoning, Device Tracking and More) 引用了 DNS Cache-Based User Tracking
- From IP ID to Device ID and KASLR Bypass 引用了 DNS Cache-Based User Tracking
引用它的顶会 Paper2
它引用的 Paper6
- DNS Cache-Based User TrackingAmit Klein, Benny PinkasNDSS 2019 · 34 次引用
- Cross Layer Attacks and How to Use Them (for DNS Cache Poisoning, Device Tracking and More)Amit KleinS&P 2021 · 26 次引用
- From IP ID to Device ID and KASLR BypassAmit Klein, Benny PinkasUSENIX Security 2019 · 25 次引用
- Flaw Label: Exploiting IPv6 Flow LabelJonathan Berger, Amit Klein, Benny PinkasS&P 2020 · 11 次引用
- Tales of Favicons and Caches: Persistent Tracking in Modern BrowsersKonstantinos Solomos, John Kristoff, Chris Kanich, Jason PolakisNDSS 2021
相关 Paper
- DRAWN APART: A Device Identification Technique based on Remote GPU FingerprintingTomer Laor, Naif Mehanna, Antonin Durey, Vitaly Dyadyuk 等NDSS 2022
- Off-Path TCP Exploits of the Mixed IPID AssignmentXuewei Feng, Chuanpu Fu, Qi Li, Kun Sun 等CCS 2020 · 39 次引用
- Off-Path TCP Exploits: Global Rate Limit Considered DangerousYue Cao, Zhiyun Qian, Zhongjie Wang, Tuan Dao 等USENIX Security 2016 · 74 次引用
- Breaking Kernel Address Space Layout Randomization with Intel TSXYeongjin Jang, Sangho Lee, Taesoo KimCCS 2016 · 174 次引用
- Clock Around the Clock: Time-Based Device FingerprintingIskander Sánchez-Rola, Igor Santos, Davide BalzarottiCCS 2018 · 91 次引用
