Blame SOURCES/scap-security-guide-0.1.58-RHEL_08_010001-PR_7344.patch

362bfa
From bb5c2983be3b11c3cd1070cf1d3daca27cb700ee Mon Sep 17 00:00:00 2001
362bfa
From: Matthew Burket <mburket@redhat.com>
362bfa
Date: Thu, 19 Aug 2021 08:02:55 -0500
362bfa
Subject: [PATCH] Add a new rules RHEL-08-010001 and RHEL-07-020019
362bfa
362bfa
---
362bfa
 .../agent_mfetpd_running/oval/shared.xml      | 16 ++++++
362bfa
 .../agent_mfetpd_running/rule.yml             | 39 ++++++++++++++
362bfa
 .../group.yml                                 |  7 +++
362bfa
 .../package_mcafeetp_installed/rule.yml       | 51 +++++++++++++++++++
362bfa
 products/rhel7/profiles/stig.profile          |  2 +
362bfa
 products/rhel8/profiles/stig.profile          |  4 ++
362bfa
 shared/references/cce-redhat-avail.txt        |  4 --
362bfa
 .../data/profile_stability/rhel8/stig.profile |  2 +
362bfa
 .../profile_stability/rhel8/stig_gui.profile  |  2 +
362bfa
 9 files changed, 123 insertions(+), 4 deletions(-)
362bfa
 create mode 100644 linux_os/guide/system/software/integrity/endpoint_security_software/mcafee_security_software/mcafee_endpoint_security_software/agent_mfetpd_running/oval/shared.xml
362bfa
 create mode 100644 linux_os/guide/system/software/integrity/endpoint_security_software/mcafee_security_software/mcafee_endpoint_security_software/agent_mfetpd_running/rule.yml
362bfa
 create mode 100644 linux_os/guide/system/software/integrity/endpoint_security_software/mcafee_security_software/mcafee_endpoint_security_software/group.yml
362bfa
 create mode 100644 linux_os/guide/system/software/integrity/endpoint_security_software/mcafee_security_software/mcafee_endpoint_security_software/package_mcafeetp_installed/rule.yml
362bfa
362bfa
diff --git a/linux_os/guide/system/software/integrity/endpoint_security_software/mcafee_security_software/mcafee_endpoint_security_software/agent_mfetpd_running/oval/shared.xml b/linux_os/guide/system/software/integrity/endpoint_security_software/mcafee_security_software/mcafee_endpoint_security_software/agent_mfetpd_running/oval/shared.xml
362bfa
new file mode 100644
362bfa
index 00000000000..9900d8bd724
362bfa
--- /dev/null
362bfa
+++ b/linux_os/guide/system/software/integrity/endpoint_security_software/mcafee_security_software/mcafee_endpoint_security_software/agent_mfetpd_running/oval/shared.xml
362bfa
@@ -0,0 +1,16 @@
362bfa
+<def-group>
362bfa
+    <definition class="compliance" id="{{{ rule_id }}}" version="1">
362bfa
+        {{{ oval_metadata("Ensure that McAfee Endpoint Security for Linux (ENSL) is running.") }}}
362bfa
+        <criteria>
362bfa
+            <criterion comment="McAfee ENSL is running" test_ref="test_{{{ rule_id }}}"/>
362bfa
+        </criteria>
362bfa
+    </definition>
362bfa
+    <unix:process58_test check="all" id="test_{{{ rule_id }}}" comment="is mfetpd running" version="1">
362bfa
+        <unix:object object_ref="obj_{{{ rule_id }}}"/>
362bfa
+    </unix:process58_test>
362bfa
+
362bfa
+    <unix:process58_object id="obj_{{{ rule_id }}}" version="1">
362bfa
+        <unix:command_line operation="pattern match">^mfetpd.*$</unix:command_line>
362bfa
+        <unix:pid datatype="int" operation="greater than">0</unix:pid>
362bfa
+    </unix:process58_object>
362bfa
+</def-group>
362bfa
diff --git a/linux_os/guide/system/software/integrity/endpoint_security_software/mcafee_security_software/mcafee_endpoint_security_software/agent_mfetpd_running/rule.yml b/linux_os/guide/system/software/integrity/endpoint_security_software/mcafee_security_software/mcafee_endpoint_security_software/agent_mfetpd_running/rule.yml
362bfa
new file mode 100644
362bfa
index 00000000000..32c934467da
362bfa
--- /dev/null
362bfa
+++ b/linux_os/guide/system/software/integrity/endpoint_security_software/mcafee_security_software/mcafee_endpoint_security_software/agent_mfetpd_running/rule.yml
362bfa
@@ -0,0 +1,39 @@
362bfa
+documentation_complete: true
362bfa
+
362bfa
+prodtype: rhel7,rhel8
362bfa
+
362bfa
+title: 'Ensure McAfee Endpoint Security for Linux (ENSL) is running'
362bfa
+
362bfa
+description: |-
362bfa
+    Install McAfee Endpoint Security for Linux antivirus software
362bfa
+    which is provided for DoD systems and uses signatures to search for the
362bfa
+    presence of viruses on the filesystem.
362bfa
+
362bfa
+rationale: |-
362bfa
+    Virus scanning software can be used to detect if a system has been compromised by
362bfa
+    computer viruses, as well as to limit their spread to other systems.
362bfa
+
362bfa
+severity: high
362bfa
+
362bfa
+identifiers:
362bfa
+    cce@rhel7: CCE-86262-3
362bfa
+    cce@rhel8: CCE-86261-5
362bfa
+
362bfa
+references:
362bfa
+    disa: CCI-001233
362bfa
+    nist: SI-2(2)
362bfa
+    srg: SRG-OS-000191-GPOS-00080
362bfa
+    stigid@rhel7: RHEL-07-020019
362bfa
+    stigid@rhel8: RHEL-08-010001
362bfa
+
362bfa
+ocil_clause: 'virus scanning software is not running'
362bfa
+
362bfa
+ocil: |-
362bfa
+    To verify that McAfee Endpoint Security for Linux is
362bfa
+    running, run the following command:
362bfa
+    
$ sudo ps -ef | grep -i mfetpd
362bfa
+
362bfa
+warnings:
362bfa
+    - general: |-
362bfa
+        Due to McAfee Endpoint Security for Linux (ENSL) being 3rd party software,
362bfa
+        automated remediation is not available for this configuration check.
362bfa
diff --git a/linux_os/guide/system/software/integrity/endpoint_security_software/mcafee_security_software/mcafee_endpoint_security_software/group.yml b/linux_os/guide/system/software/integrity/endpoint_security_software/mcafee_security_software/mcafee_endpoint_security_software/group.yml
362bfa
new file mode 100644
362bfa
index 00000000000..f2e4e89851a
362bfa
--- /dev/null
362bfa
+++ b/linux_os/guide/system/software/integrity/endpoint_security_software/mcafee_security_software/mcafee_endpoint_security_software/group.yml
362bfa
@@ -0,0 +1,7 @@
362bfa
+documentation_complete: true
362bfa
+
362bfa
+title: 'McAfee Endpoint Security for Linux (ENSL)'
362bfa
+
362bfa
+description: |-
362bfa
+    McAfee Endpoint Security for Linux (ENSL) is a suite of software applications
362bfa
+    used to monitor, detect, and defend computer networks and systems.
362bfa
diff --git a/linux_os/guide/system/software/integrity/endpoint_security_software/mcafee_security_software/mcafee_endpoint_security_software/package_mcafeetp_installed/rule.yml b/linux_os/guide/system/software/integrity/endpoint_security_software/mcafee_security_software/mcafee_endpoint_security_software/package_mcafeetp_installed/rule.yml
362bfa
new file mode 100644
362bfa
index 00000000000..16587792eff
362bfa
--- /dev/null
362bfa
+++ b/linux_os/guide/system/software/integrity/endpoint_security_software/mcafee_security_software/mcafee_endpoint_security_software/package_mcafeetp_installed/rule.yml
362bfa
@@ -0,0 +1,51 @@
362bfa
+documentation_complete: true
362bfa
+
362bfa
+prodtype: rhel7,rhel8
362bfa
+
362bfa
+title: 'Install McAfee Endpoint Security for Linux (ENSL)'
362bfa
+
362bfa
+description: |-
362bfa
+    Install McAfee Endpoint Security for Linux antivirus software
362bfa
+    which is provided for DoD systems and uses signatures to search for the
362bfa
+    presence of viruses on the filesystem.
362bfa
+
362bfa
+    {{{ describe_package_install(package="mcafeetp") }}}
362bfa
+
362bfa
+rationale: |-
362bfa
+    Virus scanning software can be used to detect if a system has been compromised by
362bfa
+    computer viruses, as well as to limit their spread to other systems.
362bfa
+
362bfa
+severity: high
362bfa
+
362bfa
+identifiers:
362bfa
+    cce@rhel7: CCE-86257-3
362bfa
+    cce@rhel8: CCE-86260-7
362bfa
+
362bfa
+references:
362bfa
+    disa: CCI-001233
362bfa
+    nist: SI-2(2)
362bfa
+    srg: SRG-OS-000191-GPOS-00080
362bfa
+    stigid@rhel7: RHEL-07-020019
362bfa
+    stigid@rhel8: RHEL-08-010001
362bfa
+
362bfa
+ocil_clause: 'the package is not installed'
362bfa
+
362bfa
+ocil: '{{{ ocil_package(package="mcafeetp") }}}'
362bfa
+
362bfa
+warnings:
362bfa
+    - general: |-
362bfa
+        Due to McAfee Endpoint Security for Linux (ENSL) being 3rd party software,
362bfa
+        automated remediation is not available for this configuration check.
362bfa
+
362bfa
+platform: machine
362bfa
+
362bfa
+template:
362bfa
+    name: package_installed
362bfa
+    vars:
362bfa
+        pkgname: mcafeetp
362bfa
+    backends:
362bfa
+        bash: "off"
362bfa
+        ansible: "off"
362bfa
+        anaconda: "off"
362bfa
+        puppet: "off"
362bfa
+        blueprint: "off"
362bfa
diff --git a/products/rhel7/profiles/stig.profile b/products/rhel7/profiles/stig.profile
362bfa
index f5761c891f2..9ca13600057 100644
362bfa
--- a/products/rhel7/profiles/stig.profile
362bfa
+++ b/products/rhel7/profiles/stig.profile
362bfa
@@ -316,3 +316,5 @@ selections:
362bfa
     - file_permissions_var_log_audit
362bfa
     - sysctl_net_ipv4_conf_all_rp_filter
362bfa
     - sysctl_net_ipv4_conf_default_rp_filter
362bfa
+    - package_mcafeetp_installed
362bfa
+    - agent_mfetpd_running
362bfa
diff --git a/products/rhel8/profiles/stig.profile b/products/rhel8/profiles/stig.profile
362bfa
index 9dc9360e899..36f384621ae 100644
362bfa
--- a/products/rhel8/profiles/stig.profile
362bfa
+++ b/products/rhel8/profiles/stig.profile
362bfa
@@ -84,6 +84,10 @@ selections:
362bfa
     # RHEL-08-010000
362bfa
     - installed_OS_is_vendor_supported
362bfa
 
362bfa
+    # RHEL-08-010001
362bfa
+    - package_mcafeetp_installed
362bfa
+    - agent_mfetpd_running
362bfa
+
362bfa
     # RHEL-08-010010
362bfa
     - security_patches_up_to_date
362bfa
 
362bfa
diff --git a/shared/references/cce-redhat-avail.txt b/shared/references/cce-redhat-avail.txt
362bfa
index 3b24e19da06..08013e6de22 100644
362bfa
--- a/shared/references/cce-redhat-avail.txt
362bfa
+++ b/shared/references/cce-redhat-avail.txt
362bfa
@@ -372,12 +372,8 @@ CCE-86253-2
362bfa
 CCE-86254-0
362bfa
 CCE-86255-7
362bfa
 CCE-86256-5
362bfa
-CCE-86257-3
362bfa
 CCE-86258-1
362bfa
 CCE-86259-9
362bfa
-CCE-86260-7
362bfa
-CCE-86261-5
362bfa
-CCE-86262-3
362bfa
 CCE-86263-1
362bfa
 CCE-86264-9
362bfa
 CCE-86265-6
362bfa
diff --git a/tests/data/profile_stability/rhel8/stig.profile b/tests/data/profile_stability/rhel8/stig.profile
362bfa
index e9ba0f0adbf..f3e6c4fa1a1 100644
362bfa
--- a/tests/data/profile_stability/rhel8/stig.profile
362bfa
+++ b/tests/data/profile_stability/rhel8/stig.profile
362bfa
@@ -65,6 +65,7 @@ selections:
362bfa
 - accounts_user_interactive_home_directory_defined
362bfa
 - accounts_user_interactive_home_directory_exists
362bfa
 - aide_check_audit_tools
362bfa
+- agent_mfetpd_running
362bfa
 - aide_scan_notification
362bfa
 - aide_verify_acls
362bfa
 - aide_verify_ext_attributes
362bfa
@@ -280,6 +281,7 @@ selections:
362bfa
 - package_gssproxy_removed
362bfa
 - package_iprutils_removed
362bfa
 - package_krb5-workstation_removed
362bfa
+- package_mcafeetp_installed
362bfa
 - package_opensc_installed
362bfa
 - package_openssh-server_installed
362bfa
 - package_policycoreutils_installed
362bfa
diff --git a/tests/data/profile_stability/rhel8/stig_gui.profile b/tests/data/profile_stability/rhel8/stig_gui.profile
362bfa
index c8540f9392e..b5b60349a83 100644
362bfa
--- a/tests/data/profile_stability/rhel8/stig_gui.profile
362bfa
+++ b/tests/data/profile_stability/rhel8/stig_gui.profile
362bfa
@@ -76,6 +76,7 @@ selections:
362bfa
 - accounts_user_interactive_home_directory_defined
362bfa
 - accounts_user_interactive_home_directory_exists
362bfa
 - aide_check_audit_tools
362bfa
+- agent_mfetpd_running
362bfa
 - aide_scan_notification
362bfa
 - aide_verify_acls
362bfa
 - aide_verify_ext_attributes
362bfa
@@ -291,6 +292,7 @@ selections:
362bfa
 - package_gssproxy_removed
362bfa
 - package_iprutils_removed
362bfa
 - package_krb5-workstation_removed
362bfa
+- package_mcafeetp_installed
362bfa
 - package_opensc_installed
362bfa
 - package_openssh-server_installed
362bfa
 - package_policycoreutils_installed