Function Stomping (MITRE ATT&CK ID: T1055.012) — Advanced injection technique overwriting legitimate functions with custom payloads to evade detection. Research & Educational purposes only
About this project
Function Stomping Injection Overview Function stomping is an advanced code injection technique used to modify the behavior of a program by overwriting the memory of a legitimate function with custom code. This approach avoids creating new executable memory, making it stealthier compared to traditional methods that use APIs like VirtualAlloc or VirtualAllocEx. The goal of this repository is to provide practical examples of this technique for educational purposes and help researchers and security professionals understand its mechanics. Table of Contents Overview How It Works Why Use Function Stomping? Steps to Implement Example Code Precautions Disclaimer References How It Works The process of function stomping can be summarized as follows: Identify a Sacrificial Function: Locate an existing function in the target process (e.g., functions in system libraries such as kernel32.dll or ntdll.dll). Overwrite the Function's Memory: Modify the memory where the function resides to replace its original logic with custom malicious code. Execute Malicious Code: When the overwritten function is called, it executes the custom code instead of its original behavior.
From the project README on
GitHub
- Stars
- 20
- Forks
- 1
- License
- MIT
- Last push
- 24 Dec 2024
Add this badge to your README
Show that your project is listed on Made in Algeria.
[](https://www.madeinalgeria.dev/projects/local-and-remote-function-stomping)