Possible GTFOBins Shell Breakout via apt Command

PremiumReviewedSigma · Medium · v1
Product
linux
Category
process_creation
Author
HuntRule
Published
2026-07-30
Updated
2026-08-28

ATT&CK techniques

Execution → Defense Evasion
  1. Recon

  2. Resource Dev

  3. Initial Access

  4. Persistence

  5. Cred Access

  6. Discovery

  7. Lateral Movement

  8. Collection

  9. C2

  10. Exfiltration

  11. Impact

What it detects

This rule detects the apt or apt-get package manager spawning an interactive shell, a GTFOBins technique used to escape restricted shells or escalate privileges when apt runs under sudo. Package managers do not normally launch shells, so this parent-child relationship indicates a shell breakout attempt.

Related detections9 linkedT1059.004 — drag to rearrange
Possible GTFOBins Shell Breakout via Unix Utilities
Suspicious Base64 Decoded Payload Piped to Shell on Linux
Suspicious Netcat Reverse Shell via Named Pipe on Linux via Process Creation (via process_creation)
Suspicious OpenClaw Skill File Modification via File Event
Possible TP-Link Command Injection via WlanNetworkRpm Endpoint (via webserver)
Suspicious Base64 Decoded Shell Dropper via Command Line
Possible Mirai IoT Payload Staging via chmod on Linux (via process_creation)
Malicious Command Injection Probe via node Spawning Shell Arithmetic Echo (via process_creation)
Malicious Reverse Shell via bash dev tcp Redirection (via process_creation)
Possible GTFOBins Shell Breakout via apt Command
Pivot detection · T1059.004 · 9 related

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