Suspicious IO.FileStream

 Original Source: [Sigma source]
Title: Suspicious IO.FileStream
Status: test
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.
References:
  -https://github.com/redcanaryco/atomic-red-team/blob/f339e7da7d05f6057fdfcdd3742bfcf365fee2a9/atomics/T1006/T1006.md
Author: frack113
Date: 2022-01-09
modified:2022-03-05
Tags:
  • -'attack.stealth'
  • -'attack.t1070.003'
Logsource:
  • product: windows
  • category: ps_script
  • definition: Requirements: Script Block Logging must be enabled
Detection:
  selection:
    ScriptBlockText|contains|all:
      -'New-Object'
      -'IO.FileStream'
      -'\\\\.\\'

  condition:selection
Falsepositives:
  -Legitimate PowerShell scripts
Level: medium