This information is provided as part of the Lynis community project. It is related to Lynis control BOOT-5122 and should be considered as-is and without guarantees. Any advice and commands should be tested before implementing them in production environments.
How to solve
The boot loader is started at the beginning of the boot cycle, and enables the user to select what operating system to start. Normally one entry is selected as default, with a timer of a few seconds. When this timer expires, this default entry is selected, trigger the start of the related operating system.
Often the boot loader contains the primary operating system and several fallback options. The same operating system with a previous Linux kernel version is a common option to see in such configuration. Another option is a rescue image, to perform emergency maintenance when the system does not longer boot.
Although a rescue option or fallback version are great during emergency, they can become a weakness. Evildoers with physical access to the system could use this option to reset the root password. Especially for notebooks this is a risk, as it is common that people are in the physical presence of such device. When hosting systems in a shared data center, this could also be a situation in which it makes sense to set a password on the boot loader.
- GRUB2 password (details on how to configure a password)
Need more details?
Consider an upgrade to Lynis Enterprise to receive more guidance. The Enterprise version helps to you with daily health checks of your environment, learn in-depth system hardening, and resources to protect your systems better.See demo
Lynis is a technical security auditing tool for Unix flavors like Linux, macOS, AIX, Solaris, and *BSD. It is open source software and free to use. Typical usage include system hardening, compliance testing, and vulnerability scanning. The project has an active community, including development via GitHub.
Do you need to collect data from multiple systems or compliance reporting? Lynis Enterprise uses Lynis to collect the data and make your work easier.
Benefits: automate security audits, detailed reporting, compliance testing.
- Centralized management
- Improvement plan with priorities
- Predefined policies
- Integration (API)
- Improvement snippets for tools like Ansible, Chef, Cfengine, Puppet, and SaltStack