sca
This section covers the configuration for the Security Configuration Assessment module.
Settings to run Security Configuration Assessment scans.
Options
Main options
skip_nfs (deprecated)
Scheduling options
day, wday, time (deprecated)
enabled
Enables the module.
Default value |
yes |
Allowed values |
yes, no |
policies
Contains one <policy> element per policy file to run.
Default value |
n/a |
Allowed values |
Any YAML policy file |
Attributes
enabled |
Offers the possibility to disable a policy when it has been enabled previously. |
Note
The Wazuh agent runs every policy (.yaml or .yml file) in its ruleset/sca folder, even when this section is missing. Use <policy enabled="no"> to disable one of them.
Note
A relative policy path is relative to the Wazuh agent installation directory. For a policy outside the installation directory, use a full path.
Example
<policies>
<policy>ruleset/sca/cis_debian10.yml</policy>
<policy>/path/to/my/policy.yml</policy>
</policies>
max_eps
Maximum number of events per second the SCA module sends.
Default value |
50 |
Allowed values |
Integer from 0 to 1000000 |
synchronization
Settings for synchronizing the SCA results database with the Wazuh manager.
<synchronization>
<enabled>yes</enabled>
<interval>5m</interval>
<integrity_interval>24h</integrity_interval>
</synchronization>
Option |
Description |
Default |
Allowed values |
|---|---|---|---|
|
Enables periodic synchronization. |
yes |
yes, no |
|
Time between synchronizations. |
5m (300 seconds) |
Positive time value with optional suffix s, m, h or d. 0 is not allowed. |
|
Time between integrity checks of the synchronized data. |
24h (86400 seconds) |
Non-negative time value with optional suffix s, m, h or d. |
skip_nfs
Deprecated since version 5.0.0: This option has no effect in Wazuh 5.0. The SCA module still accepts it so configurations from Wazuh 4.x agents don't fail, and logs a deprecation warning when it finds it.
scan_on_start
The SCA module will perform the scan immediately when started.
Default value |
yes |
Allowed values |
yes, no |
interval
The interval between module executions.
Default value |
1d (86400 seconds) |
Allowed values |
A positive number with an optional suffix: s (seconds), m (minutes), h (hours) or d (days). A number without a suffix is in seconds. |
day, wday, time
Deprecated since version 5.0.0: These scheduling options have no effect in Wazuh 5.0. The SCA module runs on interval only. It still accepts them so configurations from Wazuh 4.x agents don't fail, and logs a deprecation warning when it finds one.
Sample configuration
<sca>
<enabled>yes</enabled>
<scan_on_start>yes</scan_on_start>
<policies>
<policy>ruleset/sca/cis_debian10.yml</policy>
<policy enabled="no">ruleset/sca/cis_debian9.yml</policy>
<policy>/my/custom/policy/path/my_policy.yaml</policy>
</policies>
</sca>