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 3mo 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.

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.