[SOLVED] OSCAP scan using RHEL STIG

Support for security such as Firewalls and securing linux
Post Reply
eng3
Posts: 2
Joined: 2021/05/30 06:23:17

[SOLVED] OSCAP scan using RHEL STIG

Post by eng3 » 2021/05/30 06:26:31

I'm trying to run an oscap scan. I'd like to use the RHEL DISA STIG but I get not applicable for all of them.

I suspect this should be possible by modifying certain files but not sure how.

I'd appreciate any help in this area.

eng3
Posts: 2
Joined: 2021/05/30 06:23:17

Re: OSCAP scan using RHEL STIG

Post by eng3 » 2021/05/30 16:59:10

ok, after some trial and error, I did the following:

Code: Select all

sed -i 's/cpe.rhel:def:8/cpe:centos:def:8'g /usr/share/openscap/cpe/*
sed -i 's/cpe.rhel:def:8/cpe:centos:tst:8'g /usr/share/openscap/cpe/*
sed -i 's/redhat:enterprise_linux:8/centos:centos:8'g /usr/share/openscap/cpe/*
sed -i 's/redhat:enterprise_linux:8/centos:centos:8'g /usr/share/xml/scap/ssg/content/*

scottro
Forum Moderator
Posts: 2500
Joined: 2007/09/03 21:18:09
Location: NYC
Contact:

Re: OSCAP scan using RHEL STIG

Post by scottro » 2021/05/31 00:31:26

Thanks for coming back and letting us know how you got it working. I'll mark it solved for others who come upon it while searching.
New users should check the FAQ and Read Me First pages

Post Reply

Return to “CentOS 8 - Security Support”