{"id":"b5522a23-82da-44e5-9c8b-e10ed8955f88","title":"Powershell Execute Batch Script","description":"Adversaries may abuse the Windows command shell for execution.\nThe Windows command shell ([cmd](https://attack.mitre.org/software/S0106)) is the primary command prompt on Windows systems.\nThe Windows command prompt can be used to control almost any aspect of a system, with various permission levels required for different subsets of commands.\nBatch files (ex: .bat or .cmd) also provide the shell with a list of sequential commands to run, as well as normal scripting operations such as conditionals and loops.\nCommon uses of batch files include long or repetitive tasks, or the need to run the same set of commands on multiple system\n","author":"frack113","status":"test","level":"medium","date":"2022-01-02","modified":"","tags":["attack.execution","attack.t1059.003"],"technique_ids":["T1059.003"],"logsource":{"product":"windows","category":"ps_script","definition":"Requirements: Script Block Logging must be enabled"},"falsepositives":["Legitimate administration script"],"references":["https://github.com/redcanaryco/atomic-red-team/blob/f339e7da7d05f6057fdfcdd3742bfcf365fee2a9/atomics/T1059.003/T1059.003.md#atomic-test-1---create-and-execute-batch-script"],"source_path":"rules/windows/powershell/powershell_script/posh_ps_susp_execute_batch_script.yml","source_sha256":"3522cc21256eed572273bccc912e26c4e880778c263070356606ea119ed3bc77","source_url":"https://github.com/anpa1200/sigma/blob/b249e9683190cffdcaf188ccbfb90bf4759844e1/rules/windows/powershell/powershell_script/posh_ps_susp_execute_batch_script.yml","license":"Detection Rule License 1.1","license_url":"https://github.com/SigmaHQ/Detection-Rule-License/blob/main/LICENSE.Detection.Rules.md","yaml":"title: Powershell Execute Batch Script\nid: b5522a23-82da-44e5-9c8b-e10ed8955f88\nstatus: test\ndescription: |\n    Adversaries may abuse the Windows command shell for execution.\n    The Windows command shell ([cmd](https://attack.mitre.org/software/S0106)) is the primary command prompt on Windows systems.\n    The Windows command prompt can be used to control almost any aspect of a system, with various permission levels required for different subsets of commands.\n    Batch files (ex: .bat or .cmd) also provide the shell with a list of sequential commands to run, as well as normal scripting operations such as conditionals and loops.\n    Common uses of batch files include long or repetitive tasks, or the need to run the same set of commands on multiple system\nreferences:\n    - https://github.com/redcanaryco/atomic-red-team/blob/f339e7da7d05f6057fdfcdd3742bfcf365fee2a9/atomics/T1059.003/T1059.003.md#atomic-test-1---create-and-execute-batch-script\nauthor: frack113\ndate: 2022-01-02\ntags:\n    - attack.execution\n    - attack.t1059.003\nlogsource:\n    product: windows\n    category: ps_script\n    definition: 'Requirements: Script Block Logging must be enabled'\ndetection:\n    selection_start:\n        ScriptBlockText|contains: Start-Process\n    selection_batch:\n        ScriptBlockText|contains:\n            - '.cmd'\n            - '.bat'\n    condition: all of selection_*\nfalsepositives:\n    - Legitimate administration script\nlevel: medium\n","validation":"yaml_parsed_not_backend_compiled_or_live_validated","techniques":[{"key":"enterprise/T1059.003","id":"T1059.003","name":"Windows Command Shell","page":"techniques/enterprise/T1059.003/"}],"data_path":"data/detection-rules/b5522a23-82da-44e5-9c8b-e10ed8955f88.json","kind":"sigma"}
