{"id":"47b3bbd4-1bf7-48cc-84ab-995362aaa75a","title":"Shell Execution via Git - Linux","description":"Detects the use of the \"git\" utility to execute a shell. Such behavior may be associated with privilege escalation, unauthorized command execution, or to break out from restricted environments.\n","author":"Li Ling, Andy Parkidomo, Robert Rakowski, Blake Hartstein (Bloomberg L.P.)","status":"test","level":"high","date":"2024-09-02","modified":"","tags":["attack.execution","attack.t1059"],"technique_ids":["T1059"],"logsource":{"category":"process_creation","product":"linux"},"falsepositives":["Unknown"],"references":["https://gtfobins.github.io/gtfobins/git/#shell"],"source_path":"rules/linux/process_creation/proc_creation_lnx_git_shell_execution.yml","source_sha256":"d4b5ccea4904e8f522d51d36d18606e9c9941d65cf514bb6a396e90908a44331","source_url":"https://github.com/anpa1200/sigma/blob/b249e9683190cffdcaf188ccbfb90bf4759844e1/rules/linux/process_creation/proc_creation_lnx_git_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 Execution via Git - Linux\nid: 47b3bbd4-1bf7-48cc-84ab-995362aaa75a\nstatus: test\ndescription: |\n    Detects the use of the \"git\" utility to execute a shell. 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/git/#shell\nauthor: Li Ling, Andy Parkidomo, Robert Rakowski, Blake Hartstein (Bloomberg L.P.)\ndate: 2024-09-02\ntags:\n    - attack.execution\n    - attack.t1059\nlogsource:\n    category: process_creation\n    product: linux\ndetection:\n    selection:\n        ParentImage|endswith: '/git'\n        ParentCommandLine|contains|all:\n            - ' -p '\n            - 'help'\n        CommandLine|contains:\n            - 'bash 0<&1'\n            - 'dash 0<&1'\n            - 'sh 0<&1'\n    condition: selection\nfalsepositives:\n    - Unknown\nlevel: high\n","validation":"yaml_parsed_not_backend_compiled_or_live_validated","techniques":[{"key":"enterprise/T1059","id":"T1059","name":"Command and Scripting Interpreter","page":"techniques/enterprise/T1059/"}],"data_path":"data/detection-rules/47b3bbd4-1bf7-48cc-84ab-995362aaa75a.json","kind":"sigma"}
