PowerShell SAM Copy
Description
Detects suspicious PowerShell scripts accessing SAM hives
Query · sigma
selection_1: CommandLine|contains|all: - \HarddiskVolumeShadowCopy - System32\config\sam selection_2: CommandLine|contains: - Copy-Item - cp $_. - cpi $_. - copy $_. - .File]::Copy( condition: all of selection*
Known false positives
- Some rare backup scenarios
- PowerShell scripts fixing HiveNightmare / SeriousSAM ACLs