Credential Access via Volume Shadow Copy Symlink Creation
Adversaries utilize the Windows mklink utility to create symbolic links to Volume Shadow Copies, enabling unauthorized access to sensitive files like the SAM database for credential theft.
Adversaries frequently target the Windows Volume Shadow Copy Service (VSS) to bypass file access controls and extract sensitive system files, including the Security Account Manager (SAM), SYSTEM, and SECURITY hives. By using the built-in mklink command, an attacker can create a symbolic link to a shadow copy volume, essentially mounting the protected data to a location where it can be read or copied directly. This technique allows for credential dumping while avoiding traditional file locking mechanisms that would typically prevent direct access to these files while the operating system is running. Defenders should monitor for the creation of symbolic links specifically targeting HarddiskVolumeShadowCopy paths, as this is a high-fidelity indicator of credential harvesting attempts rather than standard system administration or backup activity.
Attack Chain
- Attacker gains initial access and executes a command shell with administrative privileges.
- Attacker checks for existing shadow copies using
vssadmin list shadows. - Attacker creates a new shadow copy of the system drive using
vssadmin create shadow /for=C:. - Attacker identifies the unique shadow copy device path from the output.
- Attacker executes
mklink /dto map the shadow copy path to a local directory (e.g.,C:\shadowcopy). - Attacker navigates to the linked directory to access
C:\shadowcopy\Windows\System32\config\SAM. - Attacker copies the target credential hive files to an attacker-controlled directory.
- Attacker exfiltrates the hives or executes a tool like Mimikatz locally to extract hashes.
Impact
Successful execution of this technique provides attackers with full access to the SAM database, allowing them to perform offline password cracking or Pass-the-Hash attacks. This often leads to lateral movement, privilege escalation, and full domain compromise. In enterprise environments, this represents a critical breach of credential confidentiality, allowing attackers to persist with high-level access even after the initial intrusion vector is remediated.
Recommendation
- Deploy the Sigma rule below to detect unauthorized usage of
mklinktargeting volume shadow copies. - Enable Sysmon or Windows Event Log (ID 4688) process creation logging with command line arguments.
- Implement monitoring for excessive or suspicious usage of
vssadminorwmiccommands to manage shadow copies. - Restrict administrative privileges to prevent non-authorized users from executing VSS management commands.
- Audit administrative PowerShell and CMD sessions for the presence of mklink command patterns.
Immediate actions
Deploy the provided Sigma rule to the SIEM
Threat Hunt
Search for historical process creation logs containing mklink and HarddiskVolumeShadowCopy strings.
Data: CommandLine
Detection coverage 1
Detect Volume Shadow Copy Symlink Creation Via Mklink
highDetects the use of the mklink utility to create symbolic links to Volume Shadow Copies, a common technique for credential harvesting.
Detection queries are available on the platform. Get full rules →