Detect OpenPLC ScadaBR Cross-Site Scripting (XSS) Exploitation Detected in CrowdStrike LogScale
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
LogScale Detection Query
#event_simpleName=NetworkConnectIP4 OR #event_simpleName=NetworkConnectIP6 OR #event_simpleName=SuspiciousHttpRequest
| RemotePort = 80 OR RemotePort = 443 OR RemotePort = 8080 OR RemotePort = 8443
| HttpUrl = "*ScadaBR*" OR HttpUrl = "*scadabr*" OR HttpUrl = "*/scada/*"
| HttpUrl = "*<script*" OR HttpUrl = "*javascript:*" OR HttpUrl = "*onerror=*" OR HttpUrl = "*onload=*" OR HttpUrl = "*alert(*" OR HttpUrl = "*document.cookie*"
| eval CVE = "CVE-2021-26829"
| eval ThreatCategory = "XSS-ICS-SCADA"
| stats count() AS RequestCount, values(HttpUrl) AS ObservedURLs, values(RemoteIP) AS TargetIPs BY aid, ComputerName, UserName, CVE, ThreatCategory
| sort - RequestCount CrowdStrike Falcon LogScale query identifying endpoints making HTTP connections to ScadaBR URLs containing XSS payload indicators. Aggregates by agent ID and computer name to identify affected hosts initiating exploit attempts.
Data Sources
Required Tables
False Positives & Tuning
- CrowdStrike-managed security testing hosts executing authorized web application scans
- Endpoint agents with Burp Suite proxy configured performing security research
- ScadaBR instances hosted on monitored endpoints where the server itself generates matching log events
- Browser-based security training platforms simulating XSS scenarios on ICS themes
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.
- 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.
- 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.
- 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.
- 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.
Unlock Pro Content
Get the full detection package for CVE-2021-26829 including response playbook, investigation guide, and atomic red team tests.