feat: Disable initramfs debug shell #1169
Merged
RoyalOughtness merged 8 commits intosecureblue:livefrom Jul 9, 2025
furuycom:kargs-disable-initramfs-shell
Merged
feat: Disable initramfs debug shell #1169RoyalOughtness merged 8 commits intosecureblue:livefrom furuycom:kargs-disable-initramfs-shell
RoyalOughtness merged 8 commits intosecureblue:livefrom
furuycom:kargs-disable-initramfs-shell
Conversation
HastD
reviewed
Jul 7, 2025
furuycom
commented
Jul 7, 2025
Contributor
Author
furuycom
left a comment
There was a problem hiding this comment.
Sorted now, sorry
HastD
approved these changes
Jul 7, 2025
RoyalOughtness
approved these changes
Jul 7, 2025
RoyalOughtness
requested changes
Jul 7, 2025
Collaborator
RoyalOughtness
left a comment
There was a problem hiding this comment.
Needs to be added to remove-kargs-hardening as well
HastD
approved these changes
Jul 7, 2025
RoyalOughtness
approved these changes
Jul 8, 2025
RoyalOughtness
pushed a commit
to RoyalOughtness/secureblue-dev
that referenced
this pull request
Aug 4, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Adds two kernel arguments to block access to the debug shell during early boot:
rd.shell=0rd.emergency=haltThese help prevent physical attacks where someone could drop into a debug shell and modify initramfs to run malicious code.
https://insinuator.net/2025/07/insecure-boot-injecting-initramfs-from-a-debug-shell/
https://www.omgubuntu.co.uk/2025/07/ubuntu-security-initramfs-bypass-encryption