Bash Shell Profile Modification
Both ~/.bash_profile and ~/.bashrc are files containing shell commands that are run when Bash is invoked. These files are executed in a user's context, either interactively or non-interactively, when a user logs in…
Description
Both ~/.bash_profile and ~/.bashrc are files containing shell commands that are run when Bash is invoked. These files are executed in a user's context, either interactively or non-interactively, when a user logs in so that their environment is set correctly. Adversaries may abuse this to establish persistence by executing malicious content triggered by a user’s shell.
Detection logic
Its licence does not clear it for publishing here
Sunturai publishes a detection's own text where the licence it arrived under has been reviewed and permits it, and Elastic License 2.0 has not. The query as its source wrote it, its canonical form and the hash that pins this revision are in the workspace record.
Detection requirements
- Platform
- IaaSLinuxmacOSOffice SuiteSaaSWindows
The rule states no platform. This is derived from the ATT&CK technique it maps to.
- Log source category
- event_index
Known benign triggers
- Changes to the Shell Profile tend to be noisy, a tuning per your environment will be required.
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 |
|---|---|
| www.anomali.com/blog/pulling-linux-rabbit-rabbot-malware-out-of-a-hat | 2from 2 sources |
From the source
- At source
- Open at source
- Upstream identifier
- e6c1a552-7776-44ad-ae0f-8746cc07773c
- Tagged by the source as
- Data Source: Elastic DefendDomain: EndpointNoise: HighOS: LinuxOS: macOSPerformance: NormalPlatform: LinuxPlatform: macOSProfile: AggressiveResources: Investigation GuideRule Type: Custom Query (KQL)Tactic: PersistenceUse Case: Threat Detection
Licence
- Published under
- Elastic License 2.0Read the licence
- Attribution
- Required
Authorship
- Written by
- Published
- Sep 20, 2026
- Version
- 3