Files
blue-team-tools/rules/windows/builtin/win_powershell_web_request.yml
T

50 lines
1.4 KiB
YAML
Raw Normal View History

2020-07-07 22:47:14 +02:00
action: global
2019-10-24 11:57:37 +11:00
title: Windows PowerShell Web Request
status: experimental
2021-08-31 13:48:07 +02:00
description: Detects the use of various web request methods (including aliases) via Windows PowerShell command
2019-10-24 11:57:37 +11:00
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
modified: 2020/08/24
2019-10-24 11:57:37 +11:00
tags:
- attack.execution
- attack.t1059.001
- attack.t1086 #an old one
2019-10-24 11:57:37 +11:00
detection:
2020-07-07 22:47:14 +02:00
condition: selection
2019-10-24 11:57:37 +11:00
falsepositives:
- Use of Get-Command and Get-Help modules to reference Invoke-WebRequest and Start-BitsTransfer.
level: medium
2020-07-07 22:47:14 +02:00
---
2021-09-02 21:16:55 +02:00
id: 9fc51a3c-81b3-4fa7-b35f-7c02cf10fd2d
2020-07-07 22:47:14 +02:00
logsource:
category: process_creation
product: windows
detection:
selection:
CommandLine|contains:
- 'Invoke-WebRequest'
- 'iwr '
- 'wget '
- 'curl '
- 'Net.WebClient'
- 'Start-BitsTransfer'
---
2021-09-02 21:16:55 +02:00
id: 1139d2e2-84b1-4226-b445-354492eba8ba
2020-07-07 22:47:14 +02:00
logsource:
product: windows
service: powershell
2021-08-04 14:49:50 +02:00
definition: 'Script block logging must be enabled'
2020-07-07 22:47:14 +02:00
detection:
selection:
EventID: 4104
ScriptBlockText|contains:
- 'Invoke-WebRequest'
- 'iwr '
- 'wget '
- 'curl '
- 'Net.WebClient'
- 'Start-BitsTransfer'