-
Notifications
You must be signed in to change notification settings - Fork 180
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
GSOC23 - A - Adapt the CVE auditing functionality to depend on OVAL data #7335
GSOC23 - A - Adapt the CVE auditing functionality to depend on OVAL data #7335
Commits on Aug 2, 2023
-
Configuration menu - View commit details
-
Copy full SHA for f0224ab - Browse repository at this point
Copy the full SHA f0224abView commit details -
Create OVAL objects, states and tests managers
- It's an optimization to enable faster lookups of OVAL resources
Configuration menu - View commit details
-
Copy full SHA for 4239ce2 - Browse repository at this point
Copy the full SHA 4239ce2View commit details -
Create a facade class that offers mock implementations for Uyuni APIs
- This class is temporary and will be removed when the integration with Uyuni is complete.
Configuration menu - View commit details
-
Copy full SHA for e7a1741 - Browse repository at this point
Copy the full SHA e7a1741View commit details -
Configuration menu - View commit details
-
Copy full SHA for b1cfcf7 - Browse repository at this point
Copy the full SHA b1cfcf7View commit details -
Add OVAL Criteria and Criterion types
- Also, implemented the composite design pattern to enable the evaluation of the criteria tree
Configuration menu - View commit details
-
Copy full SHA for f102c18 - Browse repository at this point
Copy the full SHA f102c18View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5c27921 - Browse repository at this point
Copy the full SHA 5c27921View commit details -
- This is a temporary implementation based on JAXB API which consumes a lot of memory. I plan to rewrite it with StAX for better performance.
Configuration menu - View commit details
-
Copy full SHA for f34c943 - Browse repository at this point
Copy the full SHA f34c943View commit details -
Configuration menu - View commit details
-
Copy full SHA for 819aa38 - Browse repository at this point
Copy the full SHA 819aa38View commit details -
Configuration menu - View commit details
-
Copy full SHA for 619bfd4 - Browse repository at this point
Copy the full SHA 619bfd4View commit details -
Configuration menu - View commit details
-
Copy full SHA for c7e7d51 - Browse repository at this point
Copy the full SHA c7e7d51View commit details -
Configuration menu - View commit details
-
Copy full SHA for 04476ab - Browse repository at this point
Copy the full SHA 04476abView commit details -
Configuration menu - View commit details
-
Copy full SHA for ffca7c1 - Browse repository at this point
Copy the full SHA ffca7c1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2956986 - Browse repository at this point
Copy the full SHA 2956986View commit details -
Configuration menu - View commit details
-
Copy full SHA for b151d4b - Browse repository at this point
Copy the full SHA b151d4bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 8e39a3f - Browse repository at this point
Copy the full SHA 8e39a3fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 6bff303 - Browse repository at this point
Copy the full SHA 6bff303View commit details -
Configuration menu - View commit details
-
Copy full SHA for 918eb42 - Browse repository at this point
Copy the full SHA 918eb42View commit details -
Configuration menu - View commit details
-
Copy full SHA for b036e0d - Browse repository at this point
Copy the full SHA b036e0dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 4d50042 - Browse repository at this point
Copy the full SHA 4d50042View commit details -
Configuration menu - View commit details
-
Copy full SHA for dd488c4 - Browse repository at this point
Copy the full SHA dd488c4View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5985980 - Browse repository at this point
Copy the full SHA 5985980View commit details -
Configuration menu - View commit details
-
Copy full SHA for c3d5e68 - Browse repository at this point
Copy the full SHA c3d5e68View commit details -
Create OVALVulnerablePackage and OVALPlatformVulnerablePackage entiti…
…es and their corresponding tables
Configuration menu - View commit details
-
Copy full SHA for f8ac354 - Browse repository at this point
Copy the full SHA f8ac354View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3f9099c - Browse repository at this point
Copy the full SHA 3f9099cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 0b02ef2 - Browse repository at this point
Copy the full SHA 0b02ef2View commit details -
Configuration menu - View commit details
-
Copy full SHA for 53f55e8 - Browse repository at this point
Copy the full SHA 53f55e8View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5006275 - Browse repository at this point
Copy the full SHA 5006275View commit details -
Configuration menu - View commit details
-
Copy full SHA for c94f5f3 - Browse repository at this point
Copy the full SHA c94f5f3View commit details -
Configuration menu - View commit details
-
Copy full SHA for d179293 - Browse repository at this point
Copy the full SHA d179293View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8855941 - Browse repository at this point
Copy the full SHA 8855941View commit details -
Configuration menu - View commit details
-
Copy full SHA for da4f1e7 - Browse repository at this point
Copy the full SHA da4f1e7View commit details -
Configuration menu - View commit details
-
Copy full SHA for a1aebe6 - Browse repository at this point
Copy the full SHA a1aebe6View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3cfd061 - Browse repository at this point
Copy the full SHA 3cfd061View commit details -
Reference one cve per OVAL definition
- Right now we're only processing vulnerability definitions which reference one cve per definition, so it's redundant to have a list of cves when it's going to always have one element.
Configuration menu - View commit details
-
Copy full SHA for 6e66ac8 - Browse repository at this point
Copy the full SHA 6e66ac8View commit details -
Configuration menu - View commit details
-
Copy full SHA for 41a1c66 - Browse repository at this point
Copy the full SHA 41a1c66View commit details -
Configuration menu - View commit details
-
Copy full SHA for 09f6a67 - Browse repository at this point
Copy the full SHA 09f6a67View commit details -
Configuration menu - View commit details
-
Copy full SHA for 82d170d - Browse repository at this point
Copy the full SHA 82d170dView commit details -
Configuration menu - View commit details
-
Copy full SHA for e0a54c9 - Browse repository at this point
Copy the full SHA e0a54c9View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1809487 - Browse repository at this point
Copy the full SHA 1809487View commit details -
Configuration menu - View commit details
-
Copy full SHA for 22b9018 - Browse repository at this point
Copy the full SHA 22b9018View commit details -
Configuration menu - View commit details
-
Copy full SHA for 08115ed - Browse repository at this point
Copy the full SHA 08115edView commit details -
Add source column to the oval definition table
- This column represents the source from which we fetched the definition
Configuration menu - View commit details
-
Copy full SHA for 742ba10 - Browse repository at this point
Copy the full SHA 742ba10View commit details -
Configuration menu - View commit details
-
Copy full SHA for ce2680e - Browse repository at this point
Copy the full SHA ce2680eView commit details -
Configuration menu - View commit details
-
Copy full SHA for e3e21c3 - Browse repository at this point
Copy the full SHA e3e21c3View commit details -
Configuration menu - View commit details
-
Copy full SHA for c5a9c74 - Browse repository at this point
Copy the full SHA c5a9c74View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1596afe - Browse repository at this point
Copy the full SHA 1596afeView commit details -
Configuration menu - View commit details
-
Copy full SHA for 704d862 - Browse repository at this point
Copy the full SHA 704d862View commit details -
Configuration menu - View commit details
-
Copy full SHA for e130606 - Browse repository at this point
Copy the full SHA e130606View commit details -
Configuration menu - View commit details
-
Copy full SHA for f9e53c2 - Browse repository at this point
Copy the full SHA f9e53c2View commit details -
Configuration menu - View commit details
-
Copy full SHA for d66211b - Browse repository at this point
Copy the full SHA d66211bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 9894fc7 - Browse repository at this point
Copy the full SHA 9894fc7View commit details -
Store platform cpe instead of plain name
- CPE is easier to parse
Configuration menu - View commit details
-
Copy full SHA for e5c0e00 - Browse repository at this point
Copy the full SHA e5c0e00View commit details -
Configuration menu - View commit details
-
Copy full SHA for dda21a7 - Browse repository at this point
Copy the full SHA dda21a7View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7be2d5d - Browse repository at this point
Copy the full SHA 7be2d5dView commit details -
Configuration menu - View commit details
-
Copy full SHA for f6b49d3 - Browse repository at this point
Copy the full SHA f6b49d3View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4a31d77 - Browse repository at this point
Copy the full SHA 4a31d77View commit details -
Configuration menu - View commit details
-
Copy full SHA for 46fd638 - Browse repository at this point
Copy the full SHA 46fd638View commit details -
Configuration menu - View commit details
-
Copy full SHA for 980cd4d - Browse repository at this point
Copy the full SHA 980cd4dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 10d11fc - Browse repository at this point
Copy the full SHA 10d11fcView commit details -
Modify the vulnerable packages extractor to use database entities ins…
…tead of oval types
Configuration menu - View commit details
-
Copy full SHA for 32e71b6 - Browse repository at this point
Copy the full SHA 32e71b6View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5b77a69 - Browse repository at this point
Copy the full SHA 5b77a69View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1e4b28f - Browse repository at this point
Copy the full SHA 1e4b28fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 0831a7f - Browse repository at this point
Copy the full SHA 0831a7fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 87b1aab - Browse repository at this point
Copy the full SHA 87b1aabView commit details -
Configuration menu - View commit details
-
Copy full SHA for 9e8b470 - Browse repository at this point
Copy the full SHA 9e8b470View commit details -
Configuration menu - View commit details
-
Copy full SHA for dd6f0f2 - Browse repository at this point
Copy the full SHA dd6f0f2View commit details -
Configuration menu - View commit details
-
Copy full SHA for b5706b0 - Browse repository at this point
Copy the full SHA b5706b0View commit details -
Add a query to fetch all packages installed on a system mapped to a m…
…ore lightweight DTO
Configuration menu - View commit details
-
Copy full SHA for 41e81e0 - Browse repository at this point
Copy the full SHA 41e81e0View commit details -
Go back to fetching all packages
- It's more efficient in terms of speed. And memory footprint shouldn't be a problem since we're using a lightweight DTO
Configuration menu - View commit details
-
Copy full SHA for f063415 - Browse repository at this point
Copy the full SHA f063415View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9d49313 - Browse repository at this point
Copy the full SHA 9d49313View commit details -
Fallback to using channels if OVAL data is not available or synced fo…
…r the given system
Configuration menu - View commit details
-
Copy full SHA for 61b6e55 - Browse repository at this point
Copy the full SHA 61b6e55View commit details -
Configuration menu - View commit details
-
Copy full SHA for ff02aa0 - Browse repository at this point
Copy the full SHA ff02aa0View commit details -
Move the OVAL algorithm implementation to CVEAuditManagerOVAL
- The idea here is decouple CVEAuditManager from the rest of the app by replacing all calls to CVEAuditManager to CVEAuditManagerOVAL, and make the CVEAuditManagerOVAL#listSystemsByPatchStatus method fallback to CVEAuditManager#listSystemsByPatchStatus when the system cannot be audited with OVAL (OVAL not synced or not supported by the system's OS). This way, in the future, when all distributions become supported for performing OVAL-based CVE auditing, we can just delete CVEAuditManager and its test class. - CVEAuditManager contains also methods for managing the CVE channels. For now, we can create the same methods in CVEAuditManagerOVAL and redirect them to their equivalent in CVEAuditManager. But in the future, when we don't need CVEAuditManager anymore, we can move them entirely to CVEAuditManagerOVAL or put them in their own class. - The upside is that we can keep the tests for CVEAuditManager, which tests the channels-based algorithm, and we make the transition later when we don't need the channels algorithm anymore, easier. The downside is a lot of potential duplication in CVEAuditManagerOVAL tests given that need to maintain both channels and OVAL-based implementations.
Configuration menu - View commit details
-
Copy full SHA for 72fb551 - Browse repository at this point
Copy the full SHA 72fb551View commit details -
Decouple CVEAuditManager completely from the rest of the code
- Now, it's only used by CVEAuditManagerOVAL and CVEAuditManagerTest
Configuration menu - View commit details
-
Copy full SHA for 75b2b92 - Browse repository at this point
Copy the full SHA 75b2b92View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4f6ef2b - Browse repository at this point
Copy the full SHA 4f6ef2bView commit details -
Configuration menu - View commit details
-
Copy full SHA for ac96e1a - Browse repository at this point
Copy the full SHA ac96e1aView commit details -
Configuration menu - View commit details
-
Copy full SHA for b0ba072 - Browse repository at this point
Copy the full SHA b0ba072View commit details -
- Test fails with exception 'could not initialize proxy - no Session' otherwise
Configuration menu - View commit details
-
Copy full SHA for 5487dd2 - Browse repository at this point
Copy the full SHA 5487dd2View commit details -
Configuration menu - View commit details
-
Copy full SHA for f014f9b - Browse repository at this point
Copy the full SHA f014f9bView commit details -
Configuration menu - View commit details
-
Copy full SHA for ad3f82f - Browse repository at this point
Copy the full SHA ad3f82fView commit details -
Remove custom caching of OVALPlatform objects
- Since the hashmap used for caching was defined as a static field, it created collision between testcases
Configuration menu - View commit details
-
Copy full SHA for 5535f90 - Browse repository at this point
Copy the full SHA 5535f90View commit details -
Configuration menu - View commit details
-
Copy full SHA for aab8021 - Browse repository at this point
Copy the full SHA aab8021View commit details -
Configuration menu - View commit details
-
Copy full SHA for eb4600a - Browse repository at this point
Copy the full SHA eb4600aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 6d23722 - Browse repository at this point
Copy the full SHA 6d23722View commit details -
Remove uninstalled vulnerable packages
- Because they are irrelevant and their presence could lead to false evaluations
Configuration menu - View commit details
-
Copy full SHA for 3a2be39 - Browse repository at this point
Copy the full SHA 3a2be39View commit details -
Configuration menu - View commit details
-
Copy full SHA for dd3cbbb - Browse repository at this point
Copy the full SHA dd3cbbbView commit details -
Configuration menu - View commit details
-
Copy full SHA for ce7074c - Browse repository at this point
Copy the full SHA ce7074cView commit details -
Configuration menu - View commit details
-
Copy full SHA for e223378 - Browse repository at this point
Copy the full SHA e223378View commit details -
Configuration menu - View commit details
-
Copy full SHA for e438fb1 - Browse repository at this point
Copy the full SHA e438fb1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3a32664 - Browse repository at this point
Copy the full SHA 3a32664View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0a88aad - Browse repository at this point
Copy the full SHA 0a88aadView commit details -
Configuration menu - View commit details
-
Copy full SHA for 63c4442 - Browse repository at this point
Copy the full SHA 63c4442View commit details -
Configuration menu - View commit details
-
Copy full SHA for 29f6399 - Browse repository at this point
Copy the full SHA 29f6399View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1a3eb05 - Browse repository at this point
Copy the full SHA 1a3eb05View commit details -
Configuration menu - View commit details
-
Copy full SHA for 78a3efe - Browse repository at this point
Copy the full SHA 78a3efeView commit details -
Configuration menu - View commit details
-
Copy full SHA for ad89456 - Browse repository at this point
Copy the full SHA ad89456View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4e015ae - Browse repository at this point
Copy the full SHA 4e015aeView commit details -
Configuration menu - View commit details
-
Copy full SHA for e67ba6f - Browse repository at this point
Copy the full SHA e67ba6fView commit details -
Configuration menu - View commit details
-
Copy full SHA for e083e6b - Browse repository at this point
Copy the full SHA e083e6bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 4be0d3a - Browse repository at this point
Copy the full SHA 4be0d3aView commit details