{
  "format_version": 3,
  "policy": {
    "external_id": "ea9eb29153c8989596f694a8d0c673e0",
    "name": "CIS Rocky Linux 10 Benchmark v1.0.0 - Level 1 Server",
    "version": "1.0.1",
    "description": "Center for Internet Security benchmark — Level 1 server hardening for Rocky Linux 10 (RHEL-derived). Generated from CIS_Rocky_Linux_10_Benchmark_v1.0.0.pdf.",
    "author": "Center for Internet Security"
  },
  "tests": [
    {
      "external_id": "bacd0ada72c560b1366f84e72a7ea2b7",
      "name": "1.1.1.1 — Ensure cramfs kernel module is not available",
      "description": "Ensure cramfs kernel module is not available",
      "rational": "Removing support for unneeded filesystem types reduces the local attack surface of the \nsystem. If this filesystem type is not needed, disable it.",
      "remediation": "Unload and disable the cramfs kernel module. \n\n1.  Run the following commands to unload the cramfs kernel module: \n\n# modprobe -r cramfs 2>/dev/null \n# rmmod cramfs 2>/dev/null \n\n2.  Perform the following to disable the cramfs kernel module: \n\nCreate a file ending in .conf with install cramfs /bin/false in the \n/etc/modprobe.d/ directory. \n\nExample: \n\n# printf '%s\\n' \"\" \"install cramfs /bin/false\" >> /etc/modprobe.d/60-\ncramfs.conf \n\nCreate a file ending in .conf with blacklist cramfs in the...",
      "severity": "Medium",
      "filter": null,
      "app_filter": null,
      "conditions": [
        {
          "type": "condition",
          "element": "CMD",
          "input": "lsmod | grep -c '^cramfs ' || true",
          "selement": "OUTPUT",
          "condition": "EQUALS",
          "sinput": "0"
        }
      ],
      "applicability": [
        {
          "type": "applicability",
          "element": "OS",
          "input": "",
          "selement": "CONTENT",
          "condition": "CONTAINS",
          "sinput": "Rocky"
        }
      ]
    },
    {
      "external_id": "2e875d451d053065bf031e01094f8389",
      "name": "1.1.1.3 — Ensure hfs kernel module is not available",
      "description": "Ensure hfs kernel module is not available",
      "rational": "Removing support for unneeded filesystem types reduces the local attack surface of the \nsystem. If this filesystem type is not needed, disable it.",
      "remediation": "Unload and disable the hfs kernel module. \n\n1.  Run the following commands to unload the hfs kernel module: \n\nmodprobe -r hfs 2>/dev/null \nrmmod hfs 2>/dev/null \n\n2.  Perform the following to disable the hfs kernel module: \n\nCreate a file ending in .conf with install hfs /bin/false in the /etc/modprobe.d/ \ndirectory. \n\nExample: \n\n# printf '%s\\n' \"\" \"install hfs /bin/false\" >> /etc/modprobe.d/60-hfs.conf \n\nCreate a file ending in .conf with blacklist hfs in the /etc/modprobe.d/ directory. \n\nEx...",
      "severity": "Medium",
      "filter": null,
      "app_filter": null,
      "conditions": [
        {
          "type": "condition",
          "element": "CMD",
          "input": "lsmod | grep -c '^hfs ' || true",
          "selement": "OUTPUT",
          "condition": "EQUALS",
          "sinput": "0"
        }
      ],
      "applicability": [
        {
          "type": "applicability",
          "element": "OS",
          "input": "",
          "selement": "CONTENT",
          "condition": "CONTAINS",
          "sinput": "Rocky"
        }
      ]
    },
    {
      "external_id": "462cad1f0ec749bbb4faac2657b7af6e",
      "name": "1.1.1.4 — Ensure hfsplus kernel module is not available",
      "description": "Ensure hfsplus kernel module is not available",
      "rational": "Removing support for unneeded filesystem types reduces the local attack surface of the \nsystem. If this filesystem type is not needed, disable it.",
      "remediation": "Unload and disable the hfsplus kernel module. \n\n1.  Run the following commands to unload the hfsplus kernel module: \n\n# modprobe -r hfsplus 2>/dev/null \n# rmmod hfsplus 2>/dev/null \n\n2.  Perform the following to disable the hfsplus kernel module: \n\nCreate a file ending in .conf with install hfsplus /bin/false in the \n/etc/modprobe.d/ directory. \n\nExample: \n\n# printf '%s\\n' \"\" \"install hfsplus /bin/false\" >> /etc/modprobe.d/60-\nhfsplus.conf \n\nCreate a file ending in .conf with blacklist hfsplu...",
      "severity": "Medium",
      "filter": null,
      "app_filter": null,
      "conditions": [
        {
          "type": "condition",
          "element": "CMD",
          "input": "lsmod | grep -c '^hfsplus ' || true",
          "selement": "OUTPUT",
          "condition": "EQUALS",
          "sinput": "0"
        }
      ],
      "applicability": [
        {
          "type": "applicability",
          "element": "OS",
          "input": "",
          "selement": "CONTENT",
          "condition": "CONTAINS",
          "sinput": "Rocky"
        }
      ]
    },
    {
      "external_id": "c3dcc1755165e440cc4bd25af9b73311",
      "name": "1.1.1.5 — Ensure jffs2 kernel module is not available",
      "description": "Ensure jffs2 kernel module is not available",
      "rational": "Removing support for unneeded filesystem types reduces the local attack surface of the \nsystem. If this filesystem type is not needed, disable it.",
      "remediation": "Unload and disable the jffs2 kernel module. \n\n1.  Run the following commands to unload the jffs2 kernel module: \n\n# modprobe -r jffs2 2>/dev/null \n# rmmod jffs2 2>/dev/null \n\n2.  Perform the following to disable the jffs2 kernel module: \n\nCreate a file ending in .conf with install jffs2 /bin/false in the \n/etc/modprobe.d/ directory. \n\nExample: \n\n# printf '%s\\n' \"\" \"install jffs2 /bin/false\" >> /etc/modprobe.d/60-\njffs2.conf \n\nCreate a file ending in .conf with blacklist jffs2 in the /etc/modp...",
      "severity": "Medium",
      "filter": null,
      "app_filter": null,
      "conditions": [
        {
          "type": "condition",
          "element": "CMD",
          "input": "lsmod | grep -c '^jffs2 ' || true",
          "selement": "OUTPUT",
          "condition": "EQUALS",
          "sinput": "0"
        }
      ],
      "applicability": [
        {
          "type": "applicability",
          "element": "OS",
          "input": "",
          "selement": "CONTENT",
          "condition": "CONTAINS",
          "sinput": "Rocky"
        }
      ]
    },
    {
      "external_id": "43baa16e753e16eb6618a8f68681c753",
      "name": "1.1.1.8 — Ensure udf kernel module is not available",
      "description": "Ensure udf kernel module is not available",
      "rational": "Removing support for unneeded filesystem types reduces the local attack surface of the \nsystem. If this filesystem type is not needed, disable it.",
      "remediation": "Unload and disable the udf kernel module. \n\n1.  Run the following commands to unload the udf kernel module: \n\n# modprobe -r udf 2>/dev/null \n# rmmod udf 2>/dev/null \n\n2.  Perform the following to disable the udf kernel module: \n\nCreate a file ending in .conf with install udf /bin/false in the /etc/modprobe.d/ \ndirectory \n\nExample: \n\n# printf '%s\\n' \"\" \"install udf /bin/false\" >> /etc/modprobe.d/60-udf.conf \n\nCreate a file ending in .conf with blacklist udf in the /etc/modprobe.d/ directory...",
      "severity": "Medium",
      "filter": null,
      "app_filter": null,
      "conditions": [
        {
          "type": "condition",
          "element": "CMD",
          "input": "lsmod | grep -c '^udf ' || true",
          "selement": "OUTPUT",
          "condition": "EQUALS",
          "sinput": "0"
        }
      ],
      "applicability": [
        {
          "type": "applicability",
          "element": "OS",
          "input": "",
          "selement": "CONTENT",
          "condition": "CONTAINS",
          "sinput": "Rocky"
        }
      ]
    },
    {
      "external_id": "f4a8817b250f23a1e688ec2a11172e91",
      "name": "1.1.2.1.1 — Ensure /tmp is tmpfs or a separate partition",
      "description": "Ensure /tmp is tmpfs or a separate partition",
      "rational": "Making /tmp its own file system allows an administrator to set additional mount options \nsuch as the noexec option on the mount, making /tmp useless for an attacker to install \nexecutable code. It would also prevent an attacker from establishing a hard link to a \nsystem setuid program and wait for it to be updated. Once the program was updated, \nthe hard link would be broken, and the attacker w...",
      "remediation": "First ensure that systemd is correctly configured to ensure that /tmp will be mounted at \nboot time. \n\n# systemctl unmask tmp.mount \n\nFor specific configuration requirements of the /tmp mount for your environment, modify \n/etc/fstab. \n\nExample of using tmpfs with specific mount options: \n\ntmpfs  /tmp \n0 \n\ntmpfs     defaults,rw,nosuid,nodev,noexec,relatime,size=2G  0 \n\nNote: the size=2G is an example of setting a specific size for tmpfs. \n\nExample of using a volume or disk with specific mount...",
      "severity": "Medium",
      "filter": null,
      "app_filter": null,
      "conditions": [
        {
          "type": "condition",
          "element": "SERVICE",
          "input": "tmp.mount",
          "selement": "ENABLED",
          "condition": null,
          "sinput": null
        }
      ],
      "applicability": [
        {
          "type": "applicability",
          "element": "OS",
          "input": "",
          "selement": "CONTENT",
          "condition": "CONTAINS",
          "sinput": "Rocky"
        }
      ]
    },
    {
      "external_id": "05fec68b6f5dfd89657ed57273920d95",
      "name": "1.1.2.1.2 — Ensure nodev option set on /tmp partition",
      "description": "Ensure nodev option set on /tmp partition",
      "rational": "Since the /tmp filesystem is not intended to support devices, set this option to ensure \nthat users cannot create a block or character special devices in /tmp.",
      "remediation": "- IF - a separate partition exists for /tmp. \n\nEdit the /etc/fstab file and add nodev to the fourth field (mounting options) for the \n/tmp partition. \n\nExample: \n\n<device> /tmp    <fstype>     defaults,rw,nosuid,nodev,noexec,relatime  0 0 \n\nRun the following command to remount /tmp with the configured options: \n\n# mount -o remount /tmp",
      "severity": "Medium",
      "filter": null,
      "app_filter": null,
      "conditions": [
        {
          "type": "condition",
          "element": "CMD",
          "input": "findmnt -kn /tmp",
          "selement": "OUTPUT",
          "condition": "CONTAINS",
          "sinput": "nodev"
        }
      ],
      "applicability": [
        {
          "type": "applicability",
          "element": "OS",
          "input": "",
          "selement": "CONTENT",
          "condition": "CONTAINS",
          "sinput": "Rocky"
        }
      ]
    },
    {
      "external_id": "28107af3e62b4ad461e56a77b826f60d",
      "name": "1.1.2.1.3 — Ensure nosuid option set on /tmp partition",
      "description": "Ensure nosuid option set on /tmp partition",
      "rational": "Since the /tmp filesystem is only intended for temporary file storage, set this option to \nensure that users cannot create setuid files in /tmp.",
      "remediation": "- IF - a separate partition exists for /tmp. \n\nEdit the /etc/fstab file and add nosuid to the fourth field (mounting options) for the \n/tmp partition. \n\nExample: \n\n<device> /tmp    <fstype>     defaults,rw,nosuid,nodev,noexec,relatime  0 0 \n\nRun the following command to remount /tmp with the configured options: \n\n# mount -o remount /tmp",
      "severity": "Medium",
      "filter": null,
      "app_filter": null,
      "conditions": [
        {
          "type": "condition",
          "element": "CMD",
          "input": "findmnt -kn /tmp",
          "selement": "OUTPUT",
          "condition": "CONTAINS",
          "sinput": "nosuid"
        }
      ],
      "applicability": [
        {
          "type": "applicability",
          "element": "OS",
          "input": "",
          "selement": "CONTENT",
          "condition": "CONTAINS",
          "sinput": "Rocky"
        }
      ]
    },
    {
      "external_id": "da5bae29ed4e6d2ab05998ebc30c886a",
      "name": "1.1.2.1.4 — Ensure noexec option set on /tmp partition",
      "description": "Ensure noexec option set on /tmp partition",
      "rational": "Since the /tmp filesystem is only intended for temporary file storage, set this option to \nensure that users cannot run executable binaries from /tmp.",
      "remediation": "- IF - a separate partition exists for /tmp. \n\nEdit the /etc/fstab file and add noexec to the fourth field (mounting options) for the \n/tmp partition. \n\nExample: \n\n<device> /tmp    <fstype>     defaults,rw,nosuid,nodev,noexec,relatime  0 0 \n\nRun the following command to remount /tmp with the configured options: \n\n# mount -o remount /tmp \n\nPage 64",
      "severity": "Medium",
      "filter": null,
      "app_filter": null,
      "conditions": [
        {
          "type": "condition",
          "element": "CMD",
          "input": "findmnt -kn /tmp",
          "selement": "OUTPUT",
          "condition": "CONTAINS",
          "sinput": "noexec"
        }
      ],
      "applicability": [
        {
          "type": "applicability",
          "element": "OS",
          "input": "",
          "selement": "CONTENT",
          "condition": "CONTAINS",
          "sinput": "Rocky"
        }
      ]
    },
    {
      "external_id": "15490bc162e921d3642a5be45dbe8f8d",
      "name": "1.1.2.3.2 — Ensure nodev option set on /home partition",
      "description": "Ensure nodev option set on /home partition",
      "rational": "Since the /home filesystem is not intended to support devices, set this option to ensure \nthat users cannot create a block or character special devices in /home.",
      "remediation": "- IF - a separate partition exists for /home. \n\nEdit the /etc/fstab file and add nodev to the fourth field (mounting options) for the \n/home partition. \n\nExample: \n\n<device> /home    <fstype>     defaults,rw,nosuid,nodev,relatime  0 0 \n\nRun the following command to remount /home with the configured options: \n\n# mount -o remount /home",
      "severity": "Medium",
      "filter": null,
      "app_filter": null,
      "conditions": [
        {
          "type": "condition",
          "element": "CMD",
          "input": "findmnt -kn /home",
          "selement": "OUTPUT",
          "condition": "CONTAINS",
          "sinput": "nodev"
        }
      ],
      "applicability": [
        {
          "type": "applicability",
          "element": "OS",
          "input": "",
          "selement": "CONTENT",
          "condition": "CONTAINS",
          "sinput": "Rocky"
        }
      ]
    },
    {
      "external_id": "e0e2478a2b0fb9f0bc99dd595b0a44dd",
      "name": "1.1.2.3.3 — Ensure nosuid option set on /home partition",
      "description": "Ensure nosuid option set on /home partition",
      "rational": "Since the /home filesystem is only intended for user file storage, set this option to \nensure that users cannot create setuid files in /home.",
      "remediation": "- IF - a separate partition exists for /home. \n\nEdit the /etc/fstab file and add nosuid to the fourth field (mounting options) for the \n/home partition. \n\nExample: \n\n<device> /home    <fstype>     defaults,rw,nosuid,nodev,relatime  0 0 \n\nRun the following command to remount /home with the configured options: \n\n# mount -o remount /home",
      "severity": "Medium",
      "filter": null,
      "app_filter": null,
      "conditions": [
        {
          "type": "condition",
          "element": "CMD",
          "input": "findmnt -kn /home",
          "selement": "OUTPUT",
          "condition": "CONTAINS",
          "sinput": "nosuid"
        }
      ],
      "applicability": [
        {
          "type": "applicability",
          "element": "OS",
          "input": "",
          "selement": "CONTENT",
          "condition": "CONTAINS",
          "sinput": "Rocky"
        }
      ]
    },
    {
      "external_id": "5e92f4e5e507587e2b3eca53582550b9",
      "name": "1.1.2.4.2 — Ensure nodev option set on /var partition",
      "description": "Ensure nodev option set on /var partition",
      "rational": "Since the /var filesystem is not intended to support devices, set this option to ensure \nthat users cannot create a block or character special devices in /var.",
      "remediation": "- IF - a separate partition exists for /var. \n\nEdit the /etc/fstab file and add nodev to the fourth field (mounting options) for the \n/var partition. \n\nExample: \n\n<device> /var    <fstype>     defaults,rw,nosuid,nodev,relatime  0 0 \n\nRun the following command to remount /var with the configured options: \n\n# mount -o remount /var",
      "severity": "Medium",
      "filter": null,
      "app_filter": null,
      "conditions": [
        {
          "type": "condition",
          "element": "CMD",
          "input": "findmnt -kn /var",
          "selement": "OUTPUT",
          "condition": "CONTAINS",
          "sinput": "nodev"
        }
      ],
      "applicability": [
        {
          "type": "applicability",
          "element": "OS",
          "input": "",
          "selement": "CONTENT",
          "condition": "CONTAINS",
          "sinput": "Rocky"
        }
      ]
    },
    {
      "external_id": "8bd1bb7e75257b10171de99f98bf304c",
      "name": "1.1.2.4.3 — Ensure nosuid option set on /var partition",
      "description": "Ensure nosuid option set on /var partition",
      "rational": "Since the /var filesystem is only intended for variable files such as logs, set this option \nto ensure that users cannot create setuid files in /var.",
      "remediation": "- IF - a separate partition exists for /var. \n\nEdit the /etc/fstab file and add nosuid to the fourth field (mounting options) for the \n/var partition. \n\nExample: \n\n<device> /var    <fstype>     defaults,rw,nosuid,nodev,relatime  0 0 \n\nRun the following command to remount /var with the configured options: \n\n# mount -o remount /var",
      "severity": "Medium",
      "filter": null,
      "app_filter": null,
      "conditions": [
        {
          "type": "condition",
          "element": "CMD",
          "input": "findmnt -kn /var",
          "selement": "OUTPUT",
          "condition": "CONTAINS",
          "sinput": "nosuid"
        }
      ],
      "applicability": [
        {
          "type": "applicability",
          "element": "OS",
          "input": "",
          "selement": "CONTENT",
          "condition": "CONTAINS",
          "sinput": "Rocky"
        }
      ]
    },
    {
      "external_id": "e3f5244f7a9509e8bf822c5af670a4dc",
      "name": "1.1.2.6.1 — Ensure separate partition exists for /var/log",
      "description": "Ensure separate partition exists for /var/log",
      "rational": "The default installation only creates a single / partition. Since the /var/log directory \ncontains log files which can grow quite large, there is a risk of resource exhaustion. It \nwill essentially have the whole disk available to fill up and impact the system as a whole. \n\nConfiguring /var/log as its own file system allows an administrator to set additional \nmount options such as noexec/nosuid...",
      "remediation": "For new installations, during installation create a custom partition setup and specify a \nseparate partition for /var/log . \n\nFor systems that were previously installed, create a new partition and configure \n/etc/fstab as appropriate. \n\nPage 99",
      "severity": "Medium",
      "filter": null,
      "app_filter": null,
      "conditions": [
        {
          "type": "condition",
          "element": "CMD",
          "input": "findmnt -kn /var/log",
          "selement": "OUTPUT",
          "condition": "NOT EQUALS",
          "sinput": ""
        }
      ],
      "applicability": [
        {
          "type": "applicability",
          "element": "OS",
          "input": "",
          "selement": "CONTENT",
          "condition": "CONTAINS",
          "sinput": "Rocky"
        }
      ]
    },
    {
      "external_id": "b18d445cde80a758b6ae47b5d84b65fa",
      "name": "1.2.1.2 — Ensure gpgcheck is configured",
      "description": "Ensure gpgcheck is configured",
      "rational": "It is important to ensure that an RPM's package signature is always checked prior to \ninstallation to ensure that the software is obtained from a trusted source.",
      "remediation": "Edit /etc/dnf/dnf.conf and set gpgcheck=1 in the [main] section. Example \n\n[main] \ngpgcheck=1 \n\nEdit any failing files in /etc/yum.repos.d/* and set all instances starting with \ngpgcheck to 1. \n\nExample: \n\n# find /etc/yum.repos.d/ -name \"*.repo\" -exec echo \"Checking:\" {} \\; -exec \nsed -i 's/^gpgcheck\\s*=\\s*.*/gpgcheck=1/' {} \\;",
      "severity": "Medium",
      "filter": null,
      "app_filter": null,
      "conditions": [
        {
          "type": "condition",
          "element": "CMD",
          "input": "grep -Pi -- '^\\h*gpgcheck\\h*=\\h*(1|true|yes)\\b' /etc/dnf/dnf.conf",
          "selement": "OUTPUT",
          "condition": "NOT EQUALS",
          "sinput": ""
        }
      ],
      "applicability": [
        {
          "type": "applicability",
          "element": "OS",
          "input": "",
          "selement": "CONTENT",
          "condition": "CONTAINS",
          "sinput": "Rocky"
        }
      ]
    },
    {
      "external_id": "aa15d3a0a79f6eb31dcb2b228b410a9e",
      "name": "1.2.1.5 — Ensure weak dependencies are configured",
      "description": "Ensure weak dependencies are configured",
      "rational": "Unless a system specifically requires the additional capabilities provides by the weak \ndependencies, it is recommended that the packages are not installed to reduce the \npotential attack surface.",
      "remediation": "Edit /etc/dnf/dnf.conf and set install_weak_deps=0 in the [main] section. \n\n[main] \ninstall_weak_deps=0 \n\nExample script: \n\n#!/usr/bin/env bash \n\n{ \n   if grep -Pq '^install_weak_deps' /etc/dnf/dnf.conf; then \n      sed -i 's/^install_weak_deps\\s*=\\s*.*/install_weak_deps=0/' \n/etc/dnf/dnf.conf \n   else \n      printf '%s\\n' \"\" \"install_weak_deps=0\" >> /etc/dnf/dnf.conf \n   fi \n}",
      "severity": "Medium",
      "filter": null,
      "app_filter": null,
      "conditions": [
        {
          "type": "condition",
          "element": "CMD",
          "input": "grep -Pi -- '^\\h*install_weak_deps\\h*=\\h*(0|false|no)\\b' /etc/dnf/dnf.conf",
          "selement": "OUTPUT",
          "condition": "NOT EQUALS",
          "sinput": ""
        }
      ],
      "applicability": [
        {
          "type": "applicability",
          "element": "OS",
          "input": "",
          "selement": "CONTENT",
          "condition": "CONTAINS",
          "sinput": "Rocky"
        }
      ]
    },
    {
      "external_id": "6739c20cdb9c36f3132b86a1bdd6544e",
      "name": "1.3.1.1 — Ensure SELinux is installed",
      "description": "Ensure SELinux is installed",
      "rational": "Without a Mandatory Access Control system installed only the default Discretionary \nAccess Control system will be available.",
      "remediation": "Run the following command to install SELinux: \n\n# dnf install libselinux",
      "severity": "Medium",
      "filter": null,
      "app_filter": null,
      "conditions": [
        {
          "type": "condition",
          "element": "PACKAGE",
          "input": "libselinux",
          "selement": "EXISTS",
          "condition": "",
          "sinput": ""
        }
      ],
      "applicability": [
        {
          "type": "applicability",
          "element": "OS",
          "input": "",
          "selement": "CONTENT",
          "condition": "CONTAINS",
          "sinput": "Rocky"
        }
      ]
    },
    {
      "external_id": "05712892809d9cd7fdd7ca5f9ddf7fd7",
      "name": "1.3.1.3 — Ensure SELinux policy is configured",
      "description": "Ensure SELinux policy is configured",
      "rational": "Security configuration requirements vary from site to site. Some sites may mandate a \npolicy that is stricter than the default policy, which is perfectly acceptable. This item is \nintended to ensure that at least the default recommendations are met.",
      "remediation": "Edit /etc/selinux/config and add set the SELINUXTYPE line to targeted or mls: \n\nExample: \n\nSELINUXTYPE=targeted",
      "severity": "Medium",
      "filter": null,
      "app_filter": null,
      "conditions": [
        {
          "type": "condition",
          "element": "CMD",
          "input": "grep -Psi -- '^\\h*SELINUXTYPE\\h*=\\h*(targeted|mls)\\b' /etc/selinux/config",
          "selement": "OUTPUT",
          "condition": "NOT EQUALS",
          "sinput": ""
        }
      ],
      "applicability": [
        {
          "type": "applicability",
          "element": "OS",
          "input": "",
          "selement": "CONTENT",
          "condition": "CONTAINS",
          "sinput": "Rocky"
        }
      ]
    },
    {
      "external_id": "6c625b28abef89b04ecdf4adacddd03e",
      "name": "1.3.1.4 — Ensure the SELinux mode is not disabled",
      "description": "Ensure the SELinux mode is not disabled",
      "rational": "Running SELinux in disabled mode is strongly discouraged; not only does the system \navoid enforcing the SELinux policy, it also avoids labeling any persistent objects such \nas files, making it difficult to enable SELinux in the future.",
      "remediation": "1.  Edit /etc/selinux/config and update the SELINUX parameter to either \n\nSELINUX=enforcing or SELINUX=permissive: \n\nExample: \n\nSELINUX=enforcing \n\n2.  Update the SELinux running state to either enforcing or permissive: \n\nIf SELinux is currently disabled: \n\nRun the following command to create /.autorelabel: \n\n# touch /.autorelabel \n\nRun the following command to reboot the system: \n\n# reboot \n\nWARNING: The autorelabel may be a long running process and require significant \ndowntime. This should...",
      "severity": "Medium",
      "filter": null,
      "app_filter": null,
      "conditions": [
        {
          "type": "condition",
          "element": "CMD",
          "input": "grep -Pi -- '^\\h*SELINUX=(enforcing|permissive)\\b' /etc/selinux/config",
          "selement": "OUTPUT",
          "condition": "NOT EQUALS",
          "sinput": ""
        }
      ],
      "applicability": [
        {
          "type": "applicability",
          "element": "OS",
          "input": "",
          "selement": "CONTENT",
          "condition": "CONTAINS",
          "sinput": "Rocky"
        }
      ]
    },
    {
      "external_id": "57074ad5f19e7484a3a0a2abc7ba50c8",
      "name": "1.3.1.8 — Ensure SETroubleshoot is not installed",
      "description": "Ensure SETroubleshoot is not installed",
      "rational": "The SETroubleshoot service is an unnecessary daemon to have running on a server, \nespecially if X Windows is disabled.",
      "remediation": "Run the following command to uninstall setroubleshoot: \n\n# dnf remove setroubleshoot",
      "severity": "Medium",
      "filter": null,
      "app_filter": null,
      "conditions": [
        {
          "type": "condition",
          "element": "PACKAGE",
          "input": "setroubleshoot",
          "selement": "NOT EXISTS",
          "condition": "",
          "sinput": ""
        }
      ],
      "applicability": [
        {
          "type": "applicability",
          "element": "OS",
          "input": "",
          "selement": "CONTENT",
          "condition": "CONTAINS",
          "sinput": "Rocky"
        }
      ]
    },
    {
      "external_id": "73f15d203d688049a39557798585347a",
      "name": "1.4.1 — Ensure bootloader password is set",
      "description": "Ensure bootloader password is set",
      "rational": "Requiring a boot password upon execution of the boot loader will prevent an \nunauthorized user from entering boot parameters or changing the boot partition. This \nprevents users from weakening security (e.g. turning off SELinux at boot time).",
      "remediation": "Create an encrypted password with grub2-setpassword: \n\n# grub2-setpassword \n\nEnter password: <password> \nConfirm password: <password>",
      "severity": "Medium",
      "filter": null,
      "app_filter": null,
      "conditions": [
        {
          "type": "condition",
          "element": "CMD",
          "input": "!/usr/bin/env bash",
          "selement": "OUTPUT",
          "condition": "NOT EQUALS",
          "sinput": ""
        }
      ],
      "applicability": [
        {
          "type": "applicability",
          "element": "OS",
          "input": "",
          "selement": "CONTENT",
          "condition": "CONTAINS",
          "sinput": "Rocky"
        }
      ]
    },
    {
      "external_id": "b588eefb358a54a25636fcec47017460",
      "name": "1.5.1 — Ensure core file size is configured",
      "description": "Ensure core file size is configured",
      "rational": "Setting a hard limit on core dumps prevents users from overriding the soft variable. \n\nA core dump includes a memory image taken at the time the operating system \nterminates an application. The memory image could contain sensitive data and is \ngenerally useful only for developers trying to debug problems.",
      "remediation": "1.  Run the following command to comment out any entries that include a hard \n\nvalue for core greater than 0 in /etc/security/limits.conf and any file(s) in \nthe /etc/security/limits.d/ directory. \n\nExample: \n# sed -ri '/^\\s*[^#\\n\\r]+\\s+hard\\s+core\\s+([1-9][0-9]*)/s/^/# /' \n/etc/security/limits.conf  /etc/security/limits.d/* \n\n2.  Create or edit a file in /etc/security/limits.d/ and add the following line: \n\n* hard core 0 \nExample: \n# printf '%s\\n' \"\" \"* hard core 0\" >> /etc/security/limits.d...",
      "severity": "Medium",
      "filter": null,
      "app_filter": null,
      "conditions": [
        {
          "type": "condition",
          "element": "CMD",
          "input": "grep -Psi -- '^\\h*\\*\\h+hard\\h+core\\b' /etc/security/limits.conf",
          "selement": "OUTPUT",
          "condition": "NOT EQUALS",
          "sinput": ""
        }
      ],
      "applicability": [
        {
          "type": "applicability",
          "element": "OS",
          "input": "",
          "selement": "CONTENT",
          "condition": "CONTAINS",
          "sinput": "Rocky"
        }
      ]
    },
    {
      "external_id": "a8b3c65519f2abe678699a6c55bfbef3",
      "name": "1.5.2 — Ensure fs.protected_hardlinks is configured",
      "description": "Ensure fs.protected_hardlinks is configured",
      "rational": "Disallowing hardlinks mitigates vulnerabilities based on unsecure file systems accessed \nby privileged programs. This reduces the risk of an exploitation vector exploiting unsafe \nuse of open or creat.",
      "remediation": "1.  Review all files being used by systemd sysctl and comment out or remove all \nfs.protected_hardlinks lines that are not fs.protected_hardlinks=1. \n\nExample script: \n\n#!/usr/bin/env bash \n\n{ \n   l_option=\"fs.protected_hardlinks\" l_value=\"1\" \n   l_grep=\"${l_option//./(\\\\.|\\\\/)}\" a_files=() \n   l_systemdsysctl=\"$(readlink -e /lib/systemd/systemd-sysctl \\ \n   || readlink -e /usr/lib/systemd/systemd-sysctl)\" \n   l_ufw_file=\"$([ -f /etc/default/ufw ] && \\ \n   awk -F= '/^\\s*IPT_SYSCTL=/ {print $2...",
      "severity": "Medium",
      "filter": null,
      "app_filter": null,
      "conditions": [
        {
          "type": "condition",
          "element": "CMD",
          "input": "sysctl -n fs.protected_hardlinks",
          "selement": "OUTPUT",
          "condition": "EQUALS",
          "sinput": "1"
        }
      ],
      "applicability": [
        {
          "type": "applicability",
          "element": "OS",
          "input": "",
          "selement": "CONTENT",
          "condition": "CONTAINS",
          "sinput": "Rocky"
        }
      ]
    },
    {
      "external_id": "9496965f5b661e4d77e8c4c9e0973192",
      "name": "1.5.4 — Ensure fs.suid_dumpable is configured",
      "description": "Ensure fs.suid_dumpable is configured",
      "rational": "core dumps may contain sensitive in-memory data like password hashes or keys. An \nattacker could potentially exploit this to gain access to such data.",
      "remediation": "1.  Review all files being used by systemd sysctl and comment out or remove all \n\nfs.suid_dumpable lines that are not fs.suid_dumpable=0. \n\nExample script: \n\n#!/usr/bin/env bash \n\n{ \n   l_option=\"fs.suid_dumpable\" l_value=\"0\" \n   l_grep=\"${l_option//./(\\\\.|\\\\/)}\" a_files=() \n   l_systemdsysctl=\"$(readlink -e /lib/systemd/systemd-sysctl \\ \n   || readlink -e /usr/lib/systemd/systemd-sysctl)\" \n   l_ufw_file=\"$([ -f /etc/default/ufw ] && \\ \n   awk -F= '/^\\s*IPT_SYSCTL=/ {print $2}' /etc/default/u...",
      "severity": "Medium",
      "filter": null,
      "app_filter": null,
      "conditions": [
        {
          "type": "condition",
          "element": "CMD",
          "input": "sysctl -n fs.suid_dumpable",
          "selement": "OUTPUT",
          "condition": "EQUALS",
          "sinput": "0"
        }
      ],
      "applicability": [
        {
          "type": "applicability",
          "element": "OS",
          "input": "",
          "selement": "CONTENT",
          "condition": "CONTAINS",
          "sinput": "Rocky"
        }
      ]
    },
    {
      "external_id": "afbda43b3575be7195d4f02a8b8ab2ac",
      "name": "1.5.5 — Ensure kernel.dmesg_restrict is configured",
      "description": "Ensure kernel.dmesg_restrict is configured",
      "rational": "Restricting access to the kernel message buffer limits access to only root. This prevents \nattackers from gaining additional system information as a non-privileged user.",
      "remediation": "1.  Review all files being used by systemd sysctl and comment out or remove all \nkernel.dmesg_restrict lines that are not kernel.dmesg_restrict=1. \n\nExample script: \n\n#!/usr/bin/env bash \n\n{ \n   l_option=\"kernel.dmesg_restrict\" l_value=\"1\" \n   l_grep=\"${l_option//./(\\\\.|\\\\/)}\" a_files=() \n   l_systemdsysctl=\"$(readlink -e /lib/systemd/systemd-sysctl \\ \n   || readlink -e /usr/lib/systemd/systemd-sysctl)\" \n   l_ufw_file=\"$([ -f /etc/default/ufw ] && \\ \n   awk -F= '/^\\s*IPT_SYSCTL=/ {print $2}'...",
      "severity": "Medium",
      "filter": null,
      "app_filter": null,
      "conditions": [
        {
          "type": "condition",
          "element": "CMD",
          "input": "sysctl -n kernel.dmesg_restrict",
          "selement": "OUTPUT",
          "condition": "EQUALS",
          "sinput": "1"
        }
      ],
      "applicability": [
        {
          "type": "applicability",
          "element": "OS",
          "input": "",
          "selement": "CONTENT",
          "condition": "CONTAINS",
          "sinput": "Rocky"
        }
      ]
    },
    {
      "external_id": "ab409df96a4aaf21fd278d95bd52db33",
      "name": "1.5.6 — Ensure kernel.kptr_restrict is configured",
      "description": "Ensure kernel.kptr_restrict is configured",
      "rational": "Masking the kernel symbols in /proc/kallsyms reduces the ability of an attacker using \nthem to learn more about what to attack on your system.",
      "remediation": "1.  Review all files being used by systemd sysctl and comment out or remove all \nkernel.kptr_restrict lines that are not kernel.kptr_restrict=1 or \nkernel.kptr_restrict=2. \n\nExample script: \n\n#!/usr/bin/env bash \n\n{ \n   l_option=\"kernel.kptr_restrict\" l_value=\"(1|2)\" \n   l_grep=\"${l_option//./(\\\\.|\\\\/)}\" a_files=() \n   l_systemdsysctl=\"$(readlink -e /lib/systemd/systemd-sysctl \\ \n   || readlink -e /usr/lib/systemd/systemd-sysctl)\" \n   l_ufw_file=\"$([ -f /etc/default/ufw ] && \\ \n   awk -F= '/^...",
      "severity": "Medium",
      "filter": null,
      "app_filter": null,
      "conditions": [
        {
          "type": "condition",
          "element": "CMD",
          "input": "sysctl -n kernel.kptr_restrict",
          "selement": "OUTPUT",
          "condition": "EQUALS",
          "sinput": "2"
        }
      ],
      "applicability": [
        {
          "type": "applicability",
          "element": "OS",
          "input": "",
          "selement": "CONTENT",
          "condition": "CONTAINS",
          "sinput": "Rocky"
        }
      ]
    },
    {
      "external_id": "263511b502a8120091940902825c4747",
      "name": "1.7.1 — Ensure /etc/motd is configured",
      "description": "Ensure /etc/motd is configured",
      "rational": "Warning messages inform users who are attempting to login to the system of their legal \nstatus regarding the system and must include the name of the organization that owns \nthe system and any monitoring policies that are in place. Displaying OS and patch level \ninformation in login banners also has the side effect of providing detailed system \ninformation to attackers attempting to target speci...",
      "remediation": "Edit the file found in /etc/motd.d/* with the appropriate contents according to your \nsite policy, remove any instances of \\m , \\r , \\s , \\v or references to the OS platform \n\n- OR - \n\n- IF - the motd is not used, this file can be removed. \n\nRun the following command to remove the motd file: \n\n# rm /etc/motd \n\nPage 218 \n\n \n \n \n\fRun the following script and review and/or update all returned files' contents to: \n\n•  Remove all system information (\\v, \\r; \\m, \\s) \n•  Remove any refence to the op...",
      "severity": "Medium",
      "filter": null,
      "app_filter": null,
      "conditions": [
        {
          "type": "condition",
          "element": "CMD",
          "input": "!/usr/bin/env bash",
          "selement": "OUTPUT",
          "condition": "NOT EQUALS",
          "sinput": ""
        }
      ],
      "applicability": [
        {
          "type": "applicability",
          "element": "OS",
          "input": "",
          "selement": "CONTENT",
          "condition": "CONTAINS",
          "sinput": "Rocky"
        }
      ]
    },
    {
      "external_id": "4bee22a448d7560f34e73c829cc0f454",
      "name": "1.7.2 — Ensure /etc/issue is configured",
      "description": "Ensure /etc/issue is configured",
      "rational": "Warning messages inform users who are attempting to login to the system of their legal \nstatus regarding the system and must include the name of the organization that owns \nthe system and any monitoring policies that are in place. Displaying OS and patch level \ninformation in login banners also has the side effect of providing detailed system \ninformation to attackers attempting to target speci...",
      "remediation": "Edit the /etc/issue file with the appropriate contents according to your site policy, \nremove any instances of \\m , \\r , \\s , \\v or references to the OS platform \n\nExample: \n\n# echo \"Authorized users only. All activity may be monitored and reported.\" > \n/etc/issue",
      "severity": "Medium",
      "filter": null,
      "app_filter": null,
      "conditions": [
        {
          "type": "condition",
          "element": "CMD",
          "input": "cat /etc/issue",
          "selement": "OUTPUT",
          "condition": "NOT EQUALS",
          "sinput": ""
        }
      ],
      "applicability": [
        {
          "type": "applicability",
          "element": "OS",
          "input": "",
          "selement": "CONTENT",
          "condition": "CONTAINS",
          "sinput": "Rocky"
        }
      ]
    },
    {
      "external_id": "b494ab63ffe2886218f67db3de90602e",
      "name": "1.7.3 — Ensure /etc/issue.net is configured",
      "description": "Ensure /etc/issue.net is configured",
      "rational": "Warning messages inform users who are attempting to login to the system of their legal \nstatus regarding the system and must include the name of the organization that owns \nthe system and any monitoring policies that are in place. Displaying OS and patch level \ninformation in login banners also has the side effect of providing detailed system \ninformation to attackers attempting to target speci...",
      "remediation": "Edit the /etc/issue.net file with the appropriate contents according to your site policy, \nremove any instances of \\m , \\r , \\s , \\v or references to the OS platform \n\nExample: \n\n# echo \"Authorized users only. All activity may be monitored and reported.\" > \n/etc/issue.net",
      "severity": "Medium",
      "filter": null,
      "app_filter": null,
      "conditions": [
        {
          "type": "condition",
          "element": "CMD",
          "input": "cat /etc/issue.net",
          "selement": "OUTPUT",
          "condition": "NOT EQUALS",
          "sinput": ""
        }
      ],
      "applicability": [
        {
          "type": "applicability",
          "element": "OS",
          "input": "",
          "selement": "CONTENT",
          "condition": "CONTAINS",
          "sinput": "Rocky"
        }
      ]
    },
    {
      "external_id": "9ee0af5835bf4e461ae35b858b8ad8e6",
      "name": "1.7.4 — Ensure access to /etc/motd is configured",
      "description": "Ensure access to /etc/motd is configured",
      "rational": "- IF - the /etc/motd file does not have the correct access configured, it could be \nmodified by unauthorized users with incorrect or misleading information.",
      "remediation": "Run the following commands to set mode, owner, and group on /etc/motd: \n\n# chown root:root $(readlink -e /etc/motd) \n# chmod u-x,go-wx $(readlink -e /etc/motd) \n\n- OR - \n\nRun the following command to remove the /etc/motd file: \n\n# rm /etc/motd",
      "severity": "Medium",
      "filter": null,
      "app_filter": null,
      "conditions": [
        {
          "type": "condition",
          "element": "CMD",
          "input": "[ -e /etc/motd ] && stat -Lc 'Access: (%#a/%A)  Uid: ( %u/ %U) Gid: { %g/",
          "selement": "OUTPUT",
          "condition": "NOT EQUALS",
          "sinput": ""
        }
      ],
      "applicability": [
        {
          "type": "applicability",
          "element": "OS",
          "input": "",
          "selement": "CONTENT",
          "condition": "CONTAINS",
          "sinput": "Rocky"
        }
      ]
    },
    {
      "external_id": "846533afcf3ce748f472f71e5b3cb18c",
      "name": "1.7.5 — Ensure access to /etc/issue is configured",
      "description": "Ensure access to /etc/issue is configured",
      "rational": "- IF - the /etc/issue file does not have the correct access configured, it could be \nmodified by unauthorized users with incorrect or misleading information.",
      "remediation": "Run the following commands to set mode, owner, and group on /etc/issue: \n\n# chown root:root $(readlink -e /etc/issue) \n# chmod u-x,go-wx $(readlink -e /etc/issue)",
      "severity": "Medium",
      "filter": null,
      "app_filter": null,
      "conditions": [
        {
          "type": "condition",
          "element": "CMD",
          "input": "stat -Lc 'Access: (%#a/%A)  Uid: ( %u/ %U) Gid: { %g/ %G)' /etc/issue",
          "selement": "OUTPUT",
          "condition": "NOT EQUALS",
          "sinput": ""
        }
      ],
      "applicability": [
        {
          "type": "applicability",
          "element": "OS",
          "input": "",
          "selement": "CONTENT",
          "condition": "CONTAINS",
          "sinput": "Rocky"
        }
      ]
    },
    {
      "external_id": "1857ad98419e7119978a9c6eb81a3643",
      "name": "1.7.6 — Ensure access to /etc/issue.net is configured",
      "description": "Ensure access to /etc/issue.net is configured",
      "rational": "- IF - the /etc/issue.net file does not have the correct access configured, it could be \nmodified by unauthorized users with incorrect or misleading information.",
      "remediation": "Run the following commands to set mode, owner, and group on /etc/issue.net: \n\n# chown root:root $(readlink -e /etc/issue.net) \n# chmod u-x,go-wx $(readlink -e /etc/issue.net)",
      "severity": "Medium",
      "filter": null,
      "app_filter": null,
      "conditions": [
        {
          "type": "condition",
          "element": "CMD",
          "input": "stat -Lc 'Access: (%#a/%A)  Uid: ( %u/ %U) Gid: { %g/ %G)' /etc/issue.net",
          "selement": "OUTPUT",
          "condition": "NOT EQUALS",
          "sinput": ""
        }
      ],
      "applicability": [
        {
          "type": "applicability",
          "element": "OS",
          "input": "",
          "selement": "CONTENT",
          "condition": "CONTAINS",
          "sinput": "Rocky"
        }
      ]
    },
    {
      "external_id": "cb898d1a834ad891b23e52e39270b5b9",
      "name": "1.8.1 — Ensure GDM login banner is configured",
      "description": "Ensure GDM login banner is configured",
      "rational": "Warning messages inform users who are attempting to login to the system of their legal \nstatus regarding the system and must include the name of the organization that owns \nthe system and any monitoring policies that are in place. \n\nWithout locking down the system settings, user settings take precedence over the \nsystem settings.",
      "remediation": "1.  Create or edit the file /etc/dconf/profile/user and add the following lines if \n\nthey do not exist: \n\nuser-db:user \nsystem-db:local \n\nExample: \n\n#!/usr/bin/env bash \n\n{ \n   l_dir=\"/etc/dconf/profile/\" \n   [ ! -d \"$l_dir\" ] && mkdir /etc/dconf/profile/ \n   ! grep -Psq '^\\h*user-db:user\\b' \"$l_dir/user\" && \\ \n   printf '%s\\n' \"\" \"user-db:user\" >> \"$l_dir/user\" \n   ! grep -Psq '^\\h*system-db:local\\b' \"$l_dir/user\" && \\ \n   sed -ri '/^\\s*user-db:user/a system-db:local' \"$l_dir/user\" \n} \n\n2....",
      "severity": "Medium",
      "filter": null,
      "app_filter": null,
      "conditions": [
        {
          "type": "condition",
          "element": "CMD",
          "input": "gsettings writable org.gnome.login-screen banner-message-enable",
          "selement": "OUTPUT",
          "condition": "NOT EQUALS",
          "sinput": ""
        }
      ],
      "applicability": [
        {
          "type": "applicability",
          "element": "OS",
          "input": "",
          "selement": "CONTENT",
          "condition": "CONTAINS",
          "sinput": "Rocky"
        }
      ]
    },
    {
      "external_id": "12a5457a2f08a28b230de75b72a68156",
      "name": "1.8.2 — Ensure GDM disable-user-list is configured",
      "description": "Ensure GDM disable-user-list is configured",
      "rational": "Displaying the user list eliminates half of the Userid/Password equation that an \nunauthorized person would need to log on. \n\nWithout locking down the system settings, user settings take precedence over the \nsystem settings.",
      "remediation": "1.  Create or edit the file /etc/dconf/profile/user and add the following lines if \n\nthey do not exist: \n\nuser-db:user \nsystem-db:local \n\nExample: \n\n#!/usr/bin/env bash \n\n{ \n   l_dir=\"/etc/dconf/profile/\" \n   [ ! -d \"$l_dir\" ] && mkdir /etc/dconf/profile/ \n   ! grep -Psq '^\\h*user-db:user\\b' \"$l_dir/user\" && \\ \n   printf '%s\\n' \"\" \"user-db:user\" >> \"$l_dir/user\" \n   ! grep -Psq '^\\h*system-db:local\\b' \"$l_dir/user\" && \\ \n   sed -ri '/^\\s*user-db:user/a system-db:local' \"$l_dir/user\" \n} \n\n2....",
      "severity": "Medium",
      "filter": null,
      "app_filter": null,
      "conditions": [
        {
          "type": "condition",
          "element": "CMD",
          "input": "gsettings writable org.gnome.login-screen disable-user-list",
          "selement": "OUTPUT",
          "condition": "NOT EQUALS",
          "sinput": ""
        }
      ],
      "applicability": [
        {
          "type": "applicability",
          "element": "OS",
          "input": "",
          "selement": "CONTENT",
          "condition": "CONTAINS",
          "sinput": "Rocky"
        }
      ]
    },
    {
      "external_id": "1e3873a821beb1dc1c6ef540309a0d79",
      "name": "1.8.3 — Ensure GDM screen lock is configured",
      "description": "Ensure GDM screen lock is configured",
      "rational": "Setting a lock-out value reduces the window of opportunity for unauthorized user access \nto another user's session that has been left unattended. \n\nWithout locking down the system settings, user settings take precedence over the \nsystem settings. \n\nSatisfies: SRG-OS-000029-GPOS-00010, SRG-OS-000031-GPOS-00012, SRG-OS-\n000480-GPOS-00227",
      "remediation": "1.  Create or edit the file /etc/dconf/profile/user and add the following lines if \n\nthey do not exist: \n\nuser-db:user \nsystem-db:local \n\nExample: \n\n#!/usr/bin/env bash \n\n{ \n   l_dir=\"/etc/dconf/profile/\" \n   [ ! -d \"$l_dir\" ] && mkdir /etc/dconf/profile/ \n   ! grep -Psq '^\\h*user-db:user\\b' \"$l_dir/user\" && \\ \n   printf '%s\\n' \"\" \"user-db:user\" >> \"$l_dir/user\" \n   ! grep -Psq '^\\h*system-db:local\\b' \"$l_dir/user\" && \\ \n   sed -ri '/^\\s*user-db:user/a system-db:local' \"$l_dir/user\" \n} \n\n2....",
      "severity": "Medium",
      "filter": null,
      "app_filter": null,
      "conditions": [
        {
          "type": "condition",
          "element": "CMD",
          "input": "gsettings writable org.gnome.desktop.session idle-delay",
          "selement": "OUTPUT",
          "condition": "NOT EQUALS",
          "sinput": ""
        }
      ],
      "applicability": [
        {
          "type": "applicability",
          "element": "OS",
          "input": "",
          "selement": "CONTENT",
          "condition": "CONTAINS",
          "sinput": "Rocky"
        }
      ]
    },
    {
      "external_id": "134804118195483499cf5ab39e6397fb",
      "name": "1.8.4 — Ensure GDM automount is configured",
      "description": "Ensure GDM automount is configured",
      "rational": "With automounting enabled anyone with physical access could attach a USB drive or \ndisc and have its contents available in system even if they lacked permissions to mount \nit themselves. \n\nWithout locking down the system settings, user settings take precedence over the \nsystem settings. \n\nSatisfies: SRG-OS-000114-GPOS-00059, SRG-OS-000378-GPOS-00163, SRG-OS-\n000480-GPOS-00227",
      "remediation": "1.  Create or edit the file /etc/dconf/profile/user and add the following lines if \n\nthey do not exist: \n\nuser-db:user \nsystem-db:local \n\nExample: \n\n#!/usr/bin/env bash \n\n{ \n   l_dir=\"/etc/dconf/profile/\" \n   [ ! -d \"$l_dir\" ] && mkdir /etc/dconf/profile/ \n   ! grep -Psq '^\\h*user-db:user\\b' \"$l_dir/user\" && \\ \n   printf '%s\\n' \"\" \"user-db:user\" >> \"$l_dir/user\" \n   ! grep -Psq '^\\h*system-db:local\\b' \"$l_dir/user\" && \\ \n   sed -ri '/^\\s*user-db:user/a system-db:local' \"$l_dir/user\" \n} \n\n2....",
      "severity": "Medium",
      "filter": null,
      "app_filter": null,
      "conditions": [
        {
          "type": "condition",
          "element": "CMD",
          "input": "gsettings writable org.gnome.desktop.media-handling automount",
          "selement": "OUTPUT",
          "condition": "NOT EQUALS",
          "sinput": ""
        }
      ],
      "applicability": [
        {
          "type": "applicability",
          "element": "OS",
          "input": "",
          "selement": "CONTENT",
          "condition": "CONTAINS",
          "sinput": "Rocky"
        }
      ]
    },
    {
      "external_id": "88e869e22267e8e40a881b4def216a41",
      "name": "1.8.5 — Ensure GDM autorun-never is configured",
      "description": "Ensure GDM autorun-never is configured",
      "rational": "Malware on removable media may take advantage of Autorun features when the media \nis inserted into a system and execute. \n\nWithout locking down the system settings, user settings take precedence over the \nsystem settings. \n\nSatisfies: SRG-OS-000114-GPOS-00059, SRG-OS-000378-GPOS-00163, SRG-OS-\n000480-GPOS-00227",
      "remediation": "1.  Create or edit the file /etc/dconf/profile/user and add the following lines if \n\nthey do not exist: \n\nuser-db:user \nsystem-db:local \n\nExample: \n\n#!/usr/bin/env bash \n\n{ \n   l_dir=\"/etc/dconf/profile/\" \n   [ ! -d \"$l_dir\" ] && mkdir /etc/dconf/profile/ \n   ! grep -Psq '^\\h*user-db:user\\b' \"$l_dir/user\" && \\ \n   printf '%s\\n' \"\" \"user-db:user\" >> \"$l_dir/user\" \n   ! grep -Psq '^\\h*system-db:local\\b' \"$l_dir/user\" && \\ \n   sed -ri '/^\\s*user-db:user/a system-db:local' \"$l_dir/user\" \n} \n\n2....",
      "severity": "Medium",
      "filter": null,
      "app_filter": null,
      "conditions": [
        {
          "type": "condition",
          "element": "CMD",
          "input": "gsettings writable org.gnome.desktop.media-handling autorun-never",
          "selement": "OUTPUT",
          "condition": "NOT EQUALS",
          "sinput": ""
        }
      ],
      "applicability": [
        {
          "type": "applicability",
          "element": "OS",
          "input": "",
          "selement": "CONTENT",
          "condition": "CONTAINS",
          "sinput": "Rocky"
        }
      ]
    },
    {
      "external_id": "a023b0e9f9836e078a6f92f8bab4a6df",
      "name": "2.1.1 — Ensure autofs services are not in use",
      "description": "Ensure autofs services are not in use",
      "rational": "With automounting enabled anyone with physical access could attach a USB drive or \ndisc and have its contents available in system even if they lacked permissions to mount \nit themselves.",
      "remediation": "Run the following commands to stop autofs.service and remove autofs package: \n\n# systemctl stop autofs.service \n# dnf remove autofs \n\n- OR - \n\n- IF - the autofs package is required as a dependency: \n\nRun the following commands to stop and mask autofs.service: \n\n# systemctl stop autofs.service \n# systemctl mask autofs.service",
      "severity": "Medium",
      "filter": null,
      "app_filter": null,
      "conditions": [
        {
          "type": "condition",
          "element": "PACKAGE",
          "input": "autofs",
          "selement": "NOT EXISTS",
          "condition": "",
          "sinput": ""
        }
      ],
      "applicability": [
        {
          "type": "applicability",
          "element": "OS",
          "input": "",
          "selement": "CONTENT",
          "condition": "CONTAINS",
          "sinput": "Rocky"
        }
      ]
    },
    {
      "external_id": "2a48c4671f9526ec83a75ffe22eb9fc4",
      "name": "2.1.2 — Ensure avahi daemon services are not in use",
      "description": "Ensure avahi daemon services are not in use",
      "rational": "Automatic discovery of network services is not normally required for system \nfunctionality. It is recommended to remove this package to reduce the potential attack \nsurface.",
      "remediation": "Run the following commands to stop avahi-daemon.socket and avahi-\ndaemon.service, and remove the avahi package: \n\n# systemctl stop avahi-daemon.socket avahi-daemon.service \n# dnf remove avahi \n\n- OR - \n\n- IF - the avahi package is required as a dependency: \n\nRun the following commands to stop and mask the avahi-daemon.socket and avahi-\ndaemon.service: \n\n# systemctl stop avahi-daemon.socket avahi-daemon.service \n# systemctl mask avahi-daemon.socket avahi-daemon.service",
      "severity": "Medium",
      "filter": null,
      "app_filter": null,
      "conditions": [
        {
          "type": "condition",
          "element": "PACKAGE",
          "input": "avahi",
          "selement": "NOT EXISTS",
          "condition": "",
          "sinput": ""
        }
      ],
      "applicability": [
        {
          "type": "applicability",
          "element": "OS",
          "input": "",
          "selement": "CONTENT",
          "condition": "CONTAINS",
          "sinput": "Rocky"
        }
      ]
    },
    {
      "external_id": "bbf9fe95344b24641968bd21c9654987",
      "name": "2.1.4 — Ensure dhcp server services are not in use",
      "description": "Ensure dhcp server services are not in use",
      "rational": "Unless a system is specifically set up to act as a DHCP server, it is recommended that \nthe kea package be removed to reduce the potential attack surface.",
      "remediation": "Run the following commands to stop kea-dhcp-ddns.service, kea-dhcp4.service, \nand kea-dhcp6.service and remove the kea package: \n\n# systemctl stop kea-dhcp-ddns.service kea-dhcp4.service kea-dhcp6.service \n# dnf remove kea \n\n- OR - \n\n- IF - the kea package is required as a dependency: \n\nRun the following commands to stop and mask kea-dhcp-ddns.service, kea-\ndhcp4.service, and kea-dhcp6.service: \n\n# systemctl stop kea-dhcp-ddns.service kea-dhcp4.service kea-dhcp6.service \n# systemctl mask kea-...",
      "severity": "Medium",
      "filter": null,
      "app_filter": null,
      "conditions": [
        {
          "type": "condition",
          "element": "PACKAGE",
          "input": "kea",
          "selement": "NOT EXISTS",
          "condition": "",
          "sinput": ""
        }
      ],
      "applicability": [
        {
          "type": "applicability",
          "element": "OS",
          "input": "",
          "selement": "CONTENT",
          "condition": "CONTAINS",
          "sinput": "Rocky"
        }
      ]
    },
    {
      "external_id": "b398ee8b3dcaed52f4b49884f5697af9",
      "name": "2.1.5 — Ensure dns server services are not in use",
      "description": "Ensure dns server services are not in use",
      "rational": "Unless a system is specifically designated to act as a DNS server, it is recommended \nthat the package be removed to reduce the potential attack surface.",
      "remediation": "Run the following commands to stop named.service and remove bind package: \n\n# systemctl stop named.service \n# dnf remove bind \n\n- OR - \n\n- IF - the bind package is required as a dependency: \n\nRun the following commands to stop and mask named.service: \n\n# systemctl stop named.service \n# systemctl mask named.service",
      "severity": "Medium",
      "filter": null,
      "app_filter": null,
      "conditions": [
        {
          "type": "condition",
          "element": "PACKAGE",
          "input": "bind",
          "selement": "NOT EXISTS",
          "condition": "",
          "sinput": ""
        }
      ],
      "applicability": [
        {
          "type": "applicability",
          "element": "OS",
          "input": "",
          "selement": "CONTENT",
          "condition": "CONTAINS",
          "sinput": "Rocky"
        }
      ]
    },
    {
      "external_id": "492ba45ccaee23d70cf66db906143c53",
      "name": "2.1.6 — Ensure dnsmasq services are not in use",
      "description": "Ensure dnsmasq services are not in use",
      "rational": "Unless a system is specifically designated to act as a DNS caching, DNS forwarding \nand/or DHCP server, it is recommended that the package be removed to reduce the \npotential attack surface.",
      "remediation": "Run the following commands to stop dnsmasq.service and remove dnsmasq package: \n\n# systemctl stop dnsmasq.service \n# dnf remove dnsmasq \n\n- OR - \n\n- IF - the dnsmasq package is required as a dependency: \n\nRun the following commands to stop and mask the dnsmasq.service: \n\n# systemctl stop dnsmasq.service \n# systemctl mask dnsmasq.service",
      "severity": "Medium",
      "filter": null,
      "app_filter": null,
      "conditions": [
        {
          "type": "condition",
          "element": "PACKAGE",
          "input": "dnsmasq",
          "selement": "NOT EXISTS",
          "condition": "",
          "sinput": ""
        }
      ],
      "applicability": [
        {
          "type": "applicability",
          "element": "OS",
          "input": "",
          "selement": "CONTENT",
          "condition": "CONTAINS",
          "sinput": "Rocky"
        }
      ]
    },
    {
      "external_id": "8f48509dce996063e2b30911407a5264",
      "name": "2.1.7 — Ensure ftp server services are not in use",
      "description": "Ensure ftp server services are not in use",
      "rational": "Unless there is a need to run the system as a FTP server, it is recommended that the \npackage be removed to reduce the potential attack surface.",
      "remediation": "Run the following commands to stop vsftpd.service and remove vsftpd package: \n\n# systemctl stop vsftpd.service \n# dnf remove vsftpd \n\n- OR - \n\n- IF - the vsftpd package is required as a dependency: \n\nRun the following commands to stop and mask the vsftpd.service: \n\n# systemctl stop vsftpd.service \n# systemctl mask vsftpd.service \n\nNote: Other ftp server packages may exist. If not required and authorized by local site \npolicy, they should also be removed. If the package is required for a depen...",
      "severity": "Medium",
      "filter": null,
      "app_filter": null,
      "conditions": [
        {
          "type": "condition",
          "element": "PACKAGE",
          "input": "vsftpd",
          "selement": "NOT EXISTS",
          "condition": "",
          "sinput": ""
        }
      ],
      "applicability": [
        {
          "type": "applicability",
          "element": "OS",
          "input": "",
          "selement": "CONTENT",
          "condition": "CONTAINS",
          "sinput": "Rocky"
        }
      ]
    },
    {
      "external_id": "ac52489f7b1f9f577eb566058783af16",
      "name": "2.1.10 — Ensure print server services are not in use",
      "description": "Ensure print server services are not in use",
      "rational": "If the system does not need to print jobs or accept print jobs from other systems, it is \nrecommended that CUPS be removed to reduce the potential attack surface.",
      "remediation": "Run the following commands to stop cups.socket and cups.service, and remove the \ncups package: \n\n# systemctl stop cups.socket cups.service \n# dnf remove cups \n\n- OR - \n\n- IF - the cups package is required as a dependency: \n\nRun the following commands to stop and mask the cups.socket and cups.service: \n\n# systemctl stop cups.socket cups.service \n# systemctl mask cups.socket cups.service",
      "severity": "Medium",
      "filter": null,
      "app_filter": null,
      "conditions": [
        {
          "type": "condition",
          "element": "PACKAGE",
          "input": "cups",
          "selement": "NOT EXISTS",
          "condition": "",
          "sinput": ""
        }
      ],
      "applicability": [
        {
          "type": "applicability",
          "element": "OS",
          "input": "",
          "selement": "CONTENT",
          "condition": "CONTAINS",
          "sinput": "Rocky"
        }
      ]
    },
    {
      "external_id": "90a9cac750b1fbaf0b9f47b3c9a2a68e",
      "name": "2.1.11 — Ensure rpcbind services are not in use",
      "description": "Ensure rpcbind services are not in use",
      "rational": "A small request (~82 bytes via UDP) sent to the Portmapper generates a large \nresponse (7x to 28x amplification), which makes it a suitable tool for DDoS attacks. If \nrpcbind is not required, it is recommended to remove rpcbind package to reduce the \npotential attack surface.",
      "remediation": "Run the following commands to stop rpcbind.socket and rpcbind.service, and \nremove the rpcbind package: \n\n# systemctl stop rpcbind.socket rpcbind.service \n# dnf remove rpcbind \n\n- OR - \n\n- IF - the rpcbind package is required as a dependency: \n\nRun the following commands to stop and mask the rpcbind.socket and \nrpcbind.service: \n\n# systemctl stop rpcbind.socket rpcbind.service \n# systemctl mask rpcbind.socket rpcbind.service",
      "severity": "Medium",
      "filter": null,
      "app_filter": null,
      "conditions": [
        {
          "type": "condition",
          "element": "PACKAGE",
          "input": "rpcbind",
          "selement": "NOT EXISTS",
          "condition": "",
          "sinput": ""
        }
      ],
      "applicability": [
        {
          "type": "applicability",
          "element": "OS",
          "input": "",
          "selement": "CONTENT",
          "condition": "CONTAINS",
          "sinput": "Rocky"
        }
      ]
    },
    {
      "external_id": "1482158620493fcdbe983b80b4c65683",
      "name": "2.1.12 — Ensure rsync services are not in use",
      "description": "Ensure rsync services are not in use",
      "rational": "Unless required, the rsync-daemon package should be removed to reduce the potential \nattack surface. \n\nThe rsyncd.service presents a security risk as it uses unencrypted protocols for \ncommunication.",
      "remediation": "Run the following commands to stop rsyncd.socket and rsyncd.service, and \nremove the rsync-daemon package: \n\n# systemctl stop rsyncd.socket rsyncd.service \n# dnf remove rsync-daemon \n\n- OR - \n\n- IF - the rsync-daemon package is required as a dependency: \n\nRun the following commands to stop and mask the rsyncd.socket and \nrsyncd.service: \n\n# systemctl stop rsyncd.socket rsyncd.service \n# systemctl mask rsyncd.socket rsyncd.service",
      "severity": "Medium",
      "filter": null,
      "app_filter": null,
      "conditions": [
        {
          "type": "condition",
          "element": "PACKAGE",
          "input": "rsync-daemon",
          "selement": "NOT EXISTS",
          "condition": "",
          "sinput": ""
        }
      ],
      "applicability": [
        {
          "type": "applicability",
          "element": "OS",
          "input": "",
          "selement": "CONTENT",
          "condition": "CONTAINS",
          "sinput": "Rocky"
        }
      ]
    },
    {
      "external_id": "ba3be809d860807d64822d6edb5294f2",
      "name": "2.1.14 — Ensure snmp services are not in use",
      "description": "Ensure snmp services are not in use",
      "rational": "The SNMP server can communicate using SNMPv1, which transmits data in the clear \nand does not require authentication to execute commands. SNMPv3 replaces the \nsimple/clear text password sharing used in SNMPv2 with more securely encoded \nparameters. If the the SNMP service is not required, the net-snmp package should be \nremoved to reduce the attack surface of the system. \n\nNote: If SNMP is requ...",
      "remediation": "Run the following commands to stop snmpd.service and remove net-snmp package: \n\n# systemctl stop snmpd.service \n# dnf remove net-snmp \n\n- OR - If the package is required for dependencies: \n\nRun the following commands to stop and mask the snmpd.service: \n\n# systemctl stop snmpd.service \n# systemctl mask snmpd.service",
      "severity": "Medium",
      "filter": null,
      "app_filter": null,
      "conditions": [
        {
          "type": "condition",
          "element": "PACKAGE",
          "input": "net-snmp",
          "selement": "NOT EXISTS",
          "condition": "",
          "sinput": ""
        }
      ],
      "applicability": [
        {
          "type": "applicability",
          "element": "OS",
          "input": "",
          "selement": "CONTENT",
          "condition": "CONTAINS",
          "sinput": "Rocky"
        }
      ]
    },
    {
      "external_id": "544f5d9b50948d98531bef216d035e98",
      "name": "2.1.15 — Ensure telnet server services are not in use",
      "description": "Ensure telnet server services are not in use",
      "rational": "The telnet protocol is insecure and unencrypted. The use of an unencrypted \ntransmission medium could allow a user with access to sniff network traffic the ability to \nsteal credentials. The ssh package provides an encrypted session and stronger \nsecurity.",
      "remediation": "Run the following commands to stop telnet.socket and remove the telnet-server \npackage: \n\n# systemctl stop telnet.socket \n# dnf remove telnet-server \n\n- OR - \n\n- IF - a package is installed and is required for dependencies: \n\nRun the following commands to stop and mask telnet.socket: \n\n# systemctl stop telnet.socket \n# systemctl mask telnet.socket",
      "severity": "Medium",
      "filter": null,
      "app_filter": null,
      "conditions": [
        {
          "type": "condition",
          "element": "PACKAGE",
          "input": "telnet-server",
          "selement": "NOT EXISTS",
          "condition": "",
          "sinput": ""
        }
      ],
      "applicability": [
        {
          "type": "applicability",
          "element": "OS",
          "input": "",
          "selement": "CONTENT",
          "condition": "CONTAINS",
          "sinput": "Rocky"
        }
      ]
    },
    {
      "external_id": "10ec4b40fdef1b84c4ffc1fdeab16a99",
      "name": "2.1.16 — Ensure tftp server services are not in use",
      "description": "Ensure tftp server services are not in use",
      "rational": "Unless there is a need to run the system as a TFTP server, it is recommended that the \npackage be removed to reduce the potential attack surface. \n\nTFTP does not have built-in encryption, access control or authentication. This makes it \nvery easy for an attacker to exploit TFTP to gain access to files",
      "remediation": "Run the following commands to stop tftp.socket and tftp.service, and remove the \ntftp-server package: \n\n# systemctl stop tftp.socket tftp.service \n# dnf remove tftp-server \n\n- OR - \n\n- IF - the tftp-server package is required as a dependency: \n\nRun the following commands to stop and mask tftp.socket and tftp.service: \n\n# systemctl stop tftp.socket tftp.service \n# systemctl mask tftp.socket tftp.service",
      "severity": "Medium",
      "filter": null,
      "app_filter": null,
      "conditions": [
        {
          "type": "condition",
          "element": "PACKAGE",
          "input": "tftp-server",
          "selement": "NOT EXISTS",
          "condition": "",
          "sinput": ""
        }
      ],
      "applicability": [
        {
          "type": "applicability",
          "element": "OS",
          "input": "",
          "selement": "CONTENT",
          "condition": "CONTAINS",
          "sinput": "Rocky"
        }
      ]
    },
    {
      "external_id": "b66cb6d6426306c9bc833d52f075ec38",
      "name": "2.1.18 — Ensure web server services are not in use",
      "description": "Ensure web server services are not in use",
      "rational": "Unless there is a local site approved requirement to run a web server service on the \nsystem, web server packages should be removed to reduce the potential attack surface.",
      "remediation": "Run the following commands to stop httpd.socket and httpd.service and remove \nthe httpd package: \n\n# systemctl stop httpd.socket httpd.service \n# dnf remove httpd \n\nRun the following commands to stop nginx.service and remove the nginx package: \n\n# systemctl stop nginx.service \n# dnf remove httpd nginx \n\n- OR - \n\n- IF - a package is installed and is required for dependencies: \n\n- IF - the httpd package is required for dependencies: \n\nRun the following commands to stop and mask httpd.socket and...",
      "severity": "Medium",
      "filter": null,
      "app_filter": null,
      "conditions": [
        {
          "type": "condition",
          "element": "PACKAGE",
          "input": "httpd",
          "selement": "NOT EXISTS",
          "condition": "",
          "sinput": ""
        }
      ],
      "applicability": [
        {
          "type": "applicability",
          "element": "OS",
          "input": "",
          "selement": "CONTENT",
          "condition": "CONTAINS",
          "sinput": "Rocky"
        }
      ]
    },
    {
      "external_id": "41787cdaf9e0ee4d74c34fc66efd4b90",
      "name": "2.1.19 — Ensure GNOME Display Manager is removed",
      "description": "Ensure GNOME Display Manager is removed",
      "rational": "If a Graphical User Interface (GUI) is not required, it should be removed to reduce the \nattack surface of the system.",
      "remediation": "Run the following to remove the Server with GUI group: \n\n1.  Run the following command to install the Minimal Install group: \n\n# dnf groupinstall -y \"Minimal Install\" \n\nNote: This is important to update dependencies to allow the removal of the Server \nwith GUI group with minimal impact to the system functionality. \n\n2.  Run the following command to remove the Server with GUI group: \n\n# dnf groupremove -y \"Server with GUI\" \n\n3.  Run the following command to install the Server group: \n\n# dnf gr...",
      "severity": "Medium",
      "filter": null,
      "app_filter": null,
      "conditions": [
        {
          "type": "condition",
          "element": "CMD",
          "input": "dnf grouplist | sed -n '/Installed Environment Groups:/,/Installed",
          "selement": "OUTPUT",
          "condition": "NOT EQUALS",
          "sinput": ""
        }
      ],
      "applicability": [
        {
          "type": "applicability",
          "element": "OS",
          "input": "",
          "selement": "CONTENT",
          "condition": "CONTAINS",
          "sinput": "Rocky"
        }
      ]
    },
    {
      "external_id": "cdd0163320e224cbd77f1b8e7454222d",
      "name": "2.2.1 — Ensure ftp client is not installed",
      "description": "Ensure ftp client is not installed",
      "rational": "FTP does not protect the confidentiality of data or authentication credentials. It is \nrecommended SFTP be used if file transfer is required. Unless there is a need to run \nthe system as a FTP server (for example, to allow anonymous downloads), it is \nrecommended that the package be removed to reduce the potential attack surface.",
      "remediation": "Run the following command to remove ftp: \n\n# dnf remove ftp",
      "severity": "Medium",
      "filter": null,
      "app_filter": null,
      "conditions": [
        {
          "type": "condition",
          "element": "PACKAGE",
          "input": "ftp",
          "selement": "NOT EXISTS",
          "condition": "",
          "sinput": ""
        }
      ],
      "applicability": [
        {
          "type": "applicability",
          "element": "OS",
          "input": "",
          "selement": "CONTENT",
          "condition": "CONTAINS",
          "sinput": "Rocky"
        }
      ]
    },
    {
      "external_id": "7f91929d6169ca94e860ea63736b918c",
      "name": "2.2.3 — Ensure telnet client is not installed",
      "description": "Ensure telnet client is not installed",
      "rational": "The telnet protocol is insecure and unencrypted. The use of an unencrypted \ntransmission medium could allow an unauthorized user to steal credentials. The ssh \npackage provides an encrypted session and stronger security and is included in most \nLinux distributions.",
      "remediation": "Run the following command to remove the telnet package: \n\n# dnf remove telnet",
      "severity": "Medium",
      "filter": null,
      "app_filter": null,
      "conditions": [
        {
          "type": "condition",
          "element": "PACKAGE",
          "input": "telnet",
          "selement": "NOT EXISTS",
          "condition": "",
          "sinput": ""
        }
      ],
      "applicability": [
        {
          "type": "applicability",
          "element": "OS",
          "input": "",
          "selement": "CONTENT",
          "condition": "CONTAINS",
          "sinput": "Rocky"
        }
      ]
    },
    {
      "external_id": "e5d9d56612326bd8e79bca60757f1dac",
      "name": "2.2.4 — Ensure tftp client is not installed",
      "description": "Ensure tftp client is not installed",
      "rational": "TFTP does not have built-in encryption, access control or authentication. This makes it \nvery easy for an attacker to exploit TFTP to gain access to files",
      "remediation": "Run the following command to remove tftp: \n\n# dnf remove tftp",
      "severity": "Medium",
      "filter": null,
      "app_filter": null,
      "conditions": [
        {
          "type": "condition",
          "element": "PACKAGE",
          "input": "tftp",
          "selement": "NOT EXISTS",
          "condition": "",
          "sinput": ""
        }
      ],
      "applicability": [
        {
          "type": "applicability",
          "element": "OS",
          "input": "",
          "selement": "CONTENT",
          "condition": "CONTAINS",
          "sinput": "Rocky"
        }
      ]
    },
    {
      "external_id": "fc969e2b4e6b41f014000e4390185455",
      "name": "2.3.1 — Ensure time synchronization is in use",
      "description": "Ensure time synchronization is in use",
      "rational": "Time synchronization is important to support time sensitive security mechanisms like \nKerberos and also ensures log files have consistent time records across the enterprise, \nwhich aids in forensic investigations.",
      "remediation": "Run the following command to install chrony: \n\n# dnf install chrony",
      "severity": "Medium",
      "filter": null,
      "app_filter": null,
      "conditions": [
        {
          "type": "condition",
          "element": "PACKAGE",
          "input": "chrony",
          "selement": "EXISTS",
          "condition": "",
          "sinput": ""
        }
      ],
      "applicability": [
        {
          "type": "applicability",
          "element": "OS",
          "input": "",
          "selement": "CONTENT",
          "condition": "CONTAINS",
          "sinput": "Rocky"
        }
      ]
    },
    {
      "external_id": "fd26f5b6b89f19d6529bfa44aff02801",
      "name": "2.3.2 — Ensure chrony is configured",
      "description": "Ensure chrony is configured",
      "rational": "Time synchronization is important to support time sensitive security mechanisms and to \nensure log files have consistent time records across the enterprise to aid in forensic \ninvestigations \n\nPage 335",
      "remediation": "Edit /etc/chrony.conf or a file ending in .sources in /etc/sources.d/ and add or \nedit server or pool lines as appropriate according to local site policy: \n\nEdit the Chrony configuration and add or edit the server and/or pool lines returned by \nthe Audit Procedure as appropriate according to local site policy \n\n<[server|pool]> <[remote-server|remote-pool]> \n\nExample script to add a drop-in configuration for the pool directive: \n\n#!/usr/bin/env bash \n\n{ \n   [ ! -d \"/etc/sources.d/\" ] && mkdir...",
      "severity": "Medium",
      "filter": null,
      "app_filter": null,
      "conditions": [
        {
          "type": "condition",
          "element": "CMD",
          "input": "!/usr/bin/env bash",
          "selement": "OUTPUT",
          "condition": "NOT EQUALS",
          "sinput": ""
        }
      ],
      "applicability": [
        {
          "type": "applicability",
          "element": "OS",
          "input": "",
          "selement": "CONTENT",
          "condition": "CONTAINS",
          "sinput": "Rocky"
        }
      ]
    },
    {
      "external_id": "9cef2d5e87f42acd59b7c5cae0fc7bcc",
      "name": "2.3.3 — Ensure chrony is not run as the root user",
      "description": "Ensure chrony is not run as the root user",
      "rational": "Services should not be set to run as the root user",
      "remediation": "Edit the file /etc/sysconfig/chronyd and add or modify the following line to remove \n\"-u root\" from any OPTIONS= argument: \n\nExample: \n\nOPTIONS=\"-F 2\" \n\nRun the following command to reload the chronyd.service configuration: \n\n# systemctl reload-or-restart chronyd.service",
      "severity": "Medium",
      "filter": null,
      "app_filter": null,
      "conditions": [
        {
          "type": "condition",
          "element": "CMD",
          "input": "grep -Psi -- '^\\h*OPTIONS=\\\"?\\h*([^#\\n\\r]+\\h+)?-u\\h+root\\b'",
          "selement": "OUTPUT",
          "condition": "NOT EQUALS",
          "sinput": ""
        }
      ],
      "applicability": [
        {
          "type": "applicability",
          "element": "OS",
          "input": "",
          "selement": "CONTENT",
          "condition": "CONTAINS",
          "sinput": "Rocky"
        }
      ]
    },
    {
      "external_id": "e0cc5256c262bcbfe6a6e136356d1aae",
      "name": "2.4.1.1 — Ensure cron daemon is enabled and active",
      "description": "Ensure cron daemon is enabled and active",
      "rational": "While there may not be user jobs that need to be run on the system, the system does \nhave maintenance jobs that may include security monitoring that have to run, and cron \nis used to execute them.",
      "remediation": "- IF - cron is installed on the system: \n\nRun the following commands to unmask, enable, and start cron: \n\n# systemctl unmask \"$(systemctl list-unit-files | awk \n'$1~/^crond?\\.service/{print $1}')\" \n# systemctl --now enable \"$(systemctl list-unit-files | awk \n'$1~/^crond?\\.service/{print $1}')\"",
      "severity": "Medium",
      "filter": null,
      "app_filter": null,
      "conditions": [
        {
          "type": "condition",
          "element": "CMD",
          "input": "systemctl list-unit-files | awk '$1~/^crond?\\.service/{print $2}'",
          "selement": "OUTPUT",
          "condition": "NOT EQUALS",
          "sinput": ""
        }
      ],
      "applicability": [
        {
          "type": "applicability",
          "element": "OS",
          "input": "",
          "selement": "CONTENT",
          "condition": "CONTAINS",
          "sinput": "Rocky"
        }
      ]
    },
    {
      "external_id": "bf6d58101ef360986208aabdee38e145",
      "name": "2.4.1.2 — Ensure access to /etc/crontab is configured",
      "description": "Ensure access to /etc/crontab is configured",
      "rational": "This file contains information on what system jobs are run by cron. Write access to \nthese files could provide unprivileged users with the ability to elevate their privileges. \nRead access to these files could provide users with the ability to gain insight on system \njobs that run on the system and could provide them a way to gain unauthorized \nprivileged access.",
      "remediation": "- IF - cron is installed on the system: \n\nRun the following commands to set ownership and permissions on /etc/crontab: \n\n# chown root:root /etc/crontab \n# chmod og-rwx /etc/crontab",
      "severity": "Medium",
      "filter": null,
      "app_filter": null,
      "conditions": [
        {
          "type": "condition",
          "element": "CMD",
          "input": "stat -Lc 'Access: (%a/%A) Uid: ( %u/ %U) Gid: ( %g/ %G)' /etc/crontab",
          "selement": "OUTPUT",
          "condition": "NOT EQUALS",
          "sinput": ""
        }
      ],
      "applicability": [
        {
          "type": "applicability",
          "element": "OS",
          "input": "",
          "selement": "CONTENT",
          "condition": "CONTAINS",
          "sinput": "Rocky"
        }
      ]
    },
    {
      "external_id": "89bda1b17f43a70a18cfb9bafca23cb3",
      "name": "2.4.1.4 — Ensure access to /etc/cron.daily is configured",
      "description": "Ensure access to /etc/cron.daily is configured",
      "rational": "Granting write access to this directory for non-privileged users could provide them the \nmeans for gaining unauthorized elevated privileges. Granting read access to this \ndirectory could give an unprivileged user insight in how to gain elevated privileges or \ncircumvent auditing controls.",
      "remediation": "- IF - cron is installed on the system: \n\nRun the following commands to set ownership and permissions on the \n/etc/cron.daily directory: \n\n# chown root:root /etc/cron.daily/ \n# chmod og-rwx /etc/cron.daily/",
      "severity": "Medium",
      "filter": null,
      "app_filter": null,
      "conditions": [
        {
          "type": "condition",
          "element": "CMD",
          "input": "stat -Lc 'Access: (%a/%A) Uid: ( %u/ %U) Gid: ( %g/ %G)' /etc/cron.daily/",
          "selement": "OUTPUT",
          "condition": "NOT EQUALS",
          "sinput": ""
        }
      ],
      "applicability": [
        {
          "type": "applicability",
          "element": "OS",
          "input": "",
          "selement": "CONTENT",
          "condition": "CONTAINS",
          "sinput": "Rocky"
        }
      ]
    },
    {
      "external_id": "f0cfd227e9abd864cb37ae0a4af39e80",
      "name": "2.4.1.8 — Ensure access to /etc/cron.d is configured",
      "description": "Ensure access to /etc/cron.d is configured",
      "rational": "Granting write access to this directory for non-privileged users could provide them the \nmeans for gaining unauthorized elevated privileges. Granting read access to this \ndirectory could give an unprivileged user insight in how to gain elevated privileges or \ncircumvent auditing controls.",
      "remediation": "- IF - cron is installed on the system: \n\nRun the following commands to set ownership and permissions on the /etc/cron.d \ndirectory: \n\n# chown root:root /etc/cron.d/ \n# chmod og-rwx /etc/cron.d/",
      "severity": "Medium",
      "filter": null,
      "app_filter": null,
      "conditions": [
        {
          "type": "condition",
          "element": "CMD",
          "input": "stat -Lc 'Access: (%a/%A) Uid: ( %u/ %U) Gid: ( %g/ %G)' /etc/cron.d/",
          "selement": "OUTPUT",
          "condition": "NOT EQUALS",
          "sinput": ""
        }
      ],
      "applicability": [
        {
          "type": "applicability",
          "element": "OS",
          "input": "",
          "selement": "CONTENT",
          "condition": "CONTAINS",
          "sinput": "Rocky"
        }
      ]
    },
    {
      "external_id": "61f89d20dc5c86c6db118e5860c86a2c",
      "name": "2.4.1.9 — Ensure access to crontab is configured",
      "description": "Ensure access to crontab is configured",
      "rational": "On many systems, only the system administrator is authorized to schedule cron jobs. \nUsing the cron.allow file to control who can run cron jobs enforces this policy. It is \neasier to manage an allow list than a deny list. In a deny list, you could potentially add a \nuser ID to the system and forget to add it to the deny files.",
      "remediation": "- IF - cron is installed on the system: \n\nRun the following script to: \n\n•  Create /etc/cron.allow if it doesn't exist \n•  Change owner to user root \n•  Change group owner to group root - OR - group crontab if it exists \n•  Change mode to 640 or more restrictive \n\n#!/usr/bin/env bash \n\n{ \n   [ ! -e \"/etc/cron.allow\" ] && touch /etc/cron.allow \n   chmod u-x,g-wx,o-rwx /etc/cron.allow \n   if grep -Pq -- '^\\h*crontab\\:' /etc/group; then \n      chown root:crontab /etc/cron.allow \n   else \n      c...",
      "severity": "Medium",
      "filter": null,
      "app_filter": null,
      "conditions": [
        {
          "type": "condition",
          "element": "CMD",
          "input": "stat -Lc 'Access: (%a/%A) Owner: (%U) Group: (%G)' /etc/cron.allow",
          "selement": "OUTPUT",
          "condition": "NOT EQUALS",
          "sinput": ""
        }
      ],
      "applicability": [
        {
          "type": "applicability",
          "element": "OS",
          "input": "",
          "selement": "CONTENT",
          "condition": "CONTAINS",
          "sinput": "Rocky"
        }
      ]
    },
    {
      "external_id": "52aee0f0f5c5fcc68b2c458ddb997fc5",
      "name": "2.4.2.1 — Ensure access to at is configured",
      "description": "Ensure access to at is configured",
      "rational": "On many systems, only the system administrator is authorized to schedule at jobs. \nUsing the at.allow file to control who can run at jobs enforces this policy. It is easier \nto manage an allow list than a deny list. In a deny list, you could potentially add a user \nID to the system and forget to add it to the deny files. \n\nPage 363",
      "remediation": "- IF - at is installed on the system: \n\nRun the following script to: \n\n•  /etc/at.allow:  \n\no  Create the file if it doesn't exist \no  Change owner or user root \no \n\nIf group daemon exists, change to group daemon, else change group to \nroot \n\no  Change mode to 640 or more restrictive \n\n• \n\n- IF - /etc/at.deny exists:  \n\no  Change owner or user root \no \n\nIf group daemon exists, change to group daemon, else change group to \nroot \n\no  Change mode to 640 or more restrictive \n\n#!/usr/bin/env bash...",
      "severity": "Medium",
      "filter": null,
      "app_filter": null,
      "conditions": [
        {
          "type": "condition",
          "element": "CMD",
          "input": "stat -Lc 'Access: (%a/%A) Owner: (%U) Group: (%G)' /etc/at.allow",
          "selement": "OUTPUT",
          "condition": "NOT EQUALS",
          "sinput": ""
        }
      ],
      "applicability": [
        {
          "type": "applicability",
          "element": "OS",
          "input": "",
          "selement": "CONTENT",
          "condition": "CONTAINS",
          "sinput": "Rocky"
        }
      ]
    },
    {
      "external_id": "c2ddbca590909caa57d957d17f31fa76",
      "name": "3.1.2 — Ensure wireless interfaces are not available",
      "description": "Ensure wireless interfaces are not available",
      "rational": "- IF - wireless is not to be used, wireless devices can be disabled to reduce the potential \nattack surface.",
      "remediation": "Run the following script to disable any wireless interfaces: \n\n#!/usr/bin/env bash \n\n{ \n   module_fix() \n   { \n      if ! modprobe -n -v \"$l_mname\" | grep -P -- '^\\h*install \n\\/bin\\/(true|false)'; then \n         echo -e \" - setting module: \\\"$l_mname\\\" to be un-loadable\" \n         echo -e \"install $l_mname /bin/false\" >> \n/etc/modprobe.d/\"$l_mname\".conf \n      fi \n      if lsmod | grep \"$l_mname\" > /dev/null 2>&1; then \n         echo -e \" - unloading module \\\"$l_mname\\\"\" \n         modprobe -r...",
      "severity": "Medium",
      "filter": null,
      "app_filter": null,
      "conditions": [
        {
          "type": "condition",
          "element": "CMD",
          "input": "!/usr/bin/env bash",
          "selement": "OUTPUT",
          "condition": "NOT EQUALS",
          "sinput": ""
        }
      ],
      "applicability": [
        {
          "type": "applicability",
          "element": "OS",
          "input": "",
          "selement": "CONTENT",
          "condition": "CONTAINS",
          "sinput": "Rocky"
        }
      ]
    },
    {
      "external_id": "c556041aff4d14f8bd631c89d494fd00",
      "name": "3.1.3 — Ensure bluetooth services are not in use",
      "description": "Ensure bluetooth services are not in use",
      "rational": "An attacker may be able to find a way to access or corrupt your data. One example of \nthis type of activity is bluesnarfing, which refers to attackers using a Bluetooth \nconnection to steal information off of your Bluetooth device. Also, viruses or other \nmalicious code can take advantage of Bluetooth technology to infect other devices. If \nyou are infected, your data may be corrupted, compromi...",
      "remediation": "Run the following commands to stop bluetooth.service, and remove the bluez \npackage: \n\n# systemctl stop bluetooth.service \n# dnf remove bluez \n\n- OR - \n\n- IF - the bluez package is required as a dependency: \n\nRun the following commands to stop and mask bluetooth.service: \n\n# systemctl stop bluetooth.service \n# systemctl mask bluetooth.service \n\nNote: A reboot may be required",
      "severity": "Medium",
      "filter": null,
      "app_filter": null,
      "conditions": [
        {
          "type": "condition",
          "element": "PACKAGE",
          "input": "bluez",
          "selement": "NOT EXISTS",
          "condition": "",
          "sinput": ""
        }
      ],
      "applicability": [
        {
          "type": "applicability",
          "element": "OS",
          "input": "",
          "selement": "CONTENT",
          "condition": "CONTAINS",
          "sinput": "Rocky"
        }
      ]
    },
    {
      "external_id": "6f21d1b1d4f756ed0e0c42c58cf2e7a4",
      "name": "3.2.1 — Ensure atm kernel module is not available",
      "description": "Ensure atm kernel module is not available",
      "rational": "Removing support for unneeded protocols reduces the local attack surface of the \nsystem. If this protocol is not needed, disable it.",
      "remediation": "Unload and disable the atm kernel module. \n\n1.  Run the following commands to unload the atm kernel module: \n\n# modprobe -r atm 2>/dev/null \n# rmmod can 2>/dev/null \n\n2.  Perform the following to disable the atm kernel module: \n\nCreate a file ending in .conf with install can /bin/false in the /etc/modprobe.d/ \ndirectory \n\nExample: \n# printf '\\n%s\\n' \"install atm /bin/false\" >> /etc/modprobe.d/60-atm.conf \n\nCreate a file ending in .conf with blacklist atm in the /etc/modprobe.d/ directory \n\nEx...",
      "severity": "Medium",
      "filter": null,
      "app_filter": null,
      "conditions": [
        {
          "type": "condition",
          "element": "CMD",
          "input": "lsmod | grep -c '^atm ' || true",
          "selement": "OUTPUT",
          "condition": "EQUALS",
          "sinput": "0"
        }
      ],
      "applicability": [
        {
          "type": "applicability",
          "element": "OS",
          "input": "",
          "selement": "CONTENT",
          "condition": "CONTAINS",
          "sinput": "Rocky"
        }
      ]
    },
    {
      "external_id": "ea9af72b756f932ee7a5f0f9d0e1ecd6",
      "name": "3.2.2 — Ensure can kernel module is not available",
      "description": "Ensure can kernel module is not available",
      "rational": "Removing support for unneeded protocols reduces the local attack surface of the \nsystem. If this protocol is not needed, disable it.",
      "remediation": "Unload and disable the can kernel module. \n\n1.  Run the following commands to unload the can kernel module: \n\n# modprobe -r can 2>/dev/null \n# rmmod can 2>/dev/null \n\n2.  Perform the following to disable the can kernel module: \n\nCreate a file ending in .conf with install can /bin/false in the /etc/modprobe.d/ \ndirectory \n\nExample: \n# printf '\\n%s\\n' \"install can /bin/false\" >> /etc/modprobe.d/60-can.conf \n\nCreate a file ending in .conf with blacklist can in the /etc/modprobe.d/ directory \n\nEx...",
      "severity": "Medium",
      "filter": null,
      "app_filter": null,
      "conditions": [
        {
          "type": "condition",
          "element": "CMD",
          "input": "lsmod | grep -c '^can ' || true",
          "selement": "OUTPUT",
          "condition": "EQUALS",
          "sinput": "0"
        }
      ],
      "applicability": [
        {
          "type": "applicability",
          "element": "OS",
          "input": "",
          "selement": "CONTENT",
          "condition": "CONTAINS",
          "sinput": "Rocky"
        }
      ]
    },
    {
      "external_id": "627bf85170408d662915c796307d52cc",
      "name": "3.2.3 — Ensure dccp kernel module is not available",
      "description": "Ensure dccp kernel module is not available",
      "rational": "Removing support for unneeded protocols reduces the local attack surface of the \nsystem. If this protocol is not needed, disable it.",
      "remediation": "Unload and disable the dccp kernel module. \n\n1.  Run the following commands to unload the dccp kernel module: \n\n# modprobe -r dccp 2>/dev/null \n# rmmod dccp 2>/dev/null \n\n2.  Perform the following to disable the dccp kernel module: \n\nCreate a file ending in .conf with install dccp /bin/false in the \n/etc/modprobe.d/ directory \n\nExample: \n\n# printf '\\n%s\\n' \"install dccp /bin/false\" >> /etc/modprobe.d/60-dccp.conf \n\nCreate a file ending in .conf with blacklist dccp in the /etc/modprobe.d/ dire...",
      "severity": "Medium",
      "filter": null,
      "app_filter": null,
      "conditions": [
        {
          "type": "condition",
          "element": "CMD",
          "input": "lsmod | grep -c '^dccp ' || true",
          "selement": "OUTPUT",
          "condition": "EQUALS",
          "sinput": "0"
        }
      ],
      "applicability": [
        {
          "type": "applicability",
          "element": "OS",
          "input": "",
          "selement": "CONTENT",
          "condition": "CONTAINS",
          "sinput": "Rocky"
        }
      ]
    },
    {
      "external_id": "e34229e192d3e9cb235836fa4e8a6bc7",
      "name": "3.2.4 — Ensure tipc kernel module is not available",
      "description": "Ensure tipc kernel module is not available",
      "rational": "Removing support for unneeded protocols reduces the local attack surface of the \nsystem. If this protocol is not needed, disable it.",
      "remediation": "Unload and disable the tipc kernel module. \n\n1.  Run the following commands to unload the tipc kernel module: \n\n# modprobe -r tipc 2>/dev/null \n# rmmod tipc 2>/dev/null \n\n2.  Perform the following to disable the tipc kernel module: \n\nCreate a file ending in .conf with install tipc /bin/false in the \n/etc/modprobe.d/ directory \n\nExample: \n\n# printf '\\n%s\\n' \"install tipc /bin/false\" >> /etc/modprobe.d/60-tipc.conf \n\nCreate a file ending in .conf with blacklist tipc in the /etc/modprobe.d/ dire...",
      "severity": "Medium",
      "filter": null,
      "app_filter": null,
      "conditions": [
        {
          "type": "condition",
          "element": "CMD",
          "input": "lsmod | grep -c '^tipc ' || true",
          "selement": "OUTPUT",
          "condition": "EQUALS",
          "sinput": "0"
        }
      ],
      "applicability": [
        {
          "type": "applicability",
          "element": "OS",
          "input": "",
          "selement": "CONTENT",
          "condition": "CONTAINS",
          "sinput": "Rocky"
        }
      ]
    },
    {
      "external_id": "38c9d5bc961457ade758bb2baa19ea8c",
      "name": "3.2.5 — Ensure rds kernel module is not available",
      "description": "Ensure rds kernel module is not available",
      "rational": "Removing support for unneeded protocols reduces the local attack surface of the \nsystem. If this protocol is not needed, disable it.",
      "remediation": "Unload and disable the rds kernel module. \n\n1.  Run the following commands to unload the rds kernel module: \n\n# modprobe -r rds 2>/dev/null \n# rmmod rds 2>/dev/null \n\n2.  Perform the following to disable the rds kernel module: \n\nCreate a file ending in .conf with install rds /bin/false in the /etc/modprobe.d/ \ndirectory \n\nExample: \n\n# printf '\\n%s\\n' \"install rds /bin/false\" >> /etc/modprobe.d/60-rds.conf \n\nCreate a file ending in .conf with blacklist rds in the /etc/modprobe.d/ directory \n\nE...",
      "severity": "Medium",
      "filter": null,
      "app_filter": null,
      "conditions": [
        {
          "type": "condition",
          "element": "CMD",
          "input": "lsmod | grep -c '^rds ' || true",
          "selement": "OUTPUT",
          "condition": "EQUALS",
          "sinput": "0"
        }
      ],
      "applicability": [
        {
          "type": "applicability",
          "element": "OS",
          "input": "",
          "selement": "CONTENT",
          "condition": "CONTAINS",
          "sinput": "Rocky"
        }
      ]
    },
    {
      "external_id": "8cf1cb7c6b09b737f806599bd9a83230",
      "name": "3.2.6 — Ensure sctp kernel module is not available",
      "description": "Ensure sctp kernel module is not available",
      "rational": "Removing support for unneeded protocols reduces the local attack surface of the \nsystem. If this protocol is not needed, disable it.",
      "remediation": "Unload and disable the sctp kernel module. \n\n1.  Run the following commands to unload the sctp kernel module: \n\n# modprobe -r sctp 2>/dev/null \n# rmmod sctp 2>/dev/null \n\n2.  Perform the following to disable the sctp kernel module: \n\nCreate a file ending in .conf with install sctp /bin/false in the \n/etc/modprobe.d/ directory \n\nExample: \n\n# printf '\\n%s\\n' \"install sctp /bin/false\" >> /etc/modprobe.d/60-sctp.conf \n\nCreate a file ending in .conf with blacklist sctp in the /etc/modprobe.d/ dire...",
      "severity": "Medium",
      "filter": null,
      "app_filter": null,
      "conditions": [
        {
          "type": "condition",
          "element": "CMD",
          "input": "lsmod | grep -c '^sctp ' || true",
          "selement": "OUTPUT",
          "condition": "EQUALS",
          "sinput": "0"
        }
      ],
      "applicability": [
        {
          "type": "applicability",
          "element": "OS",
          "input": "",
          "selement": "CONTENT",
          "condition": "CONTAINS",
          "sinput": "Rocky"
        }
      ]
    },
    {
      "external_id": "ccff98b67a8c12129a58f9c9347fe9cd",
      "name": "3.3.1.1 — Ensure net.ipv4.ip_forward is configured",
      "description": "Ensure net.ipv4.ip_forward is configured",
      "rational": "Routing protocol daemons are typically used on routers to exchange network topology \ninformation with other routers. If this software is used when not required, system \nnetwork information may be unnecessarily transmitted across the network. \n\nSetting net.ipv4.ip_forward to 0 ensures that a system with multiple interfaces (for \nexample, a hard proxy), will not be able to forward IPv4 packets.",
      "remediation": "1.  Review all files being used by systemd sysctl and comment out or remove all \n\nnet.ipv4.ip_forward lines that are not net.ipv4.ip_forward=0. \n\nExample script: \n\n#!/usr/bin/env bash \n\n{ \n   l_option=\"net.ipv4.ip_forward\" l_value=\"0\" \n   l_grep=\"${l_option//./(\\\\.|\\\\/)}\" a_files=() \n   l_systemdsysctl=\"$(readlink -e /lib/systemd/systemd-sysctl \\ \n   || readlink -e /usr/lib/systemd/systemd-sysctl)\" \n   l_ufw_file=\"$([ -f /etc/default/ufw ] && \\ \n   awk -F= '/^\\s*IPT_SYSCTL=/ {print $2}' /etc/...",
      "severity": "Medium",
      "filter": null,
      "app_filter": null,
      "conditions": [
        {
          "type": "condition",
          "element": "CMD",
          "input": "sysctl -n net.ipv4.ip_forward",
          "selement": "OUTPUT",
          "condition": "EQUALS",
          "sinput": "0"
        }
      ],
      "applicability": [
        {
          "type": "applicability",
          "element": "OS",
          "input": "",
          "selement": "CONTENT",
          "condition": "CONTAINS",
          "sinput": "Rocky"
        }
      ]
    },
    {
      "external_id": "e74c993c35b0026b2cfb36444c917838",
      "name": "4.1.1 — Ensure firewalld is installed",
      "description": "Ensure firewalld is installed",
      "rational": "firewalld is a dynamic, user friendly, firewall manager that can protect against threats \noriginating from within a corporate network to include malicious mobile code and poorly \nconfigured software on a host.",
      "remediation": "Run the following command to install firewalld \n\n# dnf install firewalld",
      "severity": "Medium",
      "filter": null,
      "app_filter": null,
      "conditions": [
        {
          "type": "condition",
          "element": "PACKAGE",
          "input": "firewalld",
          "selement": "EXISTS",
          "condition": "",
          "sinput": ""
        }
      ],
      "applicability": [
        {
          "type": "applicability",
          "element": "OS",
          "input": "",
          "selement": "CONTENT",
          "condition": "CONTAINS",
          "sinput": "Rocky"
        }
      ]
    },
    {
      "external_id": "968e4fd940dd1e1aff1649f2047bbe5e",
      "name": "4.1.2 — Ensure firewalld backend is configured",
      "description": "Ensure firewalld backend is configured",
      "rational": "IPTables are deprecated.",
      "remediation": "Edit the file /etc/firewalld/firewalld.conf and add or modify the following line: \n\nFirewallBackend=nftables",
      "severity": "Medium",
      "filter": null,
      "app_filter": null,
      "conditions": [
        {
          "type": "condition",
          "element": "CMD",
          "input": "grep -Psi -- 'FirewallBackend\\h*=\\h*nftables\\b'",
          "selement": "OUTPUT",
          "condition": "NOT EQUALS",
          "sinput": ""
        }
      ],
      "applicability": [
        {
          "type": "applicability",
          "element": "OS",
          "input": "",
          "selement": "CONTENT",
          "condition": "CONTAINS",
          "sinput": "Rocky"
        }
      ]
    },
    {
      "external_id": "d5d5002efbaf7e5ebf6164a955724c2a",
      "name": "4.1.3 — Ensure firewalld.service is configured",
      "description": "Ensure firewalld.service is configured",
      "rational": "firewalld.service must be active to enforce rules configured through FirewallD. \nfirewalld.service must be enabled to start automatically after a system reboot.",
      "remediation": "Run the following commands to unmask, enable, and start firewalld.service: \n\n# systemctl unmask firewalld.service \n# systemctl --now enable firewalld.service \n\nPage 537",
      "severity": "Medium",
      "filter": null,
      "app_filter": null,
      "conditions": [
        {
          "type": "condition",
          "element": "SERVICE",
          "input": "firewalld",
          "selement": "ENABLED",
          "condition": null,
          "sinput": null
        }
      ],
      "applicability": [
        {
          "type": "applicability",
          "element": "OS",
          "input": "",
          "selement": "CONTENT",
          "condition": "CONTAINS",
          "sinput": "Rocky"
        }
      ]
    },
    {
      "external_id": "62aff8eed23437d989e583969a81b559",
      "name": "5.1.4 — Ensure sshd access is configured",
      "description": "Ensure sshd access is configured",
      "rational": "Restricting which users can remotely access the system via SSH will help ensure that \nonly authorized users access the system. \n\nPage 564",
      "remediation": "Edit the /etc/ssh/sshd_config file to set one or more of the parameters above any \nInclude and Match set statements as follows: \n\nAllowUsers <userlist> \n - AND/OR - \nAllowGroups <grouplist> \n\nNote: \n\n•  First occurrence of a option takes precedence, Match set statements \n\nwithstanding. If Include locations are enabled, used, and order of precedence is \nunderstood in your environment, the entry may be created in a .conf file in a \nInclude directory. \n\n•  Be advised that these options are \"ANDe...",
      "severity": "Medium",
      "filter": null,
      "app_filter": null,
      "conditions": [
        {
          "type": "condition",
          "element": "CMD",
          "input": "sshd -T | grep -Pi -- '^\\h*(allow|deny)(users|groups)\\h+\\H+'",
          "selement": "OUTPUT",
          "condition": "NOT EQUALS",
          "sinput": ""
        }
      ],
      "applicability": [
        {
          "type": "applicability",
          "element": "OS",
          "input": "",
          "selement": "CONTENT",
          "condition": "CONTAINS",
          "sinput": "Rocky"
        }
      ]
    },
    {
      "external_id": "7ca8baa5c5f46e8250a2344489d4c6e9",
      "name": "5.1.5 — Ensure sshd Banner is configured",
      "description": "Ensure sshd Banner is configured",
      "rational": "Banners are used to warn connecting users of the particular site's policy regarding \nconnection. Presenting a warning message prior to the normal user login may assist the \nprosecution of trespassers on the computer system.",
      "remediation": "Edit the /etc/ssh/sshd_config file to set the Banner parameter above any Include \nand Match entries as follows: \n\nBanner /etc/issue.net \n\nNote: First occurrence of a option takes precedence, Match set statements \nwithstanding. If Include locations are enabled, used, and order of precedence is \nunderstood in your environment, the entry may be created in a file in Include location. \n\nEdit the file being called by the Banner argument with the appropriate contents \naccording to your site policy,...",
      "severity": "Medium",
      "filter": null,
      "app_filter": null,
      "conditions": [
        {
          "type": "condition",
          "element": "CMD",
          "input": "sshd -T | grep -Pi -- '^banner\\h+\\/\\H+'",
          "selement": "OUTPUT",
          "condition": "NOT EQUALS",
          "sinput": ""
        }
      ],
      "applicability": [
        {
          "type": "applicability",
          "element": "OS",
          "input": "",
          "selement": "CONTENT",
          "condition": "CONTAINS",
          "sinput": "Rocky"
        }
      ]
    },
    {
      "external_id": "f9c954cf74142701da7b9eb9e03eb798",
      "name": "5.1.6 — Ensure sshd Ciphers are configured",
      "description": "Ensure sshd Ciphers are configured",
      "rational": "Weak ciphers that are used for authentication to the cryptographic module cannot be \nrelied upon to provide confidentiality or integrity, and system data may be compromised. \n\n•  The Triple DES ciphers, as used in SSH, have a birthday bound of approximately \nfour billion blocks, which makes it easier for remote attackers to obtain clear text \ndata via a birthday attack against a long-duration e...",
      "remediation": "Note: \n\n•  First occurrence of an option takes precedence. \n•  Though ciphers may be configured through the Ciphers option in the \n\n• \n\n/etc/ssh/sshd_config file, it is recommended that the ciphers available to \nopenSSH server are configured through system-wide-crypto-policy \nIf the recommendations in the subsection \"Configure system wide crypto policy\" \nhave been followed, this Audit should be in a passing state. Please review that \nsection before following this Remediation Procedure \n\n•  By...",
      "severity": "Medium",
      "filter": null,
      "app_filter": null,
      "conditions": [
        {
          "type": "condition",
          "element": "CMD",
          "input": "sshd -T | grep -Pi -- '^ciphers\\h+\\\"?([^#\\n\\r]+,)?((3des|aes(128|192|256))-",
          "selement": "OUTPUT",
          "condition": "NOT EQUALS",
          "sinput": ""
        }
      ],
      "applicability": [
        {
          "type": "applicability",
          "element": "OS",
          "input": "",
          "selement": "CONTENT",
          "condition": "CONTAINS",
          "sinput": "Rocky"
        }
      ]
    },
    {
      "external_id": "c188e4e26449abffa91aa2289d48082f",
      "name": "5.1.9 — Ensure sshd GSSAPIAuthentication is disabled",
      "description": "Ensure sshd GSSAPIAuthentication is disabled",
      "rational": "Allowing GSSAPI authentication through SSH exposes the system's GSSAPI to remote \nhosts, and should be disabled to reduce the attack surface of the system",
      "remediation": "Edit the /etc/ssh/sshd_config file to set the GSSAPIAuthentication parameter to \nno above any Include and Match entries as follows: \n\nGSSAPIAuthentication no \n\nNote: First occurrence of an option takes precedence, Match set statements \nwithstanding. If Include locations are enabled, used, and order of precedence is \nunderstood in your environment, the entry may be created in a file in Include location. \n\nPage 579",
      "severity": "Medium",
      "filter": null,
      "app_filter": null,
      "conditions": [
        {
          "type": "condition",
          "element": "CMD",
          "input": "sshd -T | grep gssapiauthentication",
          "selement": "OUTPUT",
          "condition": "NOT EQUALS",
          "sinput": ""
        }
      ],
      "applicability": [
        {
          "type": "applicability",
          "element": "OS",
          "input": "",
          "selement": "CONTENT",
          "condition": "CONTAINS",
          "sinput": "Rocky"
        }
      ]
    },
    {
      "external_id": "1ab6dc98dbc463ff0b30fdde7643d633",
      "name": "5.1.11 — Ensure sshd IgnoreRhosts is enabled",
      "description": "Ensure sshd IgnoreRhosts is enabled",
      "rational": "Setting this parameter forces users to enter a password when authenticating with SSH.",
      "remediation": "Edit the /etc/ssh/sshd_config file to set the IgnoreRhosts parameter to yes above \nany Include entry as follows: \n\nIgnoreRhosts yes \n\nNote: First occurrence of a option takes precedence. If Include locations are enabled, \nused, and order of precedence is understood in your environment, the entry may be \ncreated in a file in Include location.",
      "severity": "Medium",
      "filter": null,
      "app_filter": null,
      "conditions": [
        {
          "type": "condition",
          "element": "CMD",
          "input": "sshd -T | grep ignorerhosts",
          "selement": "OUTPUT",
          "condition": "NOT EQUALS",
          "sinput": ""
        }
      ],
      "applicability": [
        {
          "type": "applicability",
          "element": "OS",
          "input": "",
          "selement": "CONTENT",
          "condition": "CONTAINS",
          "sinput": "Rocky"
        }
      ]
    },
    {
      "external_id": "32889377c6749b674df44f7b309bf037",
      "name": "5.1.12 — Ensure sshd KexAlgorithms is configured",
      "description": "Ensure sshd KexAlgorithms is configured",
      "rational": "Key exchange methods that are considered weak should be removed. A key exchange \nmethod may be weak because too few bits are used, or the hashing algorithm is \nconsidered too weak. Using weak algorithms could expose connections to man-in-the-\nmiddle attacks \n\nPage 585",
      "remediation": "Note: \n\n•  First occurrence of an option takes precedence. \n•  Though key_exchange may be configured through the KexAlgorithms option in \nthe /etc/ssh/sshd_config file, it is recommended that the key_exchange \navailable to openSSH server are configured through system-wide-crypto-policy \nIf the recommendations in the subsection \"Configure system wide crypto policy\" \nhave been followed, this Audit should be in a passing state. Please review that \nsection before following this Remediation Proced...",
      "severity": "Medium",
      "filter": null,
      "app_filter": null,
      "conditions": [
        {
          "type": "condition",
          "element": "CMD",
          "input": "sshd -T | grep -Pi -- 'kexalgorithms\\h+([^#\\n\\r]+,)?(diffie-hellman-group1-",
          "selement": "OUTPUT",
          "condition": "NOT EQUALS",
          "sinput": ""
        }
      ],
      "applicability": [
        {
          "type": "applicability",
          "element": "OS",
          "input": "",
          "selement": "CONTENT",
          "condition": "CONTAINS",
          "sinput": "Rocky"
        }
      ]
    },
    {
      "external_id": "df75e0b47f8ca1666d57d073be0584c4",
      "name": "5.1.13 — Ensure sshd LoginGraceTime is configured",
      "description": "Ensure sshd LoginGraceTime is configured",
      "rational": "Setting the LoginGraceTime parameter to a low number will minimize the risk of \nsuccessful brute force attacks to the SSH server. It will also limit the number of \nconcurrent unauthenticated connections While the recommended setting is 60 seconds \n(1 Minute), set the number based on site policy.",
      "remediation": "Edit the /etc/ssh/sshd_config file to set the LoginGraceTime parameter to 60 \nseconds or less above any Include entry as follows: \n\nLoginGraceTime 60 \n\nNote: First occurrence of a option takes precedence. If Include locations are enabled, \nused, and order of precedence is understood in your environment, the entry may be \ncreated in a file in Include location.",
      "severity": "Medium",
      "filter": null,
      "app_filter": null,
      "conditions": [
        {
          "type": "condition",
          "element": "CMD",
          "input": "sshd -T | grep logingracetime",
          "selement": "OUTPUT",
          "condition": "NOT EQUALS",
          "sinput": ""
        }
      ],
      "applicability": [
        {
          "type": "applicability",
          "element": "OS",
          "input": "",
          "selement": "CONTENT",
          "condition": "CONTAINS",
          "sinput": "Rocky"
        }
      ]
    },
    {
      "external_id": "c4d4b5c1a2f16e89f22264acc9ba6675",
      "name": "5.1.14 — Ensure sshd LogLevel is configured",
      "description": "Ensure sshd LogLevel is configured",
      "rational": "The INFO level is the basic level that only records login activity of SSH users. In many \nsituations, such as Incident Response, it is important to determine when a particular \nuser was active on a system. The logout record can eliminate those users who \ndisconnected, which helps narrow the field. \n\nThe VERBOSE level specifies that login and logout activity as well as the key fingerprint \nfor a...",
      "remediation": "Edit the /etc/ssh/sshd_config file to set the LogLevel parameter to VERBOSE or \nINFO above any Include and Match entries as follows: \n\nLogLevel VERBOSE \n   - OR - \nLogLevel INFO \n\nNote: First occurrence of an option takes precedence, Match set statements \nwithstanding. If Include locations are enabled, used, and order of precedence is \nunderstood in your environment, the entry may be created in a file in Include location.",
      "severity": "Medium",
      "filter": null,
      "app_filter": null,
      "conditions": [
        {
          "type": "condition",
          "element": "CMD",
          "input": "sshd -T | grep loglevel",
          "selement": "OUTPUT",
          "condition": "NOT EQUALS",
          "sinput": ""
        }
      ],
      "applicability": [
        {
          "type": "applicability",
          "element": "OS",
          "input": "",
          "selement": "CONTENT",
          "condition": "CONTAINS",
          "sinput": "Rocky"
        }
      ]
    },
    {
      "external_id": "991b8a935f63e9902bae27cc2e708f77",
      "name": "5.1.15 — Ensure sshd MACs are configured",
      "description": "Ensure sshd MACs are configured",
      "rational": "MD5 and 96-bit MAC algorithms are considered weak and have been shown to increase \nexploitability in SSH downgrade attacks. Weak algorithms continue to have a great deal \nof attention as a weak spot that can be exploited with expanded computing power. An \nattacker that breaks the algorithm could take advantage of a MiTM position to decrypt \nthe SSH tunnel and capture credentials and information...",
      "remediation": "Note: \n\n•  First occurrence of an option takes precedence. \n•  Though MACs may be configured through the MACs option in the \n\n• \n\n/etc/ssh/sshd_config file, it is recommended that the MACs available to \nopenSSH server are configured through system-wide-crypto-policy \nIf the recommendations in the subsection \"Configure system wide crypto policy\" \nhave been followed, this Audit should be in a passing state. Please review that \nsection before following this Remediation Procedure \n\n•  By default,...",
      "severity": "Medium",
      "filter": null,
      "app_filter": null,
      "conditions": [
        {
          "type": "condition",
          "element": "CMD",
          "input": "sshd -T | grep -Pi -- 'macs\\h+([^#\\n\\r]+,)?(hmac-md5|hmac-md5-96|hmac-sha1-",
          "selement": "OUTPUT",
          "condition": "NOT EQUALS",
          "sinput": ""
        }
      ],
      "applicability": [
        {
          "type": "applicability",
          "element": "OS",
          "input": "",
          "selement": "CONTENT",
          "condition": "CONTAINS",
          "sinput": "Rocky"
        }
      ]
    },
    {
      "external_id": "848b0ba28b8838d8ce01ca17c35235ef",
      "name": "5.1.16 — Ensure sshd MaxAuthTries is configured",
      "description": "Ensure sshd MaxAuthTries is configured",
      "rational": "Setting the MaxAuthTries parameter to a low number will minimize the risk of \nsuccessful brute force attacks to the SSH server. While the recommended setting is 4, \nset the number based on site policy.",
      "remediation": "Edit the /etc/ssh/sshd_config file to set the MaxAuthTries parameter to 4 or less \nabove any Include and Match entries as follows: \n\nMaxAuthTries 4 \n\nNote: First occurrence of an option takes precedence, Match set statements \nwithstanding. If Include locations are enabled, used, and order of precedence is \nunderstood in your environment, the entry may be created in a file in Include location. \n\nPage 598",
      "severity": "Medium",
      "filter": null,
      "app_filter": null,
      "conditions": [
        {
          "type": "condition",
          "element": "CMD",
          "input": "sshd -T | grep maxauthtries",
          "selement": "OUTPUT",
          "condition": "NOT EQUALS",
          "sinput": ""
        }
      ],
      "applicability": [
        {
          "type": "applicability",
          "element": "OS",
          "input": "",
          "selement": "CONTENT",
          "condition": "CONTAINS",
          "sinput": "Rocky"
        }
      ]
    },
    {
      "external_id": "187a89a0c03c60e76df6714fb624c6c5",
      "name": "5.1.17 — Ensure sshd MaxStartups is configured",
      "description": "Ensure sshd MaxStartups is configured",
      "rational": "To protect a system from denial of service due to a large number of pending \nauthentication connection attempts, use the rate limiting function of MaxStartups to \nprotect availability of sshd logins and prevent overwhelming the daemon.",
      "remediation": "Edit the /etc/ssh/sshd_config file to set the MaxStartups parameter to 10:30:60 or \nmore restrictive above any Include entries as follows: \n\nMaxStartups 10:30:60 \n\nNote: First occurrence of a option takes precedence. If Include locations are enabled, \nused, and order of precedence is understood in your environment, the entry may be \ncreated in a file in Include location.",
      "severity": "Medium",
      "filter": null,
      "app_filter": null,
      "conditions": [
        {
          "type": "condition",
          "element": "CMD",
          "input": "sshd -T | awk '$1 ~ /^\\s*maxstartups/{split($2, a, \":\");{if(a[1] > 10 ||",
          "selement": "OUTPUT",
          "condition": "NOT EQUALS",
          "sinput": ""
        }
      ],
      "applicability": [
        {
          "type": "applicability",
          "element": "OS",
          "input": "",
          "selement": "CONTENT",
          "condition": "CONTAINS",
          "sinput": "Rocky"
        }
      ]
    },
    {
      "external_id": "f040bb6376596d14681b5cefaf1aae51",
      "name": "5.1.18 — Ensure sshd MaxSessions is configured",
      "description": "Ensure sshd MaxSessions is configured",
      "rational": "To protect a system from denial of service due to a large number of concurrent \nsessions, use the rate limiting function of MaxSessions to protect availability of sshd \nlogins and prevent overwhelming the daemon.",
      "remediation": "Edit the /etc/ssh/sshd_config file to set the MaxSessions parameter to 10 or less \nabove any Include and Match entries as follows: \n\nMaxSessions 10 \n\nNote: First occurrence of an option takes precedence, Match set statements \nwithstanding. If Include locations are enabled, used, and order of precedence is \nunderstood in your environment, the entry may be created in a file in Include location.",
      "severity": "Medium",
      "filter": null,
      "app_filter": null,
      "conditions": [
        {
          "type": "condition",
          "element": "CMD",
          "input": "sshd -T | grep -i maxsessions",
          "selement": "OUTPUT",
          "condition": "NOT EQUALS",
          "sinput": ""
        }
      ],
      "applicability": [
        {
          "type": "applicability",
          "element": "OS",
          "input": "",
          "selement": "CONTENT",
          "condition": "CONTAINS",
          "sinput": "Rocky"
        }
      ]
    },
    {
      "external_id": "dc37463f35871c66c141b0a6d5ce2b5b",
      "name": "5.1.20 — Ensure sshd PermitRootLogin is disabled",
      "description": "Ensure sshd PermitRootLogin is disabled",
      "rational": "Disallowing root logins over SSH requires system admins to authenticate using their \nown individual account, then escalating to root. This limits opportunity for non-\nrepudiation and provides a clear audit trail in the event of a security incident.",
      "remediation": "Edit the /etc/ssh/sshd_config file to set the PermitRootLogin parameter to no \nabove any Include and Match entries as follows: \n\nPermitRootLogin no \n\nNote: First occurrence of an option takes precedence, Match set statements \nwithstanding. If Include locations are enabled, used, and order of precedence is \nunderstood in your environment, the entry may be created in a file in Include location. \n\nPage 606",
      "severity": "Medium",
      "filter": null,
      "app_filter": null,
      "conditions": [
        {
          "type": "condition",
          "element": "CMD",
          "input": "sshd -T | grep permitrootlogin",
          "selement": "OUTPUT",
          "condition": "NOT EQUALS",
          "sinput": ""
        }
      ],
      "applicability": [
        {
          "type": "applicability",
          "element": "OS",
          "input": "",
          "selement": "CONTENT",
          "condition": "CONTAINS",
          "sinput": "Rocky"
        }
      ]
    },
    {
      "external_id": "fa4e6f9a0cd6e2fdaa27cd896c4918cc",
      "name": "5.1.22 — Ensure sshd UsePAM is enabled",
      "description": "Ensure sshd UsePAM is enabled",
      "rational": "When usePAM is set to yes, PAM runs through account and session types properly. This \nis important if you want to restrict access to services based off of IP, time or other \nfactors of the account. Additionally, you can make sure users inherit certain \nenvironment variables on login or disallow access to the server",
      "remediation": "Edit the /etc/ssh/sshd_config file to set the UsePAM parameter to yes above any \nInclude entries as follows: \n\nUsePAM yes \n\nNote: First occurrence of an option takes precedence. If Include locations are enabled, \nused, and order of precedence is understood in your environment, the entry may be \ncreated in a file in Include location.",
      "severity": "Medium",
      "filter": null,
      "app_filter": null,
      "conditions": [
        {
          "type": "condition",
          "element": "CMD",
          "input": "sshd -T | grep -i usepam",
          "selement": "OUTPUT",
          "condition": "NOT EQUALS",
          "sinput": ""
        }
      ],
      "applicability": [
        {
          "type": "applicability",
          "element": "OS",
          "input": "",
          "selement": "CONTENT",
          "condition": "CONTAINS",
          "sinput": "Rocky"
        }
      ]
    },
    {
      "external_id": "6bd171ae91ab2648aa74b46df6173bbc",
      "name": "5.2.1 — Ensure sudo is installed",
      "description": "Ensure sudo is installed",
      "rational": "sudo supports a plug-in architecture for security policies and input/output logging. Third \nparties can develop and distribute their own policy and I/O logging plug-ins to work \nseamlessly with the sudo front end. The default security policy is sudoers, which is \nconfigured via the file /etc/sudoers and any entries in /etc/sudoers.d. \n\nThe security policy determines what privileges, if any, a u...",
      "remediation": "Run the following command to install sudo \n\n# dnf install sudo",
      "severity": "Medium",
      "filter": null,
      "app_filter": null,
      "conditions": [
        {
          "type": "condition",
          "element": "PACKAGE",
          "input": "sudo",
          "selement": "EXISTS",
          "condition": "",
          "sinput": ""
        }
      ],
      "applicability": [
        {
          "type": "applicability",
          "element": "OS",
          "input": "",
          "selement": "CONTENT",
          "condition": "CONTAINS",
          "sinput": "Rocky"
        }
      ]
    },
    {
      "external_id": "ce8d9683ebcd87abc4b1d2eaacedb636",
      "name": "5.2.2 — Ensure sudo commands use pty",
      "description": "Ensure sudo commands use pty",
      "rational": "Attackers can run a malicious program using sudo which would fork a background \nprocess that remains even when the main program has finished executing.",
      "remediation": "Edit the file /etc/sudoers with visudo or a file in /etc/sudoers.d/ with visudo -f \n<PATH TO FILE> and add the following line: \n\nDefaults use_pty \n\nEdit the file /etc/sudoers with visudo and any files in /etc/sudoers.d/ with visudo \n-f <PATH TO FILE> and remove any occurrence of !use_pty \n\nPage 615 \n\n \n \n\fNote: \n\n•  sudo will read each file in /etc/sudoers.d, skipping file names that end in ~ or \ncontain a . character to avoid causing problems with package manager or editor \ntemporary/backup...",
      "severity": "Medium",
      "filter": null,
      "app_filter": null,
      "conditions": [
        {
          "type": "condition",
          "element": "CMD",
          "input": "grep -rPi -- '^\\h*Defaults\\h+([^#\\n\\r]+,\\h*)?use_pty\\b' /etc/sudoers*",
          "selement": "OUTPUT",
          "condition": "NOT EQUALS",
          "sinput": ""
        }
      ],
      "applicability": [
        {
          "type": "applicability",
          "element": "OS",
          "input": "",
          "selement": "CONTENT",
          "condition": "CONTAINS",
          "sinput": "Rocky"
        }
      ]
    },
    {
      "external_id": "a521c0e107d47c9884969cd8cf732a0e",
      "name": "5.2.3 — Ensure sudo log file exists",
      "description": "Ensure sudo log file exists",
      "rational": "Defining a dedicated log file for sudo simplifies auditing of sudo commands and creation \nof auditd rules for sudo.",
      "remediation": "Edit the file /etc/sudoers or a file in /etc/sudoers.d/ with visudo -f <PATH TO \nFILE> and add the following line: \n\nDefaults  logfile=\"<PATH TO CUSTOM LOG FILE>\" \n\nExample \n\nDefaults logfile=\"/var/log/sudo.log\" \n\nPage 617 \n\n \n \n\fNotes: \n\n•  sudo will read each file in /etc/sudoers.d, skipping file names that end in ~ or \ncontain a . character to avoid causing problems with package manager or editor \ntemporary/backup files. \n\n•  Files are parsed in sorted lexical order. That is, /etc/sudoers....",
      "severity": "Medium",
      "filter": null,
      "app_filter": null,
      "conditions": [
        {
          "type": "condition",
          "element": "CMD",
          "input": "grep -rPsi",
          "selement": "OUTPUT",
          "condition": "NOT EQUALS",
          "sinput": ""
        }
      ],
      "applicability": [
        {
          "type": "applicability",
          "element": "OS",
          "input": "",
          "selement": "CONTENT",
          "condition": "CONTAINS",
          "sinput": "Rocky"
        }
      ]
    },
    {
      "external_id": "efea8a96525bd88050652eae61034437",
      "name": "5.2.6 — Ensure sudo timestamp_timeout is configured",
      "description": "Ensure sudo timestamp_timeout is configured",
      "rational": "Setting a timeout value reduces the window of opportunity for unauthorized privileged \naccess to another user.",
      "remediation": "If the currently configured timeout is larger than 15 minutes, edit the file listed in the \naudit section with visudo -f <PATH TO FILE> and modify the entry \ntimestamp_timeout= to 15 minutes or less as per your site policy. The value is in \nminutes. This particular entry may appear on its own, or on the same line as \nenv_reset. See the following two examples: \n\nDefaults    env_reset, timestamp_timeout=15 \nDefaults    timestamp_timeout=15 \nDefaults    env_reset \n\nPage 623",
      "severity": "Medium",
      "filter": null,
      "app_filter": null,
      "conditions": [
        {
          "type": "condition",
          "element": "CMD",
          "input": "grep -roP \"timestamp_timeout=\\K[0-9]*\" /etc/sudoers*",
          "selement": "OUTPUT",
          "condition": "NOT EQUALS",
          "sinput": ""
        }
      ],
      "applicability": [
        {
          "type": "applicability",
          "element": "OS",
          "input": "",
          "selement": "CONTENT",
          "condition": "CONTAINS",
          "sinput": "Rocky"
        }
      ]
    },
    {
      "external_id": "175d976aaf088cac78296fa7b137e95b",
      "name": "5.2.7 — Ensure access to the su command is restricted",
      "description": "Ensure access to the su command is restricted",
      "rational": "Restricting the use of su , and using sudo in its place, provides system administrators \nbetter control of the escalation of user privileges to execute privileged commands. The \nsudo utility also provides a better logging and audit mechanism, as it can log each \ncommand executed via sudo , whereas su can only record that a user executed the su \nprogram.",
      "remediation": "Create an empty group that will be specified for use of the su command. The group \nshould be named according to site policy. \n\nExample: \n\n# groupadd sugroup \n\nAdd the following line to the /etc/pam.d/su file, specifying the empty group: \n\nauth required pam_wheel.so use_uid group=sugroup",
      "severity": "Medium",
      "filter": null,
      "app_filter": null,
      "conditions": [
        {
          "type": "condition",
          "element": "FILE",
          "input": "/etc/group",
          "selement": "CONTENT",
          "condition": "CONTAINS",
          "sinput": "<group_name>"
        }
      ],
      "applicability": [
        {
          "type": "applicability",
          "element": "OS",
          "input": "",
          "selement": "CONTENT",
          "condition": "CONTAINS",
          "sinput": "Rocky"
        }
      ]
    },
    {
      "external_id": "c99b8339bd1224e160569e396aa73c5e",
      "name": "5.3.1.2 — Ensure pam_faillock module is enabled",
      "description": "Ensure pam_faillock module is enabled",
      "rational": "Locking out user IDs after n unsuccessful consecutive login attempts mitigates brute \nforce password attacks against your systems.",
      "remediation": "Run the following script to verify the pam_faillock.so lines exist in the profile \ntemplates: \n\n#!/usr/bin/env bash \n\n{ \n   l_module_name=\"faillock\" \n   l_pam_profile=\"$(head -1 /etc/authselect/authselect.conf)\" \n   if grep -Pq -- '^custom\\/' <<< \"$l_pam_profile\"; then \n      l_pam_profile_path=\"/etc/authselect/$l_pam_profile\" \n   else \n      l_pam_profile_path=\"/usr/share/authselect/default/$l_pam_profile\" \n   fi \n   grep -P -- \"\\bpam_$l_module_name\\.so\\b\" \n\"$l_pam_profile_path\"/{password,sy...",
      "severity": "Medium",
      "filter": null,
      "app_filter": null,
      "conditions": [
        {
          "type": "condition",
          "element": "CMD",
          "input": "grep -P -- '\\bpam_faillock.so\\b' /etc/pam.d/{password,system}-auth",
          "selement": "OUTPUT",
          "condition": "NOT EQUALS",
          "sinput": ""
        }
      ],
      "applicability": [
        {
          "type": "applicability",
          "element": "OS",
          "input": "",
          "selement": "CONTENT",
          "condition": "CONTAINS",
          "sinput": "Rocky"
        }
      ]
    },
    {
      "external_id": "28b9b42d52c724aaed0071d6e6fee7e7",
      "name": "5.3.1.3 — Ensure pam_pwquality module is enabled",
      "description": "Ensure pam_pwquality module is enabled",
      "rational": "Use of a unique, complex passwords helps to increase the time and resources required \nto compromise the password.",
      "remediation": "Review the authselect profile templates: \n\nRun the following script to verify the pam_pwquality.so lines exist in the active profile \ntemplates: \n\n#!/usr/bin/env bash \n\n{ \n   l_module_name=\"pwquality\" \n   l_pam_profile=\"$(head -1 /etc/authselect/authselect.conf)\" \n   if grep -Pq -- '^custom\\/' <<< \"$l_pam_profile\"; then \n      l_pam_profile_path=\"/etc/authselect/$l_pam_profile\" \n   else \n      l_pam_profile_path=\"/usr/share/authselect/default/$l_pam_profile\" \n   fi \n   grep -P -- \"\\bpam_$l_mo...",
      "severity": "Medium",
      "filter": null,
      "app_filter": null,
      "conditions": [
        {
          "type": "condition",
          "element": "CMD",
          "input": "grep -P -- '\\bpam_pwquality\\.so\\b' /etc/pam.d/{password,system}-auth",
          "selement": "OUTPUT",
          "condition": "NOT EQUALS",
          "sinput": ""
        }
      ],
      "applicability": [
        {
          "type": "applicability",
          "element": "OS",
          "input": "",
          "selement": "CONTENT",
          "condition": "CONTAINS",
          "sinput": "Rocky"
        }
      ]
    },
    {
      "external_id": "ad34ab21c9975f9b847b7cb52fe8326a",
      "name": "5.3.1.4 — Ensure pam_pwhistory module is enabled",
      "description": "Ensure pam_pwhistory module is enabled",
      "rational": "Requiring users not to reuse their passwords make it less likely that an attacker will be \nable to guess the password or use a compromised password.",
      "remediation": "Run the following script to verify the pam_pwhistory.so lines exist in the profile \ntemplates: \n\n#!/usr/bin/env bash \n\n{ \n   l_module_name=\"pwhistory\" \n   l_pam_profile=\"$(head -1 /etc/authselect/authselect.conf)\" \n   if grep -Pq -- '^custom\\/' <<< \"$l_pam_profile\"; then \n      l_pam_profile_path=\"/etc/authselect/$l_pam_profile\" \n   else \n      l_pam_profile_path=\"/usr/share/authselect/default/$l_pam_profile\" \n   fi \n   grep -P -- \"\\bpam_$l_module_name\\.so\\b\" \n\"$l_pam_profile_path\"/{password,...",
      "severity": "Medium",
      "filter": null,
      "app_filter": null,
      "conditions": [
        {
          "type": "condition",
          "element": "CMD",
          "input": "grep -P -- '\\bpam_pwhistory\\.so\\b' /etc/pam.d/{password,system}-auth",
          "selement": "OUTPUT",
          "condition": "NOT EQUALS",
          "sinput": ""
        }
      ],
      "applicability": [
        {
          "type": "applicability",
          "element": "OS",
          "input": "",
          "selement": "CONTENT",
          "condition": "CONTAINS",
          "sinput": "Rocky"
        }
      ]
    },
    {
      "external_id": "fac08df20d6a27621e42a3feed4ab528",
      "name": "5.3.1.5 — Ensure pam_unix module is enabled",
      "description": "Ensure pam_unix module is enabled",
      "rational": "Requiring users to use authentication make it less likely that an attacker will be able to \naccess the system.",
      "remediation": "Run the following script to verify the pam_unix.so lines exist in the profile templates: \n\n#!/usr/bin/env bash \n\n{ \n   l_module_name=\"unix\" \n   l_pam_profile=\"$(head -1 /etc/authselect/authselect.conf)\" \n   if grep -Pq -- '^custom\\/' <<< \"$l_pam_profile\"; then \n      l_pam_profile_path=\"/etc/authselect/$l_pam_profile\" \n   else \n      l_pam_profile_path=\"/usr/share/authselect/default/$l_pam_profile\" \n   fi \n   grep -P -- \"\\bpam_$l_module_name\\.so\\b\" \n\"$l_pam_profile_path\"/{password,system}-aut...",
      "severity": "Medium",
      "filter": null,
      "app_filter": null,
      "conditions": [
        {
          "type": "condition",
          "element": "CMD",
          "input": "grep -P -- '\\bpam_unix\\.so\\b' /etc/pam.d/{password,system}-auth",
          "selement": "OUTPUT",
          "condition": "NOT EQUALS",
          "sinput": ""
        }
      ],
      "applicability": [
        {
          "type": "applicability",
          "element": "OS",
          "input": "",
          "selement": "CONTENT",
          "condition": "CONTAINS",
          "sinput": "Rocky"
        }
      ]
    },
    {
      "external_id": "8cc52af7b1100321c3eb75263176304c",
      "name": "5.3.2.1.2 — Ensure password unlock time is configured",
      "description": "Ensure password unlock time is configured",
      "rational": "Locking out user IDs after n unsuccessful consecutive login attempts mitigates brute \nforce password attacks against your systems.",
      "remediation": "Set password unlock time to conform to site policy. unlock_time should be 0 (never), \nor 900 seconds or greater. \n\nEdit /etc/security/faillock.conf and update or add the following line: \n\nunlock_time = 900 \n\nRun the following script to remove the unlock_time argument from the \npam_faillock.so module in the PAM files: \n\n#!/usr/bin/env bash \n\n{ \n   for l_pam_file in system-auth password-auth; do \n     l_authselect_file=\"/etc/authselect/$(head -1 \n/etc/authselect/authselect.conf | grep 'custom/'...",
      "severity": "Medium",
      "filter": null,
      "app_filter": null,
      "conditions": [
        {
          "type": "condition",
          "element": "CMD",
          "input": "grep -Pi -- '^\\h*unlock_time\\h*=\\h*(0|9[0-9][0-9]|[1-9][0-9]{3,})\\b'",
          "selement": "OUTPUT",
          "condition": "NOT EQUALS",
          "sinput": ""
        }
      ],
      "applicability": [
        {
          "type": "applicability",
          "element": "OS",
          "input": "",
          "selement": "CONTENT",
          "condition": "CONTAINS",
          "sinput": "Rocky"
        }
      ]
    },
    {
      "external_id": "12b30961688b53557e9ab4a245e35859",
      "name": "5.3.2.2.2 — Ensure password length is configured",
      "description": "Ensure password length is configured",
      "rational": "Strong passwords protect systems from being hacked through brute force methods.",
      "remediation": "Create or modify a file ending in .conf in the /etc/security/pwquality.conf.d/ \ndirectory or the file /etc/security/pwquality.conf and add or modify the following \nline to set password length of 14 or more characters. Ensure that password length \nconforms to local site policy: \n\nExample: \n\n# sed -ri 's/^\\s*minlen\\s*=/# &/' /etc/security/pwquality.conf \n# printf '%s\\n' \"\" \"minlen = 14\" >> /etc/security/pwquality.conf.d/50-\npwlength.conf \n\nRun the following script to remove setting minlen on th...",
      "severity": "Medium",
      "filter": null,
      "app_filter": null,
      "conditions": [
        {
          "type": "condition",
          "element": "CMD",
          "input": "grep -Psi -- '^\\h*minlen\\h*=\\h*(1[4-9]|[2-9][0-9]|[1-9][0-9]{2,})\\b'",
          "selement": "OUTPUT",
          "condition": "NOT EQUALS",
          "sinput": ""
        }
      ],
      "applicability": [
        {
          "type": "applicability",
          "element": "OS",
          "input": "",
          "selement": "CONTENT",
          "condition": "CONTAINS",
          "sinput": "Rocky"
        }
      ]
    },
    {
      "external_id": "bdd95cbec7a516ed19feaf0690e110fd",
      "name": "5.3.2.4.1 — Ensure pam_unix does not include nullok",
      "description": "Ensure pam_unix does not include nullok",
      "rational": "Using a strong password is essential to helping protect personal and sensitive \ninformation from unauthorized access",
      "remediation": "Run the following script to verify that the active authselect profile's system-auth and \npassword-auth files include {if not \"without-nullok\":nullok} - OR - don't \ninclude the nullok option on the pam_unix.so module: \n\n{ \n   l_module_name=\"unix\" \n   l_profile_name=\"$(head -1 /etc/authselect/authselect.conf)\" \n   if [[ ! \"$l_profile_name\" =~ ^custom\\/ ]]; then \n      printf '%s\\n' \" - Follow Recommendation \\\"Ensure pam_unix module is \nenabled\\\"\" \\ \n      \"    and then return to this Recommenda...",
      "severity": "Medium",
      "filter": null,
      "app_filter": null,
      "conditions": [
        {
          "type": "condition",
          "element": "CMD",
          "input": "grep -P --",
          "selement": "OUTPUT",
          "condition": "NOT EQUALS",
          "sinput": ""
        }
      ],
      "applicability": [
        {
          "type": "applicability",
          "element": "OS",
          "input": "",
          "selement": "CONTENT",
          "condition": "CONTAINS",
          "sinput": "Rocky"
        }
      ]
    },
    {
      "external_id": "64138727777c025a5901ce8110d19cf7",
      "name": "5.3.2.4.4 — Ensure pam_unix includes use_authtok",
      "description": "Ensure pam_unix includes use_authtok",
      "rational": "use_authtok allows multiple pam modules to confirm a new password before it is \naccepted.",
      "remediation": "Run the following script to verify the active authselect profile includes use_authtok on \nthe password stack's pam_unix.so module lines: \n\n#!/usr/bin/env bash \n\n{ \n   l_pam_profile=\"$(head -1 /etc/authselect/authselect.conf)\" \n   if grep -Pq -- '^custom\\/' <<< \"$l_pam_profile\"; then \n      l_pam_profile_path=\"/etc/authselect/$l_pam_profile\" \n   else \n      l_pam_profile_path=\"/usr/share/authselect/default/$l_pam_profile\" \n   fi \n   grep -P -- \n'^\\h*password\\h+(requisite|required|sufficient)\\h...",
      "severity": "Medium",
      "filter": null,
      "app_filter": null,
      "conditions": [
        {
          "type": "condition",
          "element": "CMD",
          "input": "grep -P --",
          "selement": "OUTPUT",
          "condition": "NOT EQUALS",
          "sinput": ""
        }
      ],
      "applicability": [
        {
          "type": "applicability",
          "element": "OS",
          "input": "",
          "selement": "CONTENT",
          "condition": "CONTAINS",
          "sinput": "Rocky"
        }
      ]
    },
    {
      "external_id": "cea0be78fd09063d351026e5c6f0ded4",
      "name": "5.4.1.1 — Ensure password expiration is configured",
      "description": "Ensure password expiration is configured",
      "rational": "The window of opportunity for an attacker to leverage compromised credentials or \nsuccessfully compromise credentials via an online brute force attack is limited by the \nage of the password. Therefore, reducing the maximum age of a password also reduces \nan attacker's window of opportunity. \n\nWe recommend a yearly password change. This is primarily because for all their good \nintentions users w...",
      "remediation": "Set the PASS_MAX_DAYS parameter to conform to site policy in /etc/login.defs : \n\nPASS_MAX_DAYS 365 \n\nModify user parameters for all users with a password set to match: \n\n# chage --maxdays 365 <user> \n\nEdit /etc/login.defs and set PASS_MAX_DAYS to a value greater than 0 that follows \nlocal site policy: \n\nExample: \n\nPASS_MAX_DAYS 365 \n\nRun the following command to modify user parameters for all users with a password set \nto a maximum age no greater than 365 or less than 1 that follows local sit...",
      "severity": "Medium",
      "filter": null,
      "app_filter": null,
      "conditions": [
        {
          "type": "condition",
          "element": "CMD",
          "input": "grep -Pi -- '^\\h*PASS_MAX_DAYS\\h+\\d+\\b' /etc/login.defs",
          "selement": "OUTPUT",
          "condition": "NOT EQUALS",
          "sinput": ""
        }
      ],
      "applicability": [
        {
          "type": "applicability",
          "element": "OS",
          "input": "",
          "selement": "CONTENT",
          "condition": "CONTAINS",
          "sinput": "Rocky"
        }
      ]
    },
    {
      "external_id": "87680f36636d96c8c9efe67ec25f3633",
      "name": "5.4.1.5 — Ensure inactive password lock is configured",
      "description": "Ensure inactive password lock is configured",
      "rational": "Inactive accounts pose a threat to system security since the users are not logging in to \nnotice failed login attempts or other anomalies.",
      "remediation": "Run the following command to set the default password inactivity period to 45 days or \nless that meets local site policy: \n\n# useradd -D -f <N> \n\nExample: \n\n# useradd -D -f 45 \n\nRun the following command to modify user parameters for all users with a password set \nto a inactive age of 45 days or less that follows local site policy: \n\n# chage --inactive <N> <user> \n\nExample: \n\n# awk -F: '($2~/^\\$.+\\$/) {if($7 > 45 || $7 < 0)system (\"chage --inactive 45 \n\" $1)}' /etc/shadow",
      "severity": "Medium",
      "filter": null,
      "app_filter": null,
      "conditions": [
        {
          "type": "condition",
          "element": "CMD",
          "input": "useradd -D | grep INACTIVE",
          "selement": "OUTPUT",
          "condition": "NOT EQUALS",
          "sinput": ""
        }
      ],
      "applicability": [
        {
          "type": "applicability",
          "element": "OS",
          "input": "",
          "selement": "CONTENT",
          "condition": "CONTAINS",
          "sinput": "Rocky"
        }
      ]
    },
    {
      "external_id": "37a679044e89d15d7a6bdecff6e7d862",
      "name": "5.4.2.1 — Ensure root is the only UID 0 account",
      "description": "Ensure root is the only UID 0 account",
      "rational": "This access must be limited to only the default root account and only from the system \nconsole. Administrative access must be through an unprivileged account using an \napproved mechanism as noted in Item 5.6 Ensure access to the su command is \nrestricted.",
      "remediation": "Run the following command to change the root account UID to 0: \n\n# usermod -u 0 root \n\nModify any users other than root with UID 0 and assign them a new UID.",
      "severity": "Medium",
      "filter": null,
      "app_filter": null,
      "conditions": [
        {
          "type": "condition",
          "element": "CMD",
          "input": "awk -F: '($3 == 0) { print $1 }' /etc/passwd",
          "selement": "OUTPUT",
          "condition": "NOT EQUALS",
          "sinput": ""
        }
      ],
      "applicability": [
        {
          "type": "applicability",
          "element": "OS",
          "input": "",
          "selement": "CONTENT",
          "condition": "CONTAINS",
          "sinput": "Rocky"
        }
      ]
    },
    {
      "external_id": "761f340863d457d96b45cd7bf1849200",
      "name": "5.4.2.2 — Ensure root is the only GID 0 account",
      "description": "Ensure root is the only GID 0 account",
      "rational": "Using GID 0 for the root account helps prevent root -owned files from accidentally \nbecoming accessible to non-privileged users.",
      "remediation": "Run the following command to set the root user's GID to 0: \n\n# usermod -g 0 root \n\nRun the following command to set the root group's GID to 0: \n\n# groupmod -g 0 root \n\nRemove any users other than the root user with GID 0 or assign them a new GID if \nappropriate.",
      "severity": "Medium",
      "filter": null,
      "app_filter": null,
      "conditions": [
        {
          "type": "condition",
          "element": "CMD",
          "input": "awk -F: '($1 !~ /^(sync|shutdown|halt|operator)/ && $4==\"0\") {print",
          "selement": "OUTPUT",
          "condition": "NOT EQUALS",
          "sinput": ""
        }
      ],
      "applicability": [
        {
          "type": "applicability",
          "element": "OS",
          "input": "",
          "selement": "CONTENT",
          "condition": "CONTAINS",
          "sinput": "Rocky"
        }
      ]
    },
    {
      "external_id": "8281091358a4e62f89e49c5eaadf81d9",
      "name": "5.4.2.3 — Ensure group root is the only GID 0 group",
      "description": "Ensure group root is the only GID 0 group",
      "rational": "Using GID 0 for the root group helps prevent root group owned files from accidentally \nbecoming accessible to non-privileged users.",
      "remediation": "Run the following command to set the root group's GID to 0: \n\n# groupmod -g 0 root \n\nRemove any groups other than the root group with GID 0 or assign them a new GID if \nappropriate.",
      "severity": "Medium",
      "filter": null,
      "app_filter": null,
      "conditions": [
        {
          "type": "condition",
          "element": "CMD",
          "input": "awk -F: '$3==\"0\"{print $1\":\"$3}' /etc/group",
          "selement": "OUTPUT",
          "condition": "NOT EQUALS",
          "sinput": ""
        }
      ],
      "applicability": [
        {
          "type": "applicability",
          "element": "OS",
          "input": "",
          "selement": "CONTENT",
          "condition": "CONTAINS",
          "sinput": "Rocky"
        }
      ]
    },
    {
      "external_id": "5bc744934e2d372652e3b7ae1e79ed89",
      "name": "5.4.2.4 — Ensure root account access is controlled",
      "description": "Ensure root account access is controlled",
      "rational": "Access to root should be secured at all times.",
      "remediation": "Run the following command to set a password for the root user: \n\n# passwd root \n\n- OR - \n\nRun the following command to lock the root user account: \n\n# usermod -L root",
      "severity": "Medium",
      "filter": null,
      "app_filter": null,
      "conditions": [
        {
          "type": "condition",
          "element": "CMD",
          "input": "passwd -S root | awk '$2 ~ /^(P|L)/ {print \"User: \\\"\" $1 \"\\\" Password is",
          "selement": "OUTPUT",
          "condition": "NOT EQUALS",
          "sinput": ""
        }
      ],
      "applicability": [
        {
          "type": "applicability",
          "element": "OS",
          "input": "",
          "selement": "CONTENT",
          "condition": "CONTAINS",
          "sinput": "Rocky"
        }
      ]
    },
    {
      "external_id": "6ac4b2c18daf43bc3bd0edf7fe757861",
      "name": "5.4.2.5 — Ensure root path integrity",
      "description": "Ensure root path integrity",
      "rational": "Including the current working directory (.) or other writable directory in root's \nexecutable path makes it likely that an attacker can gain superuser access by forcing an \nadministrator operating as root to execute a Trojan horse program. \n\nPage 729",
      "remediation": "Correct or justify any: \n\n•  Locations that are not directories \n•  Empty directories (::) \n•  Trailing (:) \n•  Current working directory (.) \n•  Non root owned directories \n•  Directories that less restrictive than mode 0755",
      "severity": "Medium",
      "filter": null,
      "app_filter": null,
      "conditions": [
        {
          "type": "condition",
          "element": "CMD",
          "input": "!/usr/bin/env bash",
          "selement": "OUTPUT",
          "condition": "NOT EQUALS",
          "sinput": ""
        }
      ],
      "applicability": [
        {
          "type": "applicability",
          "element": "OS",
          "input": "",
          "selement": "CONTENT",
          "condition": "CONTAINS",
          "sinput": "Rocky"
        }
      ]
    },
    {
      "external_id": "23f179fc8fd48371a8db05cc96aadcb4",
      "name": "5.4.2.6 — Ensure root user umask is configured",
      "description": "Ensure root user umask is configured",
      "rational": "Setting a secure value for umask ensures that users make a conscious choice about \ntheir file permissions. A permissive umask value could result in directories or files with \nexcessive permissions that can be read and/or written to by unauthorized users.",
      "remediation": "Edit /root/.bash_profile and /root/.bashrc and either: \n\n• \n\nremove, comment out, or update any line with umask. \n\n- OR - \n\n•  update any line that includes umask to a value of 0027 or more restrictive. \n\nExample: \n\numask 027 \n\nNote: the Recommendation \"Ensure default user umask is configured\" includes \nguidance to set the default umask",
      "severity": "Medium",
      "filter": null,
      "app_filter": null,
      "conditions": [
        {
          "type": "condition",
          "element": "CMD",
          "input": "grep -Psi -- '^\\h*umask\\h+((\\d{1,2}(\\d[^7]|[^2-",
          "selement": "OUTPUT",
          "condition": "NOT EQUALS",
          "sinput": ""
        }
      ],
      "applicability": [
        {
          "type": "applicability",
          "element": "OS",
          "input": "",
          "selement": "CONTENT",
          "condition": "CONTAINS",
          "sinput": "Rocky"
        }
      ]
    },
    {
      "external_id": "5bce6829fb45a7c146094b1c8e1fb3a5",
      "name": "5.4.3.1 — Ensure nologin is not listed in /etc/shells",
      "description": "Ensure nologin is not listed in /etc/shells",
      "rational": "A user can use chsh to change their configured shell. \n\nIf a user has a shell configured that isn't in in /etc/shells, then the system assumes \nthat they're somehow restricted. In the case of chsh it means that the user cannot \nchange that value. \n\nOther programs might query that list and apply similar restrictions. \n\nBy putting nologin in /etc/shells, any user that has nologin as its shell is...",
      "remediation": "Edit /etc/shells and remove any lines that include nologin",
      "severity": "Medium",
      "filter": null,
      "app_filter": null,
      "conditions": [
        {
          "type": "condition",
          "element": "FILE",
          "input": "/etc/shells",
          "selement": "CONTENT",
          "condition": "NOT CONTAINS",
          "sinput": "^\\h*([^#\\n\\r]+)?\\/nologin\\b"
        }
      ],
      "applicability": [
        {
          "type": "applicability",
          "element": "OS",
          "input": "",
          "selement": "CONTENT",
          "condition": "CONTAINS",
          "sinput": "Rocky"
        }
      ]
    },
    {
      "external_id": "06a5d513aa3e3df8ec00c233d06cfe92",
      "name": "5.4.3.3 — Ensure default user umask is configured",
      "description": "Ensure default user umask is configured",
      "rational": "Setting a secure default value for umask ensures that users make a conscious choice \nabout their file permissions. A permissive umask value could result in directories or files \nwith excessive permissions that can be read and/or written to by unauthorized users. \n\nSatisfies: SRG-OS-000480-GPOS-00228, SRG-OS-000480-GPOS-00227 \n\nPage 747",
      "remediation": "1.  Run the following script to comment out all occurrences of umask that are less \nrestrictive than 027 in files ending in *.sh in the /etc/profile.d/ directory: \n\n#!/usr/bin/env bash \n\n{ \n   while IFS= read -r -d $'\\0' l_file; do \n      sed -ri '/^\\s*umask\\s+0?(0[01][0-7]|0[0-7][^7]|[^0][0-7][0-\n7])(\\s*|\\s+.*)$/s/^/# /' \"$l_file\" \n   done < <(find /etc/profile.d/ -type f -name '*.sh' -print0) \n} \n\n2.  Create or edit a file in /etc/profile.d/ ending in *.sh and add or modify the \n\nfollowing...",
      "severity": "Medium",
      "filter": null,
      "app_filter": null,
      "conditions": [
        {
          "type": "condition",
          "element": "CMD",
          "input": "grep -Psi -- '^\\h*umask\\b' /etc/profile.d/*.sh",
          "selement": "OUTPUT",
          "condition": "NOT EQUALS",
          "sinput": ""
        }
      ],
      "applicability": [
        {
          "type": "applicability",
          "element": "OS",
          "input": "",
          "selement": "CONTENT",
          "condition": "CONTAINS",
          "sinput": "Rocky"
        }
      ]
    },
    {
      "external_id": "34258114b4435324d5fb8d9a58ef773b",
      "name": "6.1.1 — Ensure AIDE is installed",
      "description": "Ensure AIDE is installed",
      "rational": "By monitoring the filesystem state compromised files can be detected to prevent or limit \nthe exposure of accidental or malicious misconfigurations or modified binaries.",
      "remediation": "Run the following command to install aide: \n\n# dnf install aide \n\nConfigure aide as appropriate for your environment. Consult the aide documentation \nfor options. \n\nInitialize aide: \n\nRun the following commands: \n\n# aide --init \n# mv /var/lib/aide/aide.db.new.gz /var/lib/aide/aide.db.gz \n\nPage 753",
      "severity": "Medium",
      "filter": null,
      "app_filter": null,
      "conditions": [
        {
          "type": "condition",
          "element": "PACKAGE",
          "input": "aide",
          "selement": "EXISTS",
          "condition": "",
          "sinput": ""
        }
      ],
      "applicability": [
        {
          "type": "applicability",
          "element": "OS",
          "input": "",
          "selement": "CONTENT",
          "condition": "CONTAINS",
          "sinput": "Rocky"
        }
      ]
    },
    {
      "external_id": "e773c8a2bea56cdc7cf6ba2ba0c2d59e",
      "name": "6.1.2 — Ensure filesystem integrity is regularly checked",
      "description": "Ensure filesystem integrity is regularly checked",
      "rational": "Periodic file checking allows the system administrator to determine on a regular basis if \ncritical files have been changed in an unauthorized fashion. \n\nSatisfies: SRG-OS-000363-GPOS-00150, SRG-OS-000446-GPOS-00200, SRG-OS-\n000447-GPOS-00201",
      "remediation": "- IF - cron will be used to schedule and run aide check \n\nRun the following command: \n\n# crontab -u root -e \n\nAdd the following line to the crontab: \n\n0 5 * * * /usr/sbin/aide --check \n\n- OR - \n\n- IF - aidecheck.service and aidecheck.timer will be used to schedule and run aide \ncheck: \n\nCreate or edit the file /etc/systemd/system/aidecheck.service and add the \nfollowing lines: \n\n[Unit] \nDescription=Aide Check \n\n[Service] \nType=simple \nExecStart=/usr/sbin/aide --check \n\n[Install] \nWantedBy=mul...",
      "severity": "Medium",
      "filter": null,
      "app_filter": null,
      "conditions": [
        {
          "type": "condition",
          "element": "SERVICE",
          "input": "aidecheck",
          "selement": "ENABLED",
          "condition": null,
          "sinput": null
        }
      ],
      "applicability": [
        {
          "type": "applicability",
          "element": "OS",
          "input": "",
          "selement": "CONTENT",
          "condition": "CONTAINS",
          "sinput": "Rocky"
        }
      ]
    },
    {
      "external_id": "8172d3c289aa25b518cb26c55bedf645",
      "name": "6.2.1.1 — Ensure journald service is active",
      "description": "Ensure journald service is active",
      "rational": "If the systemd-journald service is not enabled to start on boot, the system will not \ncapture logging events.",
      "remediation": "Run the following commands to unmask, enable, and start systemd-\njournald.service \n\n# systemctl unmask systemd-journald.service \n# systemctl --now enable systemd-journald.service",
      "severity": "Medium",
      "filter": null,
      "app_filter": null,
      "conditions": [
        {
          "type": "condition",
          "element": "SERVICE",
          "input": "systemd-journald",
          "selement": "ACTIVE",
          "condition": null,
          "sinput": null
        }
      ],
      "applicability": [
        {
          "type": "applicability",
          "element": "OS",
          "input": "",
          "selement": "CONTENT",
          "condition": "CONTAINS",
          "sinput": "Rocky"
        }
      ]
    },
    {
      "external_id": "434a100649608ae742032d63bf273403",
      "name": "6.2.1.4 — Ensure only one logging system is in use",
      "description": "Ensure only one logging system is in use",
      "rational": "Configuring only one logging service either rsyslog - OR - journald avoids \nredundancy, optimizes resources, simplifies configuration and management, and \nensures consistency.",
      "remediation": "1.  Determine whether to use journald - OR - rsyslog depending on site needs \n2.  Configure systemd-jounald.service \n3.  Configure only ONE either journald - OR - rsyslog and complete the \n\nrecommendations in that subsection \n\n4.  Return to this recommendation to ensure only one logging system is in use \n\nPage 772 \n\n \n \n \n\f6.2.2 Configure journald \n\nIncluded in the systemd suite is a journaling service called systemd-journald.service for \nthe collection and storage of logging data. It creates...",
      "severity": "Medium",
      "filter": null,
      "app_filter": null,
      "conditions": [
        {
          "type": "condition",
          "element": "SERVICE",
          "input": "--quiet",
          "selement": "ACTIVE",
          "condition": null,
          "sinput": null
        }
      ],
      "applicability": [
        {
          "type": "applicability",
          "element": "OS",
          "input": "",
          "selement": "CONTENT",
          "condition": "CONTAINS",
          "sinput": "Rocky"
        }
      ]
    },
    {
      "external_id": "2dce07c212bf1d054751e81dc6e77fa1",
      "name": "6.2.2.1.1 — Ensure systemd-journal-remote is installed",
      "description": "Ensure systemd-journal-remote is installed",
      "rational": "Storing log data on a remote host protects log integrity from local attacks. If an attacker \ngains root access on the local system, they could tamper with or remove log data that is \nstored on the local system. \n\nNote: This recommendation only applies if journald is the chosen method for \nclient side logging. Do not apply this recommendation if rsyslog is used.",
      "remediation": "Run the following command to install systemd-journal-remote: \n\n# dnf install systemd-journal-remote",
      "severity": "Medium",
      "filter": null,
      "app_filter": null,
      "conditions": [
        {
          "type": "condition",
          "element": "PACKAGE",
          "input": "systemd-journal-remote",
          "selement": "EXISTS",
          "condition": "",
          "sinput": ""
        }
      ],
      "applicability": [
        {
          "type": "applicability",
          "element": "OS",
          "input": "",
          "selement": "CONTENT",
          "condition": "CONTAINS",
          "sinput": "Rocky"
        }
      ]
    },
    {
      "external_id": "00d76a0ca8f19fa0fc1f01ca333d674d",
      "name": "6.2.2.2 — Ensure journald ForwardToSyslog is disabled",
      "description": "Ensure journald ForwardToSyslog is disabled",
      "rational": "- IF - journald is the method for capturing logs, all logs of the system should be \nhandled by journald and not forwarded to other logging mechanisms. \n\nNote: This recommendation only applies if journald is the chosen method for \nclient side logging. Do not apply this recommendation if rsyslog is used. \n\nPage 784",
      "remediation": "- IF - rsyslog is the preferred method for capturing logs, this section and \nRecommendation should be skipped and the \"Configure rsyslog\" section followed. \n\n- IF - journald is the preferred method for capturing logs: \n\nSet the following parameter in the [Journal] section in \n/etc/systemd/journald.conf or a file in /etc/systemd/journald.conf.d/ ending \nin .conf: \n\nForwardToSyslog=no \n\nExample: \n\n#!/usr/bin/env bash \n\n{ \n   [ ! -d /etc/systemd/journald.conf.d/ ] && mkdir -p \n/etc/systemd/journ...",
      "severity": "Medium",
      "filter": null,
      "app_filter": null,
      "conditions": [
        {
          "type": "condition",
          "element": "CMD",
          "input": "!/usr/bin/env bash",
          "selement": "OUTPUT",
          "condition": "NOT EQUALS",
          "sinput": ""
        }
      ],
      "applicability": [
        {
          "type": "applicability",
          "element": "OS",
          "input": "",
          "selement": "CONTENT",
          "condition": "CONTAINS",
          "sinput": "Rocky"
        }
      ]
    },
    {
      "external_id": "107fb79dab28746a87432f3e3f3b8426",
      "name": "6.2.2.3 — Ensure journald Compress is configured",
      "description": "Ensure journald Compress is configured",
      "rational": "Uncompressed large files may unexpectedly fill a filesystem leading to resource \nunavailability. Compressing logs prior to write can prevent sudden, unexpected \nfilesystem impacts. \n\nPage 788",
      "remediation": "Set the following parameter in the [Journal] section in \n/etc/systemd/journald.conf or a file in /etc/systemd/journald.conf.d/ ending \nin .conf: \n\nCompress=yes \n\nExample: \n\n#!/usr/bin/env bash \n\n{ \n   [ ! -d /etc/systemd/journald.conf.d/ ] && mkdir -p \n/etc/systemd/journald.conf.d/ \n   if grep -Psq -- '^\\h*\\[Journal\\]' /etc/systemd/journald.conf.d/60-\njournald.conf; then \n      printf '%s\\n' \"\" \"Compress=yes\" >> /etc/systemd/journald.conf.d/60-\njournald.conf \n   else \n      printf '%s\\n' \"\" \"...",
      "severity": "Medium",
      "filter": null,
      "app_filter": null,
      "conditions": [
        {
          "type": "condition",
          "element": "CMD",
          "input": "!/usr/bin/env bash",
          "selement": "OUTPUT",
          "condition": "NOT EQUALS",
          "sinput": ""
        }
      ],
      "applicability": [
        {
          "type": "applicability",
          "element": "OS",
          "input": "",
          "selement": "CONTENT",
          "condition": "CONTAINS",
          "sinput": "Rocky"
        }
      ]
    },
    {
      "external_id": "0851dfae553e7cdd77f381703b4c61b5",
      "name": "6.2.2.4 — Ensure journald Storage is configured",
      "description": "Ensure journald Storage is configured",
      "rational": "Writing log data to disk will provide the ability to forensically reconstruct events which \nmay have impacted the operations or security of a system even after a system crash or \nreboot. \n\nPage 792",
      "remediation": "Set the following parameter in the [Journal] section in \n/etc/systemd/journald.conf or a file in /etc/systemd/journald.conf.d/ ending \nin .conf: \n\nStorage=persistent \n\nExample: \n\n#!/usr/bin/env bash \n\n{ \n   [ ! -d /etc/systemd/journald.conf.d/ ] && mkdir -p \n/etc/systemd/journald.conf.d/ \n   if grep -Psq -- '^\\h*\\[Journal\\]' /etc/systemd/journald.conf.d/60-\njournald.conf; then \n      printf '%s\\n' \"Storage=persistent\" >> /etc/systemd/journald.conf.d/60-\njournald.conf \n   else \n      printf '%...",
      "severity": "Medium",
      "filter": null,
      "app_filter": null,
      "conditions": [
        {
          "type": "condition",
          "element": "CMD",
          "input": "!/usr/bin/env bash",
          "selement": "OUTPUT",
          "condition": "NOT EQUALS",
          "sinput": ""
        }
      ],
      "applicability": [
        {
          "type": "applicability",
          "element": "OS",
          "input": "",
          "selement": "CONTENT",
          "condition": "CONTAINS",
          "sinput": "Rocky"
        }
      ]
    },
    {
      "external_id": "3b982bda5915914d6529bfaea5b941b8",
      "name": "6.2.3.1 — Ensure rsyslog is installed",
      "description": "Ensure rsyslog is installed",
      "rational": "The security enhancements of rsyslog such as connection-oriented (i.e. TCP) \ntransmission of logs, the option to log to database formats, and the encryption of log \ndata en route to a central logging server) justify installing and configuring the package.",
      "remediation": "Run the following command to install rsyslog: \n\n# dnf install rsyslog",
      "severity": "Medium",
      "filter": null,
      "app_filter": null,
      "conditions": [
        {
          "type": "condition",
          "element": "PACKAGE",
          "input": "rsyslog",
          "selement": "EXISTS",
          "condition": "",
          "sinput": ""
        }
      ],
      "applicability": [
        {
          "type": "applicability",
          "element": "OS",
          "input": "",
          "selement": "CONTENT",
          "condition": "CONTAINS",
          "sinput": "Rocky"
        }
      ]
    },
    {
      "external_id": "e6d4ee646668b634502671b73ef1bf9c",
      "name": "6.2.3.2 — Ensure rsyslog service is enabled and active",
      "description": "Ensure rsyslog service is enabled and active",
      "rational": "If the rsyslog service is not enabled to start on boot, the system will not capture \nlogging events. \n\nNote: This recommendation only applies if rsyslog is the chosen method for client side \nlogging. Do not apply this recommendation if journald is used.",
      "remediation": "- IF - rsyslog is being used for logging on the system: \n\nRun the following commands to unmask, enable, and start rsyslog.service: \n\n# systemctl unmask rsyslog.service \n# systemctl enable rsyslog.service \n# systemctl start rsyslog.service",
      "severity": "Medium",
      "filter": null,
      "app_filter": null,
      "conditions": [
        {
          "type": "condition",
          "element": "SERVICE",
          "input": "rsyslog",
          "selement": "ENABLED",
          "condition": null,
          "sinput": null
        }
      ],
      "applicability": [
        {
          "type": "applicability",
          "element": "OS",
          "input": "",
          "selement": "CONTENT",
          "condition": "CONTAINS",
          "sinput": "Rocky"
        }
      ]
    },
    {
      "external_id": "6b443b9fd087d3ffcfebce46e7ab23f2",
      "name": "7.1.1 — Ensure access to /etc/passwd is configured",
      "description": "Ensure access to /etc/passwd is configured",
      "rational": "It is critical to ensure that the /etc/passwd file is protected from unauthorized write \naccess. Although it is protected by default, the file permissions could be changed either \ninadvertently or through malicious actions.",
      "remediation": "Run the following commands to remove excess permissions, set owner, and set group \non /etc/passwd: \n\n# chmod u-x,go-wx /etc/passwd \n# chown root:root /etc/passwd",
      "severity": "Medium",
      "filter": null,
      "app_filter": null,
      "conditions": [
        {
          "type": "condition",
          "element": "CMD",
          "input": "stat -Lc 'Access: (%#a/%A)  Uid: ( %u/ %U) Gid: ( %g/ %G)'  /etc/passwd",
          "selement": "OUTPUT",
          "condition": "NOT EQUALS",
          "sinput": ""
        }
      ],
      "applicability": [
        {
          "type": "applicability",
          "element": "OS",
          "input": "",
          "selement": "CONTENT",
          "condition": "CONTAINS",
          "sinput": "Rocky"
        }
      ]
    },
    {
      "external_id": "948876f0021f70bedbc093d2ea55c035",
      "name": "7.1.2 — Ensure access to /etc/passwd- is configured",
      "description": "Ensure access to /etc/passwd- is configured",
      "rational": "It is critical to ensure that the /etc/passwd- file is protected from unauthorized access. \nAlthough it is protected by default, the file permissions could be changed either \ninadvertently or through malicious actions.",
      "remediation": "Run the following commands to remove excess permissions, set owner, and set group \non /etc/passwd-: \n\n# chmod u-x,go-wx /etc/passwd- \n# chown root:root /etc/passwd-",
      "severity": "Medium",
      "filter": null,
      "app_filter": null,
      "conditions": [
        {
          "type": "condition",
          "element": "CMD",
          "input": "stat -Lc 'Access: (%#a/%A)  Uid: ( %u/ %U) Gid: { %g/ %G)' /etc/passwd-",
          "selement": "OUTPUT",
          "condition": "NOT EQUALS",
          "sinput": ""
        }
      ],
      "applicability": [
        {
          "type": "applicability",
          "element": "OS",
          "input": "",
          "selement": "CONTENT",
          "condition": "CONTAINS",
          "sinput": "Rocky"
        }
      ]
    },
    {
      "external_id": "5ec02955318c440ad0a9dacf96a2d06e",
      "name": "7.1.3 — Ensure access to /etc/group is configured",
      "description": "Ensure access to /etc/group is configured",
      "rational": "The /etc/group file needs to be protected from unauthorized changes by non-\nprivileged users, but needs to be readable as this information is used with many non-\nprivileged programs.",
      "remediation": "Run the following commands to remove excess permissions, set owner, and set group \non /etc/group: \n\n# chmod u-x,go-wx /etc/group \n# chown root:root /etc/group",
      "severity": "Medium",
      "filter": null,
      "app_filter": null,
      "conditions": [
        {
          "type": "condition",
          "element": "CMD",
          "input": "stat -Lc 'Access: (%#a/%A)  Uid: ( %u/ %U) Gid: ( %g/ %G)' /etc/group",
          "selement": "OUTPUT",
          "condition": "NOT EQUALS",
          "sinput": ""
        }
      ],
      "applicability": [
        {
          "type": "applicability",
          "element": "OS",
          "input": "",
          "selement": "CONTENT",
          "condition": "CONTAINS",
          "sinput": "Rocky"
        }
      ]
    },
    {
      "external_id": "b1add90b927695343bd717bbcba22c71",
      "name": "7.1.4 — Ensure access to /etc/group- is configured",
      "description": "Ensure access to /etc/group- is configured",
      "rational": "It is critical to ensure that the /etc/group- file is protected from unauthorized access. \nAlthough it is protected by default, the file permissions could be changed either \ninadvertently or through malicious actions.",
      "remediation": "Run the following commands to remove excess permissions, set owner, and set group \non /etc/group-: \n\n# chmod u-x,go-wx /etc/group- \n# chown root:root /etc/group-",
      "severity": "Medium",
      "filter": null,
      "app_filter": null,
      "conditions": [
        {
          "type": "condition",
          "element": "CMD",
          "input": "stat -Lc 'Access: (%#a/%A)  Uid: ( %u/ %U) Gid: ( %g/ %G)'  /etc/group-",
          "selement": "OUTPUT",
          "condition": "NOT EQUALS",
          "sinput": ""
        }
      ],
      "applicability": [
        {
          "type": "applicability",
          "element": "OS",
          "input": "",
          "selement": "CONTENT",
          "condition": "CONTAINS",
          "sinput": "Rocky"
        }
      ]
    },
    {
      "external_id": "bb56fc9f145ab26583fd2d1cc7315de6",
      "name": "7.1.5 — Ensure access to /etc/shadow is configured",
      "description": "Ensure access to /etc/shadow is configured",
      "rational": "If attackers can gain read access to the /etc/shadow file, they can easily run a \npassword cracking program against the hashed password to break it. Other security \ninformation that is stored in the /etc/shadow file (such as expiration) could also be \nuseful to subvert the user accounts.",
      "remediation": "Run the following commands to set mode, owner, and group on /etc/shadow: \n\n# chown root:root /etc/shadow \n# chmod 0000 /etc/shadow",
      "severity": "Medium",
      "filter": null,
      "app_filter": null,
      "conditions": [
        {
          "type": "condition",
          "element": "CMD",
          "input": "stat -Lc 'Access: (%#a/%A)  Uid: ( %u/ %U) Gid: ( %g/ %G)'  /etc/shadow",
          "selement": "OUTPUT",
          "condition": "NOT EQUALS",
          "sinput": ""
        }
      ],
      "applicability": [
        {
          "type": "applicability",
          "element": "OS",
          "input": "",
          "selement": "CONTENT",
          "condition": "CONTAINS",
          "sinput": "Rocky"
        }
      ]
    },
    {
      "external_id": "6fcc89b57293827c132bd9fe8eb831fa",
      "name": "7.1.6 — Ensure access to /etc/shadow- is configured",
      "description": "Ensure access to /etc/shadow- is configured",
      "rational": "It is critical to ensure that the /etc/shadow- file is protected from unauthorized access. \nAlthough it is protected by default, the file permissions could be changed either \ninadvertently or through malicious actions.",
      "remediation": "Run the following commands to set mode, owner, and group on /etc/shadow-: \n\n# chown root:root /etc/shadow- \n# chmod 0000 /etc/shadow-",
      "severity": "Medium",
      "filter": null,
      "app_filter": null,
      "conditions": [
        {
          "type": "condition",
          "element": "CMD",
          "input": "stat -Lc 'Access: (%#a/%A)  Uid: ( %u/ %U) Gid: ( %g/ %G)'  /etc/shadow-",
          "selement": "OUTPUT",
          "condition": "NOT EQUALS",
          "sinput": ""
        }
      ],
      "applicability": [
        {
          "type": "applicability",
          "element": "OS",
          "input": "",
          "selement": "CONTENT",
          "condition": "CONTAINS",
          "sinput": "Rocky"
        }
      ]
    },
    {
      "external_id": "fa6a3493cba4b6892622bad7f0a4e8fe",
      "name": "7.1.7 — Ensure access to /etc/gshadow is configured",
      "description": "Ensure access to /etc/gshadow is configured",
      "rational": "If attackers can gain read access to the /etc/gshadow file, they can easily run a \npassword cracking program against the hashed password to break it. Other security \ninformation that is stored in the /etc/gshadow file (such as group administrators) could \nalso be useful to subvert the group.",
      "remediation": "Run the following commands to set mode, owner, and group on /etc/gshadow: \n\n# chown root:root /etc/gshadow \n# chmod 0000 /etc/gshadow",
      "severity": "Medium",
      "filter": null,
      "app_filter": null,
      "conditions": [
        {
          "type": "condition",
          "element": "CMD",
          "input": "stat -Lc 'Access: (%#a/%A)  Uid: ( %u/ %U) Gid: ( %g/ %G)'  /etc/gshadow",
          "selement": "OUTPUT",
          "condition": "NOT EQUALS",
          "sinput": ""
        }
      ],
      "applicability": [
        {
          "type": "applicability",
          "element": "OS",
          "input": "",
          "selement": "CONTENT",
          "condition": "CONTAINS",
          "sinput": "Rocky"
        }
      ]
    },
    {
      "external_id": "b3609ba201199495771d6d7bf22229bb",
      "name": "7.1.8 — Ensure access to /etc/gshadow- is configured",
      "description": "Ensure access to /etc/gshadow- is configured",
      "rational": "It is critical to ensure that the /etc/gshadow- file is protected from unauthorized \naccess. Although it is protected by default, the file permissions could be changed either \ninadvertently or through malicious actions.",
      "remediation": "Run the following commands to set mode, owner, and group on /etc/gshadow-: \n\n# chown root:root /etc/gshadow- \n# chmod 0000 /etc/gshadow-",
      "severity": "Medium",
      "filter": null,
      "app_filter": null,
      "conditions": [
        {
          "type": "condition",
          "element": "CMD",
          "input": "stat -Lc 'Access: (%#a/%A)  Uid: ( %u/ %U) Gid: ( %g/ %G)'  /etc/gshadow-",
          "selement": "OUTPUT",
          "condition": "NOT EQUALS",
          "sinput": ""
        }
      ],
      "applicability": [
        {
          "type": "applicability",
          "element": "OS",
          "input": "",
          "selement": "CONTENT",
          "condition": "CONTAINS",
          "sinput": "Rocky"
        }
      ]
    },
    {
      "external_id": "4351edd351996c1bfaf579e298f78362",
      "name": "7.1.9 — Ensure access to /etc/shells is configured",
      "description": "Ensure access to /etc/shells is configured",
      "rational": "It is critical to ensure that the /etc/shells file is protected from unauthorized access. \nAlthough it is protected by default, the file permissions could be changed either \ninadvertently or through malicious actions.",
      "remediation": "Run the following commands to remove excess permissions, set owner, and set group \non /etc/shells: \n\n# chmod u-x,go-wx /etc/shells \n# chown root:root /etc/shells",
      "severity": "Medium",
      "filter": null,
      "app_filter": null,
      "conditions": [
        {
          "type": "condition",
          "element": "CMD",
          "input": "stat -Lc 'Access: (%#a/%A)  Uid: ( %u/ %U) Gid: ( %g/ %G)' /etc/shells",
          "selement": "OUTPUT",
          "condition": "NOT EQUALS",
          "sinput": ""
        }
      ],
      "applicability": [
        {
          "type": "applicability",
          "element": "OS",
          "input": "",
          "selement": "CONTENT",
          "condition": "CONTAINS",
          "sinput": "Rocky"
        }
      ]
    },
    {
      "external_id": "b3dbca806d9919feb656be214d0e8c27",
      "name": "7.2.4 — Ensure no duplicate UIDs exist",
      "description": "Ensure no duplicate UIDs exist",
      "rational": "Users must be assigned unique UIDs for accountability and to ensure appropriate \naccess protections. \n\nSatisfies: SRG-OS-000104-GPOS-00051, SRG-OS-000121-GPOS-00062, SRG-OS-\n000042-GPOS-00020",
      "remediation": "Based on the results of the audit script, establish unique UIDs and review all files owned \nby the shared UIDs to determine which UID they are supposed to belong to.",
      "severity": "Medium",
      "filter": null,
      "app_filter": null,
      "conditions": [
        {
          "type": "condition",
          "element": "CMD",
          "input": "!/usr/bin/env bash",
          "selement": "OUTPUT",
          "condition": "NOT EQUALS",
          "sinput": ""
        }
      ],
      "applicability": [
        {
          "type": "applicability",
          "element": "OS",
          "input": "",
          "selement": "CONTENT",
          "condition": "CONTAINS",
          "sinput": "Rocky"
        }
      ]
    },
    {
      "external_id": "4b22caf36caf21344a1e8d02a194e376",
      "name": "7.2.5 — Ensure no duplicate GIDs exist",
      "description": "Ensure no duplicate GIDs exist",
      "rational": "User groups must be assigned unique GIDs for accountability and to ensure appropriate \naccess protections.",
      "remediation": "Based on the results of the audit script, establish unique GIDs and review all files \nowned by the shared GID to determine which group they are supposed to belong to.",
      "severity": "Medium",
      "filter": null,
      "app_filter": null,
      "conditions": [
        {
          "type": "condition",
          "element": "CMD",
          "input": "!/usr/bin/env bash",
          "selement": "OUTPUT",
          "condition": "NOT EQUALS",
          "sinput": ""
        }
      ],
      "applicability": [
        {
          "type": "applicability",
          "element": "OS",
          "input": "",
          "selement": "CONTENT",
          "condition": "CONTAINS",
          "sinput": "Rocky"
        }
      ]
    },
    {
      "external_id": "6e3f2539227c352b90cbf5f6f8a450ea",
      "name": "7.2.6 — Ensure no duplicate user names exist",
      "description": "Ensure no duplicate user names exist",
      "rational": "If a user is assigned a duplicate user name, it will create and have access to files with \nthe first UID for that username in /etc/passwd . For example, if \"test4\" has a UID of \n1000 and a subsequent \"test4\" entry has a UID of 2000, logging in as \"test4\" will use \nUID 1000. Effectively, the UID is shared, which is a security problem.",
      "remediation": "Based on the results of the audit script, establish unique user names for the users. File \nownerships will automatically reflect the change as long as the users have unique UIDs.",
      "severity": "Medium",
      "filter": null,
      "app_filter": null,
      "conditions": [
        {
          "type": "condition",
          "element": "CMD",
          "input": "!/usr/bin/env bash",
          "selement": "OUTPUT",
          "condition": "NOT EQUALS",
          "sinput": ""
        }
      ],
      "applicability": [
        {
          "type": "applicability",
          "element": "OS",
          "input": "",
          "selement": "CONTENT",
          "condition": "CONTAINS",
          "sinput": "Rocky"
        }
      ]
    },
    {
      "external_id": "c230e36915895aeaeb756be239b59376",
      "name": "7.2.7 — Ensure no duplicate group names exist",
      "description": "Ensure no duplicate group names exist",
      "rational": "If a group is assigned a duplicate group name, it will create and have access to files \nwith the first GID for that group in /etc/group . Effectively, the GID is shared, which is \na security problem.",
      "remediation": "Based on the results of the audit script, establish unique names for the user groups. File \ngroup ownerships will automatically reflect the change as long as the groups have \nunique GIDs.",
      "severity": "Medium",
      "filter": null,
      "app_filter": null,
      "conditions": [
        {
          "type": "condition",
          "element": "CMD",
          "input": "!/usr/bin/env bash",
          "selement": "OUTPUT",
          "condition": "NOT EQUALS",
          "sinput": ""
        }
      ],
      "applicability": [
        {
          "type": "applicability",
          "element": "OS",
          "input": "",
          "selement": "CONTENT",
          "condition": "CONTAINS",
          "sinput": "Rocky"
        }
      ]
    }
  ]
}
