Detectionlowtest

Setuid and Setgid

Detects suspicious change of file privileges with chown and chmod commands

Open in Detection LabConvert ruleBuild Package
Ömer GünalCreated 2020-06-16Updated 2022-10-05c21c4eaa-ba2e-419a-92b2-8371703cbe21linux
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

Rule Metadata
Rule ID
c21c4eaa-ba2e-419a-92b2-8371703cbe21
Status
test
Level
low
Type
Detection
Created
2020-06-16
Modified
2022-10-05
Path
rules/linux/process_creation/proc_creation_lnx_setgid_setuid.yml
Raw Tags
attack.persistenceattack.privilege-escalationattack.t1548.001
View on GitHub