Behind a fake 'Security Verification': a Microsoft 365 device-code phishing kit, a hacked WordPress redirector and a gate that only lets humans through
TL;DR
- On 2026-11-23 we looked at a urlscan result for
hxxps://wiaamrifqi[.]com/wp-content/xofnskc/vfnjxrg/qonztrv/Eaccess/. The file is a 2.8 KB “Redirecting…” page planted on a hacked Indonesian WordPress site about three hours before the scan. After 3 seconds it sends the visitor toviewsharepointonedrivedocumentviewer.clengsr[.]com/existing access. - That host serves a dark “Security Verification / Checking your browser” page. It runs a handful of automation checks (
navigator.webdriver, the ChromeDrivercdc_global, PhantomJS and Nightmare globals, zero screen size, no language, SwiftShader or llvmpipe in a small window), then POSTs the verdict with screen size and timezone to/api/gate/verify. Only the server decides. Anything other than{"success":true,"redirect":...}, including a network error, goes towww.office.com. - urlscan’s browser passed every client check, but its verify request died after 53 ms without a response and it ended on the real Microsoft 365 home page. We never saw what clengsr serves to people who pass.
- The same gate template (six markers, line-for-line apart from a
bot_reasonfield) ran onhdfsx[.]infoin October. There, four public urlscan runs got through. The pass is agate_tokencookie that binds the client IP and the first 40 characters of the User-Agent for two hours, with a 256-bit signature, next to a Flask-style signedsessioncookie. - Behind the hdfsx gate: a fake Outlook Message Encryption / SharePoint notice, and at
auth-533.hdfsx[.]info/m365-verifya “Microsoft 365 Security Check” page that shows a 9-character code, opens Microsoft’s reallogin.microsoft.com/devicein a popup, and polls/api/lp/session-status/<code>every 1.5 seconds until the status readsCAPTURED. Two visits seven minutes apart got different codes. That is device-code phishing: the victim signs in on Microsoft’s own page, with their own MFA, and authorizes the attacker’s session. - clengsr[.]com and hdfsx[.]info were both registered at Dynadot on 2026-10-21, about 19 hours apart. hdfsx went on
client holdon 2026-10-30, a day after Cloudflare started showing its phishing interstitial on it. clengsr still resolved on 2026-11-26. - We reported the four attacker domains to ThreatFox on 2026-11-23. Detections for Entra sign-in logs, proxy logs and four tested YARA rules are at the end.
1. Starting point
This one came in as a single urlscan link with the question “phishing URL, mind taking a look?”. The scan was private, submitted manually at 19:31 UTC on 2026-11-23, and urlscan scored it 0. Its final page was m365.cloud.microsoft, Microsoft’s real Microsoft 365 landing page, so at first glance it looked like a dead or harmless link.
It wasn’t. The request log showed three hops: a WordPress site, a host whose name tries very hard to sound like SharePoint, and only then Microsoft. The middle hop is the interesting one. It is a bot gate whose whole job is to make sure that scanners, sandboxes and analysts end up on a legitimate Microsoft page and score the link as clean.
Everything in this post comes from stored data: urlscan’s result JSON, stored response bodies and cookie jars for our scan and for older public scans, RDAP, and public DNS. We didn’t visit the attacker hosts, didn’t submit anything to their APIs, and didn’t run their code. Where the server side matters and we couldn’t see it, we say so.
2. The chain at a glance

For clengsr we have steps 2 to 4. For steps 5 and 6 we lean on a sibling domain that ran the same gate a month earlier and, on four occasions, let urlscan’s browser through. Section 5 explains why we’re comfortable treating them as one kit, and where that stops being evidence.
3. Stage 1: the redirector on a hacked WordPress site

The first hop is hxxps://wiaamrifqi[.]com/wp-content/xofnskc/vfnjxrg/qonztrv/Eaccess/. wiaamrifqi[.]com is an Indonesian site registered in 2021 through Rumahweb and fronted by Cloudflare. Nothing about it suggests the attacker owns it. The file at that path is a static 2,839-byte HTML page styled like a Microsoft card, with a spinner, “Redirecting in 3 seconds…” and a “Click here if not redirected” button. The script is a dozen lines: a countdown and window.location.href = TARGET_URL.
Three details are worth noting:
- Placement. Three random-looking directory levels under
/wp-content/, then a folder namedEaccess. Planting a folder underwp-contentusually means the attacker had file-write access to the site (a stolen admin or hosting login, or a vulnerable plugin with an upload bug). We can’t tell which from the outside. - Timing. Cloudflare passed through the origin’s
Last-Modified: Mon, 23 Nov 2026 16:26:20 GMT, and urlscan fetched the page at 19:30:58. The file had been there for 3 hours and 4 minutes. The link was fresh when it reached the person who scanned it. - The target path has a space in it,
/existing access. The lure theme is “you have existing access to a shared document”, which also explains the folder nameEaccess.
Using a hacked site as the first hop is ordinary, and it works. The domain in the email or message is an old, clean, categorised site with a valid certificate, and the page itself contains no form, no credential field and nothing a content scanner would call phishing. Microsoft describes the same idea in a large device-code campaign this year, where redirects ran through compromised legitimate domains and serverless platforms so that the phishing traffic blends in.[3]
4. Stage 2: the “Security Verification” gate
4.1 What the page checks
The second hop, hxxps://viewsharepointonedrivedocumentviewer.clengsr[.]com/existing%20access, returns a 5,845-byte page titled “Security Verification”. It’s GitHub-dark, with a spinner, “Checking your browser before accessing” and a green “Encrypted Cloud Verification” badge. Here is all of its logic:

