SAM Database File Access Attempt
The following analytic detects attempts to access the SAM, SYSTEM, or SECURITY database files within the `windows\system32\config` directory using Windows Security EventCode 4663. This detection leverages Windows…
Description
The following analytic detects attempts to access the SAM, SYSTEM, or SECURITY database files within the `windows\system32\config` directory using Windows Security EventCode 4663. This detection leverages Windows Security Event logs to identify unauthorized access attempts. Monitoring this activity is crucial as it indicates potential credential access attempts, possibly exploiting vulnerabilities like CVE-2021-36934. If confirmed malicious, an attacker could extract user passwords, leading to unauthorized access, privilege escalation, and further compromise of the system.
Detection logic
Detection requirements
- Platform
- Windows
The rule states no platform. This is derived from the ATT&CK technique it maps to.
- Log source category
- windows_event_log_security_4663
Known benign triggers
- Natively, `dllhost.exe` will access the files. Every environment will have additional native processes that do as well. Filter by process_name. As an aside, one can remove process_name entirely and add `Object_Name=*ShadowCopy*`.
MITRE ATT&CK mappings
0 exclusive techniques.This is coverage no other published rule has; it is not this rule's total technique count.
References
| Reference | Cited by |
|---|---|
| docs.microsoft.com/en-us/windows/security/threat-protection/auditing/event-4663 | Only this detection cites it |
| en.wikipedia.org/wiki/Security_Account_Manager | Only this detection cites it |
| github.com/GossiTheDog/HiveNightmare | 3from 2 sources |
| github.com/JumpsecLabs/Guidance-Advice/tree/main/SAM_Permissions | 2 |
| msrc.microsoft.com/update-guide/vulnerability/CVE-2021-36934 | 2 |
| www.ultimatewindowssecurity.com/securitylog/encyclopedia/event.aspx?eventID=4663 | Only this detection cites it |
From the source
- At source
- Open at source
- Upstream identifier
- 57551656-ebdb-11eb-afdf-acde48001122
- Tagged by the source as
- Credential DumpingGraceful Wipe Out AttackRhysida RansomwareEndpointendpointSplunk CloudSplunk EnterpriseSplunk Enterprise Securityendpoint
Licence
- Published under
- Apache License 2.0Read the licence
- Attribution
- Required
- Obtained under
- Apache-2.0Read the origin licence
Authorship
- Written by
- Published
- Aug 26, 2026
- Version
- 1