LIVE · cybersecurity feed
Live wire
security

Named Pipes Under Attack: Securing Windows Interprocess Communication

Named pipes, a common mechanism for interprocess communication (IPC) on Windows systems, are frequently treated as inherently secure due to their local nature. However, cybersecurity experts are cautioning that this assumption is unsafe and can lead to significant vulnerabilities, particularly when a privileged service communicates with a less privileged application.

ZeroDay News ·

Source: BleepingComputer

Named pipes, a common mechanism for interprocess communication (IPC) on Windows systems, are frequently treated as inherently secure due to their local nature. However, cybersecurity experts are cautioning that this assumption is unsafe and can lead to significant vulnerabilities, particularly when a privileged service communicates with a less privileged application.

Developers often assume that because named pipes facilitate communication between applications on the same computer, the interactions are trusted. This overlooks the complex environment of a Windows workstation, which can host processes running under various users, security contexts, and sessions, including potentially compromised accounts or malicious software. Any process with knowledge of a pipe's name and sufficient access rights can attempt to connect, regardless of whether it is the intended client.

The primary risk arises when a Windows service operating with elevated privileges, such as `LocalSystem`, exposes functionality through a named pipe to a desktop application running under a standard user account. Such a service might have the ability to modify protected files and registry keys, launch processes, alter system configurations, or access other users' data. When these operations are accessible via a named pipe, the pipe effectively becomes an API to privileged functionality.

A successful connection to a named pipe only confirms that the client had permission to open the pipe, not that it is the legitimate application or that the connected user is authorized for specific operations. Experts advise that pipe permissions should be explicitly defined and restricted to the narrowest possible set of identities, avoiding broad permissions like `Everyone` or `Authenticated Users`. Authentication, which verifies who connected, must be separated from authorization, which determines what that identity is permitted to do. Sensitive commands should be individually authorized.

Servers must also validate the security identity behind a connection, rather than relying on the process name, executable path, or the perceived secrecy of the pipe name. The server should authorize each operation separately; for instance, a client allowed to query service status should not automatically be permitted to stop the service or modify protected configurations. Without strict validation, a privileged service can become a "confused deputy," executing actions chosen by a less privileged client, such as reading an arbitrary system file instead of an intended status file.

The client side also bears responsibility for verifying the server. An attacker could create a named pipe using an expected name before the legitimate server starts, causing the client to connect to an attacker-controlled process. While the "first-pipe-instance" option can help detect if a name is already claimed, it does not replace proper access controls or server identity verification.

Furthermore, messages received through a named pipe must be treated as untrusted input. Even an authenticated client might send malformed or oversized payloads, invalid paths, unsupported command combinations, or corrupted data designed to trigger error conditions. A privileged service that directly translates such input into file, registry, or process operations risks becoming a confused deputy. Robust validation, including strict message framing, bounded sizes, command allowlists, schema validation, path normalization, and safe error handling, is crucial.

Named pipe security also extends to availability and remote exposure. A malicious or malfunctioning process could repeatedly connect, hold connections open, send incomplete messages, or submit requests that consume excessive CPU, memory, or kernel resources. Servers should implement connection limits, timeouts, cancellation, bounded message sizes, controlled concurrency, and rate limiting. It is also important to note that Windows named pipes can support remote access in some configurations. Pipes intended exclusively for local IPC should explicitly block network identities like `NT AUTHORITY\NETWORK` or use mechanisms that guarantee local-only communication.

The overarching principle for named pipe security is to consider every connection potentially hostile until the client or server identity, permissions, requested operation, and message contents have all been thoroughly verified. This approach is particularly critical when a named pipe acts as a security boundary between processes with differing privilege levels or trust levels.

ShareXLinkedInWhatsAppFacebook

More News

view all →
security

Canadian cybersecurity executive arrested in federal extortion case

A Canadian cybersecurity executive was arrested in Pennsylvania on Thursday, facing federal charges of conspiracy to commit extortion. Edward Dubrovsky, 54, a co-founder and former Chief Operating Officer of CYPFER, a firm specializing in ransomware negotiation, is charged with conspiring to threaten the confidentiality of information for extortion and conspiring to commit Hobbs Act extortion,…

breach

Criminal IP Introduces AITEM as the Next Evolution of Attack Surface Management

AI SPERA, the company behind the cyber threat intelligence platform Criminal IP, has announced AITEM (AI-Powered Threat Exposure Management), an expansion of its Attack Surface Management (ASM) offerings. AITEM aims to move beyond traditional asset discovery to provide a more comprehensive approach to understanding, prioritizing, and responding to security exposures. The platform is scheduled…

ai

AI Is Getting Really Good at Messing With Cybercriminals

Anti-cybercrime initiatives are increasingly deploying artificial intelligence to disrupt scammers by engaging them with lifelike bots, which the criminals mistake for genuine victims. This strategy aims to waste scammers' time and resources while gathering intelligence on their operations.

ransomware

FBI Arrests Ransomware Negotiation Firm Co-Founder in ShinyHunters Probe

The Federal Bureau of Investigation (FBI) has reportedly arrested Edward Dubrovsky, a co-founder of the ransomware negotiation firm Cypfer and currently associated with CyberSteward. The arrest is said to be part of the ongoing ShinyHunters investigation, specifically in connection with an incident involving FBI job applicant data.

ai

The Third-Party Agent Problem: Why Security Built for AI You Chose Misses the Agents You Didn't

A new report highlights a significant blind spot in enterprise security architectures concerning the proliferation of third-party AI agents. The forthcoming 2026 State of Agent Security Report indicates that current security models, often designed to protect AI systems directly chosen and deployed by an organization, frequently fail to account for AI capabilities embedded within third-party…

security

Insider Cyber Extortion Plot Against Industrial Firm Lands Engineer in Prison

A former core infrastructure engineer has been sentenced to prison for an attempted cyber extortion plot against an industrial firm. The engineer reportedly deleted administrative accounts and reset hundreds of user passwords, subsequently demanding a ransom of 20 Bitcoin to prevent further disruption to the company's servers.