Andrea Bocchetti 035bdc9ce1 Update README.md
2025-07-18 22:05:55 +02:00
2025-07-16 17:43:43 +02:00
2025-07-16 17:43:43 +02:00
2025-07-16 17:43:43 +02:00
2025-07-16 17:43:43 +02:00
2025-07-16 17:25:26 +02:00
2025-07-18 22:05:55 +02:00

Thread Pool Timer Process Injection

Educational Research Only
This repository contains security research for educational purposes and authorized use only.
Use responsibly and in accordance with all applicable laws and regulations.


Overview

Thread Pool Timer Process Injection is a technique that leverages the Windows thread pool to execute shellcode. Using the classic DLL injection with CreateThreadpoolTimer to run shellcode in-memory using legit system threads, stealthy, and likely to slip past modern defenses

This approach introduces a stealthy execution vector that avoids classic API hooks such as CreateRemoteThread, NtCreateThreadEx, and APCs, making it highly attractive for red team operations and malware research.


Recording 2025-07-16 1317152323



🛠️ Technical Implementation

image

🧩 Core Components

🛠 Main Injector (ConsoleApplication5.cpp)

  • Process enumeration and targeting logic
  • DLL injection using CreateRemoteThread and LoadLibraryW
  • Error handling and execution status reporting

⏲ Timer DLL (Dll1.cpp)

  • Timer-based shellcode execution implementation
  • TP_CALLBACK_ENVIRON structure setup for thread pool configuration
  • Execution of shellcode via the timer callback
S
Description
Automated archival mirror of github.com/andreisss/Remote-DLL-Injection-with-Timer-based-Shellcode-Execution
Readme GPL-3.0 87 KiB
Languages
C++ 100%