{"id":"9b5de532-a757-4d70-946c-1f3e44f48b4d","title":"Shell Execution GCC  - Linux","description":"Detects the use of the \"gcc\" 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.discovery","attack.t1083"],"technique_ids":["T1083"],"logsource":{"category":"process_creation","product":"linux"},"falsepositives":["Unknown"],"references":["https://gtfobins.github.io/gtfobins/gcc/#shell","https://gtfobins.github.io/gtfobins/c89/#shell","https://gtfobins.github.io/gtfobins/c99/#shell","https://www.elastic.co/guide/en/security/current/linux-restricted-shell-breakout-via-linux-binary-s.html"],"source_path":"rules/linux/process_creation/proc_creation_lnx_gcc_shell_execution.yml","source_sha256":"f9ecc685a401ff181227570f25997aa17f4faa184437ff8948cb29d2c7063669","source_url":"https://github.com/anpa1200/sigma/blob/b249e9683190cffdcaf188ccbfb90bf4759844e1/rules/linux/process_creation/proc_creation_lnx_gcc_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 GCC  - Linux\nid: 9b5de532-a757-4d70-946c-1f3e44f48b4d\nstatus: test\ndescription: |\n    Detects the use of the \"gcc\" 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/gcc/#shell\n    - https://gtfobins.github.io/gtfobins/c89/#shell\n    - https://gtfobins.github.io/gtfobins/c99/#shell\n    - https://www.elastic.co/guide/en/security/current/linux-restricted-shell-breakout-via-linux-binary-s.html\nauthor: Li Ling, Andy Parkidomo, Robert Rakowski, Blake Hartstein (Bloomberg L.P.)\ndate: 2024-09-02\ntags:\n    - attack.discovery\n    - attack.t1083\nlogsource:\n    category: process_creation\n    product: linux\ndetection:\n    selection_img:\n        Image|endswith:\n            - '/c89'\n            - '/c99'\n            - '/gcc'\n        CommandLine|contains: '-wrapper'\n    selection_cli:\n        CommandLine|contains:\n            - '/bin/bash,-s'\n            - '/bin/dash,-s'\n            - '/bin/fish,-s'\n            - '/bin/sh,-s'\n            - '/bin/zsh,-s'\n    condition: all of selection_*\nfalsepositives:\n    - Unknown\nlevel: high\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/9b5de532-a757-4d70-946c-1f3e44f48b4d.json","kind":"sigma"}
