Files
blue-team-tools/rules/windows/powershell/powershell_script/posh_ps_susp_iofilestream.yml
T
Nasreddine Bencherchali 238e0ecd7d Update Ref+Selection
2022-07-11 14:11:53 +01:00

27 lines
837 B
YAML

title: Suspicious IO.FileStream
id: 70ad982f-67c8-40e0-a955-b920c2fa05cb
status: experimental
description: Open a handle on the drive volume via the \\.\ DOS device path specifier and perform direct access read of the first few bytes of the volume.
date: 2022/01/09
modified: 2022/03/05
author: frack113
references:
- https://github.com/redcanaryco/atomic-red-team/blob/f339e7da7d05f6057fdfcdd3742bfcf365fee2a9/atomics/T1006/T1006.md
logsource:
product: windows
category: ps_script
definition: Script block logging must be enabled
detection:
selection:
ScriptBlockText|contains|all:
- New-Object
- IO.FileStream
- '\\\\.\\'
condition: selection
falsepositives:
- Legitimate PowerShell scripts
level: medium
tags:
- attack.defense_evasion
- attack.t1070.003