fdbdca003b
Broader rule for detecting web requests via various methods using Windows PowerShell, slightly crosses over the below rules but caters for different methods: https://github.com/Neo23x0/sigma/blob/99b15edf8add183543ca5738ec93f87416c34bd9/rules/windows/process_creation/win_powershell_download.yml https://github.com/Neo23x0/sigma/blob/0fa914139ca85966b49f0a8eda40a3f26608e86b/rules/windows/powershell/powershell_suspicious_download.yml
43 lines
1.5 KiB
YAML
43 lines
1.5 KiB
YAML
title: Windows PowerShell Web Request
|
|
status: experimental
|
|
description: Detects the use of various web request methods (including aliases) via Windows PowerShell
|
|
references:
|
|
- https://4sysops.com/archives/use-powershell-to-download-a-file-with-http-https-and-ftp/
|
|
- https://blog.jourdant.me/post/3-ways-to-download-files-with-powershell
|
|
author: James Pemberton / @4A616D6573
|
|
date: 2019/10/24
|
|
tags:
|
|
- attack.execution
|
|
- attack.t1059
|
|
- attack.t1086
|
|
logsource:
|
|
category: powershell/sysmon
|
|
product: windows
|
|
definition: 'Recommended: Turn on PowerShell Script Block Logging = Enabled - see https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_logging_windows?view=powershell-6#enabling-script-block-logging'
|
|
detection:
|
|
eventcode:
|
|
EventCode:
|
|
- '1'
|
|
- '4688'
|
|
- '4104'
|
|
powershell:
|
|
ScriptBlockText:
|
|
- '*Invoke-WebRequest*'
|
|
- '*iwr *'
|
|
- '*wget *'
|
|
- '*curl *'
|
|
- '*Net.WebClient*'
|
|
- '*Start-BitsTransfer*'
|
|
cmdsysmon:
|
|
CommandLine:
|
|
- '*Invoke-WebRequest*'
|
|
- '*iwr *'
|
|
- '*wget *'
|
|
- '*curl *'
|
|
- '*Net.WebClient*'
|
|
- '*Start-BitsTransfer*'
|
|
condition: eventcode and (powershell or cmdsysmon)
|
|
falsepositives:
|
|
- Use of Get-Command and Get-Help modules to reference Invoke-WebRequest and Start-BitsTransfer.
|
|
level: medium
|