Skip to content
Threat Feed
high advisory

Potential System Persistence via AutodialDLL Registry Modification

Adversaries can achieve persistence by modifying the AutodialDLL registry key to load a malicious DLL through the Windows Winsock2 library.

Persistence on Windows systems can be achieved by abusing the AutodialDLL functionality within the Winsock2 configuration. The AutodialDLL registry key allows an administrator to specify a DLL that is loaded by the Winsock2 library when network functions are called. By modifying this key to point to a attacker-controlled DLL, a malicious actor can force the system to execute arbitrary code with the privileges of the process calling Winsock2 functions. This technique effectively hijacks the loading process, ensuring the malicious code executes whenever the networking stack is initialized. Since this behavior is rarely utilized by legitimate software, any modification to this registry path should be treated as a potential indicator of malicious persistence or credential harvesting attempts.

Impact

Successful exploitation of this persistence mechanism allows for arbitrary code execution with the context of any process that utilizes Winsock2, potentially leading to privilege escalation, system-wide persistence, and stealthy malware execution that evades traditional process-based monitoring.

Recommendation

  • Deploy the provided Sigma rule to monitor for any write operations to the AutodialDLL registry path.
  • Baseline existing legitimate AutodialDLL configurations in your environment to identify deviations.
  • Enable Windows Registry auditing (SACLs) for the HKLM\SYSTEM\CurrentControlSet\Services\WinSock2\Parameters registry key to ensure visibility.

Immediate actions

Deploy the Sigma detection rule to the SIEM.

Detection Engineering 48h

Threat Hunt

Search historical registry modification logs for the AutodialDLL path.

T1547 medium high confidence hunt now

Data: Event ID 13 (Registry Set)

Detection coverage 1

Detect Potential Persistence Via AutodialDLL

high

Detects modifications to the AutodialDLL registry key, which can be used to load a custom DLL via the Winsock2 library.

sigma tactics: persistence techniques: T1547 sources: registry_set, windows

Detection queries are available on the platform. Get full rules →