The checks, in order:
navigator.webdriver, set by Selenium, Playwright and Puppeteer unless patched out.window.cdc_adoQpoasnfa76pfcZLmcfl_Array, the variable stock ChromeDriver injects, pluswindow._phantom,window.__nightmareandwindow.callPhantom.- A zero-sized screen or zero-sized outer window, which old headless setups report.
- No
navigator.languageand an emptynavigator.languages. - The unmasked WebGL renderer. If it contains
SwiftShaderorllvmpipe(software rendering, typical for headless Chrome and VMs without a GPU) and the window is 800x600 or smaller, it’s a bot.
The comments are oddly considerate. The language check is “safe for privacy browsers” and the WebGL check is “safe for virtualized enterprise desktops”, which is why the renderer test only fires in combination with a small window. The author clearly cared about not losing real victims who sit on a VDI desktop. The comment style reads like generated code to us, but that’s an impression, not evidence.
There is also a small bug. reason is overwritten by each failing check, so a browser that fails several reports only the last one. It doesn’t matter to the attacker because is_bot is still true, but it means the server’s bot_reason statistics undercount the first checks.
4.2 The server decides
After 1.2 seconds the page POSTs this to /api/gate/verify:
{"is_bot": false, "bot_reason": "", "target": "/existing access", "screen": [1600, 1200], "tz": -60}
and does exactly one of two things. If the response is JSON with success and redirect, it calls location.replace(redirect). Anything else goes to https://www.office.com/: a negative answer, a non-JSON answer, a timeout, a dropped connection. The fallback is the real Microsoft site, and it’s the right choice for the attacker. A scanner that ends on office.com sees a page from a trusted Microsoft domain with a valid certificate, and most verdict engines will call that clean.
Note what the client sends: its own opinion of whether it’s a bot, plus screen size and timezone offset. The server also sees the IP address, the User-Agent and its own cookies. So the client checks are only one input. A server that also filters on datacenter IP ranges, known scanner ASNs or timezone/geo mismatch would drop scanners that pass every browser check, and nothing on the page would show it.
4.3 What happened to our scan

urlscan’s Chrome on Linux passed every client check and sent is_bot:false. The verify request then failed 53 ms after it started with net::ERR_ABORTED and no response. The navigation to office.com that follows was started from line 128 of the gate, which is the .catch() branch. office.com answered with a 301 to m365.cloud.microsoft, and that is where the scan ended.
We can’t tell from the scan why the request died. A server that drops the connection on purpose for an IP it doesn’t like would produce exactly this, but so would a backend error or a Cloudflare hiccup. What we can say is that the kit had already started a session: urlscan’s cookie jar holds a session cookie for the clengsr host, issued at 19:31:02, which is when the gate page itself was served. It holds no gate_token, the cookie the server sets when it accepts a visitor (section 6). The kit never let this scan through.
The favicon request is a small hint about the routing. GET /favicon.ico on the clengsr host returned 5,841 bytes of HTML, four bytes shorter than the gate page. /existing access is 16 characters and /favicon.ico is 12, so the favicon response is almost certainly the same gate template with a different target. urlscan didn’t keep that body, so we can’t prove it, but section 6 shows the same behaviour on hdfsx: until you hold a pass, every path is the gate.
5. The sibling that got through: hdfsx[.]info
With the clengsr landing unobserved, we searched urlscan for other scans that had requested /api/gate/verify. There were 12 in total, back to July. We pulled each scan’s gate page and checked it for six template markers: the “Security Verification” title, the “Encrypted Cloud Verification” badge, the ChromeDriver variable, the llvmpipe check, the is_bot payload, and the office.com fallback.

Seven of the other gates are unrelated code (proof-of-work challenges, nonce signatures, different payloads). Two hosts match all six markers: hdfsx[.]info (two scans on 2026-10-22) and auth-533.hdfsx[.]info (two scans on 2026-10-29). The diff between the auth-533 gate and the clengsr gate is small and reads like a version bump. The newer one reports a bot_reason, adds a null check on window.screen, drops a window.buffer check, and has a different target. Everything else, down to the CSS, is identical.
A shared template is not proof of a shared operator. Kits get sold, and a gate like this is easy to copy. Three things push us towards “same kit, probably same operation”: both domains were registered at the same registrar on the same day, the backends behave identically down to the cookie format (section 6), and no other scan that ever called /api/gate/verify uses this template. We still label it as an inference throughout.
6. What a pass looks like: gate_token and a Flask session
On hdfsx the verify call succeeded every time urlscan tried it, and the scanner’s cookie jar recorded what the server hands out:

The verify response is {"redirect":"/m365-verify","success":true} followed by a newline, served with Vary: Cookie. Alongside it the server sets gate_token, an HttpOnly, Secure, SameSite=Lax cookie with four |-separated fields:
| Field | Example (01a18868) | Meaning |
|---|---|---|
| 1 | 37.120.237.174 |
the client IP the server saw (here urlscan’s scanner) |
| 2 | Mozilla/5.0 (X11\073 Linux x86_64) AppleWeb |
the first 40 characters of the User-Agent; \073 is an octal-escaped ; |
| 3 | 1793297146 |
expiry, exactly 7,200 seconds after the verify call |
| 4 | 64 hex characters | a 256-bit signature, presumably an HMAC over the other fields |
So a pass is good for two hours, from one IP, with one browser. If someone forwards the link and the cookie to a sandbox, or a security product re-fetches the URL from a different address, the token doesn’t match and the visitor gets the gate again. It’s a simple and effective way to keep a scanner from replaying a victim’s session.
The session cookie is more revealing. Its value has three dot-separated parts that decode to {"_permanent":true}, a timestamp, and a 20-byte signature, and it expires exactly 30 days after issue. That is the layout of a Flask session cookie signed by itsdangerous (base64 payload, base64 timestamp, HMAC-SHA1 signature), with session.permanent set and the lifetime configured to 30 days rather than Flask’s default of 31. The \073 escape in gate_token is how Python’s cookie library quotes a semicolon, and the verify JSON has its keys sorted alphabetically with a trailing newline, which is what Flask’s jsonify produces by default. Our reading is that the backend is a small Python Flask app. That’s an inference from formats, but four independent details point the same way.
The clengsr session cookie has the same structure, the same {"_permanent":true} payload and the same 30-day lifetime. That’s the strongest link we have between the November host and the October one.
7. Behind the hdfsx gate: a fake encrypted-mail notice
On 2026-10-22 two urlscan runs hit the bare domain hdfsx[.]info. The gate passed them with {"redirect":"/","success":true}, and the reload of / returned a different page, 17,697 bytes, titled “Maritime Technology Project”:

It’s a fake Outlook Message Encryption notice: “You have received a document from Microsoft sharepoint”, a named sender (redacted here), a subject, and a “View Project Details” button. In our original case notes we called this a decoy page. It isn’t. It’s the next lure step. The button shows “Verifying Outlook Security Token…” for 1.1 seconds and then goes to hxxps://maritimetechnologyproject.hdfsx[.]info/sharepointpdf/l, another subdomain of the same domain. No public scan reached that URL.
One detail suggests where this page came from. If the page is inside a frame, the button posts {type: 'preview_proceed_to_landing'} to the parent window and doesn’t navigate. That only makes sense if the page is normally shown inside some other application’s preview pane, such as a builder or admin panel where the operator designs lures and clicks through them. The landing page in the next section has a matching guard: it refuses to start polling if the code is the placeholder ABCD-1234 or contains PREVIEW. Together they suggest a kit with a template editor and live preview, sold or shared as a service. That is our inference from two strings, and we haven’t seen the panel.
Two days later, on 2026-10-24, another public scan of hdfsx[.]info/ got a 2,475-byte “404 - Not Found” page. The OME lure had been taken off the root. The favicon request in that scan returned 5,512 bytes, the size of the gate page, which supports the “every path is the gate until you hold a pass” routing from section 4.3.
8. Stage 3: the device-code page
8.1 How the scanner got there
On 2026-10-29 two public scans started at hxxps://meleys[.]pe/shud/suds/a/EMAIL. That URL returned an empty body with an HTTP Refresh: 0;url=hxxps://auth-533.hdfsx[.]info/m365-verify header, which is a redirect that some link scanners don’t follow. auth-533.hdfsx[.]info/m365-verify served the gate. The gate passed the scanner with {"redirect":"/m365-verify","success":true}, and the same URL, reloaded with the gate_token cookie, returned a 15 KB page titled “Sign in to your account”:

It’s a Microsoft-styled card over a blurred architectural floor plan: “M365 Security-Verification.pdf”, “Microsoft 365 Security Check”, “Verify your identity”, a verification code (BRUVPVWA2) with a Copy button, four numbered steps, and a black “Sign in with Microsoft” button. There is no password field and no form. Nothing on the page collects anything.
8.2 How the page works

The script is about 60 lines:
openAuthWindow()openshttps://login.microsoft.com/device, Microsoft’s genuine device-login page, in a centred 520x680 popup namedmsAuthWin, or in a new tab if popups are blocked, and swaps the card for a “Verifying Identity… Waiting for Microsoft confirmation” spinner. There’s a “Window closed or hidden? Reopen sign-in” link in case the victim loses the popup.copyCode()puts the code on the clipboard so the victim only has to paste it.- A timer calls
GET /api/lp/session-status/<code>every 1,500 ms. The answers stored in both scans are{"status":"PENDING","user_code":"..."}. When the status becomesCAPTURED, the page closes the Microsoft popup, shows “Authentication Complete” and goes to/lp/m365-verify/s.
The two scans of 2026-10-29, about seven minutes apart, got different codes, FJW8HWYYC and BRUVPVWA2, from otherwise identical pages. The code is generated per visit and written into the HTML on the server. The 8 stored polls in one scan are exactly 1.50 seconds apart, starting 2.5 seconds after the page loaded.
8.3 Why this beats MFA

The device authorization grant exists so that a device without a keyboard (a TV, a conference-room panel, a CLI) can sign a user in. The device asks Entra for a device_code and a short user_code, shows the user code, and polls the token endpoint while the user enters that code on another device and signs in.[1] The user has 15 minutes from the moment of the request.[1]
Device-code phishing turns that around. The attacker’s server plays the device. It requests the codes, and the victim is talked into entering the user code at Microsoft’s real device-login page and signing in, with their real password and real MFA. When they approve, Microsoft issues access and refresh tokens to whoever holds the device_code, which is the attacker’s server. Microsoft’s own description is that threat actors “exploit the device code authentication flow to capture authentication tokens, which they then use to access target accounts”.[2] MFA doesn’t help here, because the victim completes it themselves.
The 15-minute lifetime used to be the weak spot of this technique. A code pasted into an email was dead by the time a busy recipient opened it. Kits now generate the code when the victim lands on the page. Microsoft described exactly that in a large campaign in April 2026: “threat actors triggered code generation at the moment the user interacted with the phishing link, ensuring the authentication flow remained valid”.[3] This kit does the same. A different code on every load, baked into the page by the server, can only come from a live request to Microsoft’s device-code endpoint at render time. That’s the inferred yellow row in figure 10. We didn’t see the request, the client ID or the scopes, because they happen between the kit’s server and Microsoft.
The status values tell the same story from the other side. PENDING maps onto the token endpoint’s authorization_pending error, which a polling client gets until the user finishes.[1] CAPTURED is the kit’s word for the moment the tokens arrive.
What happens after that isn’t in the scans. In Microsoft’s April 2026 case, some operators registered new devices within 10 minutes of a capture to get a Primary Refresh Token for persistence.[3] Treat a captured token from this kit as access to the mailbox and files at minimum, and possibly a foothold that survives a password change.
8.4 Is this EvilTokens?
EvilTokens is the device-code phishing-as-a-service kit behind much of this year’s activity. Sekoia documents its pages calling POST /api/device/start, which “returns the user_code and a session ID”, and then polling /api/device/status/<SESSION_ID>, with an anti-bot header computed server-side in PHP.[6] This kit uses /api/gate/verify, /api/lp/session-status/<user_code> and a Python backend, embeds the code in the HTML instead of fetching it, and polls on the user code, not a session ID. On what we can see, it’s a different kit. We haven’t compared it with every EvilTokens version, so we wouldn’t rule out a fork.
9. Infrastructure and lifecycle

| Indicator | Role | Registered / seen | Notes |
|---|---|---|---|
| wiaamrifqi[.]com | First hop (hacked site) | Registered 2021-10-08, Rumahweb | Victim. Cloudflare. Redirector planted 2026-11-23 16:26 UTC |
| clengsr[.]com | Gate domain | Registered 2026-10-21 20:23 UTC, Dynadot | Cloudflare NS janet/yahir. Still resolving to Cloudflare on 2026-11-26 |
| viewsharepointonedrivedocumentviewer.clengsr[.]com | Gate host | Seen 2026-11-23 | Path /existing access |
| hdfsx[.]info | Sibling gate + OME lure | Registered 2026-10-21 01:36 UTC, Dynadot | client hold since 2026-10-30; NXDOMAIN |
| auth-533.hdfsx[.]info | Gate + device-code page | Seen 2026-10-29 | Cloudflare “Suspected Phishing” interstitial from 2026-10-29 19:46 UTC |
| maritimetechnologyproject.hdfsx[.]info | Next lure step | Referenced 2026-10-22 | Never scanned |
| meleys[.]pe | Redirector (Refresh header) | Seen 2026-10-29 to 2026-11-01 | Apache. Ownership unclear: could be hacked or rented |
A few notes:
- Both gate domains came from Dynadot on the same day, 18 hours and 47 minutes apart, and both sit behind Cloudflare. That fits an operator who buys domains in batches and burns them one at a time.
- hdfsx didn’t last. The gate passed public scans on 2026-10-22 and 2026-10-29. Within four hours of the second pair, urlscan runs of
auth-533got Cloudflare’s “Suspected Phishing” interstitial with a 403 instead of the gate. The domain’s registry status changed toclient holdon 2026-10-30 at 10:49 UTC. On 2026-11-01 the meleys redirect still pointed at the dead host. Somebody reported it, and it took about a day. - clengsr learned nothing from that, or didn’t need to. It uses a long brand-salad subdomain, it never appeared in a public scan before ours, and the only scan of it never got past the gate. Its exposure so far is our private scan and the ThreatFox entry.
- meleys[.]pe is a shared redirector. A public scan from the morning of 2026-10-29 starts at a Constant Contact click-tracking URL (
*.cc.rs6.net), lands on a different meleys path (/syu/bjx/a/EMAIL), and gets a Refresh redirect tosapvto[.]com, a Turnstile-protected “One more step before you proceed…” page. We haven’t analysed that chain. It shows meleys serving more than one destination, and it hints that at least some of the lures went out through an email-marketing platform. - The certificate transparency search for both domains returned nothing on 2026-11-26. With Cloudflare in front, the edge certificates may not list these names in a way crt.sh indexes, so we don’t read anything into that.
10. The method, reproducibly
Every figure from 2 to 12 was produced by a short script run against stored files, with the output saved and rendered unchanged. The scripts are available on request.
| Step | Script | Input | What to expect |
|---|---|---|---|
| Hashes | hashes.py |
stored bodies | SHA-256 and size of every page in section 12 |
| Our scan | timeline.py |
urlscan result JSON | redirector headers, request timing, failed verify, cookies |
| Same kit? | gate_versions.py |
gate pages from every /api/gate/verify scan |
unified diff, 6-marker test |
| Pass cookies | gate_token.py |
four hdfsx result JSONs, verify bodies | token fields, 7,200 s lifetime, decoded Flask session |
| OME lure | hdfsx_lure.py |
stored / body after the gate |
text, script, next URL |
| Device-code page | landing.py |
two stored landings, two status bodies | codes, PENDING, 1.5 s cadence |
| Infrastructure | infra.py, hunt.py, extra_scans.py |
RDAP, DNS over HTTPS, urlscan search and result APIs | registration dates, client hold, later scans |
| YARA | test_yara.py |
case files and decoys | section 11.3 |
Pitfalls we hit:
- urlscan doesn’t always keep the body. The clengsr favicon response has a hash in the result JSON, but
/responses/<hash>/returns 404. Check before you build an argument on a body. - The scan screenshot can be missing. Our own scan has no screenshot at all, so the only picture of the device-code page comes from the public hdfsx scans.
- Read the cookie jar. urlscan stores the cookies the browser held at the end of the run. That’s where the
gate_tokenformat and the Flask session came from, and it’s easy to overlook because it isn’t on the summary page. - A gate that ends on office.com scores 0. urlscan’s verdict, and most automated verdicts, judge the final page. For gated kits, read the request log, not the verdict.
- The
Refreshheader redirect on meleys has an empty body. A crawler that only parses HTML or follows 3xx codes stops there.
11. Detection and response
11.1 Identity: the part that matters
The phishing page never touches a password. The evidence of compromise is in Entra ID, as a successful sign-in that used the device code flow. Microsoft recommends filtering sign-in logs by the authentication protocol to find device code flow events, and getting “as close as possible to a unilateral block on device code flow”.[5][4]
// Successful device-code sign-ins (Microsoft Sentinel, SigninLogs)
SigninLogs
| where TimeGenerated > ago(30d)
| where AuthenticationProtocol =~ "deviceCode"
| where ResultType == 0
| summarize count(), Apps = make_set(AppDisplayName), IPs = make_set(IPAddress),
First = min(TimeGenerated), Last = max(TimeGenerated) by UserPrincipalName
| order by First desc
// Users who signed in with device code for the first time in 90 days
let lookback = SigninLogs
| where TimeGenerated between (ago(90d) .. ago(1d))
| where AuthenticationProtocol =~ "deviceCode"
| distinct UserPrincipalName;
SigninLogs
| where TimeGenerated > ago(1d)
| where AuthenticationProtocol =~ "deviceCode" and ResultType == 0
| where UserPrincipalName !in (lookback)
| project TimeGenerated, UserPrincipalName, AppDisplayName, ClientAppUsed, IPAddress, Location, UserAgent
Most users never use device code. Every hit from those queries needs an explanation, and the sign-in’s IP will normally be the kit backend’s address rather than the user’s, which is a second giveaway. Microsoft’s April 2026 write-up has more hunting queries for the post-compromise side (device registrations, inbox rules, mail access).[3]
Prevention is a Conditional Access policy with the Authentication Flows condition set to Device code flow and the grant set to Block, scoped to all users with documented exceptions.[4] Start in report-only mode to find the legitimate uses first.
If a user did enter a code, resetting the password is not enough. Revoke the user’s sessions and refresh tokens, check for newly registered devices, new inbox rules and OAuth consents, and look at what the token touched in the hour after the sign-in.
11.2 Network and proxy
Heuristics that survive domain rotation:
POST /api/gate/verifywith a JSON body containing"is_bot":and"target":, followed within seconds by aGETof the same host.GET /api/lp/session-status/followed by 9 uppercase letters and digits, repeated every 1.5 seconds. Nothing legitimate polls like that.- A browser visit to
login.microsoft.com/deviceormicrosoft.com/deviceloginright after a visit to a newly registered domain. Users rarely go there on their own. - A
.../wp-content/<rand>/<rand>/<rand>/Eaccess/path on any site.
As a Sigma-style rule for proxy logs:
title: Device-code phishing kit status polling
logsource: { category: proxy }
detection:
sel_poll: { cs-method: GET, c-uri|re: '^/api/lp/session-status/[A-Z0-9]{8,10}$' }
sel_gate: { cs-method: POST, c-uri|endswith: '/api/gate/verify' }
condition: sel_poll or sel_gate
level: high
11.3 YARA
These rules match the kit’s HTML. They’re for proxies and mail gateways that can scan web content, for urlscan or VirusTotal retro-hunts, and for anyone collecting phishing pages. We tested them against the case files and decoys from other cases. The redirector rule is a hunting rule: the template is generic, so review its hits.
rule DeviceCode_Kit_BotGate_Html {
meta:
description = "'Security Verification' JS bot gate in front of an M365 device-code phishing kit: automation checks, POST /api/gate/verify, office.com fallback"
author = "Aegis Security Advisors"
date = "2026-11-26"
strings:
$api = "/api/gate/verify" ascii
$isbot = "is_bot:" ascii
$cdc = "cdc_adoQpoasnfa76pfcZLmcfl_Array" ascii
$gl1 = "llvmpipe" ascii
$gl2 = "SwiftShader" ascii
$badge = "Encrypted Cloud Verification" ascii
$fb = "var fallback = \"https://www.office.com/\"" ascii
condition:
filesize < 50KB and $api and $isbot and $cdc and ($gl1 or $gl2) and ($badge or $fb)
}
rule DeviceCode_Kit_Landing_Html {
meta:
description = "M365 device-code phishing landing: shows a live user code, opens login.microsoft.com/device in a popup, polls /api/lp/session-status/<code> until CAPTURED"
author = "Aegis Security Advisors"
date = "2026-11-26"
strings:
$poll = "/api/lp/session-status/" ascii
$cap = "'CAPTURED'" ascii
$dev = "login.microsoft.com/device" ascii
$win = "'msAuthWin'" ascii
$prev = "uc === 'ABCD-1234'" ascii
$succ = "var succUrl = \"" ascii
condition:
filesize < 200KB and $poll and $cap and 2 of ($dev, $win, $prev, $succ)
}
rule DeviceCode_Kit_OME_Lure_Html {
meta:
description = "Fake 'Microsoft Outlook Message Encryption' document notice served by the same kit after its gate (hdfsx[.]info root, Oct 2026)"
author = "Aegis Security Advisors"
date = "2026-11-26"
strings:
$fn = "function launchOutlook(e)" ascii
$pm = "preview_proceed_to_landing" ascii
$t1 = "Verifying Outlook Security Token" ascii
$t2 = "Microsoft Outlook Message Encryption" ascii
condition:
filesize < 200KB and $fn and $pm and 1 of ($t1, $t2)
}
rule Hunting_Compromised_Site_SharePoint_Redirector {
meta:
description = "HUNTING: small 'Redirecting...' page dropped on hacked sites, 3-second JS redirect to a SharePoint/OneDrive-themed host. Generic template; review hits."
author = "Aegis Security Advisors"
date = "2026-11-26"
strings:
$t = "<title>Redirecting...</title>" ascii
$c = "const TARGET_URL = \"https://" ascii
$b = "Click here if not redirected" ascii
$re = /TARGET_URL = "https:\/\/[a-z0-9.-]*(sharepoint|onedrive)[a-z0-9.-]*\./ nocase
condition:
filesize < 20KB and $t and $c and $b and $re
}

