{"id":"bb382fd5-b454-47ea-a264-1828e4c766d6","title":"Shell Invocation via Apt - Linux","description":"Detects the use of the \"apt\" and \"apt-get\" commands to execute a shell or proxy commands.\nSuch behavior may be associated with privilege escalation, unauthorized command execution, or to break out from restricted environments.\n","author":"Nasreddine Bencherchali (Nextron Systems)","status":"test","level":"medium","date":"2022-12-28","modified":"2024-09-02","tags":["attack.discovery","attack.t1083"],"technique_ids":["T1083"],"logsource":{"category":"process_creation","product":"linux"},"falsepositives":["Unknown"],"references":["https://gtfobins.github.io/gtfobins/apt/","https://gtfobins.github.io/gtfobins/apt-get/"],"source_path":"rules/linux/process_creation/proc_creation_lnx_apt_shell_execution.yml","source_sha256":"5e753ae13af54d59834b4d54930dfce7ef17d943ae274574bfae5529a050964e","source_url":"https://github.com/anpa1200/sigma/blob/b249e9683190cffdcaf188ccbfb90bf4759844e1/rules/linux/process_creation/proc_creation_lnx_apt_shell_execution.yml","license":"Detection Rule License 1.1","license_url":"https://github.com/SigmaHQ/Detection-Rule-License/blob/main/LICENSE.Detection.Rules.md","yaml":"title: Shell Invocation via Apt - Linux\nid: bb382fd5-b454-47ea-a264-1828e4c766d6\nstatus: test\ndescription: |\n    Detects the use of the \"apt\" and \"apt-get\" commands to execute a shell or proxy commands.\n    Such behavior may be associated with privilege escalation, unauthorized command execution, or to break out from restricted environments.\nreferences:\n    - https://gtfobins.github.io/gtfobins/apt/\n    - https://gtfobins.github.io/gtfobins/apt-get/\nauthor: Nasreddine Bencherchali (Nextron Systems)\ndate: 2022-12-28\nmodified: 2024-09-02\ntags:\n    - attack.discovery\n    - attack.t1083\nlogsource:\n    category: process_creation\n    product: linux\ndetection:\n    selection:\n        Image|endswith:\n            - '/apt'\n            - '/apt-get'\n        CommandLine|contains: 'APT::Update::Pre-Invoke::='\n    condition: selection\nfalsepositives:\n    - Unknown\nlevel: medium\n","validation":"yaml_parsed_not_backend_compiled_or_live_validated","techniques":[{"key":"enterprise/T1083","id":"T1083","name":"File and Directory Discovery","page":"techniques/enterprise/T1083/"}],"data_path":"data/detection-rules/bb382fd5-b454-47ea-a264-1828e4c766d6.json","kind":"sigma"}
