Detectionmediumtest

Shell Invocation via Apt - Linux

Detects the use of the "apt" and "apt-get" commands to execute a shell or proxy commands. Such behavior may be associated with privilege escalation, unauthorized command execution, or to break out from restricted environments.

Open in Detection LabConvert ruleBuild Package
Nasreddine BencherchaliCreated 2022-12-28Updated 2024-09-02bb382fd5-b454-47ea-a264-1828e4c766d6linux
Log Source
LinuxProcess Creation
ProductLinux← raw: linux
CategoryProcess Creation← raw: process_creation

Events generated when a new process is spawned on the system. Covers command-line arguments, parent/child relationships, and process metadata.

Detection Logic
Detection Logic1 selector
detection:
    selection:
        Image|endswith:
            - '/apt'
            - '/apt-get'
        CommandLine|contains: 'APT::Update::Pre-Invoke::='
    condition: selection
False Positives
Unknown

False positive likelihood has not been assessed. Additional context may be needed during triage.

Rule Metadata
Rule ID
bb382fd5-b454-47ea-a264-1828e4c766d6
Status
test
Level
medium
Type
Detection
Created
2022-12-28
Modified
2024-09-02
Path
rules/linux/process_creation/proc_creation_lnx_apt_shell_execution.yml
Raw Tags
attack.discoveryattack.t1083
View on GitHub