Files
blue-team-tools/rules/windows/powershell/powershell_suspicious_download.yml
T

44 lines
1.2 KiB
YAML
Raw Normal View History

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