{"id":"5edc2273-c26f-406c-83f3-f4d948e740dd","title":"Indirect Inline Command Execution Via Bash.EXE","description":"Detects execution of Microsoft bash launcher with the \"-c\" flag.\nThis can be used to potentially bypass defenses and execute Linux or Windows-based binaries directly via bash.\n","author":"frack113","status":"test","level":"medium","date":"2021-11-24","modified":"2023-08-15","tags":["attack.stealth","attack.t1202"],"technique_ids":["T1202"],"logsource":{"category":"process_creation","product":"windows"},"falsepositives":["Unknown"],"references":["https://lolbas-project.github.io/lolbas/Binaries/Bash/"],"source_path":"rules/windows/process_creation/proc_creation_win_bash_command_execution.yml","source_sha256":"a5c65a1d1512052f617a0b1ebffdff80cd17feb7308ba3f024eefda0684de181","source_url":"https://github.com/anpa1200/sigma/blob/b249e9683190cffdcaf188ccbfb90bf4759844e1/rules/windows/process_creation/proc_creation_win_bash_command_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: Indirect Inline Command Execution Via Bash.EXE\nid: 5edc2273-c26f-406c-83f3-f4d948e740dd\nrelated:\n    - id: 2d22a514-e024-4428-9dba-41505bd63a5b\n      type: similar\nstatus: test\ndescription: |\n    Detects execution of Microsoft bash launcher with the \"-c\" flag.\n    This can be used to potentially bypass defenses and execute Linux or Windows-based binaries directly via bash.\nreferences:\n    - https://lolbas-project.github.io/lolbas/Binaries/Bash/\nauthor: frack113\ndate: 2021-11-24\nmodified: 2023-08-15\ntags:\n    - attack.stealth\n    - attack.t1202\nlogsource:\n    category: process_creation\n    product: windows\ndetection:\n    selection_img:\n        - Image|endswith:\n              - ':\\Windows\\System32\\bash.exe'\n              - ':\\Windows\\SysWOW64\\bash.exe'\n        - OriginalFileName: 'Bash.exe'\n    selection_cli:\n        CommandLine|contains: ' -c '\n    condition: all of selection_*\nfalsepositives:\n    - Unknown\nlevel: medium\n","validation":"yaml_parsed_not_backend_compiled_or_live_validated","techniques":[{"key":"enterprise/T1202","id":"T1202","name":"Indirect Command Execution","page":"techniques/enterprise/T1202/"}],"data_path":"data/detection-rules/5edc2273-c26f-406c-83f3-f4d948e740dd.json","kind":"sigma"}
