Sigma rule: Linux Setuid Capability Set on a Binary via Setcap Utility
A detection rule from the SigmaHQ repository, shown as its author published it. Dataset version ref-7a803e525c78, updated 2026-01-24T00:00:00.000Z.
Rule
- Title
- Linux Setuid 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_setuid.yml
- Commit
- ccbb0369507f796db0b0ae6854c8a2be471b9d84
Detects the use of the 'setcap' utility to set the 'setuid' capability (cap_setuid) on a binary file.
This capability allows a non privileged process to make arbitrary manipulations of user IDs (UIDs), including setting its current UID to a value that would otherwise be restricted (i.e. UID 0, the root user).
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_setuid'
condition: selectionFalse 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
- https://man7.org/linux/man-pages/man8/setcap.8.html
- https://dfir.ch/posts/linux_capabilities/
- https://juggernaut-sec.com/capabilities/#cap_setuid
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_setuid.yml
Sources and licences
SigmaHQ
"Linux Setuid 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_setuid.yml.
Licensed under the Detection Rule License (DRL) 1.1: https://github.com/SigmaHQ/Detection-Rule-License
Cite this page
Dragons Eye Ransomware Tracker, "Sigma rule: Linux Setuid Capability Set on a Binary via Setcap Utility",
entity page, dataset version ref-7a803e525c78, updated 2026-01-24T00:00:00.000Z,
https://ransomware-tracker.com/detections/sigma/ed447910-bc30-4575-a598-3a2e49516a7a (accessed 2026-11-03).
Underlying source: SigmaHQ rule ed447910-bc30-4575-a598-3a2e49516a7a, 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.