Bug 1888915 - [RFE] Provide CIS /C2S profile for scanning RHEL7 based UBI images
Summary: [RFE] Provide CIS /C2S profile for scanning RHEL7 based UBI images
Keywords:
Status: CLOSED DUPLICATE of bug 1821633
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: scap-security-guide
Version: 7.9
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: rc
: ---
Assignee: Vojtech Polasek
QA Contact: BaseOS QE Security Team
URL:
Whiteboard:
Depends On: 1760734 1888722
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-10-16 08:49 UTC by Emmanuel Kasper
Modified: 2020-12-01 14:19 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of: 1888722
Environment:
Last Closed: 2020-12-01 14:19:19 UTC
Target Upstream Version:


Attachments (Terms of Use)

Comment 4 Marek Haicman 2020-12-01 14:19:19 UTC
Hello.
CIS profile has been already released in this major version of RHEL. And all our profiles do support container scanning, via identifying a subset of rules from the machine profile to be applied, if container is scanned using `oscap-podman` or `oscap-docker`.

One issue I have noticed in the preceding discussion is the file used. Unfortunately, for this very reason, we strongly discourage users from using xccdf file that is being shipped in the RPM. For the container scanning (or any scanning since the container scanning has been introduced few years back) to work as intended, you need to consume also accompanying cpe dictionary and cpe oval. While this can be done on the command line, there is much safer and "properer" solution - use the data stream file as a source data. I.e. ssg-rhel7-ds.xml. This way, the scanning will work correctly.

Also please note - even though our RPMs contain content for other major releases, it's still the recommended way to grab the data stream from the respective "native" RPM. I.e. use `ssg-rhel7-ds.xml` from RHEL7, and use `ssg-rhel8-ds.xml` from RHEL8, unless there is no other technical option :)

I am going to mark this BZ as a duplicate to the original bug we based our CIS inclusion on. If you have any questions, don't hesitate and reach out to me :)

Regards,
Marek

*** This bug has been marked as a duplicate of bug 1821633 ***


Note You need to log in before you can comment on or make changes to this bug.