Linux sudoers persistence via /etc/sudoers or /etc/sudoers.d file changes

Alerts on file changes in /etc/sudoers.d/ that may indicate persistence via sudo privilege policy.

FreeReviewedSigma · Medium · v5
Product
linux
Category
file_event
Author
Nasreddine Bencherchali (Nextron Systems) (SigmaHQ), DRL 1.1
Published
2022-07-05
Updated
2026-09-24

ATT&CK techniques

Priv Esc → Defense Evasion
  1. Recon

  2. Resource Dev

  3. Initial Access

  4. Execution

  5. Persistence

  6. Cred Access

  7. Discovery

  8. Lateral Movement

  9. Collection

  10. C2

  11. Exfiltration

  12. Impact

What it detects

This rule flags file creation or modification events for the main /etc/sudoers file and any file under the /etc/sudoers.d/ directory on Linux. Changes to sudoers configuration can enable attackers to run commands with elevated privileges without interactive password prompts. The detection relies on Linux file event telemetry that records the target filename, excluding a specific dpkg-related temporary sudoers.d README.dpkg-new path.

Related detections5 linkedT1548.003 — drag to rearrange
Suspicious su Execution From Uncommon Parent Process on Linux (via process_creation)
Suspicious Sudoers NOPASSWD Rule Written For Passwordless Privilege Escalation
Suspicious macOS Privilege Escalation Piping Password to sudo
Linux sudo CVE-2019-14287 exploit attempt via unusual USER strings
Linux Sudo Privilege Escalation Attempt Matching CVE-2019-14287 Command-Line Pattern
Linux sudoers persistence via /etc/sudoers or /etc/sudoers.d file changes
Pivot detection · T1548.003 · 5 related

Changelog

v5
  1. v5
    Candidate ingested via manual entry.2026-09-24
  2. v3
    Candidate ingested via manual entry.2026-07-31
  3. v2
    Candidate ingested via manual entry.2026-07-31
  4. 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.