{"id":"70ad982f-67c8-40e0-a955-b920c2fa05cb","title":"Suspicious IO.FileStream","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.","author":"frack113","status":"test","level":"medium","date":"2022-01-09","modified":"2022-03-05","tags":["attack.stealth","attack.t1070.003"],"technique_ids":["T1070.003"],"logsource":{"product":"windows","category":"ps_script","definition":"Requirements: Script Block Logging must be enabled"},"falsepositives":["Legitimate PowerShell scripts"],"references":["https://github.com/redcanaryco/atomic-red-team/blob/f339e7da7d05f6057fdfcdd3742bfcf365fee2a9/atomics/T1006/T1006.md"],"source_path":"rules/windows/powershell/powershell_script/posh_ps_susp_iofilestream.yml","source_sha256":"1bd19b7fa0110e787749764cae8e08d1b88cbc84ac169ecd676b90c4471a5332","source_url":"https://github.com/anpa1200/sigma/blob/b249e9683190cffdcaf188ccbfb90bf4759844e1/rules/windows/powershell/powershell_script/posh_ps_susp_iofilestream.yml","license":"Detection Rule License 1.1","license_url":"https://github.com/SigmaHQ/Detection-Rule-License/blob/main/LICENSE.Detection.Rules.md","yaml":"title: Suspicious IO.FileStream\nid: 70ad982f-67c8-40e0-a955-b920c2fa05cb\nstatus: test\ndescription: 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.\nreferences:\n    - https://github.com/redcanaryco/atomic-red-team/blob/f339e7da7d05f6057fdfcdd3742bfcf365fee2a9/atomics/T1006/T1006.md\nauthor: frack113\ndate: 2022-01-09\nmodified: 2022-03-05\ntags:\n    - attack.stealth\n    - attack.t1070.003\nlogsource:\n    product: windows\n    category: ps_script\n    definition: 'Requirements: Script Block Logging must be enabled'\ndetection:\n    selection:\n        ScriptBlockText|contains|all:\n            - New-Object\n            - IO.FileStream\n            - '\\\\\\\\.\\\\'\n    condition: selection\nfalsepositives:\n    - Legitimate PowerShell scripts\nlevel: medium\n","validation":"yaml_parsed_not_backend_compiled_or_live_validated","techniques":[{"key":"enterprise/T1070.003","id":"T1070.003","name":"Clear Command History","page":"techniques/enterprise/T1070.003/"}],"data_path":"data/detection-rules/70ad982f-67c8-40e0-a955-b920c2fa05cb.json","kind":"sigma"}
