UBUNTU24-CIS-Audit/section_5/cis_5.1/cis_5.1.22.yml

31 lines
520 B
YAML

---
{{ if .Vars.ubtu24cis_level_1 }}
{{ if .Vars.ubtu24cis_rule_5_1_22 }}
file:
ssh_usepam:
title: 5.1.22 | Ensure SSH PAM is enabled
path: /etc/ssh/sshd_config
exists: true
contents:
- 'UsePAM yes'
- '!/^UsePAM no/'
meta:
server: 1
workstation: 1
CIS_ID:
- 5.1.22
CISv8:
- 4.1
CISv8_IG1: true
CISv8_IG2: true
CISv8_IG3: true
NIST800-53R5:
- CM-1
- CM-2
- CM-6
- CM-7
- IA-5
{{ end }}
{{ end }}