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

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