System Security with OpenSCAP
SUSE Multi-Linux Manager uses OpenSCAP to audit clients. SCAP content, tailoring files, and scan policies are managed centrally on the SUSE Multi-Linux Manager server, and the server automatically deploys the required files to managed systems at scan time. This allows you to schedule and view compliance scans for any client, apply built-in or custom remediation, and set up recurring compliance monitoring.
1. About SCAP
The Security Content Automation Protocol (SCAP) is a synthesis of interoperable specifications derived from community ideas. It is a line of specifications maintained by the National Institute of Standards and Technology (NIST) for maintaining system security for enterprise systems.
SCAP was created to provide a standardized approach to maintaining system security, and the standards that are used continually change to meet the needs of the community and enterprise businesses. New specifications are governed by NIST’s SCAP Release cycle to provide a consistent and repeatable revision work flow. For more information, see:
SUSE Multi-Linux Manager uses OpenSCAP to implement the SCAP specifications. OpenSCAP is an auditing tool that utilizes the Extensible Configuration Checklist Description Format (XCCDF). XCCDF is a standard way of expressing checklist content and defines security checklists. It also combines with other specifications such as Common Platform Enumeration (CPE), Common Configuration Enumeration (CCE), and Open Vulnerability and Assessment Language (OVAL), to create a SCAP-expressed checklist that can be processed by SCAP-validated products.
OpenSCAP checks system security configuration settings and examines systems for signs of compromise, using rules based on standards and specifications. SUSE provides the SCAP Security Guide packages as a source of this content for SUSE systems; other operating system vendors provide equivalent content for their own distributions. For more information about the SUSE Security Team, see https://www.suse.com/support/security.
2. Prepare clients for an SCAP scan
Before you begin, you need to prepare your client systems for SCAP scanning.
|
OpenSCAP auditing is not available on Salt clients that use the SSH contact method. |
|
Scanning clients can consume a lot of memory and compute power on the client being scanned. Ensure you have at least 2 GB of RAM available on each client to be scanned (especially for Red Hat-based and other modern clients). |
Install the OpenSCAP scanner package on the client before you begin. Depending on the operating system, this package is included either on the base operating system, or in the SUSE Multi-Linux Manager Client Tools.
|
You do not need to install the SCAP Security Guide (content) package on the client itself. Content files are uploaded to the SUSE Multi-Linux Manager server and deployed automatically at scan time. Install the content package on any system (for example, your workstation, or temporarily on a client) to obtain the content files for upload, or obtain them directly from your operating system vendor. See SCAP content management. |
The table below lists the scanner package you need, and the content package that provides default content files for that operating system:
| Operating system | Version | Scanner (install on client) | Content (source of content files) |
|---|---|---|---|
SLES |
12, 15 |
|
|
openSUSE |
Leap 15, Tumbleweed |
|
|
RHEL / CentOS / Oracle Linux / Rocky Linux / AlmaLinux |
7, 8, 9, 10 |
|
|
SUSE Liberty [1] |
7, 8, 9, 10 |
|
|
Debian |
12 |
|
|
Debian |
13 |
|
Not officially supported [2] |
Ubuntu |
22.04 |
|
|
Ubuntu |
24.04 |
|
Not officially supported [3] |
Ubuntu |
26.04 |
|
Not officially supported [4] |
|
For Debian 13, Ubuntu 24.04, and Ubuntu 26.04, SUSE does not provide custom security guide packages.
To perform scans on these clients, you must install the upstream packages ( |
Check that the content package provided by your operating system vendor is up to date.
For example, the scap-security-guide package provided by RHEL 7 and compatible systems has previously been found to contain outdated content.
In that case, use the scap-security-guide-* package from the SUSE Multi-Linux Manager Client Tools if it is provided for your operating system, or obtain content from another reliable source, unless your vendor advises otherwise.
|
SUSE provides the
For Non-SUSE operating systems the included profiles are community supplied. They are not officially supported by SUSE. |
3. SCAP content management
OpenSCAP uses SCAP content files to define test rules. These content files are created based on the XCCDF or OVAL standards. To get content files for upload to the SUSE Multi-Linux Manager server, you can install the SCAP Security Guide package for your operating system (see Prepare clients for an SCAP scan) on any system to extract its default content files, obtain content files directly from your operating system vendor, download content from a reputable public source (such as the NIST National Checklist Program), or create your own custom content files if you are familiar with XCCDF or OVAL.
|
Custom or third-party SCAP content, including content downloaded from public repositories or created in-house, is not verified by SUSE and may fall outside your support agreement. While running compliance scans with this content is read-only and safe for target systems, applying remediation derived from unverified sources can make unexpected system changes. Always test custom remediation in a non-production environment before applying it in production. |
SCAP content files (DataStream and XCCDF) are uploaded and managed centrally on the SUSE Multi-Linux Manager server. The server automatically deploys the required files to the managed system at scan time, so you do not need to manually transfer content files to clients.
3.1. Upload SCAP content
Navigate to .
Click Upload.
Provide a Name and optional Description.
Upload the files:
DataStream file: The filename must end with
-ds.xml.XCCDF file: The filename must end with
-xccdf.xml.Both files must share the same base name (for example,
ssg-sle15-ds.xmlandssg-sle15-xccdf.xml).Click Upload.
Uploaded files are stored on the server at /srv/susemanager/scap/ssg/content/.
3.2. Edit and delete SCAP content
Go to .
Click a content entry to edit its name, description, or replace the uploaded files.
Click Delete to remove SCAP content.
|
Deleting SCAP content that is referenced by a policy will break that policy. Ensure no active policies depend on the content before deleting it. |
3.3. OVAL files
Due to the large size of OVAL (Open Vulnerability and Assessment Language) files, they are not transferred automatically from the server to the managed system. If your SCAP evaluation requires OVAL files, you must ensure they are already present on the managed system before scheduling the scan.
You can specify OVAL file paths when creating a SCAP policy.
4. Find OpenSCAP profiles
When you create a SCAP policy, or schedule a one-off scan by selecting SCAP content directly, in the Web UI, the list of available profiles is loaded automatically from the selected content file, so you do not usually need to look them up manually.
Use the method in this section if you need to decide which content file to upload when a package provides several, or if you need the exact profile ID to pass to the system.scap.scheduleXccdfScanCustom API method, for example.
Different operating systems make available different OpenSCAP content files and profiles. One content file may contain more than one profile.
On the system where you installed the content package, use this command on RPM-based operating systems to determine the location of the available SCAP files:
rpm -ql <scap-security-guide-package-name-from-table>
On DEB-based operating systems, use this command to determine the location of the available SCAP files:
dpkg -L <scap-security-guide-package-name-from-table>
When you have identified one SCAP content file that suits your needs, list the profiles it contains:
oscap info /usr/share/xml/scap/ssg/content/ssg-sle15-ds.xml
Document type: Source Data Stream
Imported: 2021-03-24T18:14:45
Stream: scap_org.open-scap_datastream_from_xccdf_ssg-sle15-xccdf-1.2.xml
Generated: (null)
Version: 1.2
Checklists:
Ref-Id: scap_org.open-scap_cref_ssg-sle15-xccdf-1.2.xml
Status: draft
Generated: 2021-03-24
Resolved: true
Profiles:
Title: CIS SUSE Linux Enterprise 15 Benchmark
Id: xccdf_org.ssgproject.content_profile_cis
Title: Standard System Security Profile for SUSE Linux Enterprise 15
Id: xccdf_org.ssgproject.content_profile_standard
Title: DISA STIG for SUSE Linux Enterprise 15
Id: xccdf_org.ssgproject.content_profile_stig
Referenced check files:
ssg-sle15-oval.xml
system: http://oval.mitre.org/XMLSchema/oval-definitions-5
ssg-sle15-ocil.xml
system: http://scap.nist.gov/schema/ocil/2
https://ftp.suse.com/pub/projects/security/oval/suse.linux.enterprise.15.xml
system: http://oval.mitre.org/XMLSchema/oval-definitions-5
Checks:
Ref-Id: scap_org.open-scap_cref_ssg-sle15-oval.xml
Ref-Id: scap_org.open-scap_cref_ssg-sle15-ocil.xml
Ref-Id: scap_org.open-scap_cref_ssg-sle15-cpe-oval.xml
Dictionaries:
Ref-Id: scap_org.open-scap_cref_ssg-sle15-cpe-dictionary.xml
Take a note of the file paths and profiles for performing the scan. You use this information when uploading SCAP content and when selecting a profile for a SCAP policy.
5. Tailoring file management
SCAP tailoring files allow you to customize the behavior of an SCAP profile without modifying the original content. SUSE Multi-Linux Manager provides a dedicated interface for managing tailoring files.
Tailoring files are scoped per organization. Each organization manages its own set of tailoring files independently.
5.1. Upload a tailoring file
Navigate to .
Click Create.
Provide a Name and optional Description.
Upload the tailoring file (XML format).
Click Upload.
Tailoring files are stored on the server at /srv/susemanager/scap/tailoring-files/.
5.2. Editing and deleting tailoring files
Navigate to list.
Click a tailoring file entry to edit its name, description, or replace the file.
Select and click Delete to remove them.
6. SCAP policies
SCAP policies define a reusable combination of SCAP content, a specific profile, and an optional tailoring file. Policies simplify the process of scheduling consistent compliance scans across your infrastructure, and are required for recurring scans.
Creating a policy is optional for a single, one-off scan. In that case you can select the SCAP content and profile directly when scheduling the scan, instead of creating a policy first. See Schedule SCAP scans.
6.1. Creating a policy
Navigate to .
Click Create.
Fill in the policy details:
- Policy Name
A unique name for the policy within your organization.
- Description
An optional description of the policy’s purpose.
- SCAP Content
Select from the uploaded SCAP content.
- XCCDF Profile
Select a profile from the chosen SCAP content. The list of available profiles is loaded dynamically from the content file.
- Tailoring File
(Optional) Select a tailoring file to customize the selected profile.
- Tailoring Profile
(Optional) If a tailoring file is selected, choose a profile from the tailoring file.
- OVAL Files
(Optional) Comma-separated list of OVAL file paths that must exist on the managed system.
- Advanced Arguments
(Optional) Additional
oscapcommand-line arguments (for example,--skip-rule <rule_id>). For the options that are passed on, see Advanced arguments.- Fetch Remote Resources
(Optional) Enable to allow
oscapto download remote XCCDF resources during evaluation.Click Create.
6.2. Advanced arguments
SUSE Multi-Linux Manager does not pass the Advanced Arguments field to oscap as it is.
It reads the options it supports from the field, and builds the oscap command line on the managed system from them.
This applies to policies, to one-off scans, and to the advancedArgs key of the API.
These options are passed on:
| Option | Effect |
|---|---|
|
Evaluate only the given rule. Can be given more than once. |
|
Do not evaluate the given rule. Can be given more than once. |
|
Evaluate only the rules that carry the given reference, for example |
|
Use the given CPE dictionary or language for the applicability checks. |
|
Use the local copies of remote resources from the given directory instead of downloading them. |
|
Use the given data stream of the collection. |
|
Use the given XCCDF component of the data stream. |
|
Evaluate the given benchmark, when the data stream holds more than one. |
|
Use the given tailoring component of the data stream. |
|
Download the remote content that the SCAP content refers to. |
|
Run the fixes of the failed rules after the evaluation. |
The profile, the tailoring file, and the tailoring profile are selected with their own fields. Other options are ignored, and the scan sets the result and report options itself.
For example, to skip two rules of the selected profile:
--skip-rule xccdf_org.ssgproject.content_rule_package_telnet-server_removed --skip-rule xccdf_org.ssgproject.content_rule_package_tftp-server_removed
|
The paths given to |
|
|
6.3. Policy details and scan history
Click on a policy name in the list to view its details, including:
-
The associated SCAP content, profile, and tailoring file.
-
A scan history showing all scans that were executed using this policy, with compliance results.
6.4. Edit and delete policies
Navigate to list.
Click the edit icon to modify a policy.
Click Delete to remove a policy.
7. Schedule SCAP scans
7.1. Scheduling a scan for a single system
Navigate to .
Select a system then go to .
Choose how to configure the scan:
Use a SCAP Policy: Select an existing SCAP policy.
One-off scan: Select a SCAP Content entry directly, then choose a profile from the list loaded automatically from that content (and optionally a tailoring file and profile). Use this when you do not need to reuse the configuration later.
Choose the scan schedule:
Run now: Execute the scan immediately.
Schedule for later: Pick a specific date and time.
Click Schedule.
|
Package |
7.2. Schedule scans for multiple systems (SSM)
Add the target systems to the System Set Manager (SSM).
Navigate to .
Choose how to configure the scan: select an existing SCAP Policy, or select a SCAP Content entry and profile directly for a one-off scan.
Choose the scan schedule.
Click Schedule.
7.3. Recurring scans
SCAP policies can be scheduled as recurring actions, enabling automated compliance monitoring.
To set up a recurring scan, run the procedure:
Navigate to the recurring actions configuration for a system or system group.
Select SCAP Policy Scan as the action type.
Choose the SCAP policy to apply.
Configure the recurrence schedule (for example, daily, weekly).
|
Recurring scans are linked to the selected SCAP policy. If you update the policy (for example, change the profile), future recurring scans will use the updated configuration. |
7.4. Scheduling a scan from the API
You can also use the SUSE Multi-Linux Manager API to schedule SCAP scans, with the system.scap handler.
Before you begin, ensure that the client to be scanned has Python and XML-RPC libraries installed.
To schedule a scan using an existing SCAP policy, use
system.scap.scheduleXccdfScanWithPolicy:#!/usr/bin/python3 import xmlrpc.client client = xmlrpc.client.ServerProxy('https://server.example.com/rpc/api') key = client.auth.login('username', 'password') client.system.scap.scheduleXccdfScanWithPolicy(key, [<1000010001>], <policy_id>, xmlrpc.client.DateTime()) client.auth.logout(key)In this example:
[<1000010001>]is the list of system IDs (sids) to scan.
<policy_id>is the ID of an existing SCAP policy.To schedule a scan without a saved policy, use
system.scap.scheduleXccdfScanCustomand pass the SCAP content and profile directly:#!/usr/bin/python3 import xmlrpc.client client = xmlrpc.client.ServerProxy('https://server.example.com/rpc/api') key = client.auth.login('username', 'password') params = { 'scapContentId': <scap_content_id>, 'xccdfProfileId': '<profile_name>', } client.system.scap.scheduleXccdfScanCustom(key, [<1000010001>], params, xmlrpc.client.DateTime()) client.auth.logout(key)In this example:
<scap_content_id>is the ID of previously uploaded SCAP content.
<profile_name>is the XCCDF profile ID to use (for example,xccdf_org.ssgproject.content_profile_stig).
paramscan also include the optional keystailoringFileId,tailoringProfileId,ovalFiles,advancedArgs, andfetchRemoteResources. For the options thatadvancedArgspasses on, see Advanced arguments.Run the script on the client you want to scan, from the command prompt.
8. How scans work
When a scan is scheduled:
-
The SUSE Multi-Linux Manager server transfers the required SCAP content files (DataStream and XCCDF) from the server to the managed system using Salt’s file management.
-
If a tailoring file is associated with the policy, it is also transferred.
-
The
oscaptool is executed on the managed system with the appropriate parameters (profile, rules, tailoring, etc.). -
Scan results (
results.xmlandreport.html) are collected from the managed system and stored on the server. -
Results are available for review in the WebUI under the system’s audit section.
Files are transferred to /var/cache/salt/minion/scap/ on the managed system.
|
OVAL files are not transferred automatically due to their large size. If your scan requires OVAL files, they must be present on the managed system before the scan runs. |
9. Scan results
Information about the scans you have run is in the SUSE Multi-Linux Manager Web UI. Navigate to for a table of results. For more information about the data in this table, see All Scans.
To ensure that detailed information about scans is available, you need to enable it on the client.
In the SUSE Multi-Linux Manager Web UI, navigate to and click on the organization the client is a part of.
Navigate to the Configuration tab, and check the Enable Upload of Detailed SCAP Files option.
When enabled, this generates an additional HTML file on every scan, which contains extra information.
The results show an extra line similar to this:
Detailed Results: xccdf-report.html xccdf-results.xml scap-yast2sec-oval.xml.result.xml
To retrieve scan information from the command line, use the spacewalk-report command:
spacewalk-report system-history-scap spacewalk-report scap-scan spacewalk-report scap-scan-results
You can also use the SUSE Multi-Linux Manager API to view results, with the system.scap handler.
10. Removing SCAP Scan Results
Only SCAP scans that have passed the configured retention period can be deleted.
You can configure the retention period in the Organization Configuration section.
Navigate to .
Under
SCAP, checkAllow Deletion of SCAP Results.Enter a number of days in
Allow Deletion After(default is 90).
Navigate to .
Select the checkbox for the scan or scans you want to delete.
Click Confirm.
11. Remediation
You can remediate non-compliant systems either directly from SCAP scan results in the Web UI, or by running the Bash scripts and Ansible playbooks provided in the SCAP Security Guide packages.
|
Remediation actions change system configuration to enforce compliance, and can disable services, change permissions, or otherwise affect how a system behaves. This applies to built-in remediation, custom remediation scripts, and the Bash scripts and Ansible playbooks described below. Test remediation on non-production systems before applying it to production systems. |
11.1. Remediation from scan results
After reviewing scan results, you can apply remediation for individual rules that have failed.
Navigate to a completed scan’s results.
Identify the non-compliant rule.
Click the remediation action to apply the fix.
Built-in remediation derived from SCAP content is always a Bash script, pre-populated from the SCAP content’s built-in fix elements. When you apply it, SUSE Multi-Linux Manager runs it on the managed system as a remote command, as root.
SCAP content does not provide Salt-based remediation. If you prefer to remediate with a Salt state instead, define a Custom remediation for the rule and write your own Salt state in the empty text area; unlike Bash, there is no built-in content to pre-populate it.
|
SCAP Security Guide packages also provide standalone Ansible playbooks for full-profile hardening. SUSE Multi-Linux Manager only reads Bash-type fix elements for the per-rule remediation described here; Ansible playbooks are not applied from the Web UI and must be run manually. See Run remediation using a Bash script or Ansible playbook. |
11.2. Custom remediation
If the built-in remediation from the SCAP content is insufficient or you need to tailor the fix for your environment, you can define custom remediation scripts.
Custom remediation is scoped per organization and per rule.
To save a custom remediation, follow these steps:
Navigate to the rule’s remediation view.
Choose the script type:
Bash: A custom shell script.
Salt: A custom Salt state definition.
Enter or modify the remediation script.
Click Save.
Custom remediation overrides the default remediation from the SCAP content for the specific rule within your organization.
|
Custom remediation includes an audit trail. The system tracks which user created and last modified each custom remediation script. |
11.3. Deleting custom remediation
You can delete a custom remediation to revert to the default remediation provided by the SCAP content.
Navigate to the custom remediation view and click Delete for the specific script type.
11.4. Run remediation using a Bash script or Ansible playbook
Remediation Bash scripts and Ansible playbooks are provided in the same SCAP Security Guide packages to harden the client systems, independently of the Web UI remediation workflow described above. Use this method if you want to apply a full hardening profile proactively, without first running a scan, or if you prefer not to apply remediation from the Web UI for some reason.
For example:
/usr/share/scap-security-guide/bash/sle15-script-cis.sh /usr/share/scap-security-guide/bash/sle15-script-standard.sh /usr/share/scap-security-guide/bash/sle15-script-stig.sh
/usr/share/scap-security-guide/ansible/sle15-playbook-cis.yml /usr/share/scap-security-guide/ansible/sle15-playbook-standard.yml /usr/share/scap-security-guide/ansible/sle15-playbook-stig.yml
You can run them using remote commands or with Ansible, after enabling Ansible in the client system.
11.4.1. Run the Bash script on single systems as a remote command
Run the Bash script as a remote command on single systems.
-
From tab, select your instance. Then in , write a Bash script such as:
#!/bin/bash chmod +x -R /usr/share/scap-security-guide/bash /usr/share/scap-security-guide/bash/sle15-script-stig.sh
-
Click Schedule.
|
Folder and script names change between distribution and version.
Install the content package for your operating system (see Prepare clients for an SCAP scan), then use |
11.4.2. Run the bash script using System Set Manager on multiple systems
Run the Bash script as a remote command on multiple systems at once.
-
When a system group has been created click
System Groups, selectUse in SSMfrom the table. -
From the
System Set Manager, under , write a Bash script such as:#!/bin/bash chmod +x -R /usr/share/scap-security-guide/bash /usr/share/scap-security-guide/bash/sle15-script-stig.sh
-
Click Schedule.
12. Navigation reference
The following menu entries are available under :
| Menu path | Description |
|---|---|
View all SCAP scan results. |
|
Create and manage reusable SCAP policies. |
|
Upload and manage SCAP DataStream and XCCDF files. |
|
Upload and manage SCAP tailoring files. |
|
Compare two SCAP scan results. |
|
Search across all SCAP scan results. |
|
Schedule a SCAP scan for a single system using the policy-based UI. |
|
Schedule SCAP scans for multiple systems using the policy-based UI. |
13. Workflow example
The following example demonstrates a typical end-to-end workflow:
-
Upload SCAP content:
Navigate to and upload a SCAP Security Guide DataStream file (for example,
ssg-sle15-ds.xmlandssg-sle15-xccdf.xml). -
Upload a tailoring file (optional):
Navigate to and upload a tailoring file if you need to customize a profile.
-
Create a SCAP policy:
Navigate to and create a policy that references the uploaded content, selects a profile (for example,
CIS Benchmark Level 1), and optionally includes the tailoring file. -
Schedule a scan:
Navigate to a system’s tab, select the policy, and schedule the scan.
-
Review results:
After the scan completes, review the results under the system’s tab.
-
Apply remediation:
For any non-compliant rules, apply the built-in remediation or define custom remediation scripts tailored to your environment.
-
Set up recurring scans:
Configure recurring scans using the SCAP policy to maintain ongoing compliance monitoring.
scap-security-guide package. However, the version shipped with the client tools is not compatible, so it should not be used for SCAP content.
ssg-debian can be used at your own risk.
ssg-debderived can be used at your own risk.
ssg-debderived can be used at your own risk.