Skip to content

Running OpenSCAP Compliance Checks on Oracle Linux

Oracle Linux 7

Post:https://forums.oracle.com/ords/apexds/post/running-openscap-compliance-checks-on-oracle-linux-9607

Oracle linux 8

Install OpenSCAP software

Available Packages
The following SCAP packages are available:

  • openscap-utils – Contains command-line tools that use the OpenSCAP library.
  • openscap-scanner – Provides the oscap command-line configuration and vulnerability
    scanner, which can perform compliance checking against SCAP content including the
    SCAP Security Guide. This is automatically installed as a dependency of the openscaputils package.
  • openscap – Provides the OpenSCAP open-source libraries for generating SCAPcompliance documentation.
  • scap-security-guide – Provides system-hardening guidance in SCAP format, including
    links to government requirements. The guide provides security profiles that you can
    modify to comply with the security policies that you have established for your site.

dnf install openscap openscap-utils scap-security-guide

Running a Scan Against an XCCDF Profile

oscap xccdf eval –fetch-remote-resources –profile xccdf_org.ssgproject.content_profile_stig –results filename.xml –report filename.html /usr/share/xml/scap/ssg/content/ssg-ol8-ds.xml > filename.log

ToDo

AIDE

yum install aide

sudo /usr/sbin/aide –init


Start timestamp: 2025-02-21 12:32:41 +0100 (AIDE 0.16)
AIDE initialized database at /var/lib/aide/aide.db.new.gz

Number of entries: 369587


The attributes of the (uncompressed) database(s):

/var/lib/aide/aide.db.new.gz
MD5 : /k8iZuAEFVWvppVi59JbRQ==
SHA1 : sPxDA2BM8ONkAWe1DuuqqZuqaX4=
RMD160 : on55gN/qC+R9xhhEw0YU3WCycaM=
TIGER : zEQa0ORNxcMonyZdw15YQpxfoQgnXh81
SHA256 : 4kstmcEinG+ylq7GeeNE5AMOSsfzm1hq
h6MlDSo7a00=
SHA512 : 8cCnGiWOUAm4wdX3qfpc1XMvM6RN+JJy
lyOChzmso6hWSuLCIyqaAAUbE0Na3z3k
QY4Ctd/vu5jBpv+S3We4kA==

End timestamp: 2025-02-21 12:48:11 +0100 (run time: 15m 30s)

sudo cp /var/lib/aide/aide.db.new.gz /var/lib/aide/aide.db.gz

sudo /usr/sbin/aide –check

Oracle Linux 9

Post:https://docs.oracle.com/cd/F61088_01/oscap/OL9-OSCAP.pdf

More links:

Leave a Reply

Your email address will not be published. Required fields are marked *