Setuid and Setgid
Detects suspicious change of file privileges with chown and chmod commands
Sigma rule (View on GitHub)
1title: Setuid and Setgid
2id: c21c4eaa-ba2e-419a-92b2-8371703cbe21
3status: test
4description: Detects suspicious change of file privileges with chown and chmod commands
5references:
6 - https://github.com/redcanaryco/atomic-red-team/blob/f339e7da7d05f6057fdfcdd3742bfcf365fee2a9/atomics/T1548.001/T1548.001.md
7author: Ömer Günal
8date: 2020-06-16
9modified: 2022-10-05
10tags:
11 - attack.persistence
12 - attack.privilege-escalation
13 - attack.t1548.001
14logsource:
15 product: linux
16 category: process_creation
17detection:
18 selection_root:
19 CommandLine|contains: 'chown root'
20 selection_perm:
21 CommandLine|contains:
22 - ' chmod u+s'
23 - ' chmod g+s'
24 condition: all of selection_*
25falsepositives:
26 - Legitimate administration activities
27level: low
References
Related rules
- Win Susp Computer Name Containing Samtheadmin
- Github SSH Certificate Configuration Changed
- Kubernetes CronJob/Job Modification
- Suspicious SQL Query
- Windows LAPS Credential Dump From Entra ID