I guess the first thing I would ask is why you’re downloading the full OVAL XML 
file.  That file, as you can see is huge, and contains ALL the definitions in 
the entire repository.  I can make an educated guess that your Fedora-based 
system doesn’t need to assess against every Windows definition, Cisco IOS 
definition, etc.  You probably only want the ones specific to your OS family, 
which in this case would be “unix”, and a particular class of definitions; I 
would suggest “vulnerability” as this is the most prevalent definition class in 
the repository.

That bundle can be found here -- 
-- and is only about 35 MB

Other definition classes and families are available as well, and I’d definitely 
suggest trying different combinations of files to find the correct information 
you’re looking to assess.  The full repository might be a little too much to 

I will take a look at the repository source (it’s all in GitHub) and see if I 
can find some ways to parse the full content and see where some of the 
validation issues might be.

-Bill M

Bill Munyan
Solutions Architect; Security Best Practices
31 Tech Valley Drive
East Greenbush, NY 12061

(518) 516-6128 (w)
(518) 281-1233 (c)
                           [CIS Email Icons 01_23-02] 
<https://www.facebook.com/CenterforIntSec>     [CIS Email Icons 01_23-03] 
<https://twitter.com/CISecurity>    [CIS Email Icons 01_23-04] 
<https://www.youtube.com/user/TheCISecurity>     [CIS Email Icons 01_23-05] 

From: open-scap-list-boun...@redhat.com <open-scap-list-boun...@redhat.com> On 
Behalf Of Tim
Sent: Wednesday, August 14, 2019 11:48 PM
To: open-scap-list@redhat.com
Subject: [Open-scap] Trouble Scanning OVAL from CIS Repository

Another issue has come up while attempting to scan a Fedora-based system
using the quasi-official OVAL collection at CIS:


After extracting the XML and using a command such as:

oscap oval eval --report report.html --results results.xml
--fetch-remote-resources oval.xml

the oscap utility spends about an hour and a half parsing the 213MB of
data, then says in the end that the definitions are invalid and so
refuses to do the scan.

When I use --fetch-remote-resources, the following message is repeated
158 times. Alas the code apparently does not contemplate OVAL files with
more than 65535 lines, so the line numbers are all the same (the actual
number of lines is about 3 million):

File 'oval.xml' line 65535: Element
This element is not expected. Expected is one of (

If I omit --fetch-remote-resources, there are a few different errors,
but I guess those don't matter so much?

So... what to do? Adding --skip-valid to the command doesn't seem like a
solution. If I do that the scan fails almost immediately with:

W: oscap: Unknown OVAL family subtype: interim_fix
OpenSCAP Error: Unknown test type oval:org.cisecurity:tst:6710.
Failed to import the OVAL Definitions from 'oval.xml'.

Are there some additional definitions that need to be pulled in somehow?


Open-scap-list mailing list

This message and attachments may contain confidential information. If it 
appears that this message was sent to you by mistake, any retention, 
dissemination, distribution or copying of this message and attachments is 
strictly prohibited. Please notify the sender immediately and permanently 
delete the message and any attachments.

. . . . .
Open-scap-list mailing list

Reply via email to