# Google Phishing Kit: Browser-in-the-Middle Real-Time Remote Browser Relay via Socket.IO (DOMDIFFER-style kit, salemilaw.com)

> Joe Security analyzed a Google-impersonating phishing kit that works as a Browser-in-the-Middle system. It relays a live Google sign-in flow from a backend browser session to the victim's page over Socket.IO, after a Cloudflare Turnstile gate. Push Security tracks the same file set (socket.io-client.js, domdiffer.js, index.js) as the DOMDIFFER kit, used against corporate Google and Microsoft accounts to bypass 2FA.

- **Published:** 2026-11-20T01:31:04Z
- **Last reviewed:** 2026-11-20T01:31:04Z
- **Canonical:** https://intel.threadlinqs.com/threat/TL-2026-6521
- **Card image:** https://intel.threadlinqs.com/og/threat/TL-2026-6521.png
- **ID:** TL-2026-6521
- **Severity:** MEDIUM
- **Category:** PHISHING
- **Status:** MONITORING
- **Detections:** 9 (1 shown free below) · **IOCs:** 13 (1 shown free below)

## Description

The kit goes beyond static credential harvesting. The first request to the malicious URL returns a Cloudflare Turnstile challenge. After the challenge passes, the server redirects to the same route and sets three cookies with a three-minute lifetime, including viewer_session_id. With those cookies the browser receives an encrypted application loader (GET /?510c6ea8 on salemilaw.com) that carries the material needed to decrypt itself in the browser. After decryption the page loads three scripts from the phishing origin: socket.io-client.js (Socket.IO transport), domdiffer.js (a reformatted browser build derived from the open-source fiduswriter/diffDOM library) and index.js (custom relay and control logic).

The victim page is a thin client for a browser session running on the phishing backend. The backend streams Google authentication views to the victim as Socket.IO 'domchanges' diff arrays, which index.js applies to the document head, body and nested iframes. In the other direction, the client sends an 'inputchange' event carrying the full current value of any input or textarea, its CSS path, selectionStart/selectionEnd and element metadata. The same structure is used for typing, paste, IME composition and change events. Click and submit handlers call preventDefault() and stopPropagation(), so nothing navigates or submits locally and every interaction is forwarded to the backend. The backend can also send a server-side 'inputchange' to set a field value, restore the caret and dispatch a synthetic input event. The client tracks server-supplied values in an inputTracker to avoid feedback loops. The victim stays on the malicious origin while the backend drives the multi-step login, and the flow ends with a server-selected redirect that sets a completion cookie.

In the captured session the transport starts as HTTPS long-polling and upgrades to WSS. The reconstruction has 90 protocol records, 74 of them application events. The victim's email address is sent keystroke by keystroke before the form is submitted. The Next click is relayed as a structured click event. The response includes a server-to-client inputchange that sets identifierId and a final DOM patch referencing hiddenPassword, which shows the page is prepared for later login states.

Push Security profiles the same file set as DOMDIFFER, which it believes is an evolution of the NakedPages kit. Push bases that on overlapping domain infrastructure, similar URL structure and a reused anti-bot gate template. Push reports the kit targets corporate Google and Microsoft accounts with fake calendar-event lures. For Google it uses the remote-browser relay described above, because Google's sign-in protections block simple reverse proxying. For Microsoft it uses reverse proxying, possibly Evilginx-based. Push reports Socket.IO events domchanges, domreset, inputchange, redir and updateBrowserUrl (server to client) and inputchange, click, keypress and selectionchange (client to server). Push rates its breakthrough rate Extreme from August to October 2026. The Joe Security source states no named actor, no CVE and no victim claims. Whether salemilaw.com is attacker-registered or a compromised site is not stated. The attribution of this specific sample to the DOMDIFFER family is an analytic link through shared file names and architecture, not a statement in the Joe Security article.

BitM defeats most MFA because the user completes authentication in the attacker-controlled browser session. Google Threat Intelligence (Mandiant) notes that FIDO2 security keys and device-bound client certificates can defeat or deter BitM, because FIDO2 responses are bound to the origin and the attacker's origin cannot obtain a valid response for the real site. Both protections lose value if the device itself is compromised.

## MITRE ATT&CK

- T1583.001 Acquire Infrastructure: Domains
- T1566.002 Phishing: Spearphishing Link
- T1204.001 User Execution: Malicious Link
- T1684.001 Impersonation
- T1480 Execution Guardrails
- T1027.013 Obfuscated Files or Information: Encrypted/Encoded File
- T1557 Adversary-in-the-Middle
- T1111 Multi-Factor Authentication Interception
- T1539 Steal Web Session Cookie
- T1056.003 Input Capture: Web Portal Capture
- T1071.001 Application Layer Protocol: Web Protocols
- T1550.004 Use Alternate Authentication Material: Web Session Cookie
- T1078 Valid Accounts

## Free detection (Splunk SPL, Microsoft KQL, Sigma)

**DOMDIFFER BitM Phishing Kit - Relay Script Co-occurrence on Non-Google Origin (salemilaw.com)** (`TL-2026-6521-SPL-001`)

Behaviour-first proxy hunt for the Google Browser-in-the-Middle kit (TL-2026-6521, DOMDIFFER-style). The kit loads socket.io-client.js, domdiffer.js (diffDOM build) and index.js from the phishing origin root after a Cloudflare Turnstile gate. The search flags any user/host that pulls two or more of these root-level scripts from one non-Google/Microsoft domain, or any hit on domdiffer.js or the known salemilaw.com origin.

- **Languages:** Splunk SPL, Microsoft KQL, Sigma
- **ATT&CK:** T1566.002, T1204.001, T1656, T1583.001
- **Data sources:** proxy:zscalernss-web, proxy:bluecoat:proxysg:access:syslog, proxy:squid:access
- **Severity:** high
- **Confidence:** high

### Splunk SPL

````spl
index=proxy sourcetype IN ("zscalernss-web","bluecoat:proxysg:access:syslog","squid:access") earliest=-24h
```DOMDIFFER BitM kit: two or more kit scripts fetched from one non-Google origin```
| eval u=lower(coalesce(url, cs_uri, uri))
| eval dom=replace(mvindex(split(replace(u,"^https?://",""),"/"),0),":\d+$","")
| eval path=replace(replace(u,"^https?://[^/]+",""),"[?#].*$","")
| eval kit_file=case(path="/socket.io-client.js","socket.io-client.js", path="/domdiffer.js","domdiffer.js", path="/index.js","index.js")
| where isnotnull(kit_file) AND NOT match(dom,"(^|\.)(google|gstatic|googleapis|googleusercontent|microsoft|microsoftonline|office|live)\.com$")
| fillnull value="unknown" user src_ip
| stats dc(kit_file) as kit_file_count values(kit_file) as kit_files min(_time) as first_seen max(_time) as last_seen by src_ip, user, dom
| where kit_file_count>=2 OR match(dom,"(^|\.)salemilaw\.com$") OR mvfind(kit_files,"domdiffer\.js")>=0
| convert ctime(first_seen) ctime(last_seen)
````

### Microsoft KQL

```kql
CommonSecurityLog
| where TimeGenerated > ago(24h)
| extend Dom = tolower(DestinationHostName), Path = tolower(tostring(parse_url(RequestURL).Path))
| where Path in ("/domdiffer.js","/socket.io-client.js","/index.js") or Dom endswith "salemilaw.com"
| where not(Dom has_any ("google.com","gstatic.com","googleapis.com","googleusercontent.com","microsoft.com","microsoftonline.com","office.com","live.com"))
| summarize KitFiles=make_set(Path), KitFileCount=dcount(Path), First=min(TimeGenerated), Last=max(TimeGenerated) by SourceIP, SourceUserName, Dom
| where KitFileCount >= 2 or Dom endswith "salemilaw.com" or set_has_element(KitFiles, "/domdiffer.js")
```

### Sigma

```yaml
title: DOMDIFFER BitM Phishing Kit Relay Scripts Requested from Non-Google Origin
id: 6f1c2a4e-3b7d-4e58-9a21-0c5d8e7b1a01
status: experimental
description: Detects proxy requests for the DOMDIFFER / Browser-in-the-Middle kit scripts (domdiffer.js, root-level socket.io-client.js) or the salemilaw.com origin (TL-2026-6521).
references:
    - https://www.joesecurity.org/blog/2909557602925734728
    - https://pushsecurity.com/threat-intelligence/domdiffer
    - https://cloud.google.com/blog/topics/threat-intelligence/session-stealing-browser-in-the-middle/
author: Threadlinqs Team
date: 2026/11/20
tags:
    - attack.initial_access
    - attack.t1566.002
    - attack.execution
    - attack.t1204.001
    - attack.resource_development
    - attack.t1583.001
    - attack.defense_evasion
    - attack.t1656
logsource:
    category: proxy
detection:
    selection_ioc:
        cs-host|endswith: 'salemilaw.com'
    selection_files:
        c-uri-stem:
            - '/domdiffer.js'
            - '/socket.io-client.js'
    filter_main_google_ms:
        cs-host|endswith:
            - '.google.com'
            - '.gstatic.com'
            - '.googleapis.com'
            - '.microsoft.com'
            - '.microsoftonline.com'
    condition: selection_ioc or (selection_files and not filter_main_google_ms)
falsepositives:
    - Legitimate self-hosted Socket.IO web apps that serve /socket.io-client.js from their own root
    - Security researchers or sandboxes detonating the kit
level: high

```

**Known false positives:**

- Internal or SaaS Node.js apps that legitimately serve /socket.io-client.js and /index.js from their own root
- Web developers or red-team staff testing Socket.IO / diffDOM projects
- Sandbox detonation traffic analysing the kit

**Tuning notes:** Replace the sourcetype list with your proxy sourcetype and make sure url/cs_uri is extracted. Add internal app domains to the NOT match() allowlist. Raise kit_file_count to 3 for fewer hits, or lower the threshold to 1 with domdiffer.js to widen coverage. The salemilaw.com clause is a single known IOC; keep the behavioural clause for new domains.

### 8 more detection rules (Splunk SPL, Microsoft KQL, Sigma), unlock with TL Creds

- DOMDIFFER BitM Lure - Calendar-Themed Email Carrying Kit Loader URL (locked: unlock with TL Creds)
- Entra ID Session Reuse - One SessionId, Multiple IPs After MFA (AiTM / BitM Replay) (locked: unlock with TL Creds)
- DOMDIFFER BitM Infrastructure - Endpoint Connections to [indicator] and Community Sibling Domains (locked: unlock with TL Creds)
- Sigma - DOMDIFFER BitM Kit Scripts ([indicator] / [indicator]) via Web Proxy (locked: unlock with TL Creds)
- Sigma - Microsoft Login Relay Endpoints on Non-Microsoft Host (BitM / AiTM Reverse Proxy) (locked: unlock with TL Creds)
- Sigma - DNS Resolution of DOMDIFFER BitM Phishing Infrastructure (locked: unlock with TL Creds)
- Google Workspace Post-BitM Takeover - Sign-in Plus Recovery/2SV Change From a Second IP (locked: unlock with TL Creds)
- DOMDIFFER BitM Relay - Socket.IO Long-Polling to WebSocket Upgrade on Rare Domain (locked: unlock with TL Creds)

Sign up free to unlock the detection rules: https://threadlinqs.com/?modal=signup

## Sample indicators (1 of 13)

Defanged, TLP:CLEAR.

- Domain: `salemilaw[.]com`

Full set of 13 indicators unlocks with TL Creds: https://threadlinqs.com/tl-creds

## Sources

- [Google Phishing Kit: When Phishing Becomes a Real-Time Remote Browser (Joe Security)](https://www.joesecurity.org/blog/2909557602925734728)
- [Joe Sandbox analysis 1951180](https://www.joesandbox.com/analysis/1951180/0/html)
- [Joe Sandbox analysis 1951180 PCAP with SSL inspection](https://www.joesandbox.com/analysis/1951180/0/pcapsslinspection)
- [JoeReverser analysis of the kit architecture](https://www.joesandbox.com/joereverser/analysis/0d464e7e-678d-41ae-816f-b58f2d51be15/download?type=reports&report=html)
- [JoeReverser Expert Mode analysis of the loader](https://www.joesandbox.com/joereverser/analysis/50aaf3fa-65c5-47a7-8b8b-c8508909340e/download?type=reports&report=html)
- [Push Security: DOMDIFFER phishing kit profile](https://pushsecurity.com/threat-intelligence/domdiffer)
- [Push Security: Laurseraph kit profile](https://pushsecurity.com/threat-intelligence/laurseraph)
- [BitM Up! Session Stealing in Seconds Using the Browser-in-the-Middle Technique (Google Threat Intelligence / Mandiant)](https://cloud.google.com/blog/topics/threat-intelligence/session-stealing-browser-in-the-middle/)
- [fiduswriter/diffDOM (open-source library the kit derives domdiffer.js from)](https://github.com/fiduswriter/diffDOM)
- [Bluekit Phishing-as-a-Service: Browser-in-the-Middle, Evolved (Netcraft)](https://www.netcraft.com/blog/bluekit-phishing-as-a-service-threat)

## Full data

The other 8 detection rules (Splunk SPL / Microsoft KQL / Sigma) unlock with TL Creds; a free account includes daily creds: https://threadlinqs.com/?modal=signup
Indicator values unlock with TL Creds, at a lower price on Red and Purple; AI agents can query rules and IOCs through the Threadlinqs MCP server (Purple and Gold in full, 2 calls a day on a free account): https://intel.threadlinqs.com/mcp

Canonical: https://intel.threadlinqs.com/threat/TL-2026-6521
