A newly documented Windows process injection technique can place and execute payloads inside a console application without calling the heavily monitored WriteProcessMemory and VirtualAllocEx APIs.
The approach, dubbed console named-pipe injection, abuses redirected standard input to place attacker-controlled bytes into a child process’s memory before changing page protections and hijacking execution flow.
Traditional remote process injection typically follows a highly recognizable sequence: an attacker opens a target process, allocates memory remotely with VirtualAllocEx, copies a payload using WriteProcessMemory, and starts or redirects a thread to execute the injected code.
New Windows Process Injection Technique
Because this allocate-write-execute pattern is widely abused, EDR platforms commonly generate high-confidence telemetry when these APIs are used across process boundaries. MITRE ATT&CK tracks the broader activity as Process Injection, technique T1055.
The new method, published by researcher Two Seven One Three, replaces direct remote-memory writes with Windows interprocess communication.

Instead of targeting an existing process, the injector launches an interactive console child process, such as nslookup.exe or netsh.exe, with its standard input redirected through a named pipe.
The parent process retains the write end of that pipe and uses WriteFile to send payload bytes to the child’s standard-input handle.
Those bytes are subsequently stored somewhere in the console application’s own address space while the application processes incoming input.
The injector can then scan the child process’s memory for a distinctive marker prepended to the payload, identify its location, and calculate the intended execution address after the marker.
Rather than allocating a new memory region, the technique repurposes memory that Windows has already populated through the console input mechanism.
The proof-of-concept workflow reportedly changes protection on the located memory region with VirtualProtectEx, then suspends a thread, modifies its instruction pointer, and resumes it so execution begins at the injected payload.
This shifts detection opportunities away from the traditional WriteProcessMemory sequence and toward behavioral correlations involving pipe activity, remote memory-protection changes, memory scanning, and thread-context manipulation.
The technique has technical limitations. Payloads must avoid carriage return (0x0D), line feed (0x0A), and substitute (0x1A) characters, as console parsing may interpret them as command delimiters or end-of-file input.
If encountered, the target console application may process the data as a command instead of retaining the complete byte sequence in memory.
The research follows related work from SensePost researchers Max Hirschberger and Ogulcan Ugur, whose Process Parameter Poisoning technique also avoided WriteProcessMemory and VirtualAllocEx by transferring code through process-creation parameters.
Zerosalarium said its separate technique was tested against four EDR products, although those results do not independently validate the console named-pipe implementation. Defenders should avoid relying solely on alerts for VirtualAllocEx and WriteProcessMemory.
Detection engineering should instead correlate unexpected parent-child relationships involving interactive console binaries, redirected standard handles, binary-like data written to standard input, remote VirtualProtectEx calls that make memory executable, and thread suspension or SetThreadContext activity followed by resumption.
Named-pipe telemetry can also provide useful context. Sysmon Event IDs 17 and 18 record named-pipe creation and connection activity, but anonymous pipes used for redirected standard input may require endpoint telemetry with stronger handle, API, and memory-operation visibility.
Join 16,000+ SOC teams using ANY.RUN to streamline threat investigations and reduce manual effort. Explore for your team