Information
If system boot loader passwords are compromised, users with console access to the system may be able to alter the system boot configuration or boot the system into single user or maintenance mode, which could result in Denial-of-Service or unauthorized privileged access to the system.
Solution
Configure the GRUB bootloader to require a password.
Procedure:
Obtain the location of the active GRUB menu file.
# bootadm list-menu
Create a password hash using GRUB. The location of the GRUB binary may be different based on the specific system.
# /boot/grub/bin/grub
grub> md5crypt
Password: <password>
Encrypted: <password hash>
grub> quit
The encrypted password hash will be returned.
Edit the GRUB menu configuration file, and add a line such as the following, substituting the password hash obtained above:
password --md5 <password hash>