Blame SOURCES/scap-security-guide-0.1.58-rhel8_stig_08_020270-PR_7276.patch

362bfa
From eed29b1db9dd62d014842340abb8601570fe6655 Mon Sep 17 00:00:00 2001
362bfa
From: Carlos Matos <cmatos@redhat.com>
362bfa
Date: Thu, 22 Jul 2021 14:26:49 -0400
362bfa
Subject: [PATCH] New rule for RHEL-08-020270
362bfa
362bfa
---
362bfa
 .../account_emergency_expire_date/rule.yml    | 52 +++++++++++++++++++
362bfa
 products/rhel8/profiles/stig.profile          |  1 +
362bfa
 shared/references/cce-redhat-avail.txt        |  1 -
362bfa
 .../data/profile_stability/rhel8/stig.profile |  1 +
362bfa
 .../profile_stability/rhel8/stig_gui.profile  |  1 +
362bfa
 5 files changed, 55 insertions(+), 1 deletion(-)
362bfa
 create mode 100644 linux_os/guide/system/accounts/accounts-restrictions/account_expiration/account_emergency_expire_date/rule.yml
362bfa
362bfa
diff --git a/linux_os/guide/system/accounts/accounts-restrictions/account_expiration/account_emergency_expire_date/rule.yml b/linux_os/guide/system/accounts/accounts-restrictions/account_expiration/account_emergency_expire_date/rule.yml
362bfa
new file mode 100644
362bfa
index 0000000000..a47c7f39bc
362bfa
--- /dev/null
362bfa
+++ b/linux_os/guide/system/accounts/accounts-restrictions/account_expiration/account_emergency_expire_date/rule.yml
362bfa
@@ -0,0 +1,52 @@
362bfa
+documentation_complete: true
362bfa
+
362bfa
+prodtype: fedora,rhel8
362bfa
+
362bfa
+title: 'Assign Expiration Date to Emergency Accounts'
362bfa
+
362bfa
+description: |-
362bfa
+    Emergency accounts are privileged accounts established in response to
362bfa
+    crisis situations where the need for rapid account activation is required.
362bfa
+    In the event emergency accounts are required, configure the system to
362bfa
+    terminate them after a documented time period. For every emergency account,
362bfa
+    run the following command to set an expiration date on it, substituting
362bfa
+    <tt>ACCOUNT_NAME</tt> and <tt>YYYY-MM-DD</tt>
362bfa
+    appropriately:
362bfa
+    
$ sudo chage -E YYYY-MM-DD ACCOUNT_NAME
362bfa
+    <tt>YYYY-MM-DD</tt> indicates the documented expiration date for the
362bfa
+    account. For U.S. Government systems, the operating system must be
362bfa
+    configured to automatically terminate these types of accounts after a
362bfa
+    period of 72 hours.
362bfa
+
362bfa
+rationale: |-
362bfa
+    If emergency user accounts remain active when no longer needed or for
362bfa
+    an excessive period, these accounts may be used to gain unauthorized access.
362bfa
+    To mitigate this risk, automated termination of all emergency accounts
362bfa
+    must be set upon account creation.
362bfa
+    
362bfa
+
362bfa
+severity: medium
362bfa
+
362bfa
+identifiers:
362bfa
+    cce@rhel8: CCE-85910-8
362bfa
+
362bfa
+references:
362bfa
+    cis-csc: 1,12,13,14,15,16,18,3,5,7,8
362bfa
+    cobit5: DSS01.03,DSS03.05,DSS05.04,DSS05.05,DSS05.07,DSS06.03
362bfa
+    disa: CCI-000016,CCI-001682
362bfa
+    isa-62443-2009: 4.3.3.2.2,4.3.3.5.1,4.3.3.5.2,4.3.3.7.2,4.3.3.7.3,4.3.3.7.4
362bfa
+    isa-62443-2013: 'SR 1.1,SR 1.2,SR 1.3,SR 1.4,SR 1.5,SR 1.7,SR 1.8,SR 1.9,SR 2.1,SR 6.2'
362bfa
+    iso27001-2013: A.12.4.1,A.12.4.3,A.6.1.2,A.7.1.1,A.9.1.2,A.9.2.1,A.9.2.2,A.9.2.3,A.9.2.4,A.9.2.6,A.9.3.1,A.9.4.1,A.9.4.2,A.9.4.3,A.9.4.4,A.9.4.5
362bfa
+    nist: AC-2(2),AC-2(3),CM-6(a)
362bfa
+    nist-csf: DE.CM-1,DE.CM-3,PR.AC-1,PR.AC-4,PR.AC-6
362bfa
+    srg: SRG-OS-000123-GPOS-00064,SRG-OS-000002-GPOS-00002
362bfa
+    stigid@rhel8: RHEL-08-020270
362bfa
+    vmmsrg: SRG-OS-000002-VMM-000020,SRG-OS-000123-VMM-000620
362bfa
+
362bfa
+ocil_clause: 'any emergency accounts have no expiration date set or do not expire within a documented time frame'
362bfa
+
362bfa
+ocil: |-
362bfa
+    For every emergency account, run the following command
362bfa
+    to obtain its account aging and expiration information:
362bfa
+    
$ sudo chage -l ACCOUNT_NAME
362bfa
+    Verify each of these accounts has an expiration date set as documented.
362bfa
diff --git a/products/rhel8/profiles/stig.profile b/products/rhel8/profiles/stig.profile
362bfa
index 7270a8f91f..c4b9d02af5 100644
362bfa
--- a/products/rhel8/profiles/stig.profile
362bfa
+++ b/products/rhel8/profiles/stig.profile
362bfa
@@ -558,6 +558,7 @@ selections:
362bfa
     - account_disable_post_pw_expiration
362bfa
 
362bfa
     # RHEL-08-020270
362bfa
+    - account_emergency_expire_date
362bfa
 
362bfa
     # RHEL-08-020280
362bfa
     - accounts_password_pam_ocredit
362bfa
diff --git a/shared/references/cce-redhat-avail.txt b/shared/references/cce-redhat-avail.txt
362bfa
index 665f903ead..f500179292 100644
362bfa
--- a/shared/references/cce-redhat-avail.txt
362bfa
+++ b/shared/references/cce-redhat-avail.txt
362bfa
@@ -43,7 +43,6 @@ CCE-85906-6
362bfa
 CCE-85907-4
362bfa
 CCE-85908-2
362bfa
 CCE-85909-0
362bfa
-CCE-85910-8
362bfa
 CCE-85911-6
362bfa
 CCE-85912-4
362bfa
 CCE-85913-2
362bfa
diff --git a/tests/data/profile_stability/rhel8/stig.profile b/tests/data/profile_stability/rhel8/stig.profile
362bfa
index 7d59cfff62..72e205b695 100644
362bfa
--- a/tests/data/profile_stability/rhel8/stig.profile
362bfa
+++ b/tests/data/profile_stability/rhel8/stig.profile
362bfa
@@ -24,6 +24,7 @@ documentation_complete: true
362bfa
 reference: https://public.cyber.mil/stigs/downloads/?_dl_facet_stigs=operating-systems%2Cunix-linux
362bfa
 selections:
362bfa
 - account_disable_post_pw_expiration
362bfa
+- account_emergency_expire_date
362bfa
 - account_temp_expire_date
362bfa
 - accounts_have_homedir_login_defs
362bfa
 - accounts_logon_fail_delay
362bfa
diff --git a/tests/data/profile_stability/rhel8/stig_gui.profile b/tests/data/profile_stability/rhel8/stig_gui.profile
362bfa
index 2c2daad6f6..cc21621617 100644
362bfa
--- a/tests/data/profile_stability/rhel8/stig_gui.profile
362bfa
+++ b/tests/data/profile_stability/rhel8/stig_gui.profile
362bfa
@@ -35,6 +35,7 @@ documentation_complete: true
362bfa
 reference: https://public.cyber.mil/stigs/downloads/?_dl_facet_stigs=operating-systems%2Cunix-linux
362bfa
 selections:
362bfa
 - account_disable_post_pw_expiration
362bfa
+- account_emergency_expire_date
362bfa
 - account_temp_expire_date
362bfa
 - accounts_have_homedir_login_defs
362bfa
 - accounts_logon_fail_delay