Sigma rule: Setuid and Setgid

A detection rule from the SigmaHQ repository, shown as its author published it. Dataset version ref-a1b98b0fc7f2, updated 2022-10-05T00:00:00.000Z.

Rule

Title
Setuid and Setgid
Status
test
Level
low
Author
Ömer Günal
Date
2020-06-16
Modified
2022-10-05
File
rules/linux/process_creation/proc_creation_lnx_setgid_setuid.yml
Commit
ccbb0369507f796db0b0ae6854c8a2be471b9d84

Detects suspicious change of file privileges with chown and chmod commands

Log source

product
linux
category
process_creation

Detection

selection_root:
    CommandLine|contains: 'chown root'
selection_perm:
    CommandLine|contains:
        - ' chmod u+s'
        - ' chmod g+s'
condition: all of selection_*

False positives (as the rule lists them)

  • Legitimate administration activities

Tags

  • attack.persistence
  • attack.privilege-escalation
  • attack.t1548.001

MITRE ATT&CK ids this rule names

References

Read on 2026-11-03T00:58:21.399Z under licence sigma-drl-1.1@d5f4c36a from https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules/linux/process_creation/proc_creation_lnx_setgid_setuid.yml

Sources and licences

  • SigmaHQ

    "Setuid and Setgid" by Ömer Günal (SigmaHQ). Rule: https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules/linux/process_creation/proc_creation_lnx_setgid_setuid.yml.
    Licensed under the Detection Rule License (DRL) 1.1: https://github.com/SigmaHQ/Detection-Rule-License

    Detection Rule License (DRL) 1.1

Cite this page

Dragons Eye Ransomware Tracker, "Sigma rule: Setuid and Setgid",
entity page, dataset version ref-a1b98b0fc7f2, updated 2022-10-05T00:00:00.000Z,
https://ransomware-tracker.com/detections/sigma/c21c4eaa-ba2e-419a-92b2-8371703cbe21 (accessed 2026-11-03).
Underlying source: SigmaHQ rule c21c4eaa-ba2e-419a-92b2-8371703cbe21, commit ccbb0369507f796db0b0ae6854c8a2be471b9d84.

Pages change. The dataset version identifies the data, but no archive of old versions is kept, so this citation cannot be replayed later.