Linux find Command Used to Discover SUID/SGID and World-Writable Files

Alerts on Linux usage of /find with setuid/sgid and permissive permission filters, consistent with discovery activity.

FreeReviewedSigma · Medium · v2
Product
linux
Category
process_creation
Author
Nasreddine Bencherchali (Nextron Systems) (SigmaHQ), DRL 1.1
Published
2022-12-28
Updated
2026-07-31
title: Linux find Command Used to Discover SUID/SGID and World-Writable Files
id: e07f2949-0818-45b1-a1ab-28685fe32c35
related:
  - id: 85de3a19-b675-4a51-bfc6-b11a5186c971
    type: similar
  - id: 8344c0e5-5783-47cc-9cf9-a0f7fd03e6cf
    type: derived
status: test
description: This rule flags process executions of the find binary when command-line arguments match common searches for high-risk file permissions, including SUID/SGID and world-writable/executable paths. Attackers use find to quickly identify potentially exploitable files and misconfigurations during discovery. It relies on process creation telemetry that provides the executed image path and the full command line.
references:
  - https://github.com/SaiSathvik1/Linux-Privilege-Escalation-Notes
  - https://github.com/SigmaHQ/sigma/blob/master/rules/linux/process_creation/proc_creation_lnx_susp_find_execution.yml
author: Nasreddine Bencherchali (Nextron Systems), Huntrule Team
date: 2022-12-28
tags:
  - attack.discovery
  - attack.t1083
logsource:
  category: process_creation
  product: linux
detection:
  selection:
    Image|endswith: /find
    CommandLine|contains:
      - -perm -4000
      - -perm -2000
      - -perm 0777
      - -perm -222
      - -perm -o w
      - -perm -o x
      - -perm -u=s
      - -perm -g=s
  condition: selection
falsepositives:
  - Unknown
level: medium
license: DRL-1.1