| File | Expected | Result |
|---|---|---|
| wiaamrifqi redirector | Hunting_Compromised_Site_SharePoint_Redirector | hit |
| Gate pages: clengsr, hdfsx root, auth-533 (two variants) | DeviceCode_Kit_BotGate_Html | 4 / 4 |
| Device-code landings (two codes) | DeviceCode_Kit_Landing_Html | 2 / 2 |
| hdfsx OME lure | DeviceCode_Kit_OME_Lure_Html | hit |
| Verify and status JSON, the hacked site’s 404 bodies | none | no hits |
The 7 unrelated /api/gate/verify gates |
none | 0 / 7 |
| 196 stored bodies and DOMs from other phishing cases | none | 0 / 196 |
| Injected victim DOMs from two other cases | none | 0 / 2 |
| 1,299 uninfected WordPress DOMs | none | 0 / 1,299 |
11.4 Hunting for more
- urlscan:
filename:"api/gate/verify"andfilename:"api/lp/session-status", sorted by date. Then read the gate page and check the template markers, because other kits use the same endpoint name. - urlscan: scans whose final page is
m365.cloud.microsoftorwww.office.combut whose first URL is a third-party site. A clean-looking Microsoft ending after an unrelated start is the signature of a gate fallback. - Passive DNS and RDAP: recent Dynadot registrations behind Cloudflare with long brand-salad subdomains like
viewsharepointonedrivedocumentviewer.
11.5 For site owners
If your WordPress site shows up in a chain like this, look for unfamiliar directories under wp-content/ (here three random names deep, ending in Eaccess), check recently modified files, and compare your plugins and admin users with what you expect. A static HTML file under wp-content usually means someone had file-write access, so rotate the admin, hosting panel, SFTP and database passwords and update everything. Deleting the folder without finding how it got there usually means it comes back.
12. MITRE ATT&CK
| Technique | Where |
|---|---|
| T1584.004 Compromise Infrastructure: Server | Redirector planted on wiaamrifqi[.]com |
| T1583.001 Acquire Infrastructure: Domains | clengsr[.]com, hdfsx[.]info at Dynadot |
| T1608.005 Stage Capabilities: Link Target | Gate, OME lure and device-code page |
| T1566.002 Phishing: Spearphishing Link | Delivery (inferred; a Constant Contact link reached the shared meleys redirector) |
| T1204.001 User Execution: Malicious Link | Victim follows the link through the chain |
| T1497 Virtualization/Sandbox Evasion | Client-side automation checks, server-side verdict, office.com fallback |
| T1656 Impersonation | Microsoft 365, SharePoint and Outlook Message Encryption branding |
| T1528 Steal Application Access Token | Device-code grant redeemed by the kit backend |
| T1550.001 Use Alternate Authentication Material: Application Access Token | Expected use of the captured tokens (not observed) |
| T1078.004 Valid Accounts: Cloud Accounts | Expected follow-on access (not observed) |
13. Indicators
Domains, URLs and paths
| Indicator | Type | Note |
|---|---|---|
| clengsr[.]com | domain | gate domain, Dynadot, 2026-10-21 |
| viewsharepointonedrivedocumentviewer.clengsr[.]com | domain | gate host, 2026-11-23 |
| hxxps://viewsharepointonedrivedocumentviewer.clengsr[.]com/existing%20access | url | gate entry |
| hdfsx[.]info | domain | sibling gate and OME lure, Dynadot, 2026-10-21 (on hold) |
| auth-533.hdfsx[.]info | domain | gate + device-code page, 2026-10-29 |
| maritimetechnologyproject.hdfsx[.]info | domain | next lure step (/sharepointpdf/l), not scanned |
| hxxps://meleys[.]pe/shud/suds/a/EMAIL | url | Refresh redirector to auth-533 (ownership unclear) |
| hxxps://meleys[.]pe/syu/bjx/a/EMAIL | url | same redirector, different destination (sapvto[.]com, not analysed) |
| hxxps://wiaamrifqi[.]com/wp-content/xofnskc/vfnjxrg/qonztrv/Eaccess/ | url | redirector on a compromised site, not attacker-owned |
/api/gate/verify |
path | gate verdict POST |
/api/lp/session-status/<user_code> |
path | capture polling |
/m365-verify, /lp/m365-verify/s |
path | landing and post-capture redirect |
We submitted clengsr[.]com, viewsharepointonedrivedocumentviewer.clengsr[.]com, hdfsx[.]info and auth-533.hdfsx[.]info to ThreatFox on 2026-11-23, and all four were accepted. We left out the hacked WordPress site and meleys[.]pe because we can’t show the attacker owns them.
Files
| SHA-256 | Size | Description |
|---|---|---|
4c376745c7f1375aec810b126a8c12c29bbc9ccc2ae099709cd3bac0165a6ea0 |
2,839 | redirector page on wiaamrifqi[.]com (2026-11-23) |
52be1b88e00f2b7e8d56bda86085a38c03bb433231f4b205288fdfbd89595d46 |
5,845 | gate page, clengsr (2026-11-23) |
e91ba46a74ad7366f4413c978296c810a25d9f18bf81954b513aa7383f04fc4b |
5,501 | gate page, hdfsx root (2026-10-22) |
ef628a750c1ff81dbe4aeacd16f2102ca03e4520d4dd87740098be94efa66d7d |
5,512 | gate page, auth-533.hdfsx /m365-verify (2026-10-29) |
4350584320e20c4271d05a960ea051d73715b69d803bcbe7061db47303cacdb9 |
5,879 | same gate with Cloudflare beacon appended (2026-10-29) |
ad9fd5489ac9ef393bf28959be85ebb952a1ba8cbf2078f52b7ff5daef7aa3f4 |
17,697 | OME / SharePoint lure, hdfsx root (2026-10-22) |
4eebedb9f4c08274ce732b9d48852c92723d90c30c030c333815cae47a6189ed |
15,482 | device-code landing, code BRUVPVWA2 (2026-10-29) |
9928a4c11ecf802e87700c7326d5065c4dd0c74f42a93577787e0c5b036454f9 |
15,115 | device-code landing, code FJW8HWYYC (2026-10-29) |
The page hashes change with every target path and every device code, so treat them as references for these captures, not as blocklist entries. The YARA rules are the durable version.
Kit constants
| Item | Value |
|---|---|
| Gate page title / badge | Security Verification / Encrypted Cloud Verification |
| Gate payload | {is_bot, bot_reason, target, screen, tz} (bot_reason added between Oct 29 and Nov 23) |
bot_reason values |
navigator_webdriver, automation_globals, phantomjs, screen_geometry_zero, outer_geometry_zero, no_language, swiftshader_virtualized |
| Verify success | {"redirect":"<target>","success":true} + newline |
| Fallback | https://www.office.com/ |
| Pass cookie | gate_token: client IP, first 40 characters of the User-Agent, unix expiry (+7,200 s) and 64 hex characters of signature, joined with pipe characters; HttpOnly, Secure, Lax |
| Session cookie | Flask/itsdangerous, payload {"_permanent":true}, 30-day lifetime |
| Landing | title Sign in to your account, popup msAuthWin to login.microsoft.com/device, poll 1,500 ms, status PENDING / CAPTURED, preview guards ABCD-1234 / PREVIEW |
| OME lure | launchOutlook(), preview_proceed_to_landing, next path /sharepointpdf/l |
14. Open questions
Observed, but not explained:
- What clengsr serves to a human. The landing behind the clengsr gate is unobserved. Everything we say about it comes from the hdfsx sibling.
- Why our scan’s verify call died. A deliberate drop by IP or ASN reputation and an ordinary backend error look the same from the client.
- What the server checks beyond the client verdict. The hdfsx server passed urlscan four times out of four with
is_bot:false. We don’t know whether it also scores IPs, and the clengsr server may be stricter.
Inferred, not verified:
- That clengsr and hdfsx are the same kit and operation: same template, same registrar and day, same Flask session format.
- That the backend is Python Flask: cookie format,
\073quoting, sorted JSON with a trailing newline. - That the server requests a live device code from Microsoft on each page load, and that
CAPTUREDmeans tokens were obtained. This follows from how the flow has to work, but the kit’s traffic to Microsoft is unseen, and so are its client ID and scopes. - That
preview_proceed_to_landingand theABCD-1234/PREVIEWguard point to a builder panel with live preview. - That delivery was by email or message. The only delivery artefact is a Constant Contact link that reached meleys[.]pe on the morning of 2026-10-29, and that one went somewhere else.
Not seen at all: the email or message that carried the wiaamrifqi link, how wiaamrifqi[.]com was compromised, what /lp/m365-verify/s and maritimetechnologyproject.hdfsx[.]info/sharepointpdf/l serve, and anything that happened after a capture.
15. Method and tooling
- Sources: urlscan result JSON, stored response bodies, screenshots and cookie jars for our own scan and the public scans cited; urlscan search; RDAP; DNS over HTTPS through Google’s resolver; ThreatFox submission records.
- No attacker contact. We didn’t fetch anything from clengsr, hdfsx, meleys or the hacked site, and never sent anything to
/api/gate/verifyor the status endpoint. All page content in this post is what urlscan’s own browser received and stored. - Analysis: small Python scripts over the stored files (listed in section 10), Python’s
difflibfor the gate diff, PIL for cropping urlscan’s screenshots, and YARA 4 for the rules.
Sources
[1] Microsoft Learn: Microsoft identity platform and the OAuth 2.0 device authorization grant flow
[2] Microsoft Threat Intelligence: Storm-2372 conducts device code phishing campaign
[3] Microsoft Defender Security Research: Inside an AI-enabled device code phishing campaign
[4] Microsoft Learn: Block authentication flows with Conditional Access policy
[5] Microsoft Learn: Conditional Access, authentication flows
[6] Sekoia TDR: New widespread EvilTokens kit, device code phishing as-a-service (part 1)