This project provides a solution for Security Configuration Assessment (SCA) using Wazuh. The solution includes checks, rules, and remediations to ensure compliance with security benchmarks.
In summary, sca_check.py
automates the process of analyzing system configurations and applying solutions to
ensure compliance with security standards, with a focus on leveraging Wazuh's tailored remediation strategies.
- Python 3.x installed on your system.
- PyYAML library installed (
pip install PyYAML
if not already installed). - Sudo Privileges
./sca_check.py cis_path [--solutions=""] [--check-only=""]
cis_path
(mandatory): The path or URL to the CIS benchmark file in YAML format.--solutions
(optional): The path or URL to the Wazuh SCA solutions file in YAML format.--check-only
(optional): comma-separated list of check ids (if given, only these checks will be checked).
If --solutions
is not specified, the script will attempt to find it beside the cis_path
and ending in _solutions.yml
.
For example if cis_path
is set to/path/to/cis_my_os_version.yml
then the --solutions
will be /path/to/cis_my_os_version_solutions.yml
Run the script without downloading the repository:
-
bash -c "$(curl -s "https://raw.githubusercontent.com/Elyasnz/wazuh-sca-solution/master/ruleset/alma/8/apply")"
-
bash -c "$(curl -s "https://raw.githubusercontent.com/Elyasnz/wazuh-sca-solution/master/ruleset/ubuntu/22-04/apply")"
To contribute, please fork the repository, create a feature branch, and submit a pull request.