Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Initial main release of v1r13 #281

Merged
merged 218 commits into from
May 31, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
218 commits
Select commit Hold shift + click to select a range
0945bc3
ruleid updates for v1r12 refer changelog
uk-bolly Oct 25, 2023
7dbe85d
updated
uk-bolly Oct 25, 2023
e7edfc1
updated PRELIM in title
uk-bolly Oct 25, 2023
00c2ab8
updated the workflow version and galaxy setup
uk-bolly Oct 31, 2023
805b774
fix typo
uk-bolly Nov 2, 2023
9ff31ad
Oraclelinux updated thanks to @BillSkiCO
uk-bolly Jan 26, 2024
141f134
updated task 20030 thanks to @BillSkiCO
uk-bolly Jan 26, 2024
7acd113
updated 40321 thanks to @whitehat237
uk-bolly Jan 26, 2024
574d4c1
updated after feedback from #245
uk-bolly Feb 20, 2024
52f0cae
added issue #248 fix
uk-bolly Feb 20, 2024
1d23663
Added fix for #254
uk-bolly Feb 20, 2024
7879a03
fix syntax
uk-bolly Feb 21, 2024
ad7e0a2
Squashed commit of the following:
uk-bolly Feb 21, 2024
20661be
fix typo line 020030
uk-bolly Feb 21, 2024
ccd1285
updated due to galaxy_ng changes
uk-bolly Mar 4, 2024
756c791
Revert "fixed gnutls as per issue 196 thansk to @jmalpede"
qwestduck Oct 24, 2023
20fa953
Update main.yml
BillSkiCO Nov 9, 2023
303c3d8
[pre-commit.ci] pre-commit autoupdate
pre-commit-ci[bot] Dec 4, 2023
180e9b0
[pre-commit.ci] pre-commit autoupdate
pre-commit-ci[bot] Feb 20, 2024
9fb6548
updated Readme credits
uk-bolly Mar 4, 2024
35eca32
updated credits
uk-bolly Mar 4, 2024
3edbf29
Merge branch 'devel' into stig_v1r12
uk-bolly Mar 11, 2024
1c4b7db
Merge pull request #259 from ansible-lockdown/stig_v1r12
uk-bolly Mar 12, 2024
97dd517
[pre-commit.ci] pre-commit autoupdate
pre-commit-ci[bot] Mar 18, 2024
239fd40
Merge pull request #260 from ansible-lockdown/pre-commit-ci-update-co…
uk-bolly Mar 20, 2024
5ee5bf2
Updated RHEL-08-020050 to loop over stdout_lines. Fixes issue #261.
Phenix66 Mar 20, 2024
7c42617
Merge pull request #262 from Phenix66/fix-issue-261
uk-bolly Mar 21, 2024
384dd10
[pre-commit.ci] pre-commit autoupdate
pre-commit-ci[bot] Apr 8, 2024
0b8ea7f
Merge pull request #264 from ansible-lockdown/pre-commit-ci-update-co…
uk-bolly Apr 9, 2024
b6ecf05
addressing #251
uk-bolly Apr 9, 2024
0881806
fix issue #263
uk-bolly Apr 9, 2024
6f485da
Address issues #242
uk-bolly Apr 9, 2024
ac7520f
housekeeping lint
uk-bolly Apr 9, 2024
98a7120
Meet fix text of V-244546
fallenpixel Apr 10, 2024
9872968
issue #267
uk-bolly Apr 11, 2024
51943d7
Merge pull request #266 from fallenpixel/v-244546
uk-bolly Apr 11, 2024
40b5070
[pre-commit.ci] pre-commit autoupdate
pre-commit-ci[bot] Apr 15, 2024
6c1dcaa
Merge pull request #268 from ansible-lockdown/pre-commit-ci-update-co…
uk-bolly Apr 22, 2024
e821948
Merge branch 'devel' into April_24
uk-bolly Apr 22, 2024
469a4a9
Merge pull request #269 from ansible-lockdown/April_24
uk-bolly Apr 22, 2024
db1b008
fixed error in conditional rhel-08-020022
uk-bolly Apr 25, 2024
4d0b593
Merge pull request #272 from ansible-lockdown/issue_271
uk-bolly Apr 25, 2024
18d8335
Merge in changes from v1r13 - Jan 24 (#274)
uk-bolly Apr 30, 2024
3626696
updated conditional 040260
uk-bolly May 24, 2024
a1981ae
Merge pull request #279 from ansible-lockdown/ipv6_conditional
uk-bolly May 24, 2024
26bbaad
#174 Correct opensshserver.config CRYPTO_POLICY
JacobBuskirk Feb 22, 2023
9227a9c
#175
JacobBuskirk Feb 22, 2023
8912c5c
#176
JacobBuskirk Feb 22, 2023
16f725b
RHEL-08-010690 Prelim remove args
JacobBuskirk Feb 28, 2023
2f42bdb
pamd updates and logic improvements
uk-bolly Mar 1, 2023
d66fec4
Added tags pamd controls
uk-bolly Mar 1, 2023
7a40819
updated
uk-bolly Mar 1, 2023
19753c9
inventory now allows correct audit benchamrk to run
uk-bolly Mar 1, 2023
fc79ac2
updated logic and seperated tasks
uk-bolly Mar 10, 2023
364063b
added isolated cipher/mac/kex configs
uk-bolly Mar 10, 2023
5e5606d
updated
uk-bolly Mar 10, 2023
d3b04b1
removed debug
uk-bolly Mar 10, 2023
3741ff3
removed test tag
uk-bolly Mar 10, 2023
d14c5cf
removed repeated content
uk-bolly Mar 10, 2023
5cc5d7e
updated
uk-bolly Mar 10, 2023
77dd1dd
Adds default variables and task to modify getent user enumeration com…
whitehat237 Mar 8, 2023
a0213a1
Adds default variables and task to modify getent user enumeration com…
whitehat237 Mar 8, 2023
1735f6e
Updates task name per task naming convention standard used
whitehat237 Mar 8, 2023
97e3ace
Updates task name
whitehat237 Mar 16, 2023
f1f19c1
updated check for ansible user password
uk-bolly Mar 24, 2023
ad44918
updated layout and details
uk-bolly Mar 24, 2023
f559dea
changed default disruption to false
uk-bolly Mar 24, 2023
69251ec
updated
uk-bolly Mar 24, 2023
5b9e1b6
updated
uk-bolly Mar 24, 2023
761a3c1
Ansible version update
uk-bolly Mar 29, 2023
6460e83
removed unnecssary conditional
uk-bolly Mar 29, 2023
d264252
updated
uk-bolly Mar 29, 2023
52ec1b0
Fix RHEL-08-020011 Conditional
JacobBuskirk Apr 9, 2023
7691781
Module Name Update, Module Command To Shell, Fixed " Issue, Yamllint …
MrSteve81 Apr 11, 2023
63db613
Revert " Change
MrSteve81 Apr 11, 2023
eb5c860
Fixed " Change
MrSteve81 Apr 11, 2023
e920108
updated /var/log check, comments on 10600
uk-bolly Apr 20, 2023
a378d31
Added comments around 10600-10620
uk-bolly Apr 20, 2023
9d30f4d
updated
uk-bolly Apr 20, 2023
2dd7b0b
Remove warn from command and shell
JacobBuskirk Apr 24, 2023
f30ef00
Fix rule RHEL-08-040171
PoundsOfFlesh Apr 28, 2023
588b073
Fixed lookbehind regex for rule RHEL-08-010671
PoundsOfFlesh Apr 28, 2023
2e6a40e
fixed spacing
uk-bolly May 2, 2023
5be4271
Added OS specific vars
uk-bolly May 2, 2023
694e8a1
fixed title naming
uk-bolly May 2, 2023
47a2485
Os specific vars
uk-bolly May 2, 2023
64b1a7b
updated
uk-bolly May 2, 2023
fa24d9d
updated
uk-bolly May 2, 2023
9fff2f6
updated
uk-bolly May 2, 2023
588809a
new controls and rule updates
uk-bolly May 2, 2023
a98046c
rule updates
uk-bolly May 2, 2023
d96583a
fixed gnutls as per issue 196 thansk to @jmalpede
uk-bolly May 2, 2023
7fe9e31
tidy spacing
uk-bolly May 3, 2023
0807abc
Added OracleLinux
uk-bolly May 3, 2023
325a54c
Updated
uk-bolly May 3, 2023
df31a8e
lint
uk-bolly May 3, 2023
b4b9d4f
updated checkout version
uk-bolly May 4, 2023
3baf91c
fixed var naming
uk-bolly May 4, 2023
4146850
Update main.yml
Phenix66 May 8, 2023
223065f
updated for containers
uk-bolly May 24, 2023
41ac6ba
Issue_204 addressed
uk-bolly May 25, 2023
cbd4095
updated
uk-bolly May 25, 2023
db95121
added 010472
uk-bolly May 25, 2023
af2e70e
added skip for initramfs when container
uk-bolly May 25, 2023
c3da0a1
removed legacy pause
uk-bolly May 25, 2023
90e6624
removed yaml for ansible cli from config
uk-bolly Jul 11, 2023
f88315e
fixed 10020
uk-bolly Jul 11, 2023
f60ae5b
updated tags
uk-bolly Jul 11, 2023
d608e2a
fix boot_part var
uk-bolly Jul 11, 2023
af2af1b
updated layout
uk-bolly Jul 18, 2023
eb8114c
Fix typo in defaults/main
fallenpixel Jul 25, 2023
802bdaa
#216 improve password check
uk-bolly Jul 26, 2023
cacb023
20035 added and new vars
uk-bolly Jul 27, 2023
8073ae1
added 20035 and vars
uk-bolly Jul 27, 2023
4fa17d1
20035added. tmux update and ruleid
uk-bolly Jul 27, 2023
b9b2709
ruleid update
uk-bolly Jul 27, 2023
44f38fa
1.11 update
uk-bolly Jul 27, 2023
73aea8a
updated
uk-bolly Jul 27, 2023
88ed759
updated lint config
uk-bolly Jul 27, 2023
fce5d8c
updated kex comments
uk-bolly Jul 27, 2023
0ea530f
lint
uk-bolly Jul 27, 2023
60f85c8
removed var not used
uk-bolly Jul 27, 2023
18bbcbc
added rule 020035
uk-bolly Jul 27, 2023
b39d2fa
updates to auditing with goss
uk-bolly Jul 27, 2023
4e89cf3
updated
uk-bolly Jul 27, 2023
faea7ad
improved run order for finish of playbook
uk-bolly Jul 28, 2023
c3cb4b0
updated
uk-bolly Jul 28, 2023
72f8c96
#207 - FIPS ordering
uk-bolly Jul 5, 2023
71f8446
#208 ignore shell /sbin/nologin for homedir fact
uk-bolly Jul 5, 2023
3e142cf
#209
uk-bolly Jul 5, 2023
d9eccdd
#210
uk-bolly Jul 5, 2023
991bfdc
#211
uk-bolly Jul 5, 2023
37033e5
#212 possibly - improve even_deny_root
uk-bolly Jul 5, 2023
b4f4e09
changelog updated
uk-bolly Aug 8, 2023
ed9d36b
Updated when on line 197 of prelim to use an or instead of and
georgenalen Aug 31, 2023
fd44e92
updated
uk-bolly Sep 15, 2023
de0de02
updated date
uk-bolly Sep 15, 2023
0b15656
precommit and modules
uk-bolly Sep 15, 2023
f48341a
updated
uk-bolly Sep 15, 2023
3ce5328
Linting
uk-bolly Sep 15, 2023
2fd5c82
updated
uk-bolly Sep 15, 2023
a091aab
removed file not required
uk-bolly Sep 15, 2023
97ec929
New pipeline files
uk-bolly Sep 15, 2023
56ed235
lint updates
uk-bolly Sep 15, 2023
c7dc822
lint update
uk-bolly Sep 15, 2023
e2e7d1d
lint
uk-bolly Sep 15, 2023
543350b
updated discord link
uk-bolly Sep 18, 2023
b26497c
moved src to uuid
uk-bolly Sep 19, 2023
9e8048c
remove legacy files
uk-bolly Sep 19, 2023
7f4d4bf
tidy up tags
uk-bolly Sep 19, 2023
c948ace
fixed notify error on black #226
uk-bolly Sep 22, 2023
427ec05
updated
uk-bolly Sep 25, 2023
a662083
updated config
uk-bolly Sep 25, 2023
e36e0ba
updated exclusions
uk-bolly Sep 25, 2023
6b14fd4
updated with allowed
uk-bolly Sep 25, 2023
f5ccd4b
lint updates
uk-bolly Sep 25, 2023
3a31965
updated
uk-bolly Sep 25, 2023
d630e21
updated collections
uk-bolly Oct 6, 2023
3d7ccea
updated as host_key changes for fips
uk-bolly Oct 9, 2023
4cd17ab
updated versions
uk-bolly Oct 9, 2023
73acc53
Issue #229 sysctl approach thanks to @JacobBuskirk
uk-bolly Oct 9, 2023
2465b97
updated for copy and format outputs
uk-bolly Oct 24, 2023
8f9052f
updated
uk-bolly Oct 24, 2023
c58d334
removed quality badge since galaxy removed
uk-bolly Oct 24, 2023
84a47f3
ruleid updates for v1r12 refer changelog
uk-bolly Oct 25, 2023
87e93ae
updated
uk-bolly Oct 25, 2023
094eea9
updated PRELIM in title
uk-bolly Oct 25, 2023
d5a8e71
updated the workflow version and galaxy setup
uk-bolly Oct 31, 2023
28ac977
fix typo
uk-bolly Nov 2, 2023
041e4ad
Oraclelinux updated thanks to @BillSkiCO
uk-bolly Jan 26, 2024
5a80e57
updated task 20030 thanks to @BillSkiCO
uk-bolly Jan 26, 2024
9ecb0ee
updated 40321 thanks to @whitehat237
uk-bolly Jan 26, 2024
fe27444
updated after feedback from #245
uk-bolly Feb 20, 2024
a48ab9b
added issue #248 fix
uk-bolly Feb 20, 2024
de55153
Added fix for #254
uk-bolly Feb 20, 2024
e06b0c7
fix syntax
uk-bolly Feb 21, 2024
78afa35
Squashed commit of the following:
uk-bolly Feb 21, 2024
5675d6e
fix typo line 020030
uk-bolly Feb 21, 2024
43bb99f
updated due to galaxy_ng changes
uk-bolly Mar 4, 2024
28adcc0
Revert "fixed gnutls as per issue 196 thansk to @jmalpede"
qwestduck Oct 24, 2023
a96bfcf
Update main.yml
BillSkiCO Nov 9, 2023
a7d782d
[pre-commit.ci] pre-commit autoupdate
pre-commit-ci[bot] Dec 4, 2023
8eea9ca
[pre-commit.ci] pre-commit autoupdate
pre-commit-ci[bot] Feb 20, 2024
5cf7da4
updated Readme credits
uk-bolly Mar 4, 2024
ddcff9c
updated credits
uk-bolly Mar 4, 2024
97eb04f
Update meta and readme due to galaxy_ng
uk-bolly Mar 4, 2024
0d9d32c
updated Readme credits
uk-bolly Mar 4, 2024
a8ec93f
updated
uk-bolly Mar 6, 2024
6db5e1f
[pre-commit.ci] pre-commit autoupdate
pre-commit-ci[bot] Mar 18, 2024
206ad19
Updated RHEL-08-020050 to loop over stdout_lines. Fixes issue #261.
Phenix66 Mar 20, 2024
b9e1fa1
[pre-commit.ci] pre-commit autoupdate
pre-commit-ci[bot] Apr 8, 2024
2f81776
addressing #251
uk-bolly Apr 9, 2024
4d75944
fix issue #263
uk-bolly Apr 9, 2024
050ac28
Address issues #242
uk-bolly Apr 9, 2024
3c33a35
housekeeping lint
uk-bolly Apr 9, 2024
ddaf901
issue #267
uk-bolly Apr 11, 2024
1cf603c
Meet fix text of V-244546
fallenpixel Apr 10, 2024
81b5e67
[pre-commit.ci] pre-commit autoupdate
pre-commit-ci[bot] Apr 15, 2024
d709014
fixed error in conditional rhel-08-020022
uk-bolly Apr 25, 2024
e86bb70
Merge in changes from v1r13 - Jan 24 (#274)
uk-bolly Apr 30, 2024
69908d1
updated conditional 040260
uk-bolly May 24, 2024
55f8629
Merge branch 'devel' into updated_devel
uk-bolly May 24, 2024
d50170b
Merge pull request #280 from ansible-lockdown/updated_devel
uk-bolly May 24, 2024
e781879
Merge branch 'main' into devel
uk-bolly May 28, 2024
5750a67
040230 updated
uk-bolly May 28, 2024
7e76617
updated conditional sysctl improvements
uk-bolly May 28, 2024
88767b8
updated to 010070
uk-bolly May 29, 2024
196898d
added OS_ver variable
uk-bolly May 29, 2024
f5651dd
added updated variable
uk-bolly May 29, 2024
efddae6
added updated variable
uk-bolly May 29, 2024
2a00e98
improved ansible facts variables
uk-bolly May 29, 2024
0e30a66
updated 10471 based on OS version
uk-bolly May 30, 2024
95d876d
removed dupe line
uk-bolly May 30, 2024
426bb02
removed dupe lines
uk-bolly May 30, 2024
2309c49
Merge pull request #282 from ansible-lockdown/v13_merge_fixes
uk-bolly May 30, 2024
e47a1eb
improved logic on 20104 and 10471
uk-bolly May 30, 2024
cbf87b9
lint update
uk-bolly May 30, 2024
18e1cdc
Merge pull request #283 from ansible-lockdown/may24_updates
uk-bolly May 30, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/devel_pipeline_validation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@
- name: Sleep for 60 seconds
run: sleep ${{ vars.BUILD_SLEEPTIME }}

# Run the Ansibleplaybook
# Run the Ansible playbook
- name: Run_Ansible_Playbook
uses: arillso/action.playbook@master
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/main_pipeline_validation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@
- name: Sleep for 60 seconds
run: sleep ${{ vars.BUILD_SLEEPTIME }}

# Run the Ansibleplaybook
# Run the Ansible playbook
- name: Run_Ansible_Playbook
uses: arillso/action.playbook@master
with:
Expand Down
29 changes: 29 additions & 0 deletions Changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,34 @@
# Changes to RHEL8STIG

## 3.2 - STIV V1R13 - 24th Jan 2024

- Audit updated
- moved audit into prelim
- updates to audit logic for copy and archive options

ruleid updated

- 010001
- 020250
- 020290
- 040090

CAT II

- 020035 - updated rule and added handler for logind restart
- 040020 - /bin/false update and ruleid update
- 040080 - /bin/false and ruleid
- 040111 - /bin/false and ruleid

CAT III

- 040021 - /bin/false and ruleid
- 040022 - /bin/false and ruleid
- 040023 - /bin/false and ruleid
- 040024 - /bin/false and ruleid
- 040025 - /bin/false and ruleid
- 040026 - /bin/false and ruleid

## 3.1 - STIG V1R12 - 25th Oct 2023

ruleid updated
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## Configure a RHEL8 based system to be complaint with Disa STIG

This role is based on RHEL 8 DISA STIG: [Version 1, Rel 12 released on Oct 25, 2023](https://dl.dod.cyber.mil/wp-content/uploads/stigs/zip/U_RHEL_8_V1R12_STIG.zip).
This role is based on RHEL 8 DISA STIG: [Version 1, Rel 13 released on Jan 24, 2024](https://dl.dod.cyber.mil/wp-content/uploads/stigs/zip/U_RHEL_8_V1R13_STIG.zip).

---

Expand All @@ -29,7 +29,6 @@ This role is based on RHEL 8 DISA STIG: [Version 1, Rel 12 released on Oct 25, 2

![License](https://img.shields.io/github/license/ansible-lockdown/RHEL8-STIG?label=License)


---

## Looking for support?
Expand Down Expand Up @@ -195,4 +194,5 @@ pre-commit run

Massive thanks to the fantastic community and all its members.
This includes a huge thanks and credit to the original authors and maintainers.

Josh Springer, Daniel Shepherd, Bas Meijeri, James Cassell, Mike Renfro, DFed, George Nalen, Mark Bolwell
88 changes: 41 additions & 47 deletions defaults/main.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
## metadata for Audit benchmark
benchmark_version: 'v1r12'
benchmark_version: 'v1r13'

## Benchmark name used by audting control role
# The audit variable found at the base
Expand Down Expand Up @@ -35,7 +35,6 @@ rhel8stig_audit_disruptive: false
rhel8stig_skip_for_travis: false

rhel8stig_workaround_for_disa_benchmark: true
rhel8stig_workaround_for_ssg_benchmark: true

# tweak role to run in a chroot, such as in kickstart %post script
rhel8stig_system_is_chroot: "{{ ansible_is_chroot | default(False) }}"
Expand All @@ -56,23 +55,26 @@ rhel8stig_skip_reboot: true
# Defined will change if control requires
change_requires_reboot: false

##########################################
###########################################
### Goss is required on the remote host ###
## Refer to vars/auditd.yml for any other settings ##
### vars/auditd.yml for other settings ###

# Allow audit to setup the requirements including installing git (if option chosen and downloading and adding goss binary to system)
setup_audit: false

# enable audits to run - this runs the audit and get the latest content
run_audit: false
# Run heavy tests - some tests can have more impact on a system enabling these can have greater impact on a system
audit_run_heavy_tests: true

# Only run Audit do not remediate
## Only run Audit do not remediate
audit_only: false
# As part of audit_only
# This will enable files to be copied back to control node
### As part of audit_only ###
# This will enable files to be copied back to control node in audit_only mode
fetch_audit_files: false
# Path to copy the files to will create dir structure
# Path to copy the files to will create dir structure in audit_only mode
audit_capture_files_dir: /some/location to copy to on control node
#############################

# How to retrieve audit binary
# Options are copy or download - detailed settings at the bottom of this file
Expand All @@ -85,20 +87,24 @@ get_audit_binary_method: download
audit_bin_copy_location: /some/accessible/path

# how to get audit files onto host options
# options are git/copy/get_url other e.g. if you wish to run from already downloaded conf
# options are git/copy/archive/get_url other e.g. if you wish to run from already downloaded conf
audit_content: git

# archive or copy:
audit_conf_copy: "some path to copy from"
# If using either archive, copy, get_url:
## Note will work with .tar files - zip will require extra configuration
### If using get_url this is expecting github url in tar.gz format e.g.
### https://github.com/ansible-lockdown/UBUNTU22-CIS-Audit/archive/refs/heads/benchmark-v1.0.0.tar.gz
audit_conf_source: "some path or url to copy from"

# get_url:
audit_files_url: "some url maybe s3?"
# Destination for the audit content to be placed on managed node
# note may not need full path e.g. /opt with the directory being the {{ benchmark }}-Audit directory
audit_conf_dest: "/opt"

# Run heavy tests - some tests can have more impact on a system enabling these can have greater impact on a system
audit_run_heavy_tests: true
# Where the audit logs are stored
audit_log_dir: '/opt'

### End Goss enablements ####
#### Detailed settings found at the end of this document ####
### Goss Settings ##
####### END ########

# These variables correspond with the STIG IDs defined in the STIG and allows you to enable/disable specific rules.
# PLEASE NOTE: These work in coordination with the cat1, cat2, cat3 group variables. You must enable an entire group
Expand Down Expand Up @@ -501,11 +507,6 @@ rhel8stig_kdump_needed: false
# or rhel8stig_gui)
rhel8stig_always_configure_dconf: false

# Whether or not to run tasks related to smart card authentication enforcement
rhel8stig_smartcard: false
# Configure your smartcard driver
rhel8stig_smartcarddriver: cackey

# Set the file that sysctl should write to
rhel8stig_sysctl_file: /etc/sysctl.d/99_stig_sysctl.conf

Expand All @@ -528,6 +529,11 @@ rhel8stig_ipv6_required: true
# When set to anything other than mcafee it will skip this control assuming localized threat prevention management
rhel8stig_av_sftw: mcafee

# RHEL-08-010110 & 010130 & 010760 & 020190 & 020200 & 020231 & 020310 & 020351
# rhel8stig_login_defs_file_perms
# Permissions set on /etc/login.defs
rhel8stig_login_defs_file_perms: 0644

# RHEL-08-010210
# rhel8stig_var_log_messages_perm is the permissions the /var/log/messages file is set to.
# To conform to STIG standards this needs to be 0640 or more restrictive
Expand Down Expand Up @@ -559,10 +565,6 @@ rhel8stig_ssh_pub_key_perm: 0644
rhel8stig_ssh_priv_key_perm: 0600

# RHEL-08-010690
# Set standard user paths here
# Also set whether we should automatically remediate paths in user ini files.
# rhel_08_020720_user_path: "PATH=$PATH:$HOME/.local/bin:$HOME/bin"
rhel8stig_standard_user_path: "PATH=$PATH:$HOME/.local/bin:$HOME/bin"
rhel8stig_change_user_path: false

# RHEL-08-010700
Expand Down Expand Up @@ -591,6 +593,19 @@ rhel8stig_local_int_home_file_perms: 0750
# To connform to STIG standards this needs to be set to 0740 or less permissive
rhel8stig_local_int_perm: 0740

# RHEL-08-020100 pamd file permissions - /etc/pam.d/(password-auth|system-auth) files
# rhel8stig_pamd_file_perms
# This needs a minimum of 0644 ( more restrictive may cause issues testing will be required)
rhel8stig_pamd_file_perms: 0644

# RHEL-08-020110 - pwquality file permissions
# mode: "{{ rhel8stig_pamd_file_perms }}"
rhel8stig_pwquality_file_perms: 0644

# RHEL-08-0400xx
# blacklist.conf - /etc/modprobe.d/blacklist.conf file permissions
rhel8stig_blacklist_conf_file_perms: 0640

# RHEL-08-020250
# This is a check for a "supported release"
# These are the minimum supported releases.
Expand Down Expand Up @@ -707,13 +722,6 @@ rhel8stig_sssd:
maprule: (userCertificate;binary={cert!bin})
domains: "{{ rhel8stig_sssd_domain }}"

# RHEL-08-020070
# Session timeout setting file (TMOUT setting can be set in multiple files)
# Timeout value is in seconds. (60 seconds * 10 = 600)
rhel8stig_shell_session_timeout:
file: /etc/profile.d/tmout.sh
timeout: 600

# RHEL-08-010200 | All network connections associated with SSH traffic must
# terminate at the end of the session or after 10 minutes of inactivity, except
# to fulfill documented and validated mission requirements.
Expand Down Expand Up @@ -763,14 +771,6 @@ rhel8stig_pam_faillock:
# RHEL-08-020035
rhel_08_020035_idlesessiontimeout: 900

# RHEL-08-030670
# rhel8stig_audisp_disk_full_action options are syslog, halt, and single to fit STIG standards
rhel8stig_audisp_disk_full_action: single

# RHEL-08-030680
# rhel8stig_audisp_network_failure_action optoins are syslog, halt, and single
rhel8stig_audisp_network_failure_action: single

# RHEL-08-030060
# rhel8stig_auditd_disk_full_action options are SYSLOG, HALT, and SINGLE to fit STIG standards
rhel8stig_auditd_disk_full_action: HALT
Expand Down Expand Up @@ -892,7 +892,6 @@ rhel8stig_existing_zone_to_copy: public
# RHEL-08-040090
# This designed not work with rhel8stig_existing_zone_to_copy and when deploy new rules
# rhel8stig_white_list_services is the services that you want to allow through initially for the new firewall zone
# http and ssh need to be enabled for the role to run.
# This can also be a port number if no service exists
rhel8stig_white_list_services:
- ssh
Expand All @@ -910,11 +909,6 @@ rhel8stig_ssh_ciphers: "Ciphers=aes256-ctr,aes192-ctr,aes128-ctr,aes256-gcm@open
# Expected Values for FIPS KEX algorithims
rhel8stig_ssh_kex: "KexAlgorithms=ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group14-sha256,diffie-hellman-group16-sha512,diffie-hellman-group18-sha512"

# This will be the CRYPTO_POLICY settings in the opensshserver.conf file. It will be a string for the entirety of the setting
# to conform to STIG standard control RHEL-08-010290 this variable must contain oCiphers=aes256-ctr,aes192-ctr,aes128-ctr -oMACS=hmac-sha2-512,hmac-sha2-256 settings
# to conform to STIG standard control RHEL-08-010291 this variable must cotnain oCiphers=aes256-ctr,aes192-ctr,aes128-ctr
rhel8stig_ssh_server_crypto_settings: "-oCiphers=aes256-ctr,aes192-ctr,aes128-ctr -oMACS=hmac-sha2-512,hmac-sha2-256"

# RHEL-08-010295
# This will be teh GnuTLS ecryption packages. The task sets the +VERS-ALL: setting, the only items needed are the DoD approved encryptions
# to conform to STIG standards this variable must contain +VERS-ALL:-VERS-DTLS0.9:-VERS-SSL3.0:-VERS-TLS1.0:-VERS-TLS1.1:-VERS-DTLS1.0
Expand Down
9 changes: 7 additions & 2 deletions handlers/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@
when:
- not system_is_container

- name: Restart_systemdlogin
ansible.builtin.systemd:
name: systemd-logind
state: restarted

- name: sysctl system
ansible.builtin.shell: sysctl --system
when: "'procps-ng' in ansible_facts.packages"
Expand Down Expand Up @@ -74,7 +79,7 @@
remote_src: true
owner: root
group: root
mode: 0755
mode: '0755'
when:
- rhel8stig_grub2_user_cfg.stat.exists
- rhel8stig_workaround_for_disa_benchmark
Expand All @@ -97,7 +102,7 @@
dest: /etc/audit/rules.d/99_auditd.rules
owner: root
group: root
mode: 0600
mode: '0600'
notify: restart auditd

- name: restart auditd
Expand Down
6 changes: 3 additions & 3 deletions tasks/fix-cat1.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
dest: /etc/default/grub
owner: root
group: root
mode: 0644
mode: '0644'
vars:
grub_cmdline_linux: "{{ rhel_08_010020_grub_cmdline_linux_audit.stdout }}"
when: rhel_08_010020_default_grub_missing_audit is changed # noqa no-handler
Expand Down Expand Up @@ -187,7 +187,7 @@
line: "GRUB2_PASSWORD={{ rhel8stig_bootloader_password_hash }}"
owner: root
group: root
mode: 0640
mode: '0640'
notify: confirm grub2 user cfg
when:
- not system_is_ec2
Expand Down Expand Up @@ -437,7 +437,7 @@
create: true
owner: root
group: root
mode: 0644
mode: '0644'
with_items:
- { regexp: '^\[org/gnome/settings-daemon/plugins/media-keys\]', line: '[org/gnome/settings-daemon/plugins/media-keys]', insertafter: 'EOF' }
- { regexp: 'logout=', line: "logout=''", insertafter: '\[org/gnome/settings-daemon/plugins/media-keys\]' }
Expand Down
Loading