Hi Paulo,
Thanks for the clarification.
For check 35721, the correct condition is none. This condition means the check passes only when none of its rules match. With this change, the check passes when rsyslog has no active imtcp configuration, matching the control’s intent.
If you manage it from the agent, edit the sca file at /var/ossec/ruleset/sca/cis_ubuntu_linux_24.04.yml. If you use centralized policies from the Manager, apply the change there.
Please update the condition field to none in check 35721. It should look like this:
condition: none
rules:
- 'f:/etc/rsyslog.conf -> r:^\s*\t*module\(load="imtcp"\)'
- 'd:/etc/rsyslog.d -> r:\.*.conf -> r:^\s*\t*module\(load="imtcp"\)'
- 'f:/etc/rsyslog.conf -> r:^\s*\t*input\(type="imtcp" port="514"\)'
- 'd:/etc/rsyslog.d -> r:\.*.conf -> r:^\s*\t*input\(type="imtcp" port="514"\)'
We already identified the issue and are reviewing the fix for the next Wazuh release.
Reference documentation: