Client-Side XSS Detection via Server Simulation

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Existing defense mechanisms against cross-site scripting (XSS) attacks, such as pattern-based policies, face challenges in creating comprehensive blocklists without blocking legitimate traffic, and struggle to detect client-side XSS attacks effectively due to varying server-side endpoint behaviors.

Innovation Solution

A novel client-side simulation mechanism is introduced, which adds a simulation layer on the server-side to detect XSS behaviors by simulating and replicating client-side actions, allowing for the detection of malicious activities and generating security incident notifications, while reducing false positives through verification and machine learning-based detection models.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Measurement precision

If pattern-based policies are used to block XSS attacks, then detection capability is improved, but false positives increase and legitimate traffic may be blocked

Engineering Contradiction:
ImproveXSS detection capabilityVSAvoidfalse positive rate
Core Design Contradiction:
Measurement precisionVSReliability

Solution Approach 1:

Instead of blocking requests based on pattern matching, the patent inverts the approach by allowing requests through and then simulating client-side execution to detect malicious behavior. This reversal reduces false positives because detection occurs after the request is validated through simulation rather than preemptive blocking.

Inventive Principle:
Principle #13The other way round (Inversion)

Solution Approach 2:

The patent introduces a simulation layer as an intermediary between the server and client. This simulation environment acts as a mediator that executes payloads in a controlled setting, allowing detection of malicious behavior without directly impacting legitimate traffic or requiring aggressive blocking rules.

Inventive Principle:
Principle #24Intermediary (Mediator)

2Measurement precision

If comprehensive blocklists are created to detect XSS attacks, then detection coverage is improved, but legitimate traffic is blocked

Engineering Contradiction:
ImproveXSS detection coverageVSAvoidlegitimate traffic flow
Core Design Contradiction:
Measurement precisionVSProductivity

Solution Approach 1:

The patent inverts the traditional blocking approach by not creating comprehensive blocklists instead. Rather than preventing requests before they reach the server, the system allows all traffic through and uses simulation to identify malicious payloads, thus maintaining legitimate traffic flow while achieving detection coverage.

Inventive Principle:
Principle #13The other way round (Inversion)

Solution Approach 2:

The simulation layer performs self-service by automatically executing payloads and detecting malicious behavior without requiring pre-configured blocklists. This autonomous detection mechanism eliminates the need for manual blocklist maintenance and reduces interference with legitimate traffic.

Inventive Principle:
Principle #25Self-service

3Measurement precision

If server-side endpoint behaviors are monitored to detect XSS, then detection accuracy is improved, but complexity of detection increases

Engineering Contradiction:
ImproveXSS detection accuracyVSAvoiddetection system complexity
Core Design Contradiction:
Measurement precisionVSDevice complexity

Solution Approach 1:

The patent creates a copy of the client-side environment on the server side through simulation. By replicating browser behavior and executing payloads in this simulated environment, the system can detect XSS attacks by observing server-side endpoint behaviors without requiring complex analysis of actual client behaviors.

Inventive Principle:
Principle #26Copying

Solution Approach 2:

The simulation layer changes the execution environment parameters by running payloads in a controlled simulation context rather than in the actual client browser. This parameter change allows for standardized detection of malicious behaviors while simplifying the detection system, as all executions occur in the same simulated environment.

Inventive Principle:
Principle #35Parameter changes

Data Source

PatentUS11425151B2Client-side attack detection via simulation
Publication Date: 2022.08.23 PAYPAL INC
  • US11425151B2 patent drawing
  • US11425151B2 patent drawing
  • US11425151B2 patent drawing

AI summary

Client-side attack detection via simulation for detecting and mitigating cross-site script code client-side attacks is disclosed. A system can receive, through a network interface from a web server, a first response having a first payload that includes an action based on a request to the web server and a second response having a corresponding payload that is received concurrently with the first response on a signal path from the web server that is different from that of the first response. The system can invoke the action from the first payload and detect malicious activity in the invoked action. The system can verify the detecting of the malicious activity and issue a message indicating a security incident relating to the malicious activity. The system can either allow or restrict passage of the second response to a network based on a mode of the system when the malicious activity is verified.