{"id":"162e69a7-7981-4344-84a9-0f1c9a217a52","title":"Powershell Directory Enumeration","description":"Detects technique used by MAZE ransomware to enumerate directories using Powershell","author":"frack113","status":"test","level":"medium","date":"2022-03-17","modified":"","tags":["attack.discovery","attack.t1083"],"technique_ids":["T1083"],"logsource":{"product":"windows","category":"ps_script","definition":"Requirements: Script Block Logging must be enabled"},"falsepositives":["Legitimate PowerShell scripts"],"references":["https://github.com/redcanaryco/atomic-red-team/blob/f339e7da7d05f6057fdfcdd3742bfcf365fee2a9/atomics/T1083/T1083.md","https://www.mandiant.com/resources/tactics-techniques-procedures-associated-with-maze-ransomware-incidents"],"source_path":"rules/windows/powershell/powershell_script/posh_ps_susp_directory_enum.yml","source_sha256":"4cbe5af40d9f84f2a8c076c0dae68c6940361a10838ddb6142b0683ad256d762","source_url":"https://github.com/anpa1200/sigma/blob/b249e9683190cffdcaf188ccbfb90bf4759844e1/rules/windows/powershell/powershell_script/posh_ps_susp_directory_enum.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 Directory Enumeration\nid: 162e69a7-7981-4344-84a9-0f1c9a217a52\nstatus: test\ndescription: Detects technique used by MAZE ransomware to enumerate directories using Powershell\nreferences:\n    - https://github.com/redcanaryco/atomic-red-team/blob/f339e7da7d05f6057fdfcdd3742bfcf365fee2a9/atomics/T1083/T1083.md\n    - https://www.mandiant.com/resources/tactics-techniques-procedures-associated-with-maze-ransomware-incidents\nauthor: frack113\ndate: 2022-03-17\ntags:\n    - attack.discovery\n    - attack.t1083\nlogsource:\n    product: windows\n    category: ps_script\n    definition: 'Requirements: Script Block Logging must be enabled'\ndetection:\n    selection:\n        ScriptBlockText|contains|all:\n            - foreach\n            - Get-ChildItem\n            - '-Path '\n            - '-ErrorAction '\n            - SilentlyContinue\n            - 'Out-File '\n            - '-append'\n    condition: selection\nfalsepositives:\n    - Legitimate PowerShell scripts\nlevel: medium\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/162e69a7-7981-4344-84a9-0f1c9a217a52.json","kind":"sigma"}
