Hi, thank you for using Wazuh!
To accomplish this, you have to identify the rule that triggers when any successful login happens, in this case, rule ID
60106. Now, once this rule is triggered, you get the user information in the field called
win.eventdata.targetUserNameWith this, you can create a new rule that tries to match that userName with your admin users so you know when any admin logs in to that computer.
Now, you will have to create a list of all of your admin users, as Windows does not bring the user's group information. To do this, you will have to create a
CDB list with the names of your admin users and save it to your manager's /var/ossec/etc/lists.
Then, you'll have to
create a custom rule to get that information. In this case, you can do as follows:
<rule id="100010" level="12">
<if_sid>60106</if_sid>
<list field="
win.eventdata.targetUserName " lookup="match_key">etc/lists/admin-user-list</list>
<description>Admin user logged into $(win.system.computer)</description>
</rule>
This rule will only alert you when any user that is present on the list logs-in.
Please let me know if there's anything else I can help you with.
Regards,
Jose Camargo