SentinelOne
CVE Vulnerability Database

CVE-2025-4660: Forescout SecureConnector RCE Vulnerability

CVE-2025-4660 is a remote code execution flaw in Forescout SecureConnector's Windows agent that exploits improper named pipe access controls. This article covers the technical details, affected systems, and mitigation strategies.

Updated:

CVE-2025-4660 Overview

A remote code execution vulnerability exists in the Windows agent component of Forescout SecureConnector due to improper access controls on a named pipe. The pipe is accessible to the Everyone group and does not restrict remote connections, allowing any network-based attacker to connect without authentication. By interacting with this pipe, an attacker can redirect the agent to communicate with a rogue server that can issue commands via the SecureConnector Agent.

This vulnerability specifically affects the Windows implementation of SecureConnector and does not impact Linux or macOS Secure Connector deployments.

Critical Impact

Network-based attackers can achieve remote code execution on Windows endpoints running SecureConnector by exploiting insecure named pipe permissions, potentially compromising endpoint security agents and gaining full system control.

Affected Products

  • Forescout SecureConnector (Windows agent component)
  • Microsoft Windows operating systems running SecureConnector

Discovery Timeline

  • May 13, 2025 - CVE-2025-4660 published to NVD
  • May 15, 2025 - Last updated in NVD database

Technical Details for CVE-2025-4660

Vulnerability Analysis

This vulnerability stems from CWE-276 (Incorrect Default Permissions), where the Windows named pipe used by SecureConnector is configured with overly permissive access controls. Named pipes are a Windows inter-process communication (IPC) mechanism that allows processes to exchange data. In this case, the SecureConnector agent creates a named pipe that is accessible to the Everyone group, meaning any user on the system—or remotely over the network—can connect to it.

The critical flaw is twofold: first, the pipe grants access to all users rather than restricting it to authorized processes or administrators; second, it does not implement restrictions on remote connections. This combination allows unauthenticated network attackers to connect to the named pipe from a remote system.

Root Cause

The root cause is improper access control configuration on the named pipe resource created by the SecureConnector Windows agent. The pipe's security descriptor grants access to the Everyone group without implementing proper authentication checks or network access restrictions. This misconfiguration violates the principle of least privilege and creates an externally accessible attack surface.

Attack Vector

The attack vector is network-based and requires low privileges to execute. An attacker can exploit this vulnerability through the following mechanism:

  1. Discovery: The attacker identifies a Windows endpoint running the vulnerable SecureConnector agent on the network
  2. Connection: Using standard Windows named pipe connection APIs, the attacker connects to the exposed named pipe remotely
  3. Redirection: Through the pipe interface, the attacker manipulates the agent to communicate with an attacker-controlled rogue server
  4. Command Execution: The rogue server impersonates the legitimate SecureConnector management infrastructure and issues malicious commands to the agent
  5. Code Execution: The agent executes the attacker's commands, achieving remote code execution on the target system

The vulnerability is particularly dangerous because it targets a security agent that typically runs with elevated privileges, potentially giving attackers full control over the compromised endpoint.

Detection Methods for CVE-2025-4660

Indicators of Compromise

  • Unusual named pipe connections originating from external IP addresses to SecureConnector agent processes
  • SecureConnector agent communicating with unexpected or unauthorized server addresses
  • Anomalous process execution spawned by the SecureConnector agent process
  • Network connections from SecureConnector.exe or related processes to unknown infrastructure

Detection Strategies

  • Monitor Windows Security Event Logs for named pipe access events (Event ID 5145) targeting SecureConnector-related pipes
  • Implement network segmentation monitoring to detect unauthorized remote named pipe connections (SMB traffic on TCP port 445)
  • Deploy endpoint detection rules to identify SecureConnector processes initiating connections to non-standard management servers
  • Analyze process creation events for suspicious child processes spawned by SecureConnector agent executables

Monitoring Recommendations

  • Enable Windows auditing for named pipe access and monitor for connections from the Everyone group or anonymous users
  • Implement network-level monitoring for SMB traffic attempting to access named pipes on endpoints
  • Configure SIEM alerts for SecureConnector agents communicating with IP addresses outside the approved Forescout infrastructure
  • Regularly audit named pipe permissions on endpoints running SecureConnector to ensure proper access controls

How to Mitigate CVE-2025-4660

Immediate Actions Required

  • Contact Forescout support to obtain the latest security patch for SecureConnector Windows agent
  • Implement network segmentation to restrict remote access to Windows named pipes (block inbound SMB/TCP 445 from untrusted networks)
  • Review and audit all Windows endpoints running SecureConnector for signs of compromise
  • Consider temporarily disabling or isolating affected SecureConnector agents until patches can be applied

Patch Information

Forescout has been notified of this vulnerability. Organizations should consult the Forescout Support Portal for official security advisories and patch availability. Apply vendor-provided patches as soon as they become available, prioritizing internet-facing and high-value endpoints.

Workarounds

  • Implement Windows Firewall rules to block inbound SMB connections (TCP 445) from unauthorized networks to endpoints running SecureConnector
  • Use network-level access controls to restrict which systems can communicate with SecureConnector agents
  • Deploy host-based intrusion prevention rules to monitor and block suspicious named pipe access patterns
  • Consider implementing IPsec policies to require authentication for named pipe communications where feasible
bash
# Windows Firewall rule to block inbound SMB from untrusted networks
netsh advfirewall firewall add rule name="Block Remote Named Pipe Access" dir=in action=block protocol=tcp localport=445 remoteip=any
# Note: Adjust remoteip parameter to allow only trusted management subnets

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.