Linux process execution via apt/apt-get Pre-Invoke shell command

Detects apt/apt-get executions using APT::Update::Pre-Invoke to trigger shell-like command execution.

FreeReviewedSigma · Medium · v3
Product
linux
Category
process_creation
Author
Nasreddine Bencherchali (Nextron Systems) (SigmaHQ), DRL 1.1
Published
2022-12-28
Updated
2026-07-31

ATT&CK techniques

Discovery
  1. Recon

  2. Resource Dev

  3. Initial Access

  4. Execution

  5. Persistence

  6. Priv Esc

  7. Defense Evasion

  8. Cred Access

  9. Lateral Movement

  10. Collection

  11. C2

  12. Exfiltration

  13. Impact

What it detects

This rule flags Linux process creation where the executable path ends with /apt or /apt-get and the command line includes APT::Update::Pre-Invoke=. Attackers may use apt’s Pre-Invoke feature to run arbitrary shell or proxy commands during package update workflows, which can help with unauthorized command execution or privilege escalation attempts. It relies on process creation telemetry containing the process image path and full command line.

Related detections9 linkedT1083 — drag to rearrange
Possible Nagios XI Path Traversal via Graphtemplates Directory Parameter
Suspicious Credential String Enumeration via findstr to Temp Directory
Suspicious ipconfig Reconnaissance Output Redirected to CentreStack Log File
Possible osTicket PHP Filter Chain Injection via Anonymous Ticket Endpoints (via webserver)
Possible Local File Inclusion Path Traversal Targeting CentreStack Web.config
PUA: TruffleHog Execution on Windows via trufflehog.exe Process Launch
Linux Process Execution of TruffleHog with Secret-Scanning Platforms
Windows: Notepad Password File Discovery via Process Creation
Linux process execution of shell via nice utility
Linux process execution via apt/apt-get Pre-Invoke shell command
Pivot detection · T1083 · 9 related

Changelog

v3
  1. v3
    Candidate ingested via manual entry.2026-07-31
  2. v2
    Candidate ingested via manual entry.2026-07-31
  3. v1
    No changelog recorded for this version.2026-07-30

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