Skip to content

Commit 95bd06b

Browse files
jamescassellshepdelacreme
authored andcommitted
updates for V1R19
- removed virus scan requirement - updated control-alt-delete logging faculty - updated various rules to also check password-auth in addition to system-auth - improved pam_pwhistory arg placement
1 parent b9469e7 commit 95bd06b

File tree

4 files changed

+33
-45
lines changed

4 files changed

+33
-45
lines changed

defaults/main.yml

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -22,18 +22,6 @@ rhel6stig_pam_cracklib_params: try_first_pass retry=3 maxrepeat=3 minlen={{ rhel
2222
# SELinux settings
2323
rhel6stig_selinux_pol: targeted
2424

25-
# Only set this to true if you have a valid
26-
# antivirus solution in your repositories, else it will fail every time.
27-
rhel6stig_antivirus_required: no
28-
29-
# AV settings
30-
rhel6stig_av_package:
31-
package:
32-
- clamav
33-
- clamav-scanner
34-
- clamav-server
35-
service: clamav-daemon
36-
3725
# GPG Key locations
3826
# These are the standard URL locations for GPG keys for RH and Cent.
3927
# If running this against offline systems then specify an accessible

files/control-alt-delete.override

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@
55

66
start on control-alt-delete
77

8-
exec /usr/bin/logger -p security.info "Ctrl-Alt-Delete pressed"
8+
exec /usr/bin/logger -p authpriv.notice "Ctrl-Alt-Delete pressed"

tasks/cat1.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,13 @@
4040

4141
- name: "HIGH | V-38497 | PATCH | The system must not have accounts configured with blank or null passwords"
4242
replace:
43-
dest: /etc/pam.d/system-auth
43+
dest: /etc/pam.d/{{ item }}
4444
follow: yes
4545
regexp: '([ \t]+)nullok[ \t]*'
4646
replace: '\1'
47+
with_items:
48+
- system-auth
49+
- password-auth
4750
tags:
4851
- cat1
4952
- high

tasks/cat2.yml

Lines changed: 28 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1740,17 +1740,34 @@
17401740
# - name: "MEDIUM | V-38652 | AUDIT | Remote file systems must be mounted with the 'nodev' option"
17411741
# - name: "MEDIUM | V-38654 | AUDIT | Remote file systems must be mounted with the nosuid option"
17421742

1743-
- name: "MEDIUM | V-38658 | PATCH | The system must prohibit the reuse of passwords within five iterations."
1744-
pamd:
1745-
name: system-auth
1746-
new_type: password
1747-
new_control: requisite
1748-
new_module_path: pam_pwhistory.so
1749-
module_arguments: use_authtok remember={{ rhel6stig_pass_reuse }}
1750-
state: after
1751-
type: password
1752-
control: requisite
1753-
module_path: pam_cracklib.so
1743+
- name: "MEDIUM | V-38658 | The system must prohibit the reuse of passwords within five iterations."
1744+
block:
1745+
- name: "MEDIUM | V-38658 | PATCH | The system must prohibit the reuse of passwords within five iterations."
1746+
pamd:
1747+
name: "{{ item }}"
1748+
new_type: password
1749+
new_control: requisite
1750+
new_module_path: pam_pwhistory.so
1751+
module_arguments: use_authtok remember={{ rhel6stig_pass_reuse }}
1752+
state: after
1753+
type: password
1754+
control: requisite
1755+
module_path: pam_cracklib.so
1756+
with_items:
1757+
- system-auth
1758+
- password-auth
1759+
1760+
- name: "MEDIUM | V-38658 | PATCH | The system must prohibit the reuse of passwords within five iterations."
1761+
pamd:
1762+
name: "{{ item }}"
1763+
type: password
1764+
control: requisite
1765+
module_path: pam_pwhistory.so
1766+
module_arguments: remember={{ rhel6stig_pass_reuse }}
1767+
state: args_present
1768+
with_items:
1769+
- system-auth
1770+
- password-auth
17541771
tags:
17551772
- cat2
17561773
- medium
@@ -1844,26 +1861,6 @@
18441861
- file_perms
18451862
- rpm
18461863

1847-
- block:
1848-
- name: MEDIUM | V-38666 | PATCH | The system must use and update a virus scan program"
1849-
yum:
1850-
name: "{{ rhel6stig_av_package.package }}"
1851-
state: present
1852-
1853-
- name: MEDIUM | V-38666 | PATCH | The system must use and update a virus scan program"
1854-
service:
1855-
name: "{{ rhel6stig_av_package.service }}"
1856-
state: started
1857-
enabled: yes
1858-
when:
1859-
- rhel6stig_antivirus_required
1860-
tags:
1861-
- cat2
1862-
- medium
1863-
- patch
1864-
- V-38666
1865-
- antivirus
1866-
18671864
# Not automated
18681865
# - name: "MEDIUM | V-38667 | Inspect the system to determine if intrusion detection software has been installed."
18691866

0 commit comments

Comments
 (0)