// MITRE ATT&CK

T1546.005 · Trap

🎯 Privilege Escalation macOSLinux Sub-technique

Sub-technique of T1546 · Event Triggered Execution.

Adversaries may establish persistence by executing malicious content triggered by an interrupt signal. The trap command allows programs and shells to specify commands that will be executed upon receiving interrupt signals. A common situation is a script allowing for graceful termination...

How to detect & mitigate it

Detecting Trap starts with your SIEM/EDR telemetry. Write a detection rule with the Sigma generator, analyze suspicious logs in the log analyzer, and place the technique on your coverage with the ATT&CK matrix.

Related techniques

Source: MITRE ATT&CK®. ATT&CK is a registered trademark of The MITRE Corporation. Content for educational purposes.