T1546.004 · Unix Shell Configuration Modification

Linux File Creation In Profile Directory

  • Linux
  • Behavioral Signal

About this detection

The following analytic detects the creation of files in the /etc/profile.d directory on Linux systems. It leverages filesystem data to identify new files in this directory, which is often used by adversaries for persistence by executing scripts upon system boot. This activity is significant as it may indicate an attempt to maintain long-term access to the compromised host. If confirmed malicious, this could allow attackers to execute arbitrary code with elevated privileges each time the system boots, potentially leading to further compromise and data exfiltration.

Sysmon event coverage

  • FileCreate

Sysmon XML

Download XML

Loading configuration…