ATT&CK Reference
Portfolio

TA0003 · PERSISTENCE

Unix Shell Configuration Modification

T1546.004Sub-technique of Event Triggered ExecutionLinux · macOSattack.mitre.org

Adversaries may establish persistence through executing malicious commands triggered by a user’s shell. User Unix Shells execute several configuration scripts at different points throughout the session based on events.

Detect it with

While users may customize their shell profile files, there are only certain types of commands that typically appear in these files.

Why it matters on shift

Unix Shell Configuration Modification is one of the concrete ways adversaries achieve persistence. Recognising it in telemetry lets you name the technique in your ticket and pivot to what came before and after.

What to look for next

After persistence, the next tactic is usually Privilege Escalation. Search your telemetry for the transition before closing the ticket.

Kill-chain context

← beforeExecutionPersistenceafter →Privilege Escalation