{"id":16459,"date":"2025-02-21T10:44:48","date_gmt":"2025-02-21T09:44:48","guid":{"rendered":"https:\/\/roglacup.com\/klaus62\/?p=16459"},"modified":"2025-02-24T12:54:42","modified_gmt":"2025-02-24T11:54:42","slug":"running-openscap-compliance-checks-on-oracle-linux","status":"publish","type":"post","link":"https:\/\/roglacup.com\/klaus62\/2025\/02\/21\/running-openscap-compliance-checks-on-oracle-linux\/","title":{"rendered":"Running OpenSCAP Compliance Checks on Oracle Linux"},"content":{"rendered":"\n<p><strong>Oracle Linux 7<\/strong><\/p>\n\n\n\n<p>Post:<a href=\"https:\/\/forums.oracle.com\/ords\/apexds\/post\/running-openscap-compliance-checks-on-oracle-linux-9607\">https:\/\/forums.oracle.com\/ords\/apexds\/post\/running-openscap-compliance-checks-on-oracle-linux-9607<\/a><\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>Oracle linux 8<\/strong><\/h4>\n\n\n\n<p><strong>Install OpenSCAP software<\/strong><\/p>\n\n\n\n<p>Available Packages<br>The following SCAP packages are available:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>openscap-utils<\/strong> &#8211; Contains command-line tools that use the OpenSCAP library.<\/li>\n\n\n\n<li><strong>openscap-scanner<\/strong> &#8211; Provides the oscap command-line configuration and vulnerability<br>scanner, which can perform compliance checking against SCAP content including the<br>SCAP Security Guide. This is automatically installed as a dependency of the openscaputils package.<\/li>\n\n\n\n<li><strong>openscap<\/strong> &#8211; Provides the OpenSCAP open-source libraries for generating SCAPcompliance documentation.<\/li>\n\n\n\n<li><strong>scap-security-guide<\/strong> &#8211; Provides system-hardening guidance in SCAP format, including<br>links to government requirements. The guide provides security profiles that you can<br>modify to comply with the security policies that you have established for your site.<\/li>\n<\/ul>\n\n\n\n<p>dnf install openscap openscap-utils scap-security-guide<\/p>\n\n\n\n<p><strong>Running a Scan Against an XCCDF Profile<\/strong><\/p>\n\n\n\n<p>oscap xccdf eval &#8211;fetch-remote-resources &#8211;profile xccdf_org.ssgproject.content_profile_stig &#8211;results filename.xml &#8211;report filename.html \/usr\/share\/xml\/scap\/ssg\/content\/ssg-ol8-ds.xml &gt; filename.log<\/p>\n\n\n\n<p>ToDo<\/p>\n\n\n\n<p><strong>AIDE<\/strong><\/p>\n\n\n\n<p>yum install aide<\/p>\n\n\n\n<p>sudo \/usr\/sbin\/aide &#8211;init<\/p>\n\n\n\n<p><br>Start timestamp: 2025-02-21 12:32:41 +0100 (AIDE 0.16)<br>AIDE initialized database at \/var\/lib\/aide\/aide.db.new.gz<\/p>\n\n\n\n<p>Number of entries: 369587<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h6 class=\"wp-block-heading\">The attributes of the (uncompressed) database(s):<\/h6>\n\n\n\n<p>\/var\/lib\/aide\/aide.db.new.gz<br>MD5 : \/k8iZuAEFVWvppVi59JbRQ==<br>SHA1 : sPxDA2BM8ONkAWe1DuuqqZuqaX4=<br>RMD160 : on55gN\/qC+R9xhhEw0YU3WCycaM=<br>TIGER : zEQa0ORNxcMonyZdw15YQpxfoQgnXh81<br>SHA256 : 4kstmcEinG+ylq7GeeNE5AMOSsfzm1hq<br>h6MlDSo7a00=<br>SHA512 : 8cCnGiWOUAm4wdX3qfpc1XMvM6RN+JJy<br>lyOChzmso6hWSuLCIyqaAAUbE0Na3z3k<br>QY4Ctd\/vu5jBpv+S3We4kA==<\/p>\n\n\n\n<p>End timestamp: 2025-02-21 12:48:11 +0100 (run time: 15m 30s)<\/p>\n\n\n\n<p>sudo cp \/var\/lib\/aide\/aide.db.new.gz \/var\/lib\/aide\/aide.db.gz<\/p>\n\n\n\n<p>sudo \/usr\/sbin\/aide &#8211;check<\/p>\n\n\n\n<p>Oracle Linux 9<\/p>\n\n\n\n<p>Post:<a href=\"https:\/\/docs.oracle.com\/cd\/F61088_01\/oscap\/OL9-OSCAP.pdf\">https:\/\/docs.oracle.com\/cd\/F61088_01\/oscap\/OL9-OSCAP.pdf<\/a><\/p>\n\n\n\n<p>More links: <\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-wp-embed is-provider-timesys wp-block-embed-timesys\"><div class=\"wp-block-embed__wrapper\">\n<blockquote class=\"wp-embedded-content\" data-secret=\"HtfT3snu58\"><a href=\"https:\/\/www.timesys.com\/security\/yocto-security-automating-compliance-using-openscap\/\">Yocto Security: Automating compliance using OpenSCAP<\/a><\/blockquote><iframe loading=\"lazy\" class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; clip: rect(1px, 1px, 1px, 1px);\" title=\"&#8220;Yocto Security: Automating compliance using OpenSCAP&#8221; &#8212; Timesys\" src=\"https:\/\/www.timesys.com\/security\/yocto-security-automating-compliance-using-openscap\/embed\/#?secret=chcQLW0Xre#?secret=HtfT3snu58\" data-secret=\"HtfT3snu58\" width=\"600\" height=\"338\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe>\n<\/div><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>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 PackagesThe following SCAP packages are available: dnf install openscap openscap-utils scap-security-guide Running a Scan Against an XCCDF Profile oscap xccdf eval &#8211;fetch-remote-resources &#8211;profile xccdf_org.ssgproject.content_profile_stig &#8211;results filename.xml &#8211;report filename.html \/usr\/share\/xml\/scap\/ssg\/content\/ssg-ol8-ds.xml &gt; filename.log ToDo AIDE yum install aide sudo \/usr\/sbin\/aide &#8211;init Start timestamp: 2025-02-21 12:32:41 +0100&hellip;&nbsp;<a href=\"https:\/\/roglacup.com\/klaus62\/2025\/02\/21\/running-openscap-compliance-checks-on-oracle-linux\/\" class=\"\" rel=\"bookmark\">Read More &raquo;<span class=\"screen-reader-text\">Running OpenSCAP Compliance Checks on Oracle Linux<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":16474,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"neve_meta_sidebar":"","neve_meta_container":"","neve_meta_enable_content_width":"","neve_meta_content_width":0,"neve_meta_title_alignment":"","neve_meta_author_avatar":"","neve_post_elements_order":"","neve_meta_disable_header":"","neve_meta_disable_footer":"","neve_meta_disable_title":"","footnotes":""},"categories":[17,35,4],"tags":[],"class_list":["post-16459","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux","category-oracle","category-security"],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/roglacup.com\/klaus62\/wp-json\/wp\/v2\/posts\/16459","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/roglacup.com\/klaus62\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/roglacup.com\/klaus62\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/roglacup.com\/klaus62\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/roglacup.com\/klaus62\/wp-json\/wp\/v2\/comments?post=16459"}],"version-history":[{"count":6,"href":"https:\/\/roglacup.com\/klaus62\/wp-json\/wp\/v2\/posts\/16459\/revisions"}],"predecessor-version":[{"id":16482,"href":"https:\/\/roglacup.com\/klaus62\/wp-json\/wp\/v2\/posts\/16459\/revisions\/16482"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/roglacup.com\/klaus62\/wp-json\/wp\/v2\/media\/16474"}],"wp:attachment":[{"href":"https:\/\/roglacup.com\/klaus62\/wp-json\/wp\/v2\/media?parent=16459"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/roglacup.com\/klaus62\/wp-json\/wp\/v2\/categories?post=16459"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/roglacup.com\/klaus62\/wp-json\/wp\/v2\/tags?post=16459"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}