Then, I define two rules 100200 and 100201, the former would alert for any changes in /test/password files and the latter would alert if the root's hash has been changed (more precisely any modification after the user root) :
Then once a change is performed in hash for the user root, the alert root line modified would be triggered, else the generic File modified in /test/password to be generated for any other change to the file, as shown below :
The same procedure can be applied to your file /etc/lib/password_file.
Hope this helps.
Regards, Elwali Karkoub
ektadhu...@gmail.com
unread,
Jan 12, 2021, 6:58:05 AM1/12/21
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Wazuh mailing list
Thanks Elwali.
But how I can define this for any particular Linux machine rather than defining it globally.
Regards,
Ekta
elw...@wazuh.com
unread,
Jan 12, 2021, 7:19:19 AM1/12/21
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
Option 2: Access the machine X and add the configuration to the file /var/ossec/etc/ossec.conf then restart the agent to apply it systemctl restart wazuh-agent.