Skip to content

Commit

Permalink
Updates to CAT 1 fixes (#15)
Browse files Browse the repository at this point in the history
Updated RHEL-07-10431 to STIG ID for version 1.1 STIG ID RHEL-07-10450

Removed Duplicate entries

Formatting changes to keep the STIG IDs in order.
  • Loading branch information
shepdelacreme authored Jun 7, 2017
1 parent ee09a1f commit 811d873
Showing 1 changed file with 16 additions and 43 deletions.
59 changes: 16 additions & 43 deletions tasks/fix-cat1.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,33 +71,6 @@
- patch
- RHEL-07-010450

- name: "HIGH | RHEL-07-010431 | PATCH | The operating system must not allow guest logon to the system."
lineinfile:
dest: /etc/gdm/custom.conf
regexp: (?i)timedloginenable
line: TimedLoginEnable=false
insertafter: '\[daemon\]'
when: rhel7stig_gui
tags:
- cat1
- high
- patch
- RHEL-07-010431
- gui

- name: "HIGH | RHEL-07-010440 | PATCH | The operating system must not allow empty passwords for SSH logon to the system."
lineinfile:
dest: /etc/ssh/sshd_config
regexp: (?i)permitemptypassword
line: PermitEmptyPasswords no
validate: sshd -t -f %s
notify: restart ssh
tags:
- cat1
- high
- patch
- RHEL-07-010440
- ssh

- name: |
Expand Down Expand Up @@ -226,7 +199,7 @@
- cat1
- high
- patch
- RHEL-07-021280
- RHEL-07-021350

- name: "HIGH | RHEL-07-021350 | PATCH | The operating system must implement NIST FIPS-validated cryptography for the following: to provision digital signatures, to generate cryptographic hashes, and to protect unclassified information requiring confidentiality and cryptographic protection in accordance with applicable federal laws, Executive Orders, directives, policies, regulations, and standards."
lineinfile:
Expand All @@ -238,7 +211,7 @@
- cat1
- high
- patch
- RHEL-07-021280
- RHEL-07-021350

- name: "HIGH | RHEL-07-021710 | PATCH | The telnet-server package must not be installed."
yum:
Expand Down Expand Up @@ -289,6 +262,20 @@
- RHEL-07-032000
- antivirus

- name: "HIGH | RHEL-07-040390 | PATCH | The SSH daemon must be configured to only use the SSHv2 protocol."
lineinfile:
dest: /etc/ssh/sshd_config
regexp: (?i)^#?protocol
line: Protocol 2
validate: sshd -t -f %s
notify: restart ssh
tags:
- cat1
- high
- patch
- RHEL-07-040390
- ssh

- name: "HIGH | RHEL-07-040540 | PATCH | There must be no .shosts files on the system."
file:
path: "{{ item.path }}"
Expand Down Expand Up @@ -369,17 +356,3 @@
- RHEL-07-040800
- snmp

- name: "HIGH | RHEL-07-040390 | PATCH | The SSH daemon must be configured to only use the SSHv2 protocol."
lineinfile:
dest: /etc/ssh/sshd_config
regexp: (?i)^#?protocol
line: Protocol 2
validate: sshd -t -f %s
notify: restart ssh
tags:
- cat1
- high
- patch
- RHEL-07-040390
- ssh

0 comments on commit 811d873

Please sign in to comment.