Advanced Deanonymization Attacks

From Whonix
Jump to navigation Jump to search

Overview of Advanced Deanonymization Attacks and their development status in Whonix.

Introduction[edit]

This page aims to track and document advanced attacks that also affect virtualized and anonymous systems like Whonix. The attacks discussed below tend to have a very high accuracy rate and can easily have devastating impacts on anonymity. The common thread among these attacks is the exploitation of underlying hardware design flaws to undermine isolation barriers imposed by the software stack operating above it. [1] Exploiting buggy software remains the lowest-hanging fruit for network adversaries. It is expected that they will further expand their toolbox and more regularly utilize these vectors, as the chances of discovery are minimal to none.

Attack Definitions[edit]

Table: Common Attack Vectors Causing Data Leakage

Attack Vector Description
Biometric Tracking Behavioral tracking (also called biometric tracking) relies on spying on how users interact with their devices, [2] rather than looking at the unique identifiers at the device, protocol, or application levels.
Local Covert Channels Local covert channelsarchive.org require collaboration between a malicious VM and an infected victim VM to leak confidential data.
Network Covert Channels Networkarchive.org covertarchive.org channelsarchive.org only require that a compromised VM induce identifiable changes in network traffic, which are immediately visible to adversaries surveilling the network.
Side Channels Side channel attacksarchive.org allow a malicious process to spy on events/data outside the VM.

Attack Methodology[edit]

Advanced Remote Deanonymization Methods[edit]

Table: Advanced Remote Deanonymization Methods

CPU-induced Network Latency [3] TCP ISNs and Temperature-induced Clock Skews [4] Keystroke Deanonymization Mouse Fingerprinting
Attack Class Covert Channel (network) Covert Channel (network) Behavioral Tracking Behavioral Tracking
Attack Summary CPU load induces noticeable latency in ICMP network packets. [5] CPU load skews the clock crystal frequency; these changes are detectable in the TCP ISN field. Timing of and between keystrokes creates a unique individual pattern. Timing of and between mouse movement speed/angles creates a unique individual pattern.
Mitigation Add random delays per ICMP packet with tc-netem or block the protocol on the host. No mitigation needed for Whonix because Tor is TCP-only. The attack doesn't work on TCP, and tc-netem causes visible latency for streams when traffic is induced, harming anonymity and performance. [6] Rewrite TCP ISNs to conceal timer skews. Abstract keyboard input into a network layer and inject random delays. [7] Abstract mouse input into a network layer and inject random delays. [7]
Whonix KVM Mitigation Unneeded [6] Production [8] Production [9] Production [9]
Whonix VirtualBox Mitigation Unneeded [6] Production [8] Production [9] Production [9]
Qubes-Whonix Mitigation Unneeded [6] No [10] No [10] No

Advanced Local Deanonymization Methods[edit]

Table: Advanced Local Deanonymization Methods

DRAMA Cross-CPU Attacks [11] Cross-VM CPU Cache Attacks [12] [13]
Attack Class Covert (local) and Side Channel Covert (local) and Side Channel
Attack Summary Timing of access to the shared memory bank permits data leaks, as well as snooping on keystrokes. Measurement of shared CPU cache access latency leaks timing data concerning cryptographic processes.
Mitigation Block clflush and tsc instructions, as well as remove all timers. Additionally, avoid multi-threading of VMs, or alternatively use non-interleaved NUMA with pinned vCPUs. Pin vCPUs to separate pCPUs. Proper mitigations are added by upstream cryptographic library projects when attacks are discovered.
Whonix KVM Mitigation No [14] Production
Whonix VirtualBox Mitigation No No
Qubes-Whonix Mitigation No No

Other Advanced Deanonymization Attacks[edit]

There are numerous other advanced attacks that have not been included in the above table. The reason is that they have easy fixes, such as avoiding some unsafe hypervisor features.

Other Deanonymization Vectors[edit]

High-risk users should familiarize themselves with other attack vectors that can lead to deanonymization or other harmful outcomes.

  • Time-related Attacks: These are in a class of their own. In simple terms, insecure time synchronization and the leaking of time data can result in deanonymization. Although documented separately, time attacks have some overlap with factors outlined here.
  • Tor Ecosystem Attacks: Advanced adversaries are capable of attacking the Tor client, server, and/or network (sometimes in combination) to identify users and/or servers in specific situations.

Development[edit]

Footnotes[edit]

We believe security software like Whonix needs to remain open source and independent. Would you help sustain and grow the project? Learn more about our 13 year success story and maybe DONATE!