Suspicious Shell Profile Persistence via bashrc Modification

PremiumReviewedSigma · Medium · v1
Product
linux
Category
process_creation
Author
HuntRule
Published
2026-11-01
Updated
2026-11-01

ATT&CK techniques

Persistence → Priv Esc
  1. Recon

  2. Resource Dev

  3. Initial Access

  4. Execution

  5. Defense Evasion

  6. Cred Access

  7. Discovery

  8. Lateral Movement

  9. Collection

  10. C2

  11. Exfiltration

  12. Impact

What it detects

This rule detects a command appending content to a user .bashrc file, a persistence technique that executes attacker code each time an interactive shell starts. The PoC exploit backdoor uses this to relaunch itself and maintain access across sessions.

Related detections5 linkedT1546.004 — drag to rearrange
Malicious BlueNoroff Zshenv Persistence Marker Creation via tmp Init File (via file_event)
Suspicious Shell Profile Persistence Injection with Downloader
Malicious Koske Persistence via Systemd Service and Shell Profile Hijack (via process_creation)
Suspicious Shell Profile Persistence Modification (via process_creation)
Linux Auditd: Unix Shell Configuration File Modification
Suspicious Shell Profile Persistence via bashrc Modification
Pivot detection · T1546.004 · 5 related

Detection content is published as a reviewed draft. Tune thresholds and exclusions against your own telemetry before enabling this rule for alerting.