Detectionmediumtest

Automated Collection Command PowerShell

Once established within a system or network, an adversary may use automated techniques for collecting internal data.

Open in Detection LabConvert ruleBuild Package
François HubautCreated 2021-07-28Updated 2022-12-25c1dda054-d638-4c16-afc8-53e007f3fbc5windows
Log Source
WindowsPowerShell Script
ProductWindows← raw: windows
CategoryPowerShell Script← raw: ps_script

Definition

Requirements: Script Block Logging must be enabled

Detection Logic
Detection Logic2 selectors
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*
False Positives
Unknown

False positive likelihood has not been assessed. Additional context may be needed during triage.

Testing & Validation

Regression Tests

by frack113
Positive Detection Test1 matchevtx

Microsoft-Windows-PowerShell

Rule Metadata
Rule ID
c1dda054-d638-4c16-afc8-53e007f3fbc5
Status
test
Level
medium
Type
Detection
Created
2021-07-28
Modified
2022-12-25
Path
rules/windows/powershell/powershell_script/posh_ps_automated_collection.yml
Raw Tags
attack.collectionattack.t1119
View on GitHub