{"id":"1af57a4b-460a-4738-9034-db68b880c665","title":"PowerShell SAM Copy","description":"Detects suspicious PowerShell scripts accessing SAM hives","author":"Florian Roth (Nextron Systems)","status":"test","level":"high","date":"2021-07-29","modified":"2023-01-06","tags":["attack.credential-access","attack.t1003.002"],"technique_ids":["T1003.002"],"logsource":{"category":"process_creation","product":"windows"},"falsepositives":["Some rare backup scenarios","PowerShell scripts fixing HiveNightmare / SeriousSAM ACLs"],"references":["https://twitter.com/splinter_code/status/1420546784250769408"],"source_path":"rules/windows/process_creation/proc_creation_win_powershell_sam_access.yml","source_sha256":"d0355ac86bb630717474cb6d462e7ac305c70c05e72189a1591f3cdbc6ff4668","source_url":"https://github.com/anpa1200/sigma/blob/b249e9683190cffdcaf188ccbfb90bf4759844e1/rules/windows/process_creation/proc_creation_win_powershell_sam_access.yml","license":"Detection Rule License 1.1","license_url":"https://github.com/SigmaHQ/Detection-Rule-License/blob/main/LICENSE.Detection.Rules.md","yaml":"title: PowerShell SAM Copy\nid: 1af57a4b-460a-4738-9034-db68b880c665\nstatus: test\ndescription: Detects suspicious PowerShell scripts accessing SAM hives\nreferences:\n    - https://twitter.com/splinter_code/status/1420546784250769408\nauthor: Florian Roth (Nextron Systems)\ndate: 2021-07-29\nmodified: 2023-01-06\ntags:\n    - attack.credential-access\n    - attack.t1003.002\nlogsource:\n    category: process_creation\n    product: windows\ndetection:\n    selection_1:\n        CommandLine|contains|all:\n            - '\\HarddiskVolumeShadowCopy'\n            - 'System32\\config\\sam'\n    selection_2:\n        CommandLine|contains:\n            - 'Copy-Item'\n            - 'cp $_.'\n            - 'cpi $_.'\n            - 'copy $_.'\n            - '.File]::Copy('\n    condition: all of selection*\nfalsepositives:\n    - Some rare backup scenarios\n    - PowerShell scripts fixing HiveNightmare / SeriousSAM ACLs\nlevel: high\n","validation":"yaml_parsed_not_backend_compiled_or_live_validated","techniques":[{"key":"enterprise/T1003.002","id":"T1003.002","name":"Security Account Manager","page":"techniques/enterprise/T1003.002/"}],"data_path":"data/detection-rules/1af57a4b-460a-4738-9034-db68b880c665.json","kind":"sigma"}
