Reference tables / ATT&CK techniques / T1548.003
T1548.003 Sudo and Sudo Caching
- Tactics
- Privilege Escalation
- Reports citing the ID, 90 days
- 1
- KEV CVEs mapped
- 0
- SigmaHQ rules
- 3
- Elastic, Splunk
- 52
- thrunt rules
- 0
- MITRE
- https://attack.mitre.org/techniques/T1548/003
Rules
SigmaHQ community rules
- Persistence Via Sudoers Files (core)
- Sudo Privilege Escalation CVE-2019-14287 - Builtin (emerging-threats)
- Sudo Privilege Escalation CVE-2019-14287 (emerging-threats)
Elastic and Splunk rules
- Potential Privilege Escalation via Sudoers File Modification (elastic)
- Sudoers File Activity (elastic)
- Modification of Persistence Relevant Files Detected via Defend for Containers (elastic)
- Suspicious Echo or Printf Execution Detected via Defend for Containers (elastic)
- Potential Persistence via File Modification (elastic)
- Excessive Sudo Authentication Failures via macOS Security Events (elastic)
- Potential Defense Evasion via Doas (elastic)
- Sudo Command Enumeration Detected (elastic)
- Pod or Container Creation with Suspicious Command-Line (elastic)
- Potential Suspicious File Edit (elastic)
- Potential CVE-2025-32463 Sudo Chroot Execution Attempt (elastic)
- Potential Sudo Privilege Escalation via CVE-2019-14287 (elastic)
- Potential Sudo Hijacking (elastic)
- Potential Sudo Token Manipulation via Process Injection (elastic)
- Suspicious SUID Binary Execution (elastic)
- Suspicious SUID Binary Execution (Auditd Sequence) (elastic)
- Linux APT Privilege Escalation (splunk)
- Linux Auditd Doas Conf File Creation (splunk)
- Linux Auditd Doas Tool Execution (splunk)
- Linux Auditd Nopasswd Entry In Sudoers File (splunk)
- Linux Auditd Possible Access To Sudoers File (splunk)
- Linux Auditd Sudo Or Su Execution (splunk)
- Linux AWK Privilege Escalation (splunk)
- Linux Busybox Privilege Escalation (splunk)
- Linux c89 Privilege Escalation (splunk)
Showing 25 of 52.
MITRE description
Adversaries may perform sudo caching and/or use the sudoers file to elevate privileges. Adversaries may do this to execute commands as other users or spawn processes with higher privileges. Within Linux and MacOS systems, sudo (sometimes referred to as "superuser do") allows users to perform commands from terminals with elevated privileges and to control who can perform these commands on the system. The <code>sudo</code> command "allows a system administrator to delegate authority to give certain users (or groups of users) the ability to run some (or all) commands as root or another user while providing an audit trail of the commands and their arguments." Since sudo was made for the system administrator, it has some useful configuration features such as a <code>timestamp_timeout</code>, which is the amount of time in minutes between instances of <code>sudo</code> before it will re-prompt for a password. This is because <code>sudo</code> has the ability to cache credentials for a period of time. Sudo creates (or touches) a file at <code>/var/db/sudo</code> with a timestamp of when sudo was last run to determine this timeout. Additionally, there is a <code>tty_tickets</code> variable that treats each new tty (terminal session) in isolation. This means that, for example, the sudo timeout of one tty will not affect another tty (you will have to type the password again). The sudoers file, <code>/etc/sudoers</code>, describes which users can run which commands and from which terminals. This also describes which commands users can run as other users or groups. This provides the principle of least privilege such that users are running in their lowest possible permissions for most of the time and only elevate to other users or permissions as needed, typically by prompting for a password. However, the sudoers file can also specify when to not prompt users for passwords with a line like <code>user1 ALL=(ALL) NOPASSWD: ALL</code>. Elevated privileges are required to edit this file though. Adversaries can also abuse poor configurations of these mechanisms to escalate privileges without needing the user's password. For example, <code>/var/db/sudo</code>'s timestamp can be monitored to see if it falls within the <code>timestamp_timeout</code> range. If it does, then malware can execute sudo commands without needing to supply the user's password. Additionally, if <code>tty_tickets</code> is disabled, adversaries can do this from any tty for that user. In the wild, malware has disabled <code>tty_tickets</code> to potentially make scripting easier by issuing <code>echo \'Defaults !tty_tickets\' >> /etc/sudoers</code>. In order for this change to be reflected, the malware also issued <code>killall Terminal</code>. As of macOS Sierra, the sudoers file has <code>tty_tickets</code> enabled by default.
Research citing this technique
Reports and advisories from the last 90 days that cite this technique.
-
2026-12-01Microsoft Threat Intelligence: Threat actors use AI-assisted framework to target Linux systems source