
Summary
The 'Bash Shell Profile Modification' rule is designed to detect unauthorized changes to user-specific shell profile files in bash, such as '.bash_profile' and '.bashrc'. These files execute scripts upon user login, making them an attractive target for adversaries aiming to achieve persistence. By monitoring file modifications associated with these profiles, the rule can identify potentially malicious changes that may allow execution of harmful scripts whenever a user initiates a shell session. The detection mechanism utilizes a query language (kuery) to filter out benign processes and focuses on suspicious file paths and processes that are atypical for user permissions. The rule is set to alert security teams to investigate unusual activities surrounding these critical configuration files for potential breaches or malicious persistence attempts.
Categories
- Endpoint
- Linux
- macOS
- Other
Data Sources
- File
- Process
- Logon Session
ATT&CK Techniques
- T1546
- T1546.004
Created: 2021-01-19