-
Notifications
You must be signed in to change notification settings - Fork 0
/
RHEL-06-000068.sh
executable file
·79 lines (66 loc) · 2.59 KB
/
RHEL-06-000068.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
#!/bin/bash
#
##########################################################################
#Red Hat Enterprise Linux 6 - DISA STIG Compliance Remediation Content
#Copyright (C) 2013
#Vincent C. Passaro ([email protected])
#
##########################################################################
#
###################### Buddha Labs LLC ################################
# By Vincent C. Passaro #
# Buddha Labs LLC. #
# vince[@]buddhalabs[.]com #
# www.buddhalabs.com #
###################### Buddha Labs LLC ################################
#_________________________________________________________________________
# Version | Change Information | Author | Date
#-------------------------------------------------------------------------
# 1.0 | Initial Script Creation | Vincent Passaro | 1-JUNE-2013
#
#
#######################DISA INFORMATION##################################
# Group ID (Vulid): RHEL-06-000068
# Group Title: SRG-OS-000080
#
# Rule ID: RHEL-06-000068_rule
# Severity: medium
# Rule Version (STIG-ID): RHEL-06-000068
# Rule Title: The system boot loader must require authentication.
#
# Vulnerability Discussion: Password protection on the boot loader
# configuration ensures users with physical access cannot trivially alter
# important bootloader settings. These include which kernel to use, and
# whether to enter single-user mode.
#
# Responsibility:
# IAControls:
#
# Check Content:
#
# To verify the boot loader password has been set and encrypted, run the
# following command:
# grep password /etc/grub.conf
# The output should show the following:
# password --encrypted "$6$[rest-of-the-password-hash]"
# If it does not, this is a finding.
#
# Fix Text:
#
# The grub boot loader should have password protection enabled to protect
# boot-time settings. To do so, select a password and then generate a hash
# from it by running the following command:
# grub-crypt --sha-512
# When prompted to enter a password, insert the following line into
# "/etc/grub.conf" immediately after the header comments. (Use the output
# from "grub-crypt" as the value of [password-hash]):
# password --encrypted [password-hash]
#######################DISA INFORMATION##################################
#
# Global Variables
PDI=RHEL-06-000068
#
#BEGIN_CHECK
#END_CHECK
#BEGIN_REMEDY
#END_REMEDY