Skip to main content
Mallory
← Back to News
persistence-methodoffensive-tooling-releaseprivilege-escalation-methodendpoint-software-vulnerability

Windows Registry Persistence PoCs Abuse WinSock2 and Cryptography DLL Load Paths

Attack Tradecraft · 3 sources · Updated 4mo ago · First seen Aug 14, 2024

Windows Registry Persistence PoCs Abuse WinSock2 and Cryptography DLL Load Paths

Researchers published proof-of-concept Windows persistence techniques that abuse registry-controlled DLL load paths to force trusted processes to load attacker-controlled libraries. One method modifies HKLM\System\CurrentControlSet\Services\WinSock2\Parameters\NameSpace_Catalog5\Catalog_Entries64\000000000007 by changing the LibraryPath value, causing socket-using applications such as Microsoft Edge to load a malicious DLL when launched; the demonstration on Windows 11 x64 required administrative privileges and used a benign message-box payload. A related earlier technique targeted HKLM\Software\Microsoft\Cryptography\Offload, where setting ExpoOffload to a rogue DLL reportedly caused cryptography-related processes including svchost.exe to load it.

Why it matters

Impact assessment

These proof-of-concept persistence methods affect Windows endpoints where attackers can obtain administrative privileges and modify HKLM registry values controlling DLL load behavior. The primary risk is stealthy persistence and code execution inside trusted processes such as Microsoft Edge, svchost.exe, and other socket- or cryptography-related processes, which can enable defense evasion, credential access follow-on activity, and operational disruption.

The current scope is exposure-oriented rather than evidence of a live campaign: the references describe researcher demonstrations, not confirmed in-the-wild exploitation. Impact can still be significant in enterprise environments because the technique abuses trusted Windows components and may affect many applications on a host once the registry value is changed.

Supporting facts

  • Affected platform: Windows, including a demonstrated Windows 11 x64 system.
  • Privilege requirement: administrative privileges are required to modify the cited HKLM registry paths.
  • Potentially affected applications:
    • Socket-using applications via WinSock2 catalog path manipulation, including Microsoft Edge and Procmon64.exe in the demonstration.
    • Cryptography-related processes via Cryptography Offload path manipulation, including svchost.exe and ProcessHacker.exe in the demonstration.
  • Business impact:
    • Persistent execution through trusted processes can undermine endpoint trust and complicate incident response.
    • Misconfiguration or malicious use may destabilize systems; one researcher reported OS and antivirus freezes during related cryptographic provider experiments.
  • Exploitation status:
    • No named threat actor or confirmed in-the-wild exploitation is provided in the references.
    • The story is based on public PoCs and defender-awareness research.
Who uses this technique?Get the actors, campaigns, and ATT&CK mapping behind it.
Get the tradecraft
Event timeline

How this story unfolded

Events from the most recent confirmed update back to the earliest known activity.

2 events · Oct 21, 2022 – Aug 14, 2024
  1. Aug 14, 20242y ago

    Author publishes WinSock2 LibraryPath persistence PoC

    A later proof-of-concept article described modifying the LibraryPath value under HKLM\System\CurrentControlSet\Services\WinSock2\Parameters\NameSpace_Catalog5\Catalog_Entries64\000000000007 to force loading of an attacker-controlled DLL. The demonstration on Windows 11 x64 showed Microsoft Edge and other socket-using programs loading the DLL after the registry change.

    Malware development: persistence - part 26. Microsoft Edge - part 1. Simple C example. - cocomelonc
  2. Oct 21, 20224y ago

    PoC abuses Cryptography\Offload registry key for DLL loading

    A proof-of-concept article described a Windows persistence and DLL hijacking technique that sets the ExpoOffload value under HKLM\Software\Microsoft\Cryptography\Offload to an attacker-controlled DLL. The demonstration reported the DLL being loaded during cryptographic activity by processes including svchost.exe and ProcessHacker.exe.

    Malware development: persistence - part 16. Cryptography Registry Keys. Simple C++ example. - cocomelonc
Linked entities

Related entities

Vulnerabilities, threat actors, malware, products, organizations, and breaches Mallory has linked to this story.

Open in app →

Affected products

1 linked
Windows

Organizations

1 linked
Microsoft Corporation
Do you run this?Get the adversaries, campaigns, and ATT&CK mapping behind this technique, with detections ready to deploy.
See Who Uses This Technique
Mallory platform

See the full picture, correlated to your attack surface.

This page covers what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which threat actors are using it right now, and what to deploy next.

Exposure mappingMap indicators from this story to your assets and identify affected systems in minutes.
Threat actor evidenceEvery observed campaign, victim, and pivot linked to actors named in this story.
Associated malwareMalware, exploits, and IOCs connected to the activity described here.
Detection signaturesYARA, Sigma, and Snort rules deployed to your SIEM as soon as they’re published.
Scheduled alertsGet matching new stories delivered to your team as they break, not the next morning.
AI threadsAsk questions about this story and take action on the answers.