Suspicious Shell Invocation through Apt - Linux (via process_creation)
This rule detects the use of the "apt" and "apt-get" commands to execute a shell or proxy commands. Such behavior may be linked with privilege escalation, unauthorized command execution, or to break out from restricted environments.
SigmamediumLinuxv1
sigma
suspicious-shell-invocation-through-apt-linux-via-process-creation
title: Suspicious Shell Invocation through Apt - Linux (via process_creation)
id: 8a3ec369-2f8d-545c-aa16-ce1ce68ec12c
status: stable
description: This rule detects the use of the "apt" and "apt-get" commands to execute a shell or proxy commands. Such behavior may be linked with privilege escalation, unauthorized command execution, or to break out from restricted environments.
references:
- https://attack.mitre.org/techniques/T1083/
- https://gtfobins.github.io/gtfobins/apt/
- https://gtfobins.github.io/gtfobins/apt-get/
author: Huntrule Team
date: 2026-03-18
tags:
- attack.discovery
- attack.t1083
logsource:
category: process_creation
product: linux
detection:
selection:
Image|endswith:
- '/apt'
- '/apt-get'
CommandLine|contains: 'APT::Update::Pre-Invoke::='
condition: selection
falsepositives:
- Unknown
level: medium
Known false positives
- Unknown
Detection content is published as a reviewed draft. Tune thresholds and exclusions against your own telemetry before enabling this rule for alerting.