Threat reportPhishingTL-2026-3036
Google Phishing Kit Uses Real-Time Browser-in-the-Middle (Socket.IO) Remote Browser Relay
Joe Security analyzed a Google sign-in phishing kit that implements a Browser-in-the-Middle (BitM) architecture: the victim's page relays every keystroke, click and selection to a backend browser over Socket.IO and applies the backend's DOM changes (via diffDOM) in return. The kit is gated by Cloudflare Turnstile and delivers an encrypted self-decrypting loader; no attribution or CVE is reported.
Key facts
| Identifiers | TL-2026-3036 |
|---|---|
| Severity | MEDIUM |
| First disclosed | |
| Affected products | Google Google Account sign-in (impersonated brand; no product vulnerability) |
| Malware | Google BitM phishing kit (Socket.IO/diffDOM) |
| Tools | Socket.IO, diffDOM |
| MITRE ATT&CK techniques | T1027 Obfuscated Files or Information, T1056 Input Capture, T1071.001 Web Protocols, T1480 Execution Guardrails, T1557 Adversary-in-the-Middle, T1684.001 Impersonation |
| Motivation | UNKNOWN |
| Target sectors | technology, general-consumer, enterprise |
| Target regions | Global |
| Detection rules | 9 (1 shown free) |
| Sources | 9 cited sources |
Detection coverage
As of 2026-08-11, Threadlinqs Intelligence publishes 9 detection rule(s) for TL-2026-3036 across Splunk SPL, Microsoft KQL and Sigma, covering 9 indicator(s) of compromise. The whole corpus is readable without an account. Every threat comes with one complete detection in Splunk SPL, Microsoft KQL and Sigma, free for everyone; a free account adds daily TL Creds to unlock the rest. Paid plans add a larger daily allowance, correlation and the MCP server. Threadlinqs MCP server · View plans.
Free detection: Google BitM Kit - Socket.IO Client, diffDOM and Relay Script Trio Loaded From One Origin
Post-exploitation/client-side execution: after the Turnstile gate the decrypted loader pulls socket.io-client.js, domdiffer.js (a reformatted diffDOM build) and index.js (relay logic) from the phishing origin. Any one of these names is common on its own, but a single client fetching all three from one non-CDN host within minutes is a strong BitM kit fingerprint. The SPL and KQL forms correlate all three per client and host; the Sigma form is the single-event component (kit scripts served from a non-CDN origin).
- Languages: Splunk SPL, Microsoft KQL, Sigma
- ATT&CK: T1059.007, T1027, T1056, T1557
- Data sources: web_proxy, splunk_cim_web, CommonSecurityLog
- Severity: high
- Confidence: high
Splunk SPL
```TL-2026-3036 BitM kit script trio - socket.io-client.js + domdiffer.js + index.js from one origin to one client (schedule over last 4h)```
| tstats summariesonly=false count min(_time) as firstTime max(_time) as lastTime from datamodel=Web.Web where (Web.url="*/socket.io-client*.js*" OR Web.url="*/domdiffer.js*" OR Web.url="*/index.js*") by Web.src Web.user Web.url
| rename Web.* as *
| rex field=url "^(?:[a-zA-Z][a-zA-Z0-9+.-]*://)?(?<web_host>[^/:?#]+)(?<web_path>/[^?#]*)?"
| eval script=case(match(web_path,"(?i)/domdiffer\.js$"),"domdiffer.js", match(web_path,"(?i)/socket\.io-client(\.min)?\.js$"),"socket.io-client.js", match(web_path,"(?i)/index\.js$"),"index.js")
| where isnotnull(script)
| fillnull value="unknown" user
| stats dc(script) as distinct_scripts values(script) as scripts sum(count) as requests min(firstTime) as firstTime max(lastTime) as lastTime by src user web_host
| where distinct_scripts=3 AND (lastTime-firstTime)<=600
| convert ctime(firstTime) ctime(lastTime)Microsoft KQL
let maxSpan = 10m;
CommonSecurityLog
| where TimeGenerated > ago(24h)
| where isnotempty(RequestURL)
| where RequestURL has_any ('socket.io-client', 'domdiffer.js', 'index.js')
| extend UrlHost = tostring(parse_url(RequestURL).Host), UrlPath = tostring(parse_url(RequestURL).Path)
| extend Script = case(
UrlPath endswith '/domdiffer.js', 'domdiffer.js',
UrlPath matches regex @'(?i)/socket\.io-client(\.min)?\.js$', 'socket.io-client.js',
UrlPath endswith '/index.js', 'index.js',
'')
| where isnotempty(Script)
| summarize Scripts = make_set(Script), DistinctScripts = dcount(Script), Requests = count(), FirstSeen = min(TimeGenerated), LastSeen = max(TimeGenerated) by SourceIP, SourceUserName, UrlHost
| where DistinctScripts == 3 and LastSeen - FirstSeen <= maxSpan
| order by LastSeen descSigma
title: Self-Hosted Socket.IO Client or diffDOM Build Fetched From Non-CDN Origin
id: 4d96c3a8-e215-47b0-a6f3-91c8d5072b3e
status: experimental
description: Detects proxy requests for domdiffer.js or socket.io-client.js from an origin that is not a well-known JavaScript CDN. The Google BitM phishing kit serves socket.io-client.js, domdiffer.js (a reformatted diffDOM build) and index.js from the phishing origin itself. Correlate all three per client and host in the SPL or KQL form of this detection.
references:
- https://www.joesecurity.org/blog/2909557602925734728
- https://github.com/fiduswriter/diffDOM
author: Threadlinqs Team
date: 2026-10-08
tags:
- attack.collection
- attack.t1056
- attack.credential-access
- attack.t1557
- attack.defense-evasion
- attack.t1027
- attack.execution
- attack.t1059.007
logsource:
category: proxy
detection:
selection:
c-uri-stem|endswith:
-'/domdiffer.js'
- '/socket.io-client.js'
- '/socket.io-client.min.js'
filter_cdn:
cs-host:
- 'cdn.socket.io'
- 'cdn.jsdelivr.net'
- 'cdnjs.cloudflare.com'
- 'unpkg.com'
condition: selection and not filter_cdn
falsepositives:
- Legitimate internal or SaaS web applications that self-host the Socket.IO client
- Developers testing real-time applications
level: mediumKnown false positives:
- Single-page applications that self-host socket.io-client.js and ship a bundle called index.js; the all-three correlation with domdiffer.js is what removes most of these
- Internal developer or QA environments running real-time apps with diffDOM
Tuning notes: The trio correlation is high fidelity because domdiffer.js is a kit-specific filename; keep the all-three requirement. If your proxy logs only host names for HTTPS without SSL inspection, this detection will not fire; it needs URL-level visibility. Widen the 10 minute span if proxy log ingestion is delayed. Add your sanctioned internal Socket.IO hosts to an exclusion lookup.
- Google BitM Phishing Kit - Endpoint, Click and Email Evidence for [indicator] · unlock with TL Creds
- Google BitM Kit - Cloudflare Turnstile Gate Followed by Socket.IO Relay on the Same Host · unlock with TL Creds
- Google BitM Kit - High-Rate Socket.IO Long-Polling POST Relay (Per-Keystroke Input Events) · unlock with TL Creds
- Google BitM Kit - viewer_session_id Cookie Set After Turnstile Challenge · unlock with TL Creds
- Google BitM Kit - [indicator] (Reformatted diffDOM Build) Requested · unlock with TL Creds
- Google BitM Kit - Google Account Sign-In From a New IP After User Exposure to the Relay (Session Theft Risk) · unlock with TL Creds
- Google BitM Phishing Kit - Network Contact With [indicator] (Web and DNS) · unlock with TL Creds
- Google BitM Kit - Engine.IO/Socket.IO Relay on a Newly Seen, Low-Prevalence Host · unlock with TL Creds
Indicators of compromise
As of 2026-08-11, Threadlinqs Intelligence tracks 9 indicators of compromise for TL-2026-3036.
Sample indicators (1 of 9)
- Domain:
salemilaw[.]com
Defanged, TLP:CLEAR. Full set of 9 indicators: unlock with TL Creds.
Technical analysis
Joe Security (blog post dated 11.08.2026, parsed as 2026-08-11) documents a phishing kit that mimics the Google authentication flow but is not a static clone. It is a Browser-in-the-Middle / adversary-in-the-middle design in which the victim-facing page is only a thin client for a browser session running on the attacker's backend. The backend streams complete Google authentication views and subsequent DOM updates to the victim over Socket.IO, while the victim's browser sends full field state and user interactions in the opposite direction. The backend can therefore drive a multi-step authentication flow while the victim stays on the malicious origin.
Delivery and gating: the first request to the phishing origin returns a Cloudflare Turnstile challenge. After the challenge is completed the server sets three cookies with a 3-minute lifetime, one of which is viewer_session_id, and redirects to an encrypted application loader that carries its own self-decryption material. The decrypted loader pulls three JavaScript components from the phishing origin: socket.io-client.js (Socket.IO transport), domdiffer.js (a reformatted browser build of the open-source fiduswriter/diffDOM library) and index.js (custom relay and control logic).
Relay protocol: the client emits inputchange (full input value, CSS path, selectionStart/selectionEnd and element metadata), selectionchange (caret movement) and click events, capturing normal input, paste, IME composition and change events, and calling preventDefault/stopPropagation on user interactions. The server emits domchanges (diff arrays applied to head, body and nested iframes through diffDOM), inputchange (server-directed field updates with selection restoration), navigation commands with URL rewriting that keeps the victim on the malicious origin, and flow-control signals (document reset, pause, completion redirect). A client-side inputTracker suppresses outbound events that match server-supplied values to avoid feedback loops. Because authentication evolves through continuous state exchange rather than a form POST and reload, there is no conventional credential submission for network tooling to key on; pre-rendered elements such as a hiddenPassword field reference were seen in the patches delivered after the email step.
Evidence: Joe Sandbox reproduced a live session (analysis 1951180) showing a pixel-faithful Google sign-in UI. TLS inspection exposed plaintext Engine.IO/Socket.IO framing: 90 protocol records with 74 application events, most after the HTTP-to-WebSocket upgrade. A Joe Reverser expert-mode analysis recovered the decryption mechanism and JavaScript components. Only one network indicator is published, the domain salemilaw[.]com. The analyst did not state the delivery vector (lure), the victim set, the actor, or whether the domain is attacker-registered or a compromised legitimate site; none is asserted here. A BeaconBeagle config search for the domain returned no records, and open web search found no other reporting on it.
Analyst note: the report states the kit relays the full authentication flow, which is the property that makes BitM effective against password-plus-MFA sign-ins (the same mechanism described for the public CuddlePhish BitM tool), but the Joe write-up does not itself show MFA or session-cookie theft, so those capabilities are treated as a risk, not an observed behavior. A separate, apparently unrelated Google credential kit reported by cside (July 2026) uses image-streamed remote-browser rendering over encrypted WebSockets rather than Socket.IO/diffDOM and is cited for context only; its indicators are not merged into this record.
MITRE ATT&CK techniques by tactic:
Defense Evasion
T1027 Obfuscated Files or Information; T1480 Execution Guardrails; T1684.001 Impersonation
Collection
Command and Control
Credential Access
Remediation
Immediate actions
- Block and sinkhole salemilaw[.]com (as salemilaw.com) at DNS, proxy and email gateway; hunt historical proxy/DNS logs for it
- Alert on Google sign-in lookalike pages served from non-Google origins that load socket.io-client, domdiffer.js and a custom index.js
- For any user who interacted with the page, revoke all active Google sessions and tokens, reset the password and re-enroll MFA; a password reset alone is not sufficient if a live session was relayed
Workarounds
- Detect Cloudflare Turnstile challenges on untrusted or newly registered origins that precede a credential prompt
- Flag short-lifetime (about 3-minute) session cookies such as viewer_session_id set by unfamiliar origins
- Monitor for DOM-diff payloads applied to credential input fields and for per-keystroke email input relays during authentication flows
Longer-term hardening
- Move high-risk users to phishing-resistant authentication (FIDO2/WebAuthn security keys or passkeys), which are bound to the real origin and break BitM relays
- Deploy browser or secure-web-gateway controls that detect credential-page lookalikes and WebSocket/Socket.IO sessions to newly seen domains following a login-like page
- Train users that a sign-in page reached through a link, even one behind a Cloudflare Turnstile check, is not evidence of legitimacy
Affected and fixed versions
- Google — Google Account sign-in (impersonated brand; no product vulnerability)
Timeline
- Context only: cside investigates a separate Google credential phishing kit (image-streamed remote browser over encrypted WebSockets, not Socket.IO/diffDOM), showing the remote-browser phishing pattern is in active use.
- Report recommends detections for Turnstile gates on untrusted origins, Socket.IO connections to non-legitimate domains, socket.io-client/domdiffer/relay JS, viewer_session_id cookies and DOM diffs on credential inputs.
- Report discloses [domain withheld] as the phishing infrastructure hosting the Socket.IO relay and encrypted loader; no actor attribution is given.
- Joe Reverser expert-mode analysis recovers the encrypted loader's self-decryption and the three JS components ([file name withheld], [file name withheld], [file name withheld]).
- Joe Sandbox reproduces a live session (analysis 1951180) and, through TLS inspection, captures 90 Engine.IO/Socket.IO protocol records with 74 application events.
- Joe Security publishes its analysis of the Google phishing kit (blog date 11.08.2026, parsed as DD.MM.YYYY). The sample first-seen date is not disclosed.
Sources cited
- MITRE ATT&CK T1557 Adversary-in-the-Middle MITRE · Advisory · 2026-08-11
- Google Phishing Kit: When Phishing Becomes a Real-Time Remote Browser (Joe Security) joesecurity.org · Research · 2026-08-11
- Joe Sandbox Analysis 1951180 (live phishing session) joesandbox.com · Research · 2026-08-11
- Joe Sandbox TLS-inspected capture for analysis 1951180 joesandbox.com · Research · 2026-08-11
- Joe Reverser expert-mode report (loader decryption and JS components) joesandbox.com · Research · 2026-08-11
- Socket.IO conversation extraction script (Appendix A of the Joe post) pastebin.com · Research · 2026-08-11
- SpecterOps CuddlePhish docs: Browser-in-the-Middle overview docs.specterops.io · Research · 2026-08-11
- fiduswriter/diffDOM (library reused in domdiffer.js) GitHub · Code repository · 2026-08-11
- cside: Inside a live Google credential phishing kit (related, distinct kit) cside.com · Blog · 2026-07-22
Previous and next in phishing
AI-drafted from 9 cited sources; published ; last updated —.