heroui logo

Potential Process Self-Deletion

Elastic Detection Rules

View Source
Summary
This rule detects Linux processes that delete their own executable from common temporary, shared-memory, system, web, or user directories. When a file deletion event occurs (event.category:file, event.type:deletion, event.action:deletion) and the deleted path exactly matches the deleting process's executable path (case-sensitive), the rule triggers. It specifically looks for executables deleted from directories such as /tmp, /var/tmp, /dev/shm, /run, /var/run, /boot, /sys, /lost+found, /proc, /var/mail, /var/www, /home/*, /root, and relative paths like ./ *. This pattern is characteristic of self-deleting malware attempting to erase artifacts after execution. The detection is powered by Elastic Defend data flowing through Elastic Agent/Fleet and uses logs-endpoint.events.file-* alongside process.executable and file.path fields. The rule maps to MITRE ATT&CK technique T1070 (Indicator Removal), subtechnique T1070.004 (File Deletion), under the Defense Evasion tactic TA0005. It includes triage guidance, false-positive considerations, and remediation steps, such as preserving volatile evidence, isolating the host, quarantining artifacts, rotating credentials, and potentially reimaging. Prerequisites require the Elastic Defend integration via Fleet. The rule has a medium severity and a risk score of 47, indicating a notable but not the highest level of concern. The intent is to aid rapid detection of self-deleting payloads while providing guidance to verify legitimacy (e.g., installers or cleanup tools) to minimize false positives.
Categories
  • Endpoint
  • Linux
Data Sources
  • Process
  • File
ATT&CK Techniques
  • T1070
  • T1070.004
Created: 2026-11-10