2024-05-10 23:18:36 -04:00
|
|
|
## Copyright (C) 2012 - 2024 ENCRYPTED SUPPORT LP <adrelanos@whonix.org>
|
2020-01-24 04:30:36 -05:00
|
|
|
## See the file COPYING for copying conditions.
|
|
|
|
|
2024-07-11 12:28:48 -04:00
|
|
|
## See the following links for a community discussion and overview regarding the selections.
|
2022-07-12 02:58:16 -04:00
|
|
|
## https://forums.whonix.org/t/blacklist-more-kernel-modules-to-reduce-attack-surface/7989
|
|
|
|
## https://madaidans-insecurities.github.io/guides/linux-hardening.html#kasr-kernel-modules
|
2022-07-07 13:04:37 -04:00
|
|
|
|
2024-07-11 12:28:48 -04:00
|
|
|
## Blacklisting prevents kernel modules from automatically starting.
|
|
|
|
## Disabling prohibits kernel modules from starting.
|
|
|
|
|
|
|
|
## Bluetooth:
|
|
|
|
## Disable Bluetooth to reduce attack surface due to extended history of security vulnerabilities.
|
2024-07-13 09:29:52 -04:00
|
|
|
##
|
2022-07-12 02:58:16 -04:00
|
|
|
## https://en.wikipedia.org/wiki/Bluetooth#History_of_security_concerns
|
2024-07-13 09:29:52 -04:00
|
|
|
##
|
2024-07-11 12:28:48 -04:00
|
|
|
## Now replaced by a privacy and security preserving default Bluetooth configuration for better usability.
|
2024-07-13 09:29:52 -04:00
|
|
|
##
|
2024-07-11 12:28:48 -04:00
|
|
|
#install bluetooth /usr/bin/disabled-bluetooth-by-security-misc
|
2024-07-15 06:47:07 -04:00
|
|
|
#install bluetooth_6lowpan /usr/bin/disabled-bluetooth-by-security-misc
|
|
|
|
#install bt3c_cs /usr/bin/disabled-bluetooth-by-security-misc
|
|
|
|
#install btbcm /usr/bin/disabled-bluetooth-by-security-misc
|
|
|
|
#install btintel /usr/bin/disabled-bluetooth-by-security-misc
|
|
|
|
#install btmrvl /usr/bin/disabled-bluetooth-by-security-misc
|
|
|
|
#install btmrvl_sdio /usr/bin/disabled-bluetooth-by-security-misc
|
|
|
|
#install btmtk /usr/bin/disabled-bluetooth-by-security-misc
|
|
|
|
#install btmtksdio /usr/bin/disabled-bluetooth-by-security-misc
|
|
|
|
#install btmtkuart /usr/bin/disabled-bluetooth-by-security-misc
|
|
|
|
#install btnxpuart /usr/bin/disabled-bluetooth-by-security-misc
|
|
|
|
#install btqca /usr/bin/disabled-bluetooth-by-security-misc
|
|
|
|
#install btrsi /usr/bin/disabled-bluetooth-by-security-misc
|
|
|
|
#install btrtl /usr/bin/disabled-bluetooth-by-security-misc
|
|
|
|
#install btsdio /usr/bin/disabled-bluetooth-by-security-misc
|
2024-07-11 12:28:48 -04:00
|
|
|
#install btusb /usr/bin/disabled-bluetooth-by-security-misc
|
2024-07-15 06:47:07 -04:00
|
|
|
#install virtio_bt /usr/bin/disabled-bluetooth-by-security-misc
|
2020-01-24 04:30:36 -05:00
|
|
|
|
2024-07-11 12:28:48 -04:00
|
|
|
## CPU Model-Specific Registers (MSRs):
|
|
|
|
## Disable CPU MSRs as they can be abused to write to arbitrary memory.
|
2024-07-13 09:29:52 -04:00
|
|
|
##
|
2024-07-11 12:28:48 -04:00
|
|
|
## https://security.stackexchange.com/questions/119712/methods-root-can-use-to-elevate-itself-to-kernel-mode
|
|
|
|
## https://github.com/Kicksecure/security-misc/issues/215
|
2024-07-13 09:29:52 -04:00
|
|
|
##
|
2024-07-15 07:08:45 -04:00
|
|
|
#install msr /usr/bin/disabled-miscellaneous-by-security-misc
|
2024-07-11 12:28:48 -04:00
|
|
|
|
2024-07-12 02:21:41 -04:00
|
|
|
## File Systems:
|
|
|
|
## Disable uncommon file systems to reduce attack surface.
|
2024-07-15 06:47:56 -04:00
|
|
|
## HFS and HFS+ are legacy Apple file systems that may be required depending on the EFI partition format.
|
2024-07-13 09:29:52 -04:00
|
|
|
##
|
2024-07-12 02:21:41 -04:00
|
|
|
install cramfs /usr/bin/disabled-filesys-by-security-misc
|
|
|
|
install freevxfs /usr/bin/disabled-filesys-by-security-misc
|
|
|
|
install hfs /usr/bin/disabled-filesys-by-security-misc
|
|
|
|
install hfsplus /usr/bin/disabled-filesys-by-security-misc
|
|
|
|
install jffs2 /usr/bin/disabled-filesys-by-security-misc
|
2024-07-15 06:47:56 -04:00
|
|
|
install jfs /usr/bin/disabled-filesys-by-security-misc
|
|
|
|
install reiserfs /usr/bin/disabled-filesys-by-security-misc
|
2024-07-12 02:21:41 -04:00
|
|
|
install udf /usr/bin/disabled-filesys-by-security-misc
|
|
|
|
|
2024-07-11 12:28:48 -04:00
|
|
|
## FireWire (IEEE 1394):
|
|
|
|
## Disable IEEE 1394 (FireWire/i.LINK/Lynx) modules to prevent some DMA attacks.
|
2024-07-13 09:29:52 -04:00
|
|
|
##
|
2024-07-11 12:28:48 -04:00
|
|
|
## https://en.wikipedia.org/wiki/IEEE_1394#Security_issues
|
2024-07-13 09:29:52 -04:00
|
|
|
##
|
2024-07-11 12:29:36 -04:00
|
|
|
install dv1394 /usr/bin/disabled-firewire-by-security-misc
|
2024-01-17 13:39:56 -05:00
|
|
|
install firewire-core /usr/bin/disabled-firewire-by-security-misc
|
|
|
|
install firewire-ohci /usr/bin/disabled-firewire-by-security-misc
|
2024-07-11 12:29:36 -04:00
|
|
|
install firewire-net /usr/bin/disabled-firewire-by-security-misc
|
2024-01-17 13:39:56 -05:00
|
|
|
install firewire-sbp2 /usr/bin/disabled-firewire-by-security-misc
|
|
|
|
install ohci1394 /usr/bin/disabled-firewire-by-security-misc
|
|
|
|
install raw1394 /usr/bin/disabled-firewire-by-security-misc
|
2024-07-11 12:29:36 -04:00
|
|
|
install sbp2 /usr/bin/disabled-firewire-by-security-misc
|
2024-01-17 13:39:56 -05:00
|
|
|
install video1394 /usr/bin/disabled-firewire-by-security-misc
|
2020-01-24 04:30:36 -05:00
|
|
|
|
2024-07-12 02:21:41 -04:00
|
|
|
## Global Positioning Systems (GPS):
|
2024-07-11 12:28:48 -04:00
|
|
|
## Disable GPS-related modules like GNSS (Global Navigation Satellite System).
|
2024-07-13 09:29:52 -04:00
|
|
|
##
|
2024-07-15 06:53:07 -04:00
|
|
|
install garmin_gps /usr/bin/disabled-gps-by-security-misc
|
2024-07-11 12:28:48 -04:00
|
|
|
install gnss /usr/bin/disabled-gps-by-security-misc
|
|
|
|
install gnss-mtk /usr/bin/disabled-gps-by-security-misc
|
|
|
|
install gnss-serial /usr/bin/disabled-gps-by-security-misc
|
|
|
|
install gnss-sirf /usr/bin/disabled-gps-by-security-misc
|
|
|
|
install gnss-ubx /usr/bin/disabled-gps-by-security-misc
|
2024-07-11 12:29:36 -04:00
|
|
|
install gnss-usb /usr/bin/disabled-gps-by-security-misc
|
2024-07-11 12:28:48 -04:00
|
|
|
|
|
|
|
## Intel Management Engine (ME):
|
|
|
|
## Partially disable the Intel ME interface with the OS.
|
2024-07-13 09:29:52 -04:00
|
|
|
##
|
2024-07-11 12:28:48 -04:00
|
|
|
## https://www.kernel.org/doc/html/latest/driver-api/mei/mei.html
|
2024-07-13 09:29:52 -04:00
|
|
|
##
|
2024-07-11 12:28:48 -04:00
|
|
|
install mei /usr/bin/disabled-intelme-by-security-misc
|
|
|
|
install mei-me /usr/bin/disabled-intelme-by-security-misc
|
2020-01-24 04:30:36 -05:00
|
|
|
|
2024-07-11 12:28:48 -04:00
|
|
|
## Network File Systems:
|
|
|
|
## Disable uncommon network file systems to reduce attack surface.
|
2024-07-13 09:29:52 -04:00
|
|
|
##
|
2024-07-11 12:29:36 -04:00
|
|
|
install gfs2 /usr/bin/disabled-netfilesys-by-security-misc
|
|
|
|
install ksmbd /usr/bin/disabled-netfilesys-by-security-misc
|
2024-07-15 06:54:18 -04:00
|
|
|
##
|
|
|
|
## Common Internet File System (CIFS):
|
|
|
|
##
|
|
|
|
install cifs /usr/bin/disabled-netfilesys-by-security-misc
|
|
|
|
install cifs_arc4 /usr/bin/disabled-netfilesys-by-security-misc
|
|
|
|
install cifs_md4 /usr/bin/disabled-netfilesys-by-security-misc
|
|
|
|
##
|
|
|
|
## Network File System (NFS):
|
|
|
|
##
|
2024-07-11 12:28:48 -04:00
|
|
|
install nfs /usr/bin/disabled-netfilesys-by-security-misc
|
2024-07-15 06:54:18 -04:00
|
|
|
install nfs_acl /usr/bin/disabled-netfilesys-by-security-misc
|
|
|
|
install nfs_layout_nfsv41_files /usr/bin/disabled-netfilesys-by-security-misc
|
|
|
|
install nfs_layout_flexfiles /usr/bin/disabled-netfilesys-by-security-misc
|
|
|
|
install nfsd /usr/bin/disabled-netfilesys-by-security-misc
|
|
|
|
install nfsv2 /usr/bin/disabled-netfilesys-by-security-misc
|
2024-07-11 12:28:48 -04:00
|
|
|
install nfsv3 /usr/bin/disabled-netfilesys-by-security-misc
|
|
|
|
install nfsv4 /usr/bin/disabled-netfilesys-by-security-misc
|
|
|
|
|
|
|
|
## Network Protocols:
|
|
|
|
## Disables rare and unneeded network protocols that are a common source of unknown vulnerabilities.
|
2024-07-13 09:29:52 -04:00
|
|
|
##
|
2024-07-11 12:28:48 -04:00
|
|
|
## https://tails.boum.org/blueprint/blacklist_modules/
|
2024-07-15 06:56:12 -04:00
|
|
|
## https://fedoraproject.org/wiki/Security_Features_Matrix#Blacklist_Rare_Protocols
|
2024-07-11 12:28:48 -04:00
|
|
|
## https://git.launchpad.net/ubuntu/+source/kmod/tree/debian/modprobe.d/blacklist-rare-network.conf?h=ubuntu/disco
|
2024-07-13 09:29:52 -04:00
|
|
|
##
|
2024-07-11 12:29:36 -04:00
|
|
|
install af_802154 /usr/bin/disabled-network-by-security-misc
|
|
|
|
install appletalk /usr/bin/disabled-network-by-security-misc
|
2024-01-17 13:39:56 -05:00
|
|
|
install ax25 /usr/bin/disabled-network-by-security-misc
|
2024-07-15 12:29:52 -04:00
|
|
|
#install brcm80211 /usr/bin/disabled-network-by-security-misc
|
2024-01-17 13:39:56 -05:00
|
|
|
install decnet /usr/bin/disabled-network-by-security-misc
|
2024-07-11 12:29:36 -04:00
|
|
|
install dccp /usr/bin/disabled-network-by-security-misc
|
2024-01-17 13:39:56 -05:00
|
|
|
install econet /usr/bin/disabled-network-by-security-misc
|
2024-07-15 12:29:52 -04:00
|
|
|
#install eepro100 /usr/bin/disabled-network-by-security-misc
|
|
|
|
#install eth1394 /usr/bin/disabled-network-by-security-misc
|
2024-01-17 13:39:56 -05:00
|
|
|
install ipx /usr/bin/disabled-network-by-security-misc
|
2024-07-11 12:29:36 -04:00
|
|
|
install n-hdlc /usr/bin/disabled-network-by-security-misc
|
|
|
|
install netrom /usr/bin/disabled-network-by-security-misc
|
2024-01-17 13:39:56 -05:00
|
|
|
install p8022 /usr/bin/disabled-network-by-security-misc
|
2024-07-11 12:29:36 -04:00
|
|
|
install p8023 /usr/bin/disabled-network-by-security-misc
|
|
|
|
install psnap /usr/bin/disabled-network-by-security-misc
|
|
|
|
install rose /usr/bin/disabled-network-by-security-misc
|
|
|
|
install x25 /usr/bin/disabled-network-by-security-misc
|
2024-07-15 06:56:12 -04:00
|
|
|
##
|
|
|
|
## Asynchronous Transfer Mode (ATM):
|
|
|
|
##
|
|
|
|
install atm /usr/bin/disabled-network-by-security-misc
|
2024-07-15 12:29:52 -04:00
|
|
|
#install ueagle-atm /usr/bin/disabled-network-by-security-misc
|
|
|
|
#install usbatm /usr/bin/disabled-network-by-security-misc
|
|
|
|
#install xusbatm /usr/bin/disabled-network-by-security-misc
|
2024-07-15 06:56:12 -04:00
|
|
|
##
|
|
|
|
## Controller Area Network (CAN) Protocol:
|
|
|
|
##
|
|
|
|
install c_can /usr/bin/disabled-network-by-security-misc
|
|
|
|
install c_can_pci /usr/bin/disabled-network-by-security-misc
|
|
|
|
install c_can_platform /usr/bin/disabled-network-by-security-misc
|
|
|
|
install can /usr/bin/disabled-network-by-security-misc
|
|
|
|
install can-bcm /usr/bin/disabled-network-by-security-misc
|
|
|
|
install can-dev /usr/bin/disabled-network-by-security-misc
|
|
|
|
install can-gw /usr/bin/disabled-network-by-security-misc
|
|
|
|
install can-isotp /usr/bin/disabled-network-by-security-misc
|
|
|
|
install can-raw /usr/bin/disabled-network-by-security-misc
|
|
|
|
install can-j1939 /usr/bin/disabled-network-by-security-misc
|
|
|
|
install can327 /usr/bin/disabled-network-by-security-misc
|
|
|
|
install ifi_canfd /usr/bin/disabled-network-by-security-misc
|
|
|
|
install janz-ican3 /usr/bin/disabled-network-by-security-misc
|
|
|
|
install m_can /usr/bin/disabled-network-by-security-misc
|
|
|
|
install m_can_pci /usr/bin/disabled-network-by-security-misc
|
|
|
|
install m_can_platform /usr/bin/disabled-network-by-security-misc
|
|
|
|
install phy-can-transceiver /usr/bin/disabled-network-by-security-misc
|
|
|
|
install slcan /usr/bin/disabled-network-by-security-misc
|
|
|
|
install ucan /usr/bin/disabled-network-by-security-misc
|
|
|
|
install vxcan /usr/bin/disabled-network-by-security-misc
|
|
|
|
install vcan /usr/bin/disabled-network-by-security-misc
|
|
|
|
##
|
|
|
|
## Transparent Inter Process Communication (TIPC):
|
|
|
|
##
|
|
|
|
install tipc /usr/bin/disabled-network-by-security-misc
|
|
|
|
install tipc_diag /usr/bin/disabled-network-by-security-misc
|
|
|
|
##
|
|
|
|
## Reliable Datagram Sockets (RDS):
|
|
|
|
##
|
|
|
|
install rds /usr/bin/disabled-network-by-security-misc
|
|
|
|
install rds_rdma /usr/bin/disabled-network-by-security-misc
|
|
|
|
install rds_tcp /usr/bin/disabled-network-by-security-misc
|
|
|
|
##
|
|
|
|
## Stream Control Transmission Protocol (SCTP):
|
|
|
|
##
|
|
|
|
install sctp /usr/bin/disabled-network-by-security-misc
|
|
|
|
install sctp_diag /usr/bin/disabled-network-by-security-misc
|
2020-09-19 15:46:19 -04:00
|
|
|
|
2024-07-11 12:28:48 -04:00
|
|
|
## Miscellaneous:
|
2024-07-13 09:29:52 -04:00
|
|
|
##
|
2024-07-15 07:01:36 -04:00
|
|
|
## Amateur Radios:
|
|
|
|
##
|
2024-07-15 07:18:32 -04:00
|
|
|
install hamradio /usr/bin/disabled-miscellaneous-by-security-misc
|
2024-07-15 07:01:36 -04:00
|
|
|
##
|
|
|
|
## Floppy Disks:
|
|
|
|
##
|
2024-07-15 07:18:32 -04:00
|
|
|
install floppy /usr/bin/disabled-miscellaneous-by-security-misc
|
2024-07-15 07:01:36 -04:00
|
|
|
##
|
2024-07-11 12:28:48 -04:00
|
|
|
## Vivid:
|
|
|
|
## Disables the vivid kernel module since it has been the cause of multiple vulnerabilities.
|
2024-07-13 09:29:52 -04:00
|
|
|
##
|
2022-07-12 02:58:16 -04:00
|
|
|
## https://forums.whonix.org/t/kernel-recompilation-for-better-hardening/7598/233
|
|
|
|
## https://www.openwall.com/lists/oss-security/2019/11/02/1
|
|
|
|
## https://github.com/a13xp0p0v/kconfig-hardened-check/commit/981bd163fa19fccbc5ce5d4182e639d67e484475
|
2024-07-13 09:29:52 -04:00
|
|
|
##
|
2024-07-15 07:08:45 -04:00
|
|
|
install vivid /usr/bin/disabled-miscellaneous-by-security-misc
|
2022-07-07 05:26:55 -04:00
|
|
|
|
2024-07-11 12:28:48 -04:00
|
|
|
## Thunderbolt:
|
|
|
|
## Disables Thunderbolt modules to prevent some DMA attacks.
|
2024-07-13 09:29:52 -04:00
|
|
|
##
|
2024-07-11 12:28:48 -04:00
|
|
|
## https://en.wikipedia.org/wiki/Thunderbolt_(interface)#Security_vulnerabilities
|
2024-07-13 09:29:52 -04:00
|
|
|
##
|
2024-07-15 06:57:14 -04:00
|
|
|
install intel-wmi-thunderbolt /usr/bin/disabled-thunderbolt-by-security-misc
|
2024-07-11 12:28:48 -04:00
|
|
|
install thunderbolt /usr/bin/disabled-thunderbolt-by-security-misc
|
2024-07-15 06:57:14 -04:00
|
|
|
install thunderbolt_net /usr/bin/disabled-thunderbolt-by-security-misc
|