{"id":"7b836d7f-179c-4ba4-90a7-a7e60afb48e6","title":"Execute Invoke-command on Remote Host","description":"Adversaries may use Valid Accounts to interact with remote systems using Windows Remote Management (WinRM). The adversary may then perform actions as the logged-on user.","author":"frack113","status":"test","level":"medium","date":"2022-01-07","modified":"","tags":["attack.lateral-movement","attack.t1021.006"],"technique_ids":["T1021.006"],"logsource":{"product":"windows","category":"ps_script","definition":"Requirements: Script Block Logging must be enabled"},"falsepositives":["Legitimate script"],"references":["https://github.com/redcanaryco/atomic-red-team/blob/f339e7da7d05f6057fdfcdd3742bfcf365fee2a9/atomics/T1021.006/T1021.006.md#atomic-test-2---invoke-command","https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.core/invoke-command?view=powershell-7.4"],"source_path":"rules/windows/powershell/powershell_script/posh_ps_invoke_command_remote.yml","source_sha256":"aaad15c6b9f4a022a4f1c5429116de832be927f84a519e849a7bc5bd9875aa6f","source_url":"https://github.com/anpa1200/sigma/blob/b249e9683190cffdcaf188ccbfb90bf4759844e1/rules/windows/powershell/powershell_script/posh_ps_invoke_command_remote.yml","license":"Detection Rule License 1.1","license_url":"https://github.com/SigmaHQ/Detection-Rule-License/blob/main/LICENSE.Detection.Rules.md","yaml":"title: Execute Invoke-command on Remote Host\nid: 7b836d7f-179c-4ba4-90a7-a7e60afb48e6\nstatus: test\ndescription: Adversaries may use Valid Accounts to interact with remote systems using Windows Remote Management (WinRM). The adversary may then perform actions as the logged-on user.\nreferences:\n    - https://github.com/redcanaryco/atomic-red-team/blob/f339e7da7d05f6057fdfcdd3742bfcf365fee2a9/atomics/T1021.006/T1021.006.md#atomic-test-2---invoke-command\n    - https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.core/invoke-command?view=powershell-7.4\nauthor: frack113\ndate: 2022-01-07\ntags:\n    - attack.lateral-movement\n    - attack.t1021.006\nlogsource:\n    product: windows\n    category: ps_script\n    definition: 'Requirements: Script Block Logging must be enabled'\ndetection:\n    selection_cmdlet:\n        ScriptBlockText|contains|all:\n            - 'invoke-command '\n            - ' -ComputerName '\n    condition: selection_cmdlet\nfalsepositives:\n    - Legitimate script\nlevel: medium\n","validation":"yaml_parsed_not_backend_compiled_or_live_validated","techniques":[{"key":"enterprise/T1021.006","id":"T1021.006","name":"Windows Remote Management","page":"techniques/enterprise/T1021.006/"}],"data_path":"data/detection-rules/7b836d7f-179c-4ba4-90a7-a7e60afb48e6.json","kind":"sigma"}
