architecture/wm_sca/Readme.md
The security configuration assessment module (SCA) performs hardening and configuration scans following YML policies, which are created and maintained by Wazuh's team based on CIS benchmarks.
This module is composed of a main thread, from which two other secondary threads diverge. These threads are:
The main thread: In charge of parsing and converting to JSON the YML policies. These policies are then stored and executed accordingly.
wm_sca_dump_db_thread: In charge of dumping the scan results into the manager's SCA database.
wm_sca_request_thread: In charge of processing dump requests from the manager when synchronization fails.
The provided sequence diagram shows the basic flow of Wazuh's SCA module. The main steps are:
ossec.conf.wm_sca_dump_db_thread.wm_sca_request_thread keeps processing manager requests to ensure the synchronization succeeded