ExtraHop named a Leader in the 2025 Forrester Wave™: Network Analysis And Visibility Solutions

Search
  • Platformchevron right
  • Solutionschevron right
  • Modern NDRchevron right
  • Resourceschevron right
  • Companychevron right

DETECTION OVERVIEW

Cross-site Scripting (XSS) Attack

Risk Factors

Web applications often contain cross-site scripting (XSS) vulnerabilities that can easily be exploited. Depending on the type of malicious script and whether it can affect other browsers, the impact to the victim can be significant if sensitive information is stolen.

The system might change the risk score for this detection.

Category

Exploitation
Detection diagram
Next in Exploitation: DCShadow Activity

Attack Background

During a cross-site scripting (XSS) attack, an attacker inserts a malicious script into a link or content associated with a trusted web application, and the script is then delivered to an unsuspecting victim to run in their browser. There are several techniques for accomplishing an XSS attack. For example, stored XSS is a technique where the attacker injects the malicious script into content that is stored on a web server and then later served to victims. With reflected XSS, the attacker injects a malicious script into the URI parameters of a link. After the victim clicks the link, an HTTP request with the malicious script is sent to the web server, and then the script is bounced back from the server to the victim. Whichever technique is deployed, ultimately the malicious script runs in the browser of the victim. The attacker is able to collect sensitive information such as credentials, cookies, or session tokens, or the attacker can rewrite the HTML of a web page to further trick the victim with a phishing attack.

Mitigation Options

Enforce safe coding rules with a security-focused encoding library

Parse and clean HTML-formatted text from markup languages with an HTML-sanitization library

Do not allow untrusted data to be inserted into HTML documents

Do not accept scripts or code from untrusted sources

MITRE ATT&CK ID

Associated content

Announcing The Forrester Wave™: Network Analysis And Visibility Solutions, Q4 2025

Network analysis and visibility solutions remain underrepresented in enterprises. Find out why in this preview of a new Wave report.

Report

ExtraHop® Named a Leader in First-Ever Gartner® Magic Quadrant™ for Network Detection and Response — ExtraHop

ExtraHop® Named a Leader in First-Ever Gartner® Magic Quadrant™ for Network Detection and Response

News

Detections

Visit this resource for more information.

Docs

The 2025 ExtraHop Global Threat Landscape Report: The Alarming Reality of Threat Actor Dwell Time and Deeper Network Access — ExtraHop

This analysis exposes the critical link between an organization's lack of internal visibility and the escalating cost of compromise, demanding an urgent re-evaluation of how core business assets are protected.

Blog

ExtraHop RevealX MITRE ATT&CK Coverage 2024 — ExtraHop

Learn why you need to be wary of the claims certain network detection and response providers make about their coverage against the MITRE ATT&CK framework.

Blog

MITRE ATT&CK - Network Detection & Response with RevealX — ExtraHop

Learn how NDR from RevealX helps security teams detect and investigate more adversary TTPs in the MITRE ATT&CK framework than rule-based tools.

External
Periodic Table of Use Cases

What else can RevealX do for you?