Elastic unknown experimental kql
Low Occurrence of Suspicious Launch Agent or Launch Daemon
This hunt looks for persistence via Launch agent or daemon where the distribution is limited to one unique host.
Detection Logic
from logs-endpoint.events.file-*
| where @timestamp > now() - 7 day
| where host.os.family == "macos" and event.category == "file" and event.action == "launch_daemon" and
(Persistence.runatload == true or Persistence.keepalive == true) and process.executable is not null
| eval args = MV_CONCAT(Persistence.args, ",")
/* normalizing users home profile */
| eval args = replace(args, """/Users/[a-zA-Z0-9ñ\.\-\_\$~ ]+/""", "/Users/user/")
| stats agents = count_distinct(host.id), total = count(*) by process.name, Persistence.name, args
| where starts_with(args, "/") and agents == 1 and total == 1 False Positives
- ⚠ Further investigation can done pivoting by `Persistence.name` and `args`.
Field Validations
Loading…
Comments (0)
Loading comments...