Linux File Creation In Profile Directory
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…
Description
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.
Detection logic
Detection requirements
- Platform
- LinuxmacOS
The rule states no platform. This is derived from the ATT&CK technique it maps to.
- Log source category
- sysmon_for_linux_eventid_11
Known benign triggers
- Administrator or network operator can create file in profile.d folders for automation purposes. Please update the filter macros to remove false positives.
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 |
|---|---|
| attack.mitre.org/techniques/T1546/004/ | 2 |
| www.intezer.com/blog/research/kaiji-new-chinese-linux-malware-turning-to-golang/ | 5 |
From the source
- At source
- Open at source
- Upstream identifier
- 46ba0082-61af-11ec-9826-acde48001122
- Tagged by the source as
- Linux Persistence TechniquesLinux Privilege EscalationEndpointendpointSplunk CloudSplunk EnterpriseSplunk Enterprise Securityendpoint
Licence
- Published under
- Apache License 2.0Read the licence
- Attribution
- Required
- Obtained under
- Apache-2.0Read the origin licence
Authorship
- Written by
- Published
- Aug 26, 2026
- Version
- 1