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

Func question

Sirdorblu opened this issue · comments

Is there a func to scan a one file or it will be? like:
oscap oval eval --report vulnerability.html rhel-8.oval.xml test.0:12.0-1.rpm

There is an option to validate a single OVAL definition from a Data Stream, like oscap oval eval --id oval:ssg-installed_OS_is_fedora:def:1 ssg-fedora-ds.xml. That's pretty much how selective OVAL standard could be.

If your Data Stream (rhel-8.oval.xml) has a test definition for each file (package), then it is probably what you're looking for.

There is an option to validate a single OVAL definition from a Data Stream, like oscap oval eval --id oval:ssg-installed_OS_is_fedora:def:1 ssg-fedora-ds.xml. That's pretty much how selective OVAL standard could be.

but its for installed pkgs, if i have a list of noninstalled pkgs?

OVAL rpm* probes can only operate on installed packages. That won't change (it is standardized behaviour).