Persistence Via Sudoers Files
Detects the creation or modification of the main "/etc/sudoers" file or files within the "/etc/sudoers.d/" directory on Linux systems. Adversaries may alter sudoers configuration to execute commands with elevated…
Description
Detects the creation or modification of the main "/etc/sudoers" file or files within the "/etc/sudoers.d/" directory on Linux systems. Adversaries may alter sudoers configuration to execute commands with elevated privileges without supplying a password.
Detection logic
Detection requirements
- Platform
- LinuxmacOS
The rule states no platform. This is derived from the ATT&CK technique it maps to.
- Log source product
- linux
- Log source category
- file_event
Known benign triggers
- Legitimate sudoers changes by administrators or configuration-management tools
MITRE ATT&CK mappings
0 exclusive techniques.This is coverage no other published rule has; it is not this rule's total technique count.
References
| Reference | Cited by |
|---|---|
| github.com/h3xduck/TripleCross/blob/1f1c3e0958af8ad9f6ebe10ab442e75de33e91de/apps/deployer.sh | 2 |
| www.sudo.ws/docs/man/sudoers.man/ | Only this detection cites it |
From the source
- At source
- Open at source
- Upstream identifier
- ddb26b76-4447-4807-871f-1b035b2bfa5d
- Tagged by the source as
- attack.persistenceattack.privilege-escalation
Licence
- Published under
- Detection Rule License 1.1Read the licence
- Attribution
- Required
Authorship
- Published
- Sep 25, 2026
- Version
- 2