Detects a creation of systemd services which could be used by adversaries to execute malicious code.
Description
Detects a creation of systemd services which could be used by adversaries to execute malicious code.
Query · wazuh
field audit.directory.nametype="CREATE" AND field audit.directory.name="^/usr/lib/systemd/system/|^/etc/systemd/system/|/.config/systemd/user/"
No license declared
socfortress/Wazuh-Rules publishes no license, and without an express grant the default is all rights reserved. The query above is synthesized from the rule rather than copied out of it, so you can see what the rule matches on; the rule as written stays upstream.
Read the full rule at Auditd/200110-auditd.xml ↗. Why this rule is treated this way.
Fires when
Wazuh evaluates a chain top-down. Every rule above this one must match on the same event before this rule is tested at all.
-
decoded_as=auditd-path -
200184Detects a creation of systemd services which could be used by adversaries to execute malicious code. refinement level 10 this rulefield audit.directory.nametype="CREATE" AND field audit.directory.name="^/usr/lib/systemd/system/|^/etc/systemd/system/|/.config/systemd/user/"
Rule dependencies
Depends on
-
composes · Wazuh if_sid
200112