Console Named-Pipe Injection Evades WriteProcessMemory Monitoring
Attack Tradecraft · 4 sources · Updated 2mo ago · First seen Sep 27, 2026

A newly published Windows process-injection technique, described as console named-pipe injection, places payload bytes into an interactive console child process through its standard-input named pipe rather than using the heavily monitored VirtualAllocEx and WriteProcessMemory APIs. The proof of concept launches a console application, sends bytes through standard input with WriteFile, identifies the resulting in-process buffer, changes its protection using VirtualProtectEx, and redirects a thread to execute the payload.
The technique is presented for authorized red-team and penetration-testing use, with no reported vulnerability, threat actor, malware campaign, or confirmed in-the-wild exploitation. Defenders should assess detections for remote VirtualProtectEx activity and unusual named-pipe read/write behavior involving console processes—particularly commonly abused binaries such as netsh.exe and nslookup.exe—rather than relying solely on alerts for cross-process memory allocation or WriteProcessMemory.
Why it matters
Impact assessment
Console named-pipe injection is a proof-of-concept Windows process-injection evasion method that can weaken endpoint detections focused narrowly on the conventional VirtualAllocEx plus WriteProcessMemory sequence. Windows environments where interactive console utilities are permitted or routinely automated are affected; abuse could enable arbitrary code execution inside trusted child processes such as nslookup.exe or netsh.exe.
- No CVE, vulnerable product, affected organization, malware family, threat actor, or confirmed in-the-wild exploitation is reported.
- Exposure is broad at the platform level: the technique targets interactive Windows console applications with standard input redirected to a pipe, rather than a flaw in one application.
- The operational risk is defense evasion and reduced alert fidelity. Successful use can conceal payload placement from controls that alert only on remote allocation and
WriteProcessMemoryactivity. - The technique still requires substantial cross-process access and produces observable activity, including process creation with redirected handles, remote memory-protection changes, and thread-context modification.
Affected entities
- Platform: Windows
- Example target processes:
nslookup.exe,netsh.exe - Potentially affected security controls: EDR detections dependent solely on
VirtualAllocExandWriteProcessMemorytelemetry - Researcher credited with disclosure: Two Seven One Three


