30 lines
606 B
YAML
30 lines
606 B
YAML
---
|
|
|
|
{{ if .Vars.ubtu24cis_level_1 }}
|
|
{{ if .Vars.ubtu24cis_rule_1_6_2 }}
|
|
command:
|
|
local_login_banner:
|
|
title: 1.6.2 | Ensure local login warning banner is configured properly
|
|
exec: grep -Eis "(\\\v|\\\r|\\\m|\\\s|$(grep '^ID=' /etc/os-release | cut -d= -f2 | sed -e 's/"//g'))" /etc/issue
|
|
exit-status:
|
|
or:
|
|
- 0
|
|
- 1
|
|
stdout:
|
|
- '!/.*/'
|
|
meta:
|
|
server: 1
|
|
workstation: 1
|
|
CIS_ID:
|
|
- 1.6.2
|
|
CISv8: NA
|
|
CISv8_IG1: NA
|
|
CISv8_IG2: NA
|
|
CISv8_IG3: NA
|
|
NIST800-53R5:
|
|
- CM-6
|
|
- CM-1
|
|
- CM-3
|
|
{{ end }}
|
|
{{ end }}
|