Files
blue-team-tools/rules/windows/powershell/powershell_suspicious_download.yml
T
2021-09-02 16:05:05 +02:00

44 lines
1.2 KiB
YAML

action: global
title: Suspicious PowerShell Download
status: experimental
description: Detects suspicious PowerShell download command
tags:
- attack.execution
- attack.t1059.001
- attack.t1086 #an old one
author: Florian Roth
date: 2017/03/05
modified: 2021/07/20
falsepositives:
- PowerShell scripts that download content from the Internet
level: medium
---
id: 65531a81-a694-4e31-ae04-f8ba5bc33759
logsource:
product: windows
service: powershell
detection:
webclient:
- 'System.Net.WebClient'
download:
- '.DownloadFile('
- '.DownloadString('
condition: webclient and download
---
id: 3236fcd0-b7e3-4433-b4f8-86ad61a9af2d
logsource:
product: windows
service: powershell-classic
definition: fields have to be extract from event
detection:
downloadfile:
EventID: 400 # get 400 ,403 and 600 for 1 execution
HostApplication|contains|all:
- 'System.Net.WebClient'
- '.DownloadFile('
downloadstring:
EventID: 400
HostApplication|contains|all:
- 'System.Net.WebClient'
- '.DownloadString('
condition: downloadfile or downloadstring