-
Notifications
You must be signed in to change notification settings - Fork 37
SCA: Implement Execution Logic #687
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
Comments
UpdateAt the moment, I’m focused on analyzing the wm_sca_do_scan function to understand how the SCA module evaluates and processes individual checks. This includes examining how it handles different rule types (file, command, process, etc.), manages variable substitution, selects the appropriate regex engine, and applies aggregation strategies (ALL, ANY, NONE). I’m also looking into how results are collected, how events are built and sent, and how the function interacts with the cis_db_for_hash structure to prevent duplicate alerts. |
UpdateStarted implementing an abstraction for the policy classes that will carry the execution logic. |
UpdateI continue to design and implement the rule evaluation classes. |
UpdateRefactored the current code, implemented parsing functions to separate rule types from pattern, negation marks, sorting variables and replacing them. |
UpdateOpened draft PR with most rule evaluators drafted #753 |
UpdateRe implemented |
Implemented missing logic in evaluators and added tests to all of them but Registry type. |
Fixed some issues that were incorporated with the latest rebase. |
Implemented a new |
Corrected some comments on PR, which is now opened and ready for review. |
Description
This task involves executing SCA policy checks, including commands, file and directory checks, registry evaluations, and process inspections. Each check must run as an independent coroutine to allow scan interruptions at any time. Common helper libraries (e.g., cmdHelper, file_helper, registryHelper) should be used to streamline implementation.
Tasks
Research & Design
Development
Unit Testing
Documentation
Definition of Done
The text was updated successfully, but these errors were encountered: