You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Configure a RHEL/Rocky 8 system to be DISA STIG compliant. All findings will be audited by default. Non-disruptive CAT I, CAT II, and CAT III findings will be corrected by default. Disruptive finding remediation can be enabled by setting `rhel8stig_disruption_high` to `yes`.
3
+
## Configure a RHEL8 based system to be complaint with Disa STIG
8
4
9
5
This role is based on RHEL 8 DISA STIG: [Version 1, Rel 9 released on Jan 26, 2023](https://dl.dod.cyber.mil/wp-content/uploads/stigs/zip/U_RHEL_8_V1R9_STIG.zip).
On our [Discord Server](https://discord.io/ansible-lockdown) to ask questions, discuss features, or just chat with other Ansible-Lockdown users
14
43
44
+
---
45
+
46
+
Configure a RHEL/Rocky 8 system to be DISA STIG compliant.
47
+
Non-disruptive CAT I, CAT II, and CAT III findings will be corrected by default.
48
+
Disruptive finding remediation can be enabled by setting `rhel8stig_disruption_high` to `true`.
49
+
15
50
## Updating
16
51
17
52
Coming from a previous release.
@@ -21,41 +56,27 @@ This contains rewrites and ID reference changes as per STIG documentation.
21
56
22
57
## Auditing
23
58
24
-
This can be turned on or off within the defaults/main.yml file with the variable rhel8stig_run_audit. The value is false by default, please refer to the wiki for more details.
59
+
This can be turned on or off within the defaults/main.yml file with the variable rhel7cis_run_audit. The value is false by default, please refer to the wiki for more details. The defaults file also populates the goss checks to check only the controls that have been enabled in the ansible role.
25
60
26
61
This is a much quicker, very lightweight, checking (where possible) config compliance and live/running settings.
27
62
28
-
A new form of auditing has been develeoped, by using a small (12MB) go binary called [goss](https://github.com/aelsabbahy/goss) along with the relevant configurations to check. Without the need for infrastructure or other tooling.
63
+
A new form of auditing has been developed, by using a small (12MB) go binary called [goss](https://github.com/goss-org/goss) along with the relevant configurations to check. Without the need for infrastructure or other tooling.
29
64
This audit will not only check the config has the correct setting but aims to capture if it is running with that configuration also trying to remove [false positives](https://www.mindpointgroup.com/blog/is-compliance-scanning-still-relevant/) in the process.
30
65
31
-
Refer to [RHEL8-STIG-Audit](https://github.com/ansible-lockdown/RHEL8-STIG-Audit).
66
+
## Documentation
67
+
68
+
-[Read The Docs](https://ansible-lockdown.readthedocs.io/en/latest/)
-[Getting the Most Out of the Role](https://www.lockdownenterprise.com/docs/get-the-most-out-of-lockdown-enterprise#GH_AL_RH8_stig)
32
73
33
74
## Requirements
34
75
35
-
- RHEL/Rocky/AlmaLinux 8 - Other versions are not supported.
76
+
- RHEL/Rocky/AlmaLinux/OL 8 - Other versions are not supported.
36
77
- Other OSs can be checked by changing the skip_os_check to true for testing purposes.
37
78
- Access to download or add the goss binary and content to the system if using auditing. options are available on how to get the content to the system.
38
79
39
-
### General
40
-
41
-
- Basic knowledge of Ansible, below are some links to the Ansible documentation to help get started if you are unfamiliar with Ansible
-[Tower User Guide](https://docs.ansible.com/ansible-tower/latest/html/userguide/index.html)
46
-
-[Ansible Community Info](https://docs.ansible.com/ansible/latest/community/index.html)
47
-
- Functioning Ansible and/or Tower Installed, configured, and running. This includes all of the base Ansible/Tower configurations, needed packages installed, and infrastructure setup.
48
-
- Please read through the tasks in this role to gain an understanding of what each control is doing. Some of the tasks are disruptive and can have unintended consequences in a live production system. Also familiarize yourself with the variables in the defaults/main.yml file or the [Main Variables Wiki Page](https://github.com/ansible-lockdown/RHEL8-STIG/wiki/Main-Variables).
The following packages must be installed on the controlling host/host where ansible is executed:
@@ -69,7 +90,7 @@ Package 'python-xmltodict' is required if you enable the OpenSCAP tool installat
69
90
70
91
## Role Variables
71
92
72
-
This role is designed that the end user should not have to edit the tasks themselves. All customizing should be done via the defaults/main.yml file or with extra vars within the project, job, workflow, etc. These variables can be found [here](https://github.com/ansible-lockdown/RHEL8-STIG/wiki/Main-Variables) in the Main Variables Wiki page. All variables are listed there along with descriptions.
93
+
This role is designed that the end user should not have to edit the tasks themselves. All customizing should be done via the defaults/main.yml file or with extra vars within the project, job, workflow, etc.
73
94
74
95
### Tags
75
96
@@ -91,18 +112,14 @@ This is based on a vagrant image with selections enabled. e.g. No Gui or firewal
91
112
Note: More tests are run during audit as we check config and running state.
92
113
93
114
```sh
94
-
ok: [rhel8test] => {
95
-
"msg": [
96
-
"The pre remediation results are: Count: 308, Failed: 156, Duration: 44.108s.",
97
-
"The post remediation results are: Count: 308, Failed: 14, Duration: 37.647s.",
98
-
"Full breakdown can be found in /var/tmp",
99
-
""
100
-
]
101
-
}
102
-
]
103
-
}
115
+
ok: [rocky8_efi] =>
116
+
msg:
117
+
- 'The pre remediation results are: Count: 804, Failed: 416, Duration: 6.488s.'
118
+
- 'The post remediation results are: Count: 804, Failed: 28, Duration: 68.687s.'
119
+
- Full breakdown can be found in /opt
120
+
104
121
PLAY RECAP ****************************************************************************************************************
Copy file name to clipboardExpand all lines: defaults/main.yml
+9-9Lines changed: 9 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -26,11 +26,11 @@ rhel8stig_audit_complex: true
26
26
# We've defined disruption-high to indicate items that are likely to cause
27
27
# disruption in a normal workflow. These items can be remediated automatically
28
28
# but are disabled by default to avoid disruption.
29
-
rhel8stig_disruption_high: true
29
+
rhel8stig_disruption_high: false
30
30
31
31
# Show "changed" for disruptive items not remediated per disruption-high
32
32
# setting to make them stand out.
33
-
rhel8stig_audit_disruptive: true
33
+
rhel8stig_audit_disruptive: false
34
34
35
35
rhel8stig_skip_for_travis: false
36
36
@@ -190,9 +190,12 @@ rhel_08_010571: true
190
190
rhel_08_010572: true
191
191
rhel_08_010580: true
192
192
rhel_08_010590: true
193
+
## Note Azure is currently default mounting /mnt for cloud-init this will cause issues with these controls
194
+
## refer to https://github.com/Azure/WALinuxAgent/issues/1971
193
195
rhel_08_010600: true
194
196
rhel_08_010610: true
195
197
rhel_08_010620: true
198
+
##
196
199
rhel_08_010630: true
197
200
rhel_08_010640: true
198
201
rhel_08_010650: true
@@ -477,13 +480,13 @@ rhel8stig_smartcard: false
477
480
# Configure your smartcard driver
478
481
rhel8stig_smartcarddriver: cackey
479
482
480
-
#Whether or not system uses remote automounted home directories via autofs
483
+
#Whether or not system uses remote automounted home directories via autofs
481
484
rhel8stig_autofs_remote_home_dirs: false
482
485
483
-
#The local mount point used by autofs to mount remote home directory to. This location will be excluded during getent user enumeration, if rhel8stig_autofs_remote_home_dirs is true
486
+
#The local mount point used by autofs to mount remote home directory to. This location will be excluded during getent user enumeration, if rhel8stig_autofs_remote_home_dirs is true
#The default shell command to gather local interactive user directories
489
+
#The default shell command to gather local interactive user directories
487
490
## NOTE: You will need to adjust the UID range in parenthesis below.
488
491
## ALSO NOTE: We weed out any user with a home dir not in standard locations because interactive users shouldn't have those paths as a home dir. Add or removed directory paths as needed below.
0 commit comments