OpenSCAP / openscap

NIST Certified SCAP 1.2 toolkit

Home Page:https://www.open-scap.org/tools/openscap-base

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Ubuntu 18.04 , 20.04 or 22.04 is not supporting XCCDF evualtion & CIS Benchmark

kumar6429 opened this issue · comments

Thanks!

Description of Problem: XCCDF Evaluation & CIS Benchmarks are not supported in Ubuntu 18.04 ,20.04 & 22.04 version

OpenSCAP Version: 1.2.16

Operating System & Version: Ubuntu & 18.04 ,20.04 & 22.04

Steps to Reproduce:

  1. Log into Ubuntu system
  2. Run the OpenSCAP evaluation command as below.

ssm-user@vmc-tf-OpenSCAP-Ubuntu2004-vmc-on-aws-1:/usr/bin$ oscap xccdf eval --profile xccdf_org.ssgproject.content_profile_cis_level1_server /usr/share/xml/scap/ssg/content/ssg-ubuntu2004-ds.xml
OpenSCAP Error: Unable to open file: '/usr/share/xml/scap/ssg/content/ssg-ubuntu2004-ds.xml' [../../../src/source/oscap_source.c:284]

  1. I don't see XCCDF SSG profile on this system for Ubuntu 18.04 / 20.04 / 22.04
    ssm-user@vmc-tf-OpenSCAP-Ubuntu2004-vmc-on-aws-1:/usr/bin$ cd /usr/share/xml/scap/ssg/content
    ssm-user@vmc-tf-OpenSCAP-Ubuntu2004-vmc-on-aws-1:/usr/share/xml/scap/ssg/content$ ls -l | grep ubuntu
    -rw-r--r-- 1 root root 578 Jul 26 2018 ssg-ubuntu1404-cpe-dictionary.xml
    -rw-r--r-- 1 root root 40395 Jul 26 2018 ssg-ubuntu1404-cpe-oval.xml
    -rw-r--r-- 1 root root 742456 Jul 26 2018 ssg-ubuntu1404-ds.xml
    -rw-r--r-- 1 root root 41971 Jul 26 2018 ssg-ubuntu1404-ocil.xml
    -rw-r--r-- 1 root root 397360 Jul 26 2018 ssg-ubuntu1404-oval.xml
    -rw-r--r-- 1 root root 230476 Jul 26 2018 ssg-ubuntu1404-xccdf.xml
    -rw-r--r-- 1 root root 578 Jul 26 2018 ssg-ubuntu1604-cpe-dictionary.xml
    -rw-r--r-- 1 root root 40395 Jul 26 2018 ssg-ubuntu1604-cpe-oval.xml
    -rw-r--r-- 1 root root 743081 Jul 26 2018 ssg-ubuntu1604-ds.xml
    -rw-r--r-- 1 root root 42001 Jul 26 2018 ssg-ubuntu1604-ocil.xml
    -rw-r--r-- 1 root root 397681 Jul 26 2018 ssg-ubuntu1604-oval.xml
    -rw-r--r-- 1 root root 230777 Jul 26 2018 ssg-ubuntu1604-xccdf.xml
    ssm-user@vmc-tf-OpenSCAP-Ubuntu2004-vmc-on-aws-1:/usr/share/xml/scap/ssg/content$

  2. Install both OpenSCAP & SSG by running below commands.
    apt-get install libopenscap8
    apt install ssg-base ssg-debderived ssg-debian ssg-nondebian ssg-applications

  3. Even after I am unable to run XCCDF evaluation with CIS Benchmarks for Ubuntu 18.04 / 20.04 / 22.04

Actual Results: OpenSCAP Error: Unable to open file: '/usr/share/xml/scap/ssg/content/ssg-ubuntu2004-ds.xml' [../../../src/source/oscap_source.c:284]

Expected Results: It's should run & scan results should be saved in local (arf.xml & report.html)

Additional Information / Debugging Steps:

This is the OpenSCAP upstream repo. The SSG project upstream repo is here: https://github.com/ComplianceAsCode/content.

The CaC (SSG) upstream project has some content for Ubuntu 20.04, but it is up to the Ubuntu maintainers / packages to decide what is being shipped downstream.