Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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:
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