Linux: usermod used to add users to root or sudoers groups

Detects usermod commands that append a user to root or sudoers groups, indicating potential privilege escalation persistence.

FreeReviewedSigma · Medium · v2
Product
linux
Category
process_creation
Author
TuanLe (GTSC) (SigmaHQ), DRL 1.1
Published
2022-12-21
Updated
2026-07-31

What it detects

This rule flags Linux process executions where the binary path ends with /usermod and the command line includes group-add options targeting root or sudoers. Attackers commonly use this pattern to grant persistent administrative privileges to an account without deploying new software. The detection relies on process creation telemetry with executable path and full command-line arguments.

Changelog

v2
  1. v2
    Candidate ingested via manual entry.2026-07-31
  2. v1
    No changelog recorded for this version.2026-07-30

Detection content is published as a reviewed draft. Tune thresholds and exclusions against your own telemetry before enabling this rule for alerting.