sca
New in version 3.9.0.
Settings to run Security Configuration Assessment scans.
Main options
Main options |
Allowed values |
|---|---|
yes, no |
|
yes, no |
|
N/A |
Scheduling options
Scheduling options |
Allowed values |
|---|---|
yes, no |
|
A positive number + suffix |
|
A day of the month |
|
A day of the week |
|
A time of the day [hh:mm] |
In the SCA documentation are shown some cases of using these options.
Main options
enabled
Enables the module.
Default value |
yes |
Allowed values |
yes, no |
skip_nfs
Enable or disable the scanning of network mounted filesystems (Works on Linux and FreeBSD).
Currently, skip_nfs will exclude checking files on CIFS or NFS mounts.
Default value |
yes |
Allowed values |
yes, no |
policies
Between <policy> tags, in this section it can be included policy files to run assessments.
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. |
Example
<policies>
<policy>cis_debian_rcl.yml</policy>
<policy>cis_apache2224_rcl.yml</policy>
<policy>system_audit_rcl.yml</policy>
</policies>
<policies>
<policy enabled="no">cis_apache2224_rcl.yml</policy>
</policies>
Scheduling options
scan_on_start
The SCA module will perform the scan inmediately when started.
Default value |
yes |
Allowed values |
yes, no |
interval
Interval between module executions.
Default value |
12h |
Allowed values |
A positive number that should contain a suffix character indicating a time unit, such as, s (seconds), m (minutes), h (hours), d (days), w (weeks), M (months) |
The interval option is conditioned by the following described options day, wday and time. If none of these options are set, the interval can take any allowed value.
day
Day of the month to run the scan.
Default value |
n/a |
Allowed values |
Day of the month [1..31] |
Note
When the day option is set, the interval value must be a multiple of months. By default, the interval is set to a month.
wday
Day of the week to run the scan. This option is not compatible with the day option.
Default value |
n/a |
Allowed values |
|
Note
When the wday option is set, the interval value must be a multiple of weeks. By default, the interval is set to a week.
time
Time of the day to run the scan. It has to be represented in the format hh:mm.
Default value |
n/a |
Allowed values |
Time of day [hh:mm] |
Note
When only the time option is set, the interval value must be a multiple of days. By default, the interval is set to a day.
Configuration example
<sca>
<enabled>yes</enabled>
<scan_on_start>yes</scan_on_start>
<time>04:00</time>
<skip_nfs>yes</skip_nfs>
<policies>
<policy>cis_debian_rcl.yml</policy>
<policy>cis_apache2224_rcl.yml</policy>
<policy>/var/ossec/etc/shared/test-group/cis_mysql5-6_enterprise_rcl.yml</policy>
</policies>
</sca>