{"id":"403c2cc0-7f6b-4925-9423-bfa573bed7eb","title":"Suspicious PowerShell Download - Powershell Script","description":"Detects suspicious PowerShell download command","author":"Florian Roth (Nextron Systems)","status":"test","level":"medium","date":"2017-03-05","modified":"2022-12-02","tags":["attack.execution","attack.t1059.001"],"technique_ids":["T1059.001"],"logsource":{"product":"windows","category":"ps_script","definition":"Requirements: Script Block Logging must be enabled"},"falsepositives":["PowerShell scripts that download content from the Internet"],"references":["https://learn.microsoft.com/en-us/dotnet/api/system.net.webclient.downloadstring?view=net-8.0","https://learn.microsoft.com/en-us/dotnet/api/system.net.webclient.downloadfile?view=net-8.0"],"source_path":"rules/windows/powershell/powershell_script/posh_ps_susp_download.yml","source_sha256":"3f76608f5104f323a0c50b1d5fb22434c3ae6252742059676d8777917dcef98e","source_url":"https://github.com/anpa1200/sigma/blob/b249e9683190cffdcaf188ccbfb90bf4759844e1/rules/windows/powershell/powershell_script/posh_ps_susp_download.yml","license":"Detection Rule License 1.1","license_url":"https://github.com/SigmaHQ/Detection-Rule-License/blob/main/LICENSE.Detection.Rules.md","yaml":"title: Suspicious PowerShell Download - Powershell Script\nid: 403c2cc0-7f6b-4925-9423-bfa573bed7eb\nrelated:\n    - id: 65531a81-a694-4e31-ae04-f8ba5bc33759\n      type: derived\nstatus: test\ndescription: Detects suspicious PowerShell download command\nreferences:\n    - https://learn.microsoft.com/en-us/dotnet/api/system.net.webclient.downloadstring?view=net-8.0\n    - https://learn.microsoft.com/en-us/dotnet/api/system.net.webclient.downloadfile?view=net-8.0\nauthor: Florian Roth (Nextron Systems)\ndate: 2017-03-05\nmodified: 2022-12-02\ntags:\n    - attack.execution\n    - attack.t1059.001\nlogsource:\n    product: windows\n    category: ps_script\n    definition: 'Requirements: Script Block Logging must be enabled'\ndetection:\n    webclient:\n        ScriptBlockText|contains: 'System.Net.WebClient'\n    download:\n        ScriptBlockText|contains:\n            - '.DownloadFile('\n            - '.DownloadFileAsync('\n            - '.DownloadString('\n            - '.DownloadStringAsync('\n    condition: webclient and download\nfalsepositives:\n    - PowerShell scripts that download content from the Internet\nlevel: medium\n","validation":"yaml_parsed_not_backend_compiled_or_live_validated","techniques":[{"key":"enterprise/T1059.001","id":"T1059.001","name":"PowerShell","page":"techniques/enterprise/T1059.001/"}],"data_path":"data/detection-rules/403c2cc0-7f6b-4925-9423-bfa573bed7eb.json","kind":"sigma"}
