Process Execution From Shared Memory Directory

Detects the execution of a binary from the Linux shared memory directory /dev/shm. This directory is a tmpfs mount backed entirely by RAM and is abused by attackers for fileless malware staging because files written there never touch physical disk and may evade disk-based detection.

Sigma rule (View on GitHub)

 1title: Process Execution From Shared Memory Directory
 2id: 5cd16c8f-44a6-4654-81e7-a84d6db507d4
 3status: experimental
 4description: |
 5    Detects the execution of a binary from the Linux shared memory directory /dev/shm.
 6    This directory is a tmpfs mount backed entirely by RAM and is abused by attackers for fileless malware staging because files written there never touch physical disk and may evade disk-based detection.    
 7references:
 8    - https://www.sysdig.com/blog/containers-read-only-fileless-malware
 9    - https://unfinished.bike/fun-with-the-new-bpfdoor-2023
10    - https://asiapacificdefencereporter.com/wp-content/uploads/2023/08/Final-CRWD-2023-Threat-Hunting-Report.pdf
11    - https://www.crowdstrike.com/en-us/blog/how-to-hunt-for-decisivearchitect-and-justforfun-implant/
12    - https://www.linkedin.com/posts/avradeep_malware-apt-infostealer-activity-7373203959697719296-JR-7
13    - https://www.stormshield.com/news/orbit-analysis-of-a-linux-dedicated-malware/
14author: Stan Beukers
15date: 2026-06-20
16tags:
17    - attack.stealth
18    - attack.execution
19    - attack.t1027.011
20logsource:
21    category: process_creation
22    product: linux
23detection:
24    selection:
25        Image|startswith: '/dev/shm/'
26    condition: selection
27falsepositives:
28    - Unlikely in production environments; some container runtimes or IPC frameworks may use /dev/shm for inter-process communication but should not spawn executables.
29level: high

References

Related rules

to-top