Linux mount executed with hidepid=2 option

Flags Linux mounts that include hidepid=2, a stealth configuration that hides processes from other users.

FreeReviewedSigma · Medium · v2
Product
linux
Category
process_creation
Author
Joseliyo Sanchez, @Joseliyo_Jstnk (SigmaHQ), DRL 1.1
Published
2023-01-12
Updated
2026-07-31
title: Linux mount executed with hidepid=2 option
id: 4ed87e41-6d36-4664-b6ca-83183bc3e519
status: test
description: This rule identifies process creation where the command executed is mount and the command line includes the hidepid=2 option with an output mount argument (" -o "). Attackers can use hidepid to reduce visibility of processes to other users, supporting stealth and defense evasion. Detection relies on Linux process creation telemetry including the executable path and full command line.
references:
  - https://blogs.blackberry.com/
  - https://www.cyberciti.biz/faq/linux-hide-processes-from-other-users/
  - https://twitter.com/Joseliyo_Jstnk/status/1620131033474822144
  - https://github.com/SigmaHQ/sigma/blob/master/rules/linux/process_creation/proc_creation_lnx_mount_hidepid.yml
author: Joseliyo Sanchez, @Joseliyo_Jstnk, Huntrule Team
date: 2023-01-12
tags:
  - attack.credential-access
  - attack.stealth
  - attack.t1564
logsource:
  product: linux
  category: process_creation
detection:
  selection:
    Image|endswith: /mount
    CommandLine|contains|all:
      - hidepid=2
      - " -o "
  condition: selection
falsepositives:
  - Unknown
level: medium
license: DRL-1.1
related:
  - id: ec52985a-d024-41e3-8ff6-14169039a0b3
    type: derived