title: Hunt - Linux Anonymous File Execution
id: afc1e20b-3eae-46fd-b736-e14b639f3a66
status: experimental
description: Detects process paths or command lines associated with memfd and procfs file-descriptor execution.
author: MagicSword OpenAttacks catalog
date: 2026-11-06
references:
  - https://github.com/elastic/detection-rules/blob/main/rules/linux/defense_evasion_fileless_execution_via_unusual_memfd_create.toml
falsepositives:
  - Legitimate runtimes, updaters, and security software using anonymous files
level: medium
logsource:
  category: process_creation
  product: linux
detection:
  selection_image:
    Image|contains:
      - /memfd:
      - /proc/self/fd/
      - /proc/thread-self/fd/
  selection_command:
    CommandLine|contains:
      - memfd:
      - /proc/self/fd/
      - /proc/thread-self/fd/
  condition: 1 of selection_*
