Security

A security team must assess a RHEL 9 server against the CIS profile in the SCAP Security Guide data stream. They need an HTML report of pass/fail results and must not change the system. Which command does this?

Show the answer

Correct answerB. oscap xccdf eval --profile xccdf_org.ssgproject.content_profile_cis --report cis.html ssg-rhel9-ds.xml

oscap xccdf eval evaluates the system against a selected XCCDF profile and --report writes an HTML report without making changes. The generate fix subcommand only builds a remediation script from the profile and performs no scan, so it produces no pass/fail results.