CIS OS Hardening Guidelines

MetaDefender Sandbox is compatible with installations on operating systems hardened to CIS Level 1 or Level 2 standards: https://www.cisecurity.org/cis-benchmarks

Please note that CIS Level 1 or Level 2 hardening is not yet available on Ubuntu 24.04

Here you can find a more user-friendly description of the relevant changes applied during hardening:

This documentation provides some example instructions to harden an Ubuntu 22.04 operating system.

Hardening steps

OpenSCAP will be utilized for the hardening process. For more details about the tool, please refer to the official OpenSCAP website: https://www.open-scap.org

Install the OpenSCAP tool on your system.

Bash
Copy

Additionally, download the relevant security guides, which contain practical hardening advice and links to compliance requirements in order to ease deployment activities such as certification and accreditation.

You can find the installation step on the OpenSCAP website. https://www.open-scap.org/security-policies/scap-security-guide/#install

Bash
Copy

The installation may fail because the ssg packages are currently unavailable in the Ubuntu 22.04 repositories.

In this case, the relevant ssg can be manually downloaded from the ComplianceAsCode repository.

https://github.com/ComplianceAsCode/content/releases/tag/v0.1.74

Example script to download the pre-built security guide and transfer the relevant files to the OSCAP target location

Bash
Copy

Verify the installation by running the following command:

Bash
Copy

As a result, you should see an output similar to the following:

Run an evaluation on the system to generate a baseline report, which will be used to create the remediation script. Make sure to save the report so you can compare the results after the hardening process.

Use the following command to run the evaluation and save the results in both XML and HTML formats:

Bash
Copy

Generate the remediation script based on the report.xml file:

Bash
Copy

Execute the remediation script:

Bash
Copy

The script will address many issues. However, please note that some findings may still require manual intervention.

Review hardening results

To review the changes implemented by the remediation script, run the evaluation again. Make sure to use different file names for the XML and HTML reports to facilitate comparison of the results.

Bash
Copy

When comparing the results, you should observe that cases where a rule evaluation previously resulted in a failure are now marked as passed.

Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard