CVE-2021-26829 Google Chronicle · YARA-L

Detect OpenPLC ScadaBR Cross-Site Scripting (XSS) Exploitation Detected in Google Chronicle

Detects exploitation attempts targeting CVE-2021-26829, a stored or reflected cross-site scripting vulnerability in OpenPLC ScadaBR. ScadaBR is a SCADA/HMI platform used in industrial control environments. Successful exploitation allows attackers to inject malicious scripts into the web interface, potentially enabling session hijacking, credential theft, or lateral movement within OT/ICS environments. This CVE is listed on CISA's Known Exploited Vulnerabilities catalog.

MITRE ATT&CK

Tactic
Initial Access Credential Access Lateral Movement

YARA-L Detection Query

Google Chronicle (YARA-L)
yaral
rule cve_2021_26829_scadabr_xss {
  meta:
    author = "df00tech Detection Engineering"
    description = "Detects XSS exploitation attempts targeting OpenPLC ScadaBR (CVE-2021-26829)"
    severity = "HIGH"
    priority = "HIGH"
    cve = "CVE-2021-26829"
    reference = "https://nvd.nist.gov/vuln/detail/CVE-2021-26829"
    yara_version = "YL2.0"
    rule_version = "1.0"

  events:
    $http.metadata.event_type = "NETWORK_HTTP"
    (
      re.regex($http.target.url, `(?i)scadabr`) or
      re.regex($http.target.file.full_path, `(?i)/[Ss]cada[Bb][Rr]/`) or
      re.regex($http.target.file.full_path, `(?i)/scada/`)
    )
    (
      re.regex($http.target.url, `(?i)(<script|javascript:|onerror=|onload=|alert\(|document\.cookie|<img[^>]+onerror|<svg[^>]+onload)`) or
      re.regex($http.network.http.referral_url, `(?i)(<script|javascript:|onerror=)`)
    )

  condition:
    $http
}
high severity medium confidence

Chronicle YARA-L 2.0 rule matching HTTP events where the URL targets ScadaBR paths and the URL or referrer contains XSS payload signatures characteristic of CVE-2021-26829 exploitation.

Data Sources

Chronicle SIEMGoogle Cloud HTTP load balancer logsProxy/web gateway UDM events

Required Tables

network_http

False Positives & Tuning

  • Authorized red team exercises targeting ICS/SCADA environments with documented scope
  • Internal security tooling performing continuous web application security testing
  • URL normalization edge cases where encoded angle brackets appear as literal characters
  • Third-party SCADA monitoring tools sending telemetry through HTTP endpoints with special characters

Other platforms for CVE-2021-26829


Testing Methodology

Validate this detection against 4 adversary techniques from Atomic Red Team. Each test below lists the behaviour to exercise and the telemetry you should expect to see. Executable commands and cleanup steps are available with Pro.

  1. Test 1Reflected XSS Probe via ScadaBR Search Parameter

    Expected signal: Web server access log entry with URI containing '<script>alert(document.cookie)</script>' and HTTP response code (200 if reflected, 400/500 if filtered). WAF logs should show XSS rule match.

  2. Test 2Stored XSS via ScadaBR Watchlist Name Field

    Expected signal: POST request in web access logs to ScadaBR watchList endpoint with body containing XSS payload. Subsequent GET requests loading the watchlist page will serve the stored payload to other authenticated users.

  3. Test 3Session Cookie Exfiltration Simulation via XSS

    Expected signal: Outbound HTTP GET request from the ScadaBR operator's browser/host to the attacker's listener IP on port 8888 with the session cookie in the query parameter. Network flow logs should show the lateral connection from the OT network to the attacker IP.

  4. Test 4ScadaBR XSS via HTTP Referrer Header Injection

    Expected signal: HTTP access log entry showing the malicious Referer header value. If ScadaBR reflects the Referer in error pages or breadcrumbs, the response body will contain the injected script tag.

Last updated: 2026-06-19 Research depth: standard
References (2)

Unlock Pro Content

Get the full detection package for CVE-2021-26829 including response playbook, investigation guide, and atomic red team tests.

Response PlaybookInvestigation GuideHunting QueriesAtomic Red Team TestsTuning Guidance

Related Detections