Skip to content

Advanced Evasion Tradecraft Precision Module Stomping#2354

Open
carlospolop wants to merge 1 commit into
masterfrom
update_Advanced_Evasion_Tradecraft_Precision_Module_Sto_15b6af1a031a6631
Open

Advanced Evasion Tradecraft Precision Module Stomping#2354
carlospolop wants to merge 1 commit into
masterfrom
update_Advanced_Evasion_Tradecraft_Precision_Module_Sto_15b6af1a031a6631

Conversation

@carlospolop

Copy link
Copy Markdown
Collaborator

🤖 Automated Content Update

This PR was automatically generated by the HackTricks News Bot based on a technical blog post.

📝 Source Information

🎯 Content Summary

Advanced Evasion Tradecraft: Precision Module Stomping

The post describes a Windows process-injection and defense-evasion technique called precision module stomping. Classic module stomping overwrites executable code inside a legitimate DLL that is already mapped into a process, usually inside its .text section, and then redirects execution to the overwritten address. The objective is to execute arbitrary shellcode from an address that appears to belong t...

🔧 Technical Details

Precision module stomping: Overwrite executable code inside the .text section of a DLL that is already loaded in the target process, then redirect execution to the overwritten address. This avoids allocating obvious private executable memory and avoids the noisier behavior of loading a new sacrificial DLL. The technique is useful when the attacker can write into the target process and can identify a loaded module whose executable section can hold the payload.

Loaded-module-aware target selection: Before stomping, enumerate the target process's loaded modules with a PID-based lister such as list-process-dlls.exe -p <PID> -n -o <file>. Use the resulting names-only file as an include list so the later DLL scan only considers modules already present in the target process. This reduces crashes caused by selecting a DLL that is not mapped in the remote process and avoids the EDR-visible event of forcing a new DL...

🤖 Agent Actions

Done.

Updated:

  • src/windows-hardening/av-bypass.md

What I added:

  • New Precision Module Stomping section
  • Focused on the novel technical tradecraft:
    • loaded-module-aware DLL selection
    • .text sizing via Misc_VirtualSize
    • export/EAT-based stomp target selection
    • blast-radius analysis before stomping
    • opsec notes on avoiding sacrificial DLL loads
    • detection ideas for image-backed code tampering

Also updated ## References with:

  • the Medium post
  • the GitHub repo

I validated the diff and confirmed the file structure/footer remains intact.


This PR was automatically created by the HackTricks Feed Bot. Please review the changes carefully before merging.

@carlospolop

Copy link
Copy Markdown
Collaborator Author

🔗 Additional Context

Original Blog Post: https://medium.com/@toneillcodes/advanced-evasion-tradecraft-precision-module-stomping-b51feb0978fe

Content Categories: Based on the analysis, this content was categorized under "Windows Hardening -> Antivirus (AV) Bypass / Windows Process Injection -> Module Stomping".

Repository Maintenance:

  • MD Files Formatting: 977 files processed

Review Notes:

  • This content was automatically processed and may require human review for accuracy
  • Check that the placement within the repository structure is appropriate
  • Verify that all technical details are correct and up-to-date
  • All .md files have been checked for proper formatting (headers, includes, etc.)

Bot Version: HackTricks News Bot v1.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant