Hi all,
Since I can only find instances of people asking about the error without them providing the log i figured I'd skip the initial response from the wazuh team. Hopefully this helps identify that there is a comman in some of the windows user groups that needs to either be santized by the log collector or escaped properly please see below:
2022/12/10 07:26:31 wazuh-analysisd[6168] syscheck_op.c:1615 at win_perm_to_json(): DEBUG: Uncontrolled condition when parsing a Windows permission from 'Users (allowed): READ_CONTROL|READ_DATA|READ_EA|WRITE_EA, Administrators (allowed): DELETE|READ_CONTROL|WRITE_DAC|WRITE_OWNER|READ_DATA|WRITE_DATA|APPEND_DATA|READ_EA|WRITE_EA|EXECUTE, SYSTEM (allowed): DELETE|READ_CONTROL|WRITE_DAC|WRITE_OWNER|READ_DATA|WRITE_DATA|APPEND_DATA|READ_EA|WRITE_EA|EXECUTE, NETWORK SERVICE (allowed): DELETE|READ_CONTROL|READ_DATA|WRITE_DATA|APPEND_DATA|READ_EA|WRITE_EA|EXECUTE, LOCAL SERVICE (allowed): READ_CONTROL|READ_DATA|READ_EA|WRITE_EA, Network Configuration Operators (allowed): DELETE|READ_CONTROL|READ_DATA|WRITE_DATA|APPEND_DATA|READ_EA|WRITE_EA, Dhcp (allowed): DELETE|READ_CONTROL|READ_DATA|WRITE_DATA|APPEND_DATA|READ_EA|WRITE_EA, OWNER RIGHTS (allowed): READ_CONTROL, WwanSvc (allowed): READ_CONTROL|READ_DATA|WRITE_DATA|APPEND_DATA|READ_EA|WRITE_EA, ALL APPLICATION PACKAGES (allowed): READ_CONTROL|READ_DATA|READ_EA|WRITE_EA, Your Internet connection (allowed): READ_CONTROL|READ_DATA|READ_EA|WRITE_EA, Your Internet connection, including incoming connections from the Internet (allowed): READ_CONTROL|READ_DATA|READ_EA|WRITE_EA, Your home or work networks (allowed): READ_CONTROL|READ_DATA|READ_EA|WRITE_EA, S-1-15-3-4214768333-1334025770-122408079-3919188833 (allowed): READ_CONTROL|READ_DATA|READ_EA|WRITE_EA'.
2022/12/10 07:26:31 wazuh-analysisd[6168] to_json.c:361 at Eventinfo_to_jsonstr(): ERROR: The new permissions could not be added to the JSON alert.
Any guidance you can provide on how to resolve the issue or mute the error would be appreciated. If necessary I can generate an issue in github.
Thanks,
Chris Xedis