



Time Attacks [ edit ]

Insecure time synchronization and the leaking of time data exposes the user to a subset of advanced deanonymization attacks. The attack vectors and possible mitigations are described below.

Attack Vectors [ edit ]

Table: Time Attack Vectors

Attack Vector Description Application-level Traffic Unlike privacy software developed by The Tor Project, Internet-facing applications can leak clock information in their traffic; for example, JavaScript in browsers and timestamps in emails. Denial of Service The UDP-based NTP protocol can be abused to cause much larger replies than normal, causing systems to be overwhelmed. These are known as amplification attacks. [1] Locating Onion Services Timers can leak CPU data. Under some circumstances, related activity data can lead to deanonymization of an onion service: [2] Remote Code Execution NTP is a buggy and ancient protocol. Flaws in NTP clients can be remotely exploited to allow an adversary control over the system. The unencrypted and unauthenticated nature of NTP makes this attack trivial for network adversaries of any size. [3] [4] Remote Device Fingerprinting Clock leaks arising from either software on the host or application-level protocols on Whonix-Workstation ™ ( anon-whonix ) allow a passive adversary to easily link anonymous and non-anonymous traffic to the same machine. Active clock skew attacks can be trivially mounted to deanonymize users. [5] Replay Attacks Replaying an older time allows an adversary to: [6] Feed an old Tor consensus. [7]

Provide updates and (https) certificates which are old, outdated, or have known vulnerabilities.

Clock Leak Vectors [ edit ]

Certain protocol properties leak clock information.

Table: Clock Leak Vectors [8]

Leak Vector Description ICMP Timestamps Leak host time in query replies. [9] NTP Clients Leak host time [10] and expose the system to every attack outlined above. TCP Initial Sequence Numbers (ISNs) Even when timers do not fully leak the host's clock, they can allow side-channel attacks because sensitive information about a system's CPU activity is leaked. [11] This information is leaked in any traffic sent over clearnet. It can therefore be linked to maliciously induced load patterns on an onion site, resulting in deanonymization. [12] TCP Timestamps Included in every TCP packet, these leak system information down to the millisecond, as well as system uptime. They also permit fingerprinting of devices behind a router. [13]

Mitigations [ edit ]

It is practically possible to block all of the clock leak vectors in the preceding section. Users running onion services or those who require very high-level security are strongly recommended to apply the measures below.

GNU/Linux Host [ edit ]

1. Uninstall any NTP clients and disable systemd's timdatectl NTP synchronization feature. [14] sudo timedatectl set-ntp 0 sudo timedatectl set-ntp 0 or sudo systemctl disable systemd-timesyncd.service sudo systemctl disable systemd-timesyncd.service 2. Disable TCP timestamps via kernel sysctl. This boolean disables both IPv4 and IPv6 TCP timestamps since they are controlled by the same sysctl option. The following line must be added to /etc/sysctl.conf or /etc/sysctl.d/tcp_timestamps.conf net.ipv4.tcp_timestamps = 0 net.ipv4.tcp_timestamps = 0 To make this change, run. echo "net.ipv4.tcp_timestamps = 0" | sudo tee /etc/sysctl.d/tcp_timestamps.conf echo "net.ipv4.tcp_timestamps = 0" | sudo tee /etc/sysctl.d/tcp_timestamps.conf To apply the sysctl settings without rebooting, run. sysctl -p sysctl -p Check the setting was applied correctly. sysctl -a | grep net.ipv4.tcp_timestamps sysctl -a | grep net.ipv4.tcp_timestamps 3. Block incoming ICMP messages and any other incoming traffic with iptables or any of its frontends, such as ufw. [15] sudo apt-get install ufw sudo apt-get install ufw sudo ufw enable sudo ufw enable sudo ufw default deny incoming sudo ufw default deny incoming To check the status of ufw, run. sudo ufw status sudo ufw status 4. TCP Initial Sequence Numbers mitigation. An artificially induced CPU-load temperature influences the timer crystal and skews its frequency. TCP ISNs are a permanent feature and are necessary from a security standpoint to prevent arbitrary TCP connection hijacking by non-global network adversaries. [16] See the following reference about removing the timer output function from Linux's TCP ISN code. [17] TCP ISN CPU Information Leak Protection - tirdad [archive] 5. Application-level mitigation. For application-level leak mitigation, avoid sending any clearnet traffic. Without clock information leaking from the host, network adversaries do not have non-anonymous timestamp sources to match this data with, even if software on Whonix-Workstation ™ ( anon-whonix ) misbehaves.

Whonix ™ Solutions and Limitations [ edit ]

Whonix ™ has implemented sdwdate as a secure time synchronization mechanism to replace NTP. [18] sdwdate-gui [19] is the GUI front-end. sdwdate was written with safety in mind and to avoid the many security pitfalls in NTP. Furthermore, NTP is UDP-based and cannot work over Tor, and onion services must have an accurate clock to be reachable.

sdwdate fetches its time exclusively from reputable sources -- whistle-blowing and privacy-friendly onion sites -- that are very likely to be hosted on different hardware. sdwdate also benefits from the security of Tor's end-to-end encryption.

sdwdate can only protect against passive timestamp linkage of data leaking from both the host and Whonix-Workstation ™ ( anon-whonix ). It cannot defend against a skilled adversary that is able to compromise Whonix-Workstation ™ ( anon-whonix ). Via a clock correlation attack, the adversary would discover the host clock when the VM is rebooted, and then link the time readings with any host clock leaks. The only way to prevent this and similar attacks is to stop the leaks in the first place.

In the unlikely event that sdwdate fails to properly randomize the system clock, it is possible to manually set a random value, see: Manual Boot Clock Randomization.

TCP ISN CPU Information Leak Protection using tirdad [archive][20]. --> https://forums.whonix.org/t/tcp-isn-cpu-information-leak-protection-tirdad/8552 [archive]

See Also [ edit ]



Jobs in USA

Search engines: YaCy | Qwant | ecosia | MetaGer | peekier | Whonix ™ Wiki

Follow:

Donate:

Share: Twitter | Facebook

Please consider a recurring donation [archive]!

This is a wiki. Want to improve this page? Help is welcome and volunteer contributions are happily considered! Read, understand and agree to Conditions for Contributions to Whonix ™, then Edit! Edits are held for moderation. Policy of Whonix Website and Whonix Chat and Policy On Nonfreedom Software applies.

Copyright (C) 2012 - 2020 ENCRYPTED SUPPORT LP. Whonix ™ is a trademark. Whonix ™ is a licensee [archive] of the Open Invention Network [archive]. Unless otherwise noted, the content of this page is copyrighted and licensed under the same Freedom Software license as Whonix ™ itself. (Why?)

Whonix ™ is a derivative of and not affiliated with Debian [archive]. Debian is a registered trademark [archive] owned by Software in the Public Interest, Inc [archive].

Whonix ™ is produced independently from the Tor® [archive] anonymity software and carries no guarantee from The Tor Project [archive] about quality, suitability or anything else.