2020-01-30 17:26:09 +01:00
title : Edit of .bash_profile and .bashrc
2019-11-12 23:12:27 +01:00
id : e74e15cc-c4b6-4c80-b7eb-dfe49feb7fe9
2019-05-12 02:07:13 +02:00
status : experimental
description : Detects change of user environment. Adversaries can insert code into these files to gain persistence each time a user logs in or opens a new shell.
2020-09-13 22:03:04 -06:00
author : Peter Matkovski
date : 2019 /05/12
2019-05-12 02:07:13 +02:00
references :
- 'MITRE Attack technique T1156; .bash_profile and .bashrc. '
logsource :
product : linux
service : auditd
detection :
selection :
type : 'PATH'
name :
- '/home/*/.bashrc'
2020-01-30 17:26:09 +01:00
- '/home/*/.bash_profile'
2019-05-12 02:07:13 +02:00
- '/home/*/.profile'
- '/etc/profile'
- '/etc/shells'
- '/etc/bashrc'
- '/etc/csh.cshrc'
- '/etc/csh.login'
condition : selection
falsepositives :
- Admin or User activity
level : medium
2020-09-13 22:03:04 -06:00
tags :
- attack.s0003
- attack.t1156 # an old one
- attack.persistence
- attack.t1546.004