Suspicious Automated Collection Command PowerShell (via ps_script)
This rule detects once established within a system or network, an adversary may use automated methods for collecting internal data.
SigmamediumWindowsv1
sigma
suspicious-automated-collection-command-powershell-via-ps-script
title: Suspicious Automated Collection Command PowerShell (via ps_script)
id: 092e142a-ed5c-5169-91b3-b8b9c0dfb39a
status: stable
description: This rule detects once established within a system or network, an adversary may use automated methods for collecting internal data.
references:
- https://attack.mitre.org/techniques/T1119/
- https://github.com/redcanaryco/atomic-red-team/blob/f339e7da7d05f6057fdfcdd3742bfcf365fee2a9/atomics/T1119/T1119.md
author: Huntrule Team
date: 2026-01-20
tags:
- attack.collection
- attack.t1119
logsource:
product: windows
category: ps_script
definition: 'Requirements: Script Block Logging must be enabled'
detection:
selection_ext:
ScriptBlockText|contains:
- '.doc'
- '.docx'
- '.xls'
- '.xlsx'
- '.ppt'
- '.pptx'
- '.rtf'
- '.pdf'
- '.txt'
selection_cmd:
ScriptBlockText|contains|all:
- 'Get-ChildItem'
- ' -Recurse '
- ' -Include '
condition: all of selection*
falsepositives:
- Unknown
level: medium
Known false positives
- Unknown
Detection content is published as a reviewed draft. Tune thresholds and exclusions against your own telemetry before enabling this rule for alerting.