Zero Trust WebSocket Reauthentication via Session Monitoring

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Prolonged WebSocket sessions pose a security threat in cloud environments as they lack the ability to handle authentication or reauthentication, increasing the risk of unauthorized access to enterprise data on unsecured devices.

Innovation Solution

A cloud-based system implementing a zero trust network architecture that monitors WebSocket sessions, detects authentication triggers, and initiates a reauthentication process by disconnecting the session and prompting users to reauthenticate via HTTP redirects, using explicit reauthentication expiry messages produced by service server endpoints.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Stability of the object's composition

If WebSocket sessions are prolonged to maintain continuous connection, then connection stability is improved, but security risk increases due to lack of reauthentication capability

Engineering Contradiction:
Improveconnection stabilityVSAvoidsecurity risk
Core Design Contradiction:
Stability of the object's compositionVSObject-affected harmful factors

Solution Approach 1:

The system implements periodic reauthentication by monitoring session duration and triggering authentication requests at predetermined intervals. The processor detects when a WebSocket session exceeds a threshold duration and initiates reauthentication, creating a periodic cycle of authentication that maintains security while allowing continuous operation.

Inventive Principle:
Principle #19Periodic action

Solution Approach 2:

The system introduces an intermediary authentication mechanism that mediates between the WebSocket connection and the user. When reauthentication is needed, the system sends an authentication request through the WebSocket connection itself, using the existing connection as an intermediary to deliver authentication challenges without requiring complete disconnection.

Inventive Principle:
Principle #24Intermediary (Mediator)

2Productivity

If WebSocket protocol is used for extended sessions, then communication efficiency is improved, but authentication capability deteriorates as the protocol lacks built-in reauthentication mechanisms

Engineering Contradiction:
Improvecommunication efficiencyVSAvoidauthentication capability
Core Design Contradiction:
ProductivityVSAdaptability or versatility

Solution Approach 1:

The system makes the WebSocket connection multi-functional by using it both for data communication and for authentication purposes. The same WebSocket connection that carries application data is also used to transmit authentication requests and responses, eliminating the need for separate authentication channels and maintaining communication efficiency while adding authentication capability.

Inventive Principle:
Principle #6Universality (Multi-functionality)

Solution Approach 2:

The system introduces an intermediary authentication layer that operates within the WebSocket protocol framework. This intermediary mechanism allows authentication functionality to be added to the protocol without changing its fundamental efficient communication capabilities, bridging the gap between WebSocket's simplicity and authentication requirements.

Inventive Principle:
Principle #24Intermediary (Mediator)

3Object-affected harmful factors

If users are forced to reauthenticate frequently, then security is improved, but user convenience deteriorates due to repeated authentication interruptions

Engineering Contradiction:
ImprovesecurityVSAvoiduser convenience
Core Design Contradiction:
Object-affected harmful factorsVSEase of operation

Solution Approach 1:

The system implements self-service authentication where the client automatically handles reauthentication without requiring manual user intervention. When the processor detects that reauthentication is needed, it automatically sends authentication requests and processes responses, allowing the system to service itself and maintain security without interrupting the user experience.

Inventive Principle:
Principle #25Self-service

Solution Approach 2:

The system uses periodic monitoring with configurable thresholds to determine when reauthentication is necessary. By setting appropriate time intervals and session duration thresholds, the system balances security requirements with user convenience, triggering reauthentication only when truly necessary rather than on every connection event.

Inventive Principle:
Principle #19Periodic action

Data Source

PatentUS20240356918A1Reauthentication for zero trust WebSocket connections
Publication Date: 2024.10.24 ZSCALER INC
  • US20240356918A1 patent drawing
  • US20240356918A1 patent drawing
  • US20240356918A1 patent drawing

AI summary

Systems and methods for providing a smart reauthentication process for prolonged WebSocket sessions which may present a risk to cloud environments. The various embodiments can include monitoring a WebSocket session associated with a user, detecting one or more triggers associated with an authentication of the WebSocket session, and initiating an authentication process based on the one or more triggers. The authentication process can disconnect an existing WebSocket session and force the user to reauthenticate in order to continue the session.