WM_COPYDATA is a Windows message used by one local process to send a block of data directly to another process or window. It is part of Windows inter-process communication, so it is common in desktop tools that need to share paths, commands, or small configuration values without opening a network socket.
In security terms, WM_COPYDATA matters because the sender is local, not necessarily trusted. If an application does not validate the message size, format, or contents, a crafted payload can trigger crashes, memory corruption, or logic abuse. In some cases, attackers use malformed window messages to confuse a program into acting on bad input or to reach denial-of-service bugs. Defenders should treat WM_COPYDATA as untrusted input, verify the sender where possible, check lengths before copying, and parse data with strict bounds and encoding rules. The key rule is simple: local IPC is still an attack surface.


