2018-01-29 10:22:05 -05:00
|
|
|
## Copyright (C) 2012 - 2018 ENCRYPTED SUPPORT LP <adrelanos@riseup.net>
|
2015-12-14 21:00:24 -05:00
|
|
|
## See the file COPYING for copying conditions.
|
|
|
|
|
|
|
|
Source: security-misc
|
|
|
|
Section: misc
|
|
|
|
Priority: optional
|
|
|
|
Maintainer: Patrick Schleizer <adrelanos@riseup.net>
|
2019-04-04 05:51:06 -04:00
|
|
|
Build-Depends: debhelper (>= 12), genmkfile
|
2015-12-14 21:00:24 -05:00
|
|
|
Homepage: https://github.com/Whonix/security-misc
|
|
|
|
Vcs-Browser: https://github.com/Whonix/security-misc
|
|
|
|
Vcs-Git: https://github.com/Whonix/security-misc.git
|
2019-04-04 05:51:06 -04:00
|
|
|
Standards-Version: 4.3.0
|
2015-12-14 21:00:24 -05:00
|
|
|
|
|
|
|
Package: security-misc
|
|
|
|
Architecture: all
|
2018-09-14 06:46:00 -04:00
|
|
|
Depends: python, libglib2.0-bin, ${misc:Depends}
|
2016-03-31 11:36:59 -04:00
|
|
|
Replaces: tcp-timestamps-disable
|
2015-12-14 21:00:24 -05:00
|
|
|
Description: enhances misc security settings
|
2016-03-31 11:53:40 -04:00
|
|
|
The following settings are changed:
|
|
|
|
.
|
|
|
|
deactivates previews in Dolphin;
|
|
|
|
deactivates previews in Nautilus;
|
2018-10-31 02:26:13 -04:00
|
|
|
deactivates thumbnails in Thunar;
|
2016-03-31 11:53:40 -04:00
|
|
|
deactivates TCP timestamps;
|
|
|
|
deactivates Netfilter's connection tracking helper;
|
2019-06-28 07:33:48 -04:00
|
|
|
implements some kernel hardening;
|
|
|
|
prevents DMA attacks;
|
2016-03-31 11:53:40 -04:00
|
|
|
.
|
2017-02-19 17:37:10 -05:00
|
|
|
TCP time stamps (RFC 1323) allow for tracking clock
|
2016-03-31 11:53:40 -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-01-15 08:11:38 -05:00
|
|
|
also allow one to look for clocks that match an expected value to find the
|
2016-03-31 11:53:40 -04:00
|
|
|
public IP used by a user.
|
|
|
|
.
|
|
|
|
Hence, this package disables this feature by shipping the
|
|
|
|
/etc/sysctl.d/tcp_timestamps.conf configuration file.
|
|
|
|
.
|
|
|
|
Note that TCP time stamps normally have some usefulness. They are
|
|
|
|
needed for:
|
|
|
|
.
|
|
|
|
* the TCP protection against wrapped sequence numbers; however, to
|
|
|
|
trigger a wrap, one needs to send roughly 2^32 packets in one
|
2017-02-19 17:37:10 -05:00
|
|
|
minute: as said in RFC 1700, "The current recommended default
|
2016-03-31 11:53:40 -04: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.
|
|
|
|
.
|
|
|
|
* "Round-Trip Time Measurement", which is only useful when the user
|
|
|
|
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-02-19 17:37:10 -05:00
|
|
|
the kernel. (!)
|
2016-03-31 11:53:40 -04:00
|
|
|
.
|
|
|
|
Hence, this package disables this feature by shipping the
|
2019-06-28 07:33:48 -04:00
|
|
|
/etc/modprobe.d/30_nf_conntrack_helper_disable.conf configuration file.
|
2019-06-23 15:47:05 -04:00
|
|
|
.
|
2019-06-23 15:26:03 -04:00
|
|
|
Kernel symbols in /proc/kallsyms are hidden to prevent malware from
|
|
|
|
reading them and using them to learn more about what to attack on your system.
|
2019-06-23 15:47:05 -04:00
|
|
|
.
|
2019-06-23 15:26:03 -04:00
|
|
|
Kexec is disabled as it can be used for live patching of the running kernel.
|
2019-06-23 15:47:05 -04:00
|
|
|
.
|
2019-06-23 15:26:03 -04:00
|
|
|
The BPF JIT compiler is restricted to the root user and is hardened.
|
2019-06-23 15:47:05 -04:00
|
|
|
.
|
2019-06-23 15:26:03 -04:00
|
|
|
ASLR effectiveness for mmap is increased.
|
2019-06-23 15:47:05 -04:00
|
|
|
.
|
2019-06-23 15:26:03 -04:00
|
|
|
The ptrace system call is restricted to the root user only.
|
2019-06-23 15:47:05 -04:00
|
|
|
.
|
2019-06-23 15:26:03 -04:00
|
|
|
The TCP/IP stack is hardened.
|
2019-06-23 15:47:05 -04:00
|
|
|
.
|
2019-06-23 15:26:03 -04:00
|
|
|
This package makes some data spoofing attacks harder.
|
2019-06-23 15:47:05 -04:00
|
|
|
.
|
2019-06-23 15:26:03 -04:00
|
|
|
SACK is disabled as it is commonly exploited and is rarely used.
|
2019-06-23 15:47:05 -04:00
|
|
|
.
|
2019-06-23 15:26:03 -04:00
|
|
|
This package disables the merging of slabs of similar sizes to prevent an
|
|
|
|
attacker from exploiting them.
|
2019-06-23 15:47:05 -04:00
|
|
|
.
|
2019-06-23 15:26:03 -04:00
|
|
|
Sanity checks, redzoning, and memory poisoning are enabled.
|
2019-06-23 15:47:05 -04:00
|
|
|
.
|
2019-06-23 15:26:03 -04:00
|
|
|
The kernel now panics on uncorrectable errors in ECC memory which could
|
|
|
|
be exploited.
|
2019-06-23 15:47:05 -04:00
|
|
|
.
|
2019-06-23 15:26:03 -04:00
|
|
|
Kernel Page Table Isolation is enabled to mitigate Meltdown and increase
|
|
|
|
KASLR effectiveness.
|
2019-06-23 15:47:05 -04:00
|
|
|
.
|
2019-06-23 15:26:03 -04:00
|
|
|
SMT is disabled as it can be used to exploit the MDS vulnerability.
|
2019-06-23 15:47:05 -04:00
|
|
|
.
|
2019-06-23 15:26:03 -04:00
|
|
|
All mitigations for the MDS vulnerability are enabled.
|
2019-06-23 15:47:05 -04:00
|
|
|
.
|
2019-06-23 15:26:03 -04:00
|
|
|
DCCP, SCTP, TIPC and RDS are blacklisted as they are rarely used and may have
|
|
|
|
unknown vulnerabilities.
|
2019-06-28 07:34:35 -04:00
|
|
|
.
|
2019-06-28 07:33:48 -04:00
|
|
|
The kernel logs are restricted to root only.
|
2019-06-28 07:34:35 -04:00
|
|
|
.
|
2019-06-29 06:34:48 -04:00
|
|
|
A systemd service clears System.map on boot as these contain kernel symbols
|
|
|
|
that could be useful to an attacker.
|
2019-06-28 07:34:35 -04:00
|
|
|
.
|
2019-06-28 07:33:48 -04:00
|
|
|
The SysRq key is restricted to only allow shutdowns/reboots.
|
2019-06-28 07:34:35 -04:00
|
|
|
.
|
2019-06-29 06:34:48 -04:00
|
|
|
The thunderbolt and firewire modules are blacklisted as they can be used for
|
|
|
|
DMA (Direct Memory Access) attacks.
|
2019-06-28 07:34:35 -04:00
|
|
|
.
|
2019-06-28 07:33:48 -04:00
|
|
|
IOMMU is enabled with a boot parameter to prevent DMA attacks.
|
2019-06-29 20:21:46 -04:00
|
|
|
.
|
|
|
|
Coredumps are disabled as they may contain important information such as encryption keys or passwords.
|