Linux Auditd: Program Executions from Suspicious Web and Data Directories

Alerts on Linux process creation when the executed binary path begins with commonly abused temp/web/data directories.

FreeReviewedSigma · Medium · v3
Product
linux
Service
auditd
Author
Florian Roth (Nextron Systems) (SigmaHQ), DRL 1.1
Published
2018-01-23
Updated
2026-07-31
title: "Linux Auditd: Program Executions from Suspicious Web and Data Directories"
id: cddddc7f-eed4-4694-b10f-612119dfc909
status: test
description: This rule flags Linux process executions where the executable path starts with commonly abused non-program directories associated with web, data, and service configuration locations. Attackers often place or run malicious binaries from writable or misused paths like web document roots or database/service data directories to evade standard application controls. It relies on Linux auditd syscall telemetry identifying the executed executable path via the SYSCALL event type.
references:
  - Internal Research
  - https://github.com/SigmaHQ/sigma/blob/master/rules/linux/auditd/syscall/lnx_auditd_susp_exe_folders.yml
author: Florian Roth (Nextron Systems), Huntrule Team
date: 2018-01-23
modified: 2021-11-27
tags:
  - attack.t1587
  - attack.t1584
  - attack.resource-development
logsource:
  product: linux
  service: auditd
detection:
  selection:
    type: SYSCALL
    exe|startswith:
      - /tmp/
      - /var/www/
      - /home/*/public_html/
      - /usr/local/apache2/
      - /usr/local/httpd/
      - /var/apache/
      - /srv/www/
      - /home/httpd/html/
      - /srv/http/
      - /usr/share/nginx/html/
      - /var/lib/pgsql/data/
      - /usr/local/mysql/data/
      - /var/lib/mysql/
      - /var/vsftpd/
      - /etc/bind/
      - /var/named/
  condition: selection
falsepositives:
  - Admin activity (especially in /tmp folders)
  - Crazy web applications
level: medium
license: DRL-1.1
related:
  - id: a39d7fa7-3fbd-4dc2-97e1-d87f546b1bbc
    type: derived