T1059 · Command and Scripting Interpreter

Linux Binary Executed from Shared Memory Directory

  • Linux
  • Behavioral Signal

About this detection

The following analytic identifies the execution of a binary by root from Linux shared memory directories (/dev/shm/ and /run/shm/). Threat actors place executables in these directories to persist on high-uptime servers as system backdoors. Both /dev/shm and /run/shm are tmpfs-backed directories that exist only in virtual memory with no persistent storage, making them attractive for staging fileless or semi-fileless malware while avoiding disk forensics.

Sysmon event coverage

  • ProcessCreate

Sysmon XML

Download XML

Loading configuration…