-
Notifications
You must be signed in to change notification settings - Fork 865
Feature 6096: Scan RHEL/CentOS hosts using OVAL definitions #6241
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
Merged
juan-fdz-hawa
merged 40 commits into
main
from
6096-use-oval-to-detect-centosred-hat-vulnerabilities
Jun 23, 2022
Merged
Changes from all commits
Commits
Show all changes
40 commits
Select commit
Hold shift + click to select a range
a5b42c2
Remove CentOS post-processing
62ad2b4
Moved OVAL test data to upper directory
53b2811
Use t.TempDir()
ca32887
Renamed VulnerabilitySource constants
99e7bce
Renamed DeleteVulnerabilitiesByCPECVE -> DeleteSoftwareVulnerabilities
0b6a4e7
Oval definitions for rhel based systems only use the major version as…
f8c920a
Added OVAL input types for RHEL
juan-fdz-hawa 8173688
WIP: Parse rhel OVAl defs
juan-fdz-hawa c501925
Added missing tests for mappers
juan-fdz-hawa 5102127
Fill in parseRhelXML
juan-fdz-hawa b816a41
Parse OVAL definitions for RHEL
juan-fdz-hawa b4ddce2
Added missing tests for parser
juan-fdz-hawa f624765
Added rpm_verify_object and rpm_verify_state to parser
juan-fdz-hawa 924f813
WIP: Extend analyzer to use OS tests results
juan-fdz-hawa b78ba66
Added implementation for object_state_string.go
juan-fdz-hawa 93019fa
Propagate errors from state objects
juan-fdz-hawa e25ac6e
Implemented ObjectStateSimpleValue
juan-fdz-hawa 93f9cc7
Implemented #EvalSoftware on ObjectInfoState, which evaluates the pas…
juan-fdz-hawa 48915d8
Implement EvalOSVersion
juan-fdz-hawa 0693dbe
Wire up RpmVerifyFileTest and RpmInfoTest
juan-fdz-hawa 72cb655
Only allow Name and Version as state props for RpmVerifyFile
juan-fdz-hawa bbc4d08
Use vulnerability/testdata when populating vuln software in osquery-perf
juan-fdz-hawa b4988fb
Extracted partial for ubuntu hosts
juan-fdz-hawa c662aae
Added software inventory for CentOS and RedHat
juan-fdz-hawa 5251dc6
Don't match cpe->cves for rhel platforms
juan-fdz-hawa 577a965
Added missing info to the rpm verify file tests, fixed misc bugs
juan-fdz-hawa 5fdb54f
Added CVEs, if vals is empty return identity when evaluating operator…
juan-fdz-hawa 0eb8c1f
Added RHEL OVAL defs to test data
juan-fdz-hawa 96311f8
Added integration tests for RHEL
juan-fdz-hawa cfb670c
Merge branch 'main' into 6096-use-oval-to-detect-centosred-hat-vulner…
juan-fdz-hawa e62c2ef
Fixed broken test and linter errors
juan-fdz-hawa 6976224
Fixed linter issues
juan-fdz-hawa 9a23042
Added missing test
juan-fdz-hawa 589e238
Added changes file
juan-fdz-hawa 84c0792
Fixed linter error
juan-fdz-hawa 38e6d95
Added support for Amazon Linux 2
juan-fdz-hawa 894b12f
Merge branch 'main' into 6096-use-oval-to-detect-centosred-hat-vulner…
juan-fdz-hawa 0b7461f
Add amzn to list of supported distros
juan-fdz-hawa 39bf547
Merge branch 'main' into 6096-use-oval-to-detect-centosred-hat-vulner…
juan-fdz-hawa 84373c3
Added RHEL benchmark
juan-fdz-hawa File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| - Use OVAL definitions to scan RHEL based hosts for vulnerable software |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here I'm reusing the software fixtures from https://github.com/fleetdm/fleet/tree/main/server/vulnerabilities/testdata