Advanced Evasion Tradecraft Precision Module Stomping#2354
Open
carlospolop wants to merge 1 commit into
Open
Conversation
Collaborator
Author
🔗 Additional ContextOriginal 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:
Review Notes:
Bot Version: HackTricks News Bot v1.0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🤖 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
.textsection, 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
.textsection 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.mdWhat I added:
.textsizing viaMisc_VirtualSizeAlso updated
## Referenceswith: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.