UBUNTU24-CIS-Audit/section_3/cis_3.3/cis_3.3.6.yml

95 lines
2.1 KiB
YAML

{{ if .Vars.ubtu24cis_level_1 }}
{{ if .Vars.ubtu24cis_rule_3_3_6 }}
kernel-param:
net.ipv4.conf.all.secure_redirects:
title: 3.3.6 | Ensure secure ICMP redirects are not accepted | ipv4 all sec redirects
value: '0'
meta:
server: 1
workstation: 1
CIS_ID:
- 3.3.6
CISv8:
- 4.8
CISv8_IG1: false
CISv8_IG2: true
CISv8_IG3: true
NIST800-53R5:
- CM-1
- CM-2
- CM-6
- CM-7
- IA-5
net.ipv4.conf.default.secure_redirects:
title: 3.3.6 | Ensure secure ICMP redirects are not accepted | ipv4 def sec redirects
value: '0'
meta:
server: 1
workstation: 1
CIS_ID:
- 3.3.6
CISv8:
- 4.8
CISv8_IG1: false
CISv8_IG2: true
CISv8_IG3: true
NIST800-53R5:
- CM-1
- CM-2
- CM-6
- CM-7
- IA-5
command:
ipv4_all_sec_redirects:
title: 3.3.6 | Ensure secure ICMP redirects are not accepted | ipv4 all sec redirects conf
exec: grep "net\.ipv4\.conf\.all\.secure_redirects" /etc/sysctl.conf /etc/sysctl.d/*
exit-status:
or:
- 0
- 1
stdout:
- '/^\/etc\/sysctl.*:net.ipv4.conf.all.secure_redirects\s*=\s*0/'
meta:
server: 1
workstation: 1
CIS_ID:
- 3.3.6
CISv8:
- 4.8
CISv8_IG1: false
CISv8_IG2: true
CISv8_IG3: true
NIST800-53R5:
- CM-1
- CM-2
- CM-6
- CM-7
- IA-5
ipv4_def_sec_redirects:
title: 3.3.6 | Ensure secure ICMP redirects are not accepted | ipv4 all def redirects conf
exec: grep "net\.ipv4\.conf\.default\.secure_redirects" /etc/sysctl.conf /etc/sysctl.d/*
exit-status:
or:
- 0
- 1
stdout:
- '/^\/etc\/sysctl.*:net.ipv4.conf.default.secure_redirects\s*=\s*0/'
meta:
server: 1
workstation: 1
CIS_ID:
- 3.3.6
CISv8:
- 4.8
CISv8_IG1: false
CISv8_IG2: true
CISv8_IG3: true
NIST800-53R5:
- CM-1
- CM-2
- CM-6
- CM-7
- IA-5
{{ end }}
{{ end }}