Skip to content

oscap-docker evalluates all rules as notapplicable in redhat STIG #2278

@ben-dov

Description

@ben-dov

Description of Problem:

Seems to similar to #1942.
When scanning a redhat container image (like ubi8 and ubi9) using oscap-docker, all rules are evaluated as notapplicable.

OpenSCAP Version:

bash-5.3# oscap -V
OpenSCAP command line tool (oscap) 1.4.2

Steps to Reproduce:

  1. sudo systemctl start docker
  2. docker pull registry.access.redhat.com/ubi8/ubi
  3. Enter the container that is connected to the docker environment or run locally (Am running in an image as root)
  4. oscap-docker image registry.access.redhat.com/ubi8/ubi:latest xccdf eval --profile xccdf_org.ssgproject.content_profile_stig /usr/share/xml/scap/ssg/content/ssg-rhel8-ds.xml

Additional Information / Debugging Steps:

might be unrelated, but I can see these warnings at the ending of the output

W: oscap: OVAL object 'rpminfo_object' is not supported.
W: oscap: OVAL object 'rpminfo_object' is not supported.
W: oscap: OVAL object 'rpminfo_object' is not supported.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions