Summary
DeepSeek Harness's web profile control plane exposes HTTP and WebSocket RPC session methods without authentication. A local process may be able to control an agent session, access live session traffic, or bypass tool-approval checks; invoking agent tools could lead to command execution with the victim user's privileges.
Affected context
The issue affects the web profile's HTTP and WebSocket RPC control plane in the specified DeepSeek Harness releases. It becomes risky when local processes can reach the unauthenticated session methods and event stream, and the agent has access to tools or credentials that could be misused.
Exploit preconditions
- Attack surface: The web profile's HTTP and WebSocket RPC control plane, including session methods and the event mux stream
- Required access: The ability to run a local process that can reach the control plane; the description indicates this can include a process running as a different OS user
- Trigger point: Calls to session methods such as session.create or session.prompt, or interaction with the approval endpoint
- Why exploitation is possible: The control plane does not authenticate callers, and approval handling can rely on identifiers exposed through the ungated event stream
Why this happens
The control plane permits access to sensitive RPC methods without verifying the caller's identity. This maps to CWE-306: Missing Authentication for Critical Function. Without authentication and suitable authorization checks, local processes may be treated as trusted callers when accessing session controls, event data, and tool-approval functionality.
Potential impact
- An attacker could control or create agent sessions without authorization.
- An attacker may trigger the agent's bash or filesystem tools, potentially executing commands as the victim user.
- An attacker could access live session traffic and logs exposed through the event stream.
- An attacker may bypass human tool-approval checks.
- Actions performed through the agent could misuse credentials configured for its model or other integrations.
General mitigation guidance
Defensive patterns should require authentication and per-user authorization for control-plane methods, rather than trusting that a caller is local. Sensitive session events should be isolated by identity, and approval decisions should be bound to authenticated principals and protected against replay or inference from broadcast data. Restrict tool capabilities and credentials to the minimum needed, and use secure-by-default access controls for the control plane.
How teams detect issues like this
- Review HTTP and WebSocket RPC handlers for sensitive methods that lack authentication or caller-specific authorization.
- Use static analysis or code review checks to identify control-plane routes that expose session operations without access-control middleware.
- Check whether event streams disclose session or approval data to callers who have not been authenticated and authorized for that session.
- Enforce policy checks in tests and CI so unauthenticated callers cannot invoke sensitive methods or access another user's session data.

