You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
description: Detects creation or permission changes that set the SUID (set-user-ID) or SGID (set-group-ID) bits on files — commonly used by attackers for privilege escalation or persistence.
6
5
references:
7
-
- https://attack.mitre.org/techniques/T1548/004/
6
+
- https://attack.mitre.org/techniques/T1548/004/
8
7
author: Sesha Duraiarasan
9
8
date: 2025-10-09
10
9
tags:
11
-
- attack.privilege-escalation
12
-
13
-
- attack.t1548
10
+
- attack.privilege-escalation
11
+
- attack.t1548
14
12
logsource:
15
-
product: linux
16
-
category: file_event
13
+
product: linux
14
+
category: file_event
17
15
detection:
18
-
selection_chmod:
19
-
Command|contains:
20
-
- 'chmod 4755'
21
-
- 'chmod 4750'
22
-
- 'chmod 4777'
23
-
- 'chmod 2755'
24
-
- 'chmod +s'
25
-
selection_tmp_paths:
16
+
selection_chmod:
17
+
Command|contains:
18
+
- 'chmod 4755'
19
+
- 'chmod 4750'
20
+
- 'chmod 4777'
21
+
- 'chmod 2755'
22
+
- 'chmod +s'
23
+
selection_tmp_paths:
26
24
TargetFilename|contains:
27
25
- '/tmp/'
28
26
- '/usr/local/bin/'
29
27
- '/opt/'
30
28
- '/home/'
31
-
selection_filemode:
29
+
selection_filemode:
32
30
FileMode|contains: 's'
33
-
condition: selection_chmod or (selection_tmp_paths and selection_filemode)
31
+
condition: selection_chmod or (selection_tmp_paths and selection_filemode)
34
32
falsepositives:
35
-
- Legitimate package installs or administrative tasks that intentionally set SUID/SGID on tools (consider whitelisting package manager operations or known installers).
36
-
- Legitimate package installs or administrative tasks that intentionally set SUID/SGID on tools (consider whitelisting package manager operations or known installers)
37
-
level: high
33
+
- Legitimate package installs or administrative tasks that intentionally set SUID/SGID on tools
0 commit comments