From 014ddc83efc7ef7c7bb7dff6219875f6a43a114d Mon Sep 17 00:00:00 2001 From: Andrea Bocchetti Date: Wed, 16 Jul 2025 17:33:13 +0200 Subject: [PATCH] Update README.md --- README.md | 45 ++++++++++++++++++++++++++++----------------- 1 file changed, 28 insertions(+), 17 deletions(-) diff --git a/README.md b/README.md index e864be5..024c984 100644 --- a/README.md +++ b/README.md @@ -15,43 +15,54 @@ Evasion Potential: Different telemetry signature than known injection methods API Combination: Unique pairing of CreateThreadpoolTimer with injection techniques πŸ› οΈ Technical Implementation -Architecture -β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” -β”‚ DLL Injection │───▢│ Timer Creation │───▢│ Code Execution β”‚ -β”‚ (Traditional) β”‚ β”‚ (Novel) β”‚ β”‚ (via Callback) β”‚ -β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ + +image + + + Execution Flow Injection Phase: Traditional DLL injection into target process + Timer Setup: Thread pool timer created with configurable delay + Callback Execution: Timer callback fires in target process context + Code Execution: Shellcode executed through timer callback mechanism Core Components 1. Main Injector (Injector.cpp) Process enumeration and targeting + DLL injection using CreateRemoteThread + LoadLibraryW + Error handling and status reporting 2. Timer DLL (TimerDLL.cpp) Timer-based execution implementation + TP_CALLBACK_ENVIRON configuration + Shellcode execution via timer callback -πŸ“‹ API Sequence -Traditional Injection APIs -cppOpenProcess() // Target process access -VirtualAllocEx() // Remote memory allocation -WriteProcessMemory() // DLL path writing -CreateRemoteThread() // Remote thread creation -LoadLibraryW() // DLL loading +## πŸ“‹ API Sequence -Timer APIs -cppInitializeThreadpoolEnvironment() // Callback environment setup -CreateThreadpoolTimer() // Timer object creation -SetThreadpoolTimer() // Timer scheduling -TimerCallback() // Execution vector +### πŸ§ͺ Traditional Injection APIs +```cpp +OpenProcess() // Access the target process +VirtualAllocEx() // Allocate memory in remote process +WriteProcessMemory() // Write shellcode or DLL path +CreateRemoteThread() // Create a remote thread to execute payload +LoadLibraryW() // Load a DLL via thread execution + + +⏱️ Thread Pool Timer-Based APIs + +InitializeThreadpoolEnvironment() // Configure threadpool callback environment +CreateThreadpoolTimer() // Create a timer object +SetThreadpoolTimer() // Schedule the timer for execution +TimerCallback() // Callback function that executes shellcode ![Recording 2025-07-16 1317152323](https://github.com/user-attachments/assets/fe7d0f6f-a1e0-4198-8e06-dec994e42bd6)