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.

Why it matters

Impact assessment

Module stomping is directly relevant to Windows defenders because it enables stealthy code execution inside legitimate DLL image regions, reducing reliance on common injection patterns such as allocating new RWX memory. The primary affected population is organizations running Windows endpoints and servers, especially those relying on memory-allocation-based detections for process injection.

The impact is moderate to high from a detection-evasion standpoint: successful use can support malware execution, credential theft, lateral movement, or payload staging while blending into normal module memory layouts. The current story is a public tradecraft walkthrough rather than a disclosed vendor vulnerability, and the exposure is broad in applicability across Windows environments, but no specific in-the-wild exploitation campaign is identified in the provided references.

Affected scope

  • Windows systems capable of loading DLLs into local or remote processes
  • Security teams monitoring process injection primarily through VirtualAlloc/VirtualAllocEx or RWX-memory heuristics
  • EDR and SOC workflows that do not validate DLL entry-point integrity or image-section modifications

Severity and business risk

  • Enables stealthier malware execution within legitimate mapped modules
  • Can reduce effectiveness of behavioral detections focused on private executable memory
  • May support follow-on actions including persistence, credential access, and remote process compromise
  • Increases investigation difficulty because execution occurs from a legitimate DLL image region

Known exploitation status

  • Public proof-of-concept and walkthrough published
  • No named threat actor, malware family, or confirmed exploitation-in-the-wild incident provided in the references
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.