Skip to content

Commit 36fd647

Browse files
committed
Use login_banner_contents variable in rule banner_etc_issue
Use login_banner_contents variable in remediations in rule banner_etc_issue. Also, add test scenarios to test the ability to parametrize the rule with a custom banner text.
1 parent 08f990c commit 36fd647

36 files changed

Lines changed: 65 additions & 35 deletions

controls/ccn_ol9.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -625,6 +625,7 @@ controls:
625625
- dconf_gnome_login_banner_text
626626
- sshd_enable_warning_banner_net
627627
- login_banner_text=cis_default
628+
- login_banner_contents=cis_default
628629
- motd_banner_text=cis_default
629630
- remote_login_banner_text=cis_default
630631

controls/cis_al2023.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -477,6 +477,7 @@ controls:
477477
rules:
478478
- banner_etc_issue
479479
- login_banner_text=cis_banners
480+
- login_banner_contents=cis_default
480481

481482
- id: 1.7.3
482483
title: Ensure remote login warning banner is configured properly (Automated)

controls/cis_sle12.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -467,6 +467,7 @@ controls:
467467
rules:
468468
- banner_etc_issue
469469
- login_banner_text=cis_banners
470+
- login_banner_contents=cis_default
470471

471472
- id: 1.8.1.3
472473
title: Ensure remote login warning banner is configured properly (Automated)

controls/cis_sle15.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -465,6 +465,7 @@ controls:
465465
rules:
466466
- banner_etc_issue
467467
- login_banner_text=cis_banners
468+
- login_banner_contents=cis_default
468469

469470
- id: 1.8.1.3
470471
title: Ensure remote login warning banner is configured properly (Automated)

controls/general_sle15.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -479,6 +479,7 @@ controls:
479479
rules:
480480
- banner_etc_issue
481481
- login_banner_text=cis_banners
482+
- login_banner_contents=cis_default
482483

483484
- id: SLES-15-151050045
484485
title: Modify the System Login Banner for Remote Connections

controls/general_slmicro5.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -278,6 +278,7 @@ controls:
278278
rules:
279279
- banner_etc_issue
280280
- login_banner_text=cis_banners
281+
- login_banner_contents=cis_default
281282

282283
- id: SLEM-5-SET-08010300
283284
title: Modify the System Login Banner for Remote Connections
@@ -1021,6 +1022,7 @@ controls:
10211022
rules:
10221023
- banner_etc_issue
10231024
- login_banner_text=dod_banners
1025+
- login_banner_contents=dod_default
10241026
- sshd_enable_warning_banner
10251027
status: automated
10261028

controls/nist_rhcos4.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1228,6 +1228,7 @@ controls:
12281228
rules:
12291229
- banner_etc_issue
12301230
- login_banner_text=dod_banners
1231+
- login_banner_contents=dod_default
12311232
description: "The information system:\n a. Displays to users [Assignment: organization-defined\
12321233
\ system use notification message or banner] before granting access to the system that provides\
12331234
\ privacy and security notices consistent with applicable federal laws, Executive Orders, directives,\

controls/srg_gpos.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,6 @@ controls:
2626
- var_accounts_authorized_local_users_regex=rhel9
2727
- var_account_disable_post_pw_expiration=35
2828
- login_banner_text=dod_banners
29+
- login_banner_contents=dod_default
2930
- var_authselect_profile=sssd
3031
- var_auditd_name_format=stig

controls/std_kylinserver10.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,7 @@ controls:
119119
rules:
120120
- banner_etc_issue
121121
- login_banner_text=cis_banners
122+
- login_banner_contents=cis_default
122123

123124
- id: 1.14
124125
title: ensure-message-of-the-day-is-configured-properly

controls/std_tencentos4.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,7 @@ controls:
123123
rules:
124124
- banner_etc_issue
125125
- login_banner_text=cis_banners
126+
- login_banner_contents=cis_default
126127

127128
- id: 1.4.3
128129
title: Ensure remote login warning banner is configured properly

0 commit comments

Comments
 (0)