Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rework scan result handling for oscap #24

Open
comps opened this issue Jun 21, 2023 · 0 comments
Open

Rework scan result handling for oscap #24

comps opened this issue Jun 21, 2023 · 0 comments

Comments

@comps
Copy link
Contributor

comps commented Jun 21, 2023

Currently, we parse oscap --verbose=INFO --progress output and report individual rules in realtime.

This gives us info on how oscap treats OVAL checks for that rule, but without more context (which files failed the check, etc.), this is useless.

Instead, let oscap generate ARF results as a XML and parse it after the scan - this allows us to

  1. get more context for file path related checks and maybe include it in the note (which checks failed)
  2. parse out remediation shell script output and submit it for each rule as a separate log

Especially the second point is critical for investigating seemingly random fails as those are often caused by the remediation script running into unforseen environment setups.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant