Monitoring process to look for a app running
simple
agent runs a file that it points to every x amount of minutes
make a bat file called tasklist.bat
put the file in a folder location C:/ can be anywhere really
this script just gets all processes as a task list
put the below command inside of
<ossec_config>
add the remaining steps like decoder and rule follow the process at: https://documentation.wazuh.com/current/user-manual/capabilities/command-monitoring/use-cases/monitoring-running-processes.html
note to change what app the alert goes to the rule you created:
regex type="pcre2">(?i)Paint.exe</regex>
change paint.exe to any ext in the tasks list<description>Paint.exe is running.</description>
is just what the alert will print out
Last updated