Skip to content

feat: Disable initramfs debug shell #1169

Merged
RoyalOughtness merged 8 commits intosecureblue:livefrom
furuycom:kargs-disable-initramfs-shell
Jul 9, 2025
Merged

feat: Disable initramfs debug shell #1169
RoyalOughtness merged 8 commits intosecureblue:livefrom
furuycom:kargs-disable-initramfs-shell

Conversation

@furuycom
Copy link
Copy Markdown
Contributor

@furuycom furuycom commented Jul 7, 2025

Adds two kernel arguments to block access to the debug shell during early boot:

  • rd.shell=0
  • rd.emergency=halt

These 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

@furuycom furuycom requested a review from RoyalOughtness as a code owner July 7, 2025 08:36
HastD

This comment was marked as resolved.

@furuycom furuycom changed the title Disable initramfs debug shell feat: Disable initramfs debug shell Jul 7, 2025
Copy link
Copy Markdown
Contributor Author

@furuycom furuycom left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done, thanks.

Copy link
Copy Markdown
Contributor Author

@furuycom furuycom left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorted now, sorry

Copy link
Copy Markdown
Collaborator

@RoyalOughtness RoyalOughtness left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Needs to be added to remove-kargs-hardening as well

Copy link
Copy Markdown
Contributor Author

@furuycom furuycom left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done 👍

@RoyalOughtness RoyalOughtness enabled auto-merge (squash) July 8, 2025 23:50
@RoyalOughtness RoyalOughtness merged commit fe0763d into secureblue:live Jul 9, 2025
19 checks passed
RoyalOughtness pushed a commit to RoyalOughtness/secureblue-dev that referenced this pull request Aug 4, 2025
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.

3 participants