intelligence_src_f9879f264b7a8ec1d7
- Source-provided label
- Publisher RSS metadata
- Evidence class
- mentioned in report
- Confidence
- Not reported
- Observed
- Nov 10, 2026 17:31 UTC
- Retrieved
- Nov 11, 2026 12:34 UTC
﷽ Introduction to Malware Binary Triage (IMBT) Course Looking to level up your skills? Get 10% off using coupon code: MWNEWS10 for any flavor. Enroll Now and Save 10%: Coupon Code MWNEWS10 Note: Affiliate link – your enrollment helps support this platform at no extra cost to you. Hello, cybersecurity enthusiasts and white hackers! In the previous trick 69, we loaded a COFF object and observed how its sections and imports become executable code. Today I want to demonstrate a different malware development for Windows mechanism: use a hardware execution breakpoint to redirect a thread in a running mspaint.exe process to our Meow-meow! shellcode payload. This trick uses the Windows debugging API. The injector attaches to the selected Paint process, places the payload in a private memory region, and uses a hardware breakpoint plus a thread-context update to transfer control. It does not overwrite Paint’s image code. The payload displays a message box and exits the thread after the dialog closes. a few words before we start In trick 63, I changed PE version metadata and an icon. This post covers a separate execution technique: a hardware breakpoint in a target thread. A hardware breakpoint is configured in the thread’s debug registers. On x64, DR0 stores the watched instruction address and DR7 enables the breakpoint. When the thread reaches that address, Windows reports a single-step exception. Because our injector is attached as a debugger, it receives the debug event and can inspect or change the stopped thread’s context. The steps are: open the running mspaint.exe process and allocate memory for the payload. copy the shellcode into a writable page, then change it to execute/read. attach with DebugActiveProcess and wait for the initial breakpoint. set DR0 to the stopped thread’s current instruction and enable the local execution breakpoint in DR7. when the single-step event arrives, redirect RIP to the payload and clear the breakpoint. The relevant Windows APIs are documented in DebugActiveProcess, WaitForDebugEvent, SetThreadContext, and ContinueDebugEvent. The program also disables the default kill-on-debugger-exit behavior so an unexpected injector exit does not intentionally terminate Paint; see DebugSetProcessKillOnExit. practical example First, I use a MessageBox payload generated for x64 Windows. The EXITFUNC=thread option makes the payload exit the thread that runs it after the user closes the dialog: msfvenom -p windows/x64/messagebox TEXT='Meow-meow!' TITLE='=^..^=' EXITFUNC=thread -f c The resulting bytes are embedded in the complete source below. The payload does not start a shell or child process, open a network connection, or create persistence. Before setting a breakpoint, the injector allocates memory in the target process and writes the payload. The page changes from writable to execute/read: remote_payload = VirtualAllocEx(process, NULL, payload_size, MEM_RESERVE | MEM_COMMIT, PAGE_READWRITE); WriteProcessMemory(process, remote_payload, payload, payload_size, &bytes_written); VirtualProtectEx(process, remote_payload, payload_size, PAGE_EXECUTE_READ, &old_protection); FlushInstructionCache(process, remote_payload, payload_size); The program checks the target image name and rejects a non-x64 process before doing this. The target is selected by PID so I can start Paint normally and choose the exact process shown in Task Manager or Process Hacker 2. When the debugger reports the initial breakpoint, the target thread is stopped. We save its original DR0 and DR7, set DR0 to the current RIP, and enable the local execute breakpoint: breakpoint_address = context.Rip; saved_dr0 = context.Dr0; saved_dr7 = context.Dr7; context.Dr0 = breakpoint_address; context.Dr6 &= ~((DWORD64)1); context.Dr7 &= ~((DWORD64)0x3 | ((DWORD64)0xF << 16)); context.Dr7 |= 1; SetThreadContext(thread, &context); The bit in DR
16530bb72e6b1b5d5055aa9462e32f7def5d966ecc9391a9285cbd77d6a28311Network indicators are visibly defanged. This page does not make them clickable or send them to another service.
No validated file hashes or network indicators are stored for this record.
This record contains metadata and attribution only. It does not host, download, unpack, render, or execute malware samples.
Sources represented on this page. Publication and observation dates describe the content; successful batch dates describe local collection. A recent batch does not certify complete coverage or current provider availability.
1 sources: 0 stale, 0 needing attention, 0 paused, 0 unverified.
Stale means older than twice the recorded collection interval, with a minimum of one hour; without an interval, the threshold is 24 hours. Cached content remains available while a feed is stale, paused, or unverified.