Detectionhightest

PowerShell SAM Copy

Detects suspicious PowerShell scripts accessing SAM hives

Convert In Phoenix Studio

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

Launch
Florian Roth (Nextron Systems)Created Thu Jul 29Updated Fri Jan 061af57a4b-460a-4738-9034-db68b880c665windows
Log Source
WindowsProcess Creation
ProductWindows← raw: windows
CategoryProcess Creation← raw: process_creation

Events generated when a new process is spawned on the system. Covers command-line arguments, parent/child relationships, and process metadata.

Detection Logic
Detection Logic2 selectors
detection:
    selection_1:
        CommandLine|contains|all:
            - '\HarddiskVolumeShadowCopy'
            - 'System32\config\sam'
    selection_2:
        CommandLine|contains:
            - 'Copy-Item'
            - 'cp $_.'
            - 'cpi $_.'
            - 'copy $_.'
            - '.File]::Copy('
    condition: all of selection*
False Positives

Some rare backup scenarios

PowerShell scripts fixing HiveNightmare / SeriousSAM ACLs

Rule Metadata
Rule ID
1af57a4b-460a-4738-9034-db68b880c665
Status
test
Level
high
Type
Detection
Created
Thu Jul 29
Modified
Fri Jan 06
Path
rules/windows/process_creation/proc_creation_win_powershell_sam_access.yml
Raw Tags
attack.credential-accessattack.t1003.002
View on GitHub