Detectionlowtest
Setuid and Setgid
Detects suspicious change of file privileges with chown and chmod commands
Log Source
LinuxProcess Creation
ProductLinux← raw: linux
CategoryProcess Creation← raw: process_creation
Events generated when a new process is spawned on the system. Covers command-line arguments, parent/child relationships, and process metadata.
Detection Logic
Detection Logic2 selectors
detection:
selection_root:
CommandLine|contains: 'chown root'
selection_perm:
CommandLine|contains:
- ' chmod u+s'
- ' chmod g+s'
condition: all of selection_*False Positives
Legitimate administration activities
References
MITRE ATT&CK
Sub-techniques
Rule Metadata
Rule ID
c21c4eaa-ba2e-419a-92b2-8371703cbe21
Status
test
Level
low
Type
Detection
Created
2020-06-16
Modified
2022-10-05
Author
Path
rules/linux/process_creation/proc_creation_lnx_setgid_setuid.yml
Raw Tags
attack.persistenceattack.privilege-escalationattack.t1548.001