Detectionhightest

Powershell Install a DLL in System Directory

Uses PowerShell to install/copy a file into a system directory such as "System32" or "SysWOW64"

Convert In Phoenix Studio

Open this Sigma rule in the converter with the YAML preloaded and ready for backend selection.

Launch
François Hubaut, Nasreddine Bencherchali (Nextron Systems)Created Mon Dec 27Updated Mon Jan 2263bf8794-9917-45bc-88dd-e1b5abc0ecfdwindows
Log Source
WindowsPowerShell Script
ProductWindows← raw: windows
CategoryPowerShell Script← raw: ps_script

Definition

Requirements: Script Block Logging must be enabled

Detection Logic
Detection Logic1 selector
detection:
    selection:
        ScriptBlockText|re: '(Copy-Item|cpi) .{2,128} -Destination .{1,32}\\Windows\\(System32|SysWOW64)'
    condition: selection
False Positives
Unknown

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

Rule Metadata
Rule ID
63bf8794-9917-45bc-88dd-e1b5abc0ecfd
Status
test
Level
high
Type
Detection
Created
Mon Dec 27
Modified
Mon Jan 22
Path
rules/windows/powershell/powershell_script/posh_ps_copy_item_system_directory.yml
Raw Tags
attack.persistenceattack.defense-evasionattack.credential-accessattack.t1556.002
View on GitHub