Sigma rule: Privileged User Has Been Created

A detection rule from the SigmaHQ repository, shown as its author published it. Dataset version ref-f35acfbc9a00, updated 2025-01-21T00:00:00.000Z.

Rule

Title
Privileged User Has Been Created
Status
test
Level
high
Author
Pawel Mazur
Date
2022-12-21
Modified
2025-01-21
File
rules/linux/builtin/lnx_privileged_user_creation.yml
Commit
ccbb0369507f796db0b0ae6854c8a2be471b9d84

Detects the addition of a new user to a privileged group such as "root" or "sudo"

Log source

product
linux
definition
/var/log/secure on REHL systems or /var/log/auth.log on debian like Systems needs to be collected in order for this detection to work

Detection

# Example of the events that could be observed when matching these would be as follow
#   Dec 21 16:42:19 testserver useradd[1337]: new user: name=butter1, UID=1000, GID=0, home=/root, shell=/bin/bash
#   Dec 21 17:13:54 testserver useradd[1337]: new user: name=john, UID=0, GID=0, home=/home/john, shell=/bin/bash
#   Dec 21 17:24:40 testserver useradd[1337]: new user: name=butter3, UID=1000, GID=10, home=/home/butter3, shell=/bin/bash
#   Dec 21 17:30:22 testserver useradd[1337]: new user: name=butter4, UID=1000, GID=27, home=/home/butter4, shell=/bin/bash
selection_new_user:
    - 'new user'
selection_uids_gids:
    - 'GID=0,' # root group
    - 'UID=0,' # root UID
    - 'GID=10,' # wheel group
    - 'GID=27,' # sudo group
condition: all of selection_*

False positives (as the rule lists them)

  • Administrative activity

Tags

  • attack.privilege-escalation
  • attack.persistence
  • attack.t1136.001
  • attack.t1098

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/builtin/lnx_privileged_user_creation.yml

Sources and licences

  • SigmaHQ

    "Privileged User Has Been Created" by Pawel Mazur (SigmaHQ). Rule: https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules/linux/builtin/lnx_privileged_user_creation.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: Privileged User Has Been Created",
entity page, dataset version ref-f35acfbc9a00, updated 2025-01-21T00:00:00.000Z,
https://ransomware-tracker.com/detections/sigma/0ac15ec3-d24f-4246-aa2a-3077bb1cf90e (accessed 2026-11-03).
Underlying source: SigmaHQ rule 0ac15ec3-d24f-4246-aa2a-3077bb1cf90e, 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.