Sigma rule: Linux Setgid Capability Set on a Binary via Setcap Utility

A detection rule from the SigmaHQ repository, shown as its author published it. Dataset version ref-19dddb582df8, updated 2026-01-24T00:00:00.000Z.

Rule

Title
Linux Setgid Capability Set on a Binary via Setcap Utility
Status
experimental
Level
low
Author
Luc Génaux
Date
2026-01-24
File
rules/linux/process_creation/proc_creation_lnx_cap_setgid.yml
Commit
ccbb0369507f796db0b0ae6854c8a2be471b9d84

Detects the use of the 'setcap' utility to set the 'setgid' capability (cap_setgid) on a binary file.
This capability allows a non privileged process to make arbitrary manipulations of group IDs (GIDs), including setting its current GID to a value that would otherwise be restricted (i.e. GID 0, the root group).
This behavior can be used by adversaries to backdoor a binary in order to escalate privileges again in the future if needed.

Log source

product
linux
category
process_creation

Detection

selection:
    Image|endswith: '/setcap'
    CommandLine|contains: 'cap_setgid'
condition: selection

False positives (as the rule lists them)

  • Unknown

Tags

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

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_cap_setgid.yml

Sources and licences

  • SigmaHQ

    "Linux Setgid Capability Set on a Binary via Setcap Utility" by Luc Génaux (SigmaHQ). Rule: https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules/linux/process_creation/proc_creation_lnx_cap_setgid.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: Linux Setgid Capability Set on a Binary via Setcap Utility",
entity page, dataset version ref-19dddb582df8, updated 2026-01-24T00:00:00.000Z,
https://ransomware-tracker.com/detections/sigma/3a716279-c18c-4488-83be-f9ececbfb9fc (accessed 2026-11-03).
Underlying source: SigmaHQ rule 3a716279-c18c-4488-83be-f9ececbfb9fc, 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.