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

WIP FH-3735: Fix compliance rules #78

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
15 changes: 4 additions & 11 deletions nist_compliance/tasks/amazon_linux_2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -390,6 +390,7 @@
- { name: net.ipv4.route.flush, value: 1 }
- { name: net.ipv4.icmp_ignore_bogus_error_responses, value: 1 }
- { name: net.ipv4.tcp_syncookies, value: 1 }
- { name: net.ipv4.tcp_timestamps, value: 0 }
- { name: net.ipv4.ip_forward, value: 1 }
- { name: net.ipv6.conf.all_forwarding, value: 0 }
- { name: net.ipv4.route_flush, value: 1 }
Expand Down Expand Up @@ -674,20 +675,12 @@
mode: 0600
tags: [ compliance, grub, umask ]

- name: Gather /var/log/ file list
find:
paths:
- /var/log/
recurse: yes
register: var_log_files
tags: [ compliance, umask, varlog ]

- name: Ensure permissions on all log files are configured
file:
path: "{{ item.path }}"
path: "/var/log"
mode: "g-wx,o-rwx"
when: var_log_files.matched > 0
with_items: "{{ var_log_files.files }}"
recurse: yes
ignore_errors: True
tags: [ compliance, umask, varlog ]

- name: Set default user acl permissions for log file directories
Expand Down
2 changes: 1 addition & 1 deletion nist_compliance/templates/sshd_config.j2
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ MaxAuthTries 4
Subsystem sftp /usr/libexec/openssh/sftp-server

# Algorithms
MACs umac-[email protected],umac-[email protected],[email protected],hmac-sha2-512-etm@openssh.com,[email protected],umac-64@openssh.com,[email protected],hmac-sha2-256,hmac-sha2-512,hmac-sha1,[email protected]
MACs [email protected],[email protected],[email protected],[email protected],hmac-sha2-256,hmac-sha2-512,hmac-sha1,[email protected]
KexAlgorithms curve25519-sha256,[email protected],ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group14-sha1

UseDNS no
Expand Down