Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Blacklist more kernel modules #109

Merged
merged 6 commits into from
Jul 7, 2022
Merged

Blacklist more kernel modules #109

merged 6 commits into from
Jul 7, 2022

Conversation

raja-grewal
Copy link
Contributor

Further increased quantity and type of modules blacklisted. The majority are unlikely to be used by the typical user and in cumulative represent a large attack surface reduction especially against more legacy approaches.

Open to feedback.

In summary:

  • Increased protections against DMA attacks using more obscure firewire modules,
  • Disabled more uncommon file systems that should not conflict with whonix requirements,
  • Disabled a variety of uncommon network file systems,
  • Disabled use of CD-ROM by default as the technology seems to be all but disappearing, and
  • Intel CPUs might glow less brightly in the dark with some ME blocking (https://www.kernel.org/doc/html/latest/driver-api/mei/mei.html).

https://madaidans-insecurities.github.io/guides/linux-hardening.html#kasr-kernel-modules
https://forums.whonix.org/t/blacklist-more-kernel-modules-to-reduce-attack-surface/7989
https://security.stackexchange.com/questions/4098/how-to-disable-firewire-in-openbsd-linux-to-prevent-attacks-through-firewire
https://linux-audit.com/kernel-hardening-disable-and-blacklist-linux-modules/

Finally, the use of /bin/false should perhaps be replaced with /bin/true.

This does not appear to impact whonix users but users from other distributions could benefit from this increased compatibility by avoiding log errors when using this code.

ComplianceAsCode/content#539

@adrelanos
Copy link
Member

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants