Skip to main content
Mallory
← Back to News
payload-delivery-evasionoffensive-tooling-releasedefense-evasion-methodproof-of-concept-release

Module Stomping Technique Detailed in Public Windows Injection Walkthrough

Attack Tradecraft · 3 sources · Updated 4mo ago · First seen Jul 29, 2026

Module Stomping Technique Detailed in Public Windows Injection Walkthrough

A public technical walkthrough detailed module stomping, a Windows code-injection technique that executes shellcode by overwriting the .text section and entry point of a legitimate sacrificial DLL instead of allocating new executable memory. The write-up showed how an attacker can map a DLL as a SEC_IMAGE section with native APIs such as NtCreateSection and NtMapViewOfSection, confirm that the payload fits between the DLL entry point and the end of the code section, replace the entry point with shellcode, and launch execution with thread-creation APIs including NtCreateThreadEx.

The material also described a remote variant in which a DLL such as shell32.dll is loaded into another process, its entry point is located with process-memory and Toolhelp APIs, and that entry point is overwritten before execution is triggered with CreateRemoteThread. Examples cited combase.dll and shell32.dll as sacrificial modules and noted that manual mapping may help avoid Control Flow Guard issues that can arise with LoadLibrary, making the published proof of concept directly relevant to defenders tracking stealthy malware tradecraft on Windows.

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.

1 event · Jul 29, 2026
  1. Jul 29, 20264mo ago

    Technical blog publishes module stomping proof-of-concept examples

    A technical blog post published examples of module stomping on Windows, showing how to overwrite the entry point of a sacrificial DLL such as combase.dll or shell32.dll with shellcode and execute it locally or remotely. The post described use of APIs including NtCreateSection, NtMapViewOfSection, NtCreateThreadEx, ReadProcessMemory, and CreateRemoteThread.

    Malware development trick 61: Module stomping. 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
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.