You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
criteria for kernel module blacklisting / disabling / Suggestions for kernel modules blacklisted in /etc/modprobe.d/30_security-misc.conf #224
install brcm80211 /bin/true # Very old Broadcom wireless driver
install cfg80211 /bin/true # Wireless API for a very old Broadcom device
install eepro100 /bin/true # Very old network driver
install eth1394 /bin/true # Very old network driver
install rtl8187 /bin/true # Realtek RTL8187 wireless LAN driver
Miscellaneous Drivers
install fddi /bin/true # Fiber Distributed Data Interface
install floppy /bin/true
install hamradio /bin/true # Amateur radio protocol
install ib_ipoib /bin/true # InfiniBand over IP
install joydev /bin/true # Joystick support
install lp /bin/true # Printer support for parallel port
install parport /bin/true # Parallel port support
install tr /bin/true # Token Ring protocol
install uvcvideo /bin/true # USB Video Class driver
Thanks for your replies. I edited the post as suggested by @souchikjoardar201.
You right @adrelanos some are extreme like certain ppp, exfat/ntfs if want to be compatible with windows environment etc. @raja-grewal I gonna try this on kicksecure KVM/Vbox.
I gonna make new post with results in a few days, you will see more clearly.
@MikeHorn-git I think the blacklist ones are extreme but as far as PPP and DVB/DVB-T and InfiniBand I'm not sure what issues these would cause if you disabled them.
What is the rational or reasoning behind those (PPP and DVB/DVB-T and InfiniBand) being disabled? Is there certain attacks that leverage those or is it just that they are oudated/old and and unused and could be used for attack surface?
Good question, the second option. Outdated/old and could be used for attack surface.
PPP seems to be the worst suggestion among others, you right about possible issues that would cause.
So I try these with a kicksecure virtualbox. No issues at the moment. What are the tests I could use for more results ?
But it seems now we're getting ahead / taking the lead / blacklisting / disabling everything and the kitchen sink without much rationale / error handling.
I would agree that some of the discussion has been based on research and other distributions. However, the majority of kernel modules actually disabled have been on the basis attack surface reduction by blocking "obscure/rare/uncommon/legacy" networking protocols and file systems".
changed the title [-]Suggestions for kernel modules blacklisted in /etc/modprobe.d/30_security-misc.conf[/-][+]criteria for kernel module blacklisting / disabling / Suggestions for kernel modules blacklisted in /etc/modprobe.d/30_security-misc.conf[/+]on Jul 17, 2024
It needs a rationale. If an incoming incoming network package can result in auto loading a kernel module (such as IRC), which may then be vulnerable, we have a good rationale to block loading it.
Need to consider the code flow. Can a non-root user make a kernel module load and would that widen the attack surface by loading a module which is most likely just legacy? Then we have another good rationale to block loading it.
Blocking obscure file systems is also good because if a device gets connected with a nowadays obscure / unexpected filesystem.
A good reason to block a kernel module is also if security researcher(s) make a good argument why that should be done.
However, common functionality should not be blocked.
Abundance of caution can't really be a suitable criteria because there a hundreds or thousands of kernel modules. That's too big in scope for a a security "miscellaneous" project. That would best maintained by a separate project.
Activity
raja-grewal commentedon May 27, 2024
Hello, thanks for your suggestions. Many of these seem certainly very actionable.
However. given the number of modules to be disabled, it may take some time to review.
Have you tested all these settings on Kicksecure yourself to ensure none of them cause any breakages for you?
Note: Some discussion may or may not occur on the Whonix forums.
adrelanos commentedon May 27, 2024
Some seem extreme with no clear rationale provided. Such as:
MikeHorn-git commentedon May 28, 2024
Thanks for your replies. I edited the post as suggested by @souchikjoardar201.
You right @adrelanos some are extreme like certain ppp, exfat/ntfs if want to be compatible with windows environment etc.
@raja-grewal I gonna try this on kicksecure KVM/Vbox.
I gonna make new post with results in a few days, you will see more clearly.
MikeHorn-git commentedon Jun 1, 2024
Good question, the second option. Outdated/old and could be used for attack surface.
PPP seems to be the worst suggestion among others, you right about possible issues that would cause.
So I try these with a kicksecure virtualbox. No issues at the moment. What are the tests I could use for more results ?
MikeHorn-git commentedon Jun 8, 2024
@EclipseBazooka
adrelanos commentedon Jul 15, 2024
#235 makes me question what the scope for kernel module blacklisting / disabling.
Some criteria is needed such as:
Please suggest criteria.
adrelanos commentedon Jul 15, 2024
Maybe good to reconsider the history of
/etc/modprobe.din security-misc. It was based on research / discussions / other distributions.But it seems now we're getting ahead / taking the lead / blacklisting / disabling everything and the kitchen sink without much rationale / error handling.
Will comment in #236 too.
raja-grewal commentedon Jul 16, 2024
I would agree that some of the discussion has been based on research and other distributions. However, the majority of kernel modules actually disabled have been on the basis attack surface reduction by blocking "obscure/rare/uncommon/legacy" networking protocols and file systems".
See e0aa676, a813e7d, 18d67db, 61ef9bd, ef1ef99, 06f13bb, and many more.
I strongly agree that we should develop some sort of criteria.
[-]Suggestions for kernel modules blacklisted in /etc/modprobe.d/30_security-misc.conf[/-][+]criteria for kernel module blacklisting / disabling / Suggestions for kernel modules blacklisted in /etc/modprobe.d/30_security-misc.conf[/+]adrelanos commentedon Jul 18, 2024
It needs a rationale. If an incoming incoming network package can result in auto loading a kernel module (such as IRC), which may then be vulnerable, we have a good rationale to block loading it.
Need to consider the code flow. Can a non-root user make a kernel module load and would that widen the attack surface by loading a module which is most likely just legacy? Then we have another good rationale to block loading it.
Blocking obscure file systems is also good because if a device gets connected with a nowadays obscure / unexpected filesystem.
A good reason to block a kernel module is also if security researcher(s) make a good argument why that should be done.
However, common functionality should not be blocked.
adrelanos commentedon Jul 26, 2024
As said in #239:
adrelanos commentedon Sep 14, 2024
Through issue:
I learned, the only thing we blacklisted was
snd_intel8x0.This had resulted in multiple kernel modules not loading.
So in theory, one could report a bug:
This would be technically correct.
But who has really the time to read through thousands of kernel modules and build a complete list? I don't think we have this capability.