security-misc/README.md

84 lines
2.9 KiB
Markdown
Raw Normal View History

2015-12-15 16:05:03 -05:00
# enhances misc security settings #
2016-11-21 12:42:55 -05:00
The following settings are changed:
deactivates previews in Dolphin;
deactivates previews in Nautilus;
deactivates TCP timestamps;
deactivates Netfilter's connection tracking helper;
2017-12-21 15:26:29 -05:00
TCP time stamps (RFC 1323) allow for tracking clock
2016-03-30 23:18:38 -04:00
information with millisecond resolution. This may or may not allow an
attacker to learn information about the system clock at such
a resolution, depending on various issues such as network lag.
This information is available to anyone who monitors the network
somewhere between the attacked system and the destination server.
It may allow an attacker to find out how long a given
system has been running, and to distinguish several
systems running behind NAT and using the same IP address. It might
2017-02-13 12:26:59 -05:00
also allow one to look for clocks that match an expected value to find the
2016-03-30 23:18:38 -04:00
public IP used by a user.
2016-11-21 12:42:55 -05:00
2016-03-30 23:18:38 -04:00
Hence, this package disables this feature by shipping the
/etc/sysctl.d/tcp_timestamps.conf configuration file.
2016-11-21 12:42:55 -05:00
2016-03-30 23:18:38 -04:00
Note that TCP time stamps normally have some usefulness. They are
needed for:
2016-11-21 12:42:55 -05:00
2016-03-30 23:18:38 -04:00
* the TCP protection against wrapped sequence numbers; however, to
2016-11-21 12:42:55 -05:00
trigger a wrap, one needs to send roughly 2^32 packets in one
2017-12-21 15:26:29 -05:00
minute: as said in RFC 1700, "The current recommended default
2016-11-21 12:42:55 -05:00
time to live (TTL) for the Internet Protocol (IP) [45,105] is 64".
So, this probably won't be a practical problem in the context
of Anonymity Distributions.
2016-03-30 23:18:38 -04:00
* "Round-Trip Time Measurement", which is only useful when the user
2016-11-21 12:42:55 -05:00
manages to saturate their connection. When using Anonymity Distributions,
probably the limiting factor for transmission speed is rarely the capacity
of the user connection.
Netfilter's connection tracking helper module increases kernel attack
surface by enabling superfluous functionality such as IRC parsing in
2017-12-21 15:26:29 -05:00
the kernel. (!)
2016-11-21 12:42:55 -05:00
2016-03-30 23:18:38 -04:00
Hence, this package disables this feature by shipping the
2017-12-21 15:26:29 -05:00
/etc/sysctl.d/nf_conntrack_helper.conf configuration file.
2018-08-20 17:18:37 -04:00
## How to install `security-misc` using apt-get ##
2015-12-14 21:00:24 -05:00
2018-08-20 17:18:37 -04:00
1\. Add [Whonix's Signing Key](https://www.whonix.org/wiki/Whonix_Signing_Key).
2015-12-14 21:00:24 -05:00
```
2018-08-20 17:18:37 -04:00
sudo apt-key --keyring /etc/apt/trusted.gpg.d/whonix.gpg adv --keyserver hkp://ipv4.pool.sks-keyservers.net:80 --recv-keys 916B8D99C38EAF5E8ADC7A2A8D66066A2EEACCDA
2015-12-14 21:00:24 -05:00
```
3\. Add Whonix's APT repository.
```
2018-08-20 17:18:37 -04:00
echo "deb http://deb.whonix.org stretch main" | sudo tee /etc/apt/sources.list.d/whonix.list
2015-12-14 21:00:24 -05:00
```
4\. Update your package lists.
```
sudo apt-get update
```
2018-08-20 17:18:37 -04:00
5\. Install `security-misc`.
2015-12-14 21:00:24 -05:00
```
2018-08-20 17:18:37 -04:00
sudo apt-get install security-misc
2015-12-14 21:00:24 -05:00
```
2018-08-20 17:18:37 -04:00
## How to Build deb Package ##
2015-12-14 21:00:24 -05:00
2018-08-20 17:18:37 -04:00
Replace `apparmor-profile-torbrowser` with the actual name of this package with `security-misc` and see [instructions](https://www.whonix.org/wiki/Dev/Build_Documentation/apparmor-profile-torbrowser).
2015-12-14 21:00:24 -05:00
## Contact ##
2018-08-20 17:18:37 -04:00
* [Free Forum Support](https://forums.whonix.org)
* [Professional Support](https://www.whonix.org/wiki/Professional_Support)
2015-12-14 21:00:24 -05:00
2018-08-20 17:18:37 -04:00
## Payments ##
2015-12-14 21:00:24 -05:00
2018-08-20 17:18:37 -04:00
`security-misc` requires [payments](https://www.whonix.org/wiki/Payments) to stay alive!