Assessing and Monitoring Security Policy Compliance of RHEL Systems
Understanding the Security Compliance Status of your Red Hat Enterprise Linux Infrastructure
Making open source more inclusive
Red Hat is committed to replacing problematic language in our code, documentation, and web properties. We are beginning with these four terms: master, slave, blacklist, and whitelist. Because of the enormity of this endeavor, these changes will be implemented gradually over several upcoming releases. For more details, see our CTO Chris Wright’s message.
Providing feedback on Red Hat Hybrid Cloud Console documentation
We appreciate your input on our documentation. Please let us know how we could make it better. To do so, create a Bugzilla ticket:
- Go to the Bugzilla website.
- As the Component, use Documentation.
- Fill in the Description field with your suggestion for improvement. Include a link to the relevant part(s) of documentation.
- Click Submit Bug.
Chapter 1. Overview of Insights for RHEL compliance service security policy compliance assessment and monitoring
The Insights for Red Hat Enterprise Linux compliance service enables you to assess and monitor the compliance of your Red Hat Enterprise Linux (RHEL) systems with SCAP security policies.
The compliance service provides a simple but powerful user interface, enabling the creation, configuration, and management of SCAP security policies. With the filtering and context-adding features built in, administrators can easily identify and manage security compliance issues in the RHEL infrastructure.
This documentation describes some of the functionality of the compliance service, to help users understand reporting, manage issues, and get the maximum value from the service.
You can also create Ansible Playbooks to resolve security compliance issues and share reports with stakeholders to communicate compliance status.
1.1. Requirements and prerequisites
The compliance service is part of Insights for Red Hat Enterprise Linux, which is included with your Red Hat Enterprise Linux (RHEL) subscription and can be used with all versions of RHEL currently supported by Red Hat. You do not need additional Red Hat subscriptions to use Insights for RHEL and the compliance service.
Verify the following conditions are met before using the compliance service:
- Register the system with Insights for Red Hat Enterprise Linux. Register systems with Insights for RHEL from the Insights for RHEL application.
- Set up OpenSCAP. Set up OpenSCAP with the ability to report data to the compliance service. Policies can then be added and modified using the compliance service. If you are unfamiliar with OpenSCAP, see Getting Started with OpenSCAP.
- Create security policies in the compliance service. In the compliance service, you have to assign each Insights for RHEL-registered system to one or more security policies in order to see results for your systems.
1.2. Supported configurations
Accurate compliance reporting requires that the Red Hat-approved version of SCAP Security Guide (SSG) is installed on the system. Red Hat Enterprise Linux minor versions ship and upgrade with the approved SSG version included; although, some organizations may decide to continue using an earlier version temporarily, prior to upgrading.
If a policy includes systems using unsupported SSG versions, an unsupported warning, preceded by the number of affected systems, is visible next to the policy in Red Hat Enterprise Linux > Compliance > Reports.
The following table lists the supported SSG version(s) for each minor version of RHEL.
The following table lists the supported SSG version for each minor version of RHEL. Packages names look like this:
scap-security-guide-0.1.43-13.el7. The SSG version in this case is 0.1.43; the release is 13 and architecture is el7. The release number can differ from the version number shown in the table; however, the version number must match as indicated below for it to be a supported configuration.
Table 1.1. Supported versions of the SCAP Security Guide in RHEL
|Red Hat Enterprise Linux version||SCAP Security Guide version|
RHEL 7.2 AUS
RHEL 7.3 AUS
RHEL 7.4 AUS, E4S
RHEL 7.5 (batch update)
RHEL 7.6 EUS
RHEL 7.7 EUS
RHEL 7.8 (batch update)
RHEL 8.0 SAP
RHEL 8.1 EUS
RHEL 8.2 (batch update)
What if Red Hat supports more that one SSG for my RHEL minor version?
When more than one SSG version is supported for a RHELminor version, as is the case with RHEL 7.9 and RHEL 8.1, the compliance service will use the latest available version.
Why is my old policy no longer supported by SSG?
As RHEL minor versions get older, fewer SCAP profiles are supported. To view which SCAP profiles are supported, see tables in SCAP Security Guide profiles supported in RHEL 7 and SCAP Security Guide profiles supported in RHEL 8.
More about limitations of unsupported configurations
The following conditions apply to the results for unsupported configurations:
These results are a “best-guess” effort because using any SSG version other than what is supported by Red Hat can lead to inaccurate results.Important
Although you can still see results for a system with an unsupported version of SSG installed, those results may be considered inaccurate for compliance reporting purposes.
- Results for systems using an unsupported version of SSG are not included in the overall compliance assessment for the policy.
- Remediations are not available for rules on systems with an unsupported version of SSG installed.
1.3. Best practices
To benefit from the best user experience and receive the most accurate results in the compliance service, Red Hat recommends that you follow some best practices.
Ensure that the RHEL OS system minor version is visible to the Insights client
If the compliance service cannot see your RHEL OS minor version, then the supported SCAP Security Guide version cannot be validated and your reporting may not be accurate. The Insights client allows users to redact certain data, including Red Hat Enterprise Linux OS minor version, from the data payload that is uploaded to Insights for Red Hat Enterprise Linux. This will prohibit accurate compliance service reporting.
To learn more about data redaction, see the following documentation: Configuring Red Hat Insights client redaction.
Create security policies within the compliance service
Creating your organization’s security policies within the compliance service allows you to associate multiple systems with the policy, be assured of using the supported SCAP Security Guide for your RHEL minor version, and edit which rules are included, based on your organization’s requirements.
Chapter 2. Managing SCAP security policies in the compliance service
Create and manage your SCAP security policies entirely within the compliance service. Define new policies and select the rules and systems you want to associate with them, and edit existing policies as your requirements change.
Unlike other Insights for Red Hat Enterprise Linux services, the compliance service does not run automatically on a default schedule. In order to upload OpenSCAP data to the Insights for RHEL application, you must run
insights-client --compliance, either on-demand or on a scheduled job that you set.
2.1. Creating new SCAP policies
You must add each Insights for RHEL-registered system to a security policy before you will see results for it in the compliance service. To create a new policy, and include specific systems and rules, complete the following steps:
If your RHEL servers span across multiple major releases of RHEL, you must create a separate policy for each major release. For example, all of your RHEL 7 servers would be on one Standard System Security Profile for RHEL policy and all of your RHEL 8 servers will be on another.
- Log in to Red Hat Hybrid Cloud Console and navigate to the Red Hat Enterprise Linux > Compliance > SCAP policies page.
- Click the Create new policy button.
On the Create SCAP policy page of the wizard, select the RHEL major version of the systems you will include in the policy.
- Select one of the policy types available for that RHEL major version, then click Next.
- On the Details page, accept the name and description already provided or provide your own more meaningful entries.
- Optionally, add a Business objective to give context, for example, “CISO mandate.”
- Define a compliance threshold acceptable for your requirements and clickNext.
- Select the Systems to include on this policy and clickNext. Your selection of a RHEL major version in the first step automatically determines which systems can be added to this policy.
Select which Rules to include with each policy. Because each minor version of RHEL supports the use of a specific SCAP Security Guide (SSG) version (sometimes more than one, in which case we use the latest), the rule set for each RHEL minor version is slightly different and must be selected separately.
Optionally, use the filtering and search capabilities to refine the list of rules.
For example, to show only the highest severity rules, click the primary filter dropdown and select Severity. In the secondary filter, check the boxes for High and Medium.
- The rules shown by default are those designated for that policy type and that version of SSG. By default, the Selected onlytoggle next to the filter boxes is enabled. You may remove this toggle if so desired.
- Repeat this process as needed for each RHEL minor version tab.
- After you select rules for each Red Hat Enterprise Linux minor version SSG, click Next.
- On the Review page, verify that the information shown is correct, then click Finish.
- Give the app a minute to create the policy, then click the Return to application button to view your new policy located at the bottom of the SCAP policies.
2.2. Editing existing policies
You may decide after creating a security policy that you want to change which rules (or systems) are included because they may no longer apply to your requirements. Use the following procedure to edit an existing policy to add or remove specific rules.
- Log in to Red Hat Hybrid Cloud Console and navigate to the Red Hat Enterprise Linux > Compliance > SCAP policies page.
- Locate the policy to edit.
- On the right side of the policy row, click the more-actions icon, three vertical dots, and click Edit policy.
In the Edit <Policy name> card, click the Rules tab.
Use the filter or search functions to locate the rules to remove.Important
By default, the Selected only toggle to the right of the search box is enabled. You may remove the toggle as needed.
- Uncheck the box next to any rule you want to remove.
- Repeat this process as needed for each RHEL minor version SSG tab.
- Click Save.
- Navigate to the Red Hat Enterprise Linux > Compliance > SCAP policies page and locate the edited policy.
- Click on the policy and verify that the included rules are consistent with the edits you made.
Chapter 3. Understanding your compliance service reporting
The compliance service displays the latest available OpenSCAP results for each policy and the associated systems. View summary results for each policy in Red Hat Enterprise Linux > Compliance > Reports.
For a deeper understanding of compliance status per system, filter and sort your data to see which rules have passed and failed.
The following sections describe ways to refine your data, depending on your location in the compliance service, to focus on your most important issues.
3.1. SCAP policies
Use the Filter by name search box to locate a specific policy by name. Then click on the policy name to see the policy card, which includes the following information:
- Details. View details such as compliance threshold, business objective, OS, and SSG version.
- Rules. View and filter the rules included in the specific SSG version of the policy by Name, Severity and Remediation available. Then sort the results by Rule name, Severity or Ansible Playbook support.
- Systems. Search by system name to locate a specific system associated with the policy then click the system name to see more information about that system and issues that may affect it.
The default functionality on this page is to search by system name.
- Name. Search by system name.
- Policy. Search by policy name and see the systems included in that policy.
- Operating system. Search by RHEL OS major versions to see only RHEL 7 or RHEL 8 systems.
The search function in the compliance service works in the context of the page you are viewing.
- SCAP Policies. Search for a specific policy by name.
- Systems. Search by system name, policy, or Red Hat Enterprise Linux operating system major version.
- Rules list (single system). The rules list search function allows you to search by the rule name or identifier. Identifiers are shown directly below the rule name.
Filtering is available from multiple views in the compliance service and filtering options are unique to the page view. The Filters icon is located on the left side of the Search field. Click the down arrow and check the boxes to set filters.
- Systems list. Filter by Name, Status, and Source.
- Single system rules list. Filter rules that have passed or not passed, or by rule severity.
Chapter 4. Reference materials
To learn more about the compliance service, see the following resources: