heroui logo

Linux Sudoers Tmp File Creation

Splunk Security Content

View Source
Summary
The analytic rule detects the creation of the 'sudoers.tmp' file on Linux systems, which is triggered when the /etc/sudoers file is edited with tools like visudo. This temporary file serves as an indication that an adjustment is being made to sudo privileges, which can potentially be exploited by attackers for privilege escalation if they gain access to the system. By monitoring the filesystem for the presence of 'sudoers.tmp' files, security teams can catch unauthorized modifications and thereby prevent malicious actors from gaining elevated permissions through modification of the sudoers configuration, which could allow them to execute commands as other users, including root. The rule uses Sysmon for Linux EventID 11 for detection, ensuring that all relevant filesystem changes are logged and analyzed. Effective implementation requires proper log ingestion from endpoints and adherence to the specified filters to minimize false positives, particularly in environments where legitimate administrative actions may occur.
Categories
  • Linux
  • Endpoint
Data Sources
  • File
ATT&CK Techniques
  • T1548.003
  • T1548
Created: 2025-01-27