Hotel Wi-Fi Just Got Weaponized: How Hackers Hijack DNS to Steal Microsoft 365 Logins (and Why a VPN Still Helps)

If you have ever closed a laptop in a hotel lobby and trusted that the Wi-Fi would behave like the Wi-Fi at your office, the last week of July 2026 is a reason to rethink that habit. Security researchers at BleepingComputer and HackRead have independently documented a wave of attacks in which criminals silently rewrite the DNS settings on hospitality Wi-Fi gateways and then sit back as guests type their real Microsoft 365 passwords into convincing replicas of the legitimate login page. The same pattern is being seen at conference venues and co-working spaces. The good news is that the underlying technique is not new, and the defenses are not complicated. The bad news is that most travelers are not using any of them.
What is actually happening
In the attacks reported this month, the victim is not the guest's laptop. The victim is the gateway. Hotel and conference Wi-Fi almost always runs on a managed router that offers a captive portal for authentication and that, behind the scenes, controls DNS for every connected device. Once an attacker gains administrative access to that router, either through a default or stolen credential, an unpatched firmware vulnerability, or social engineering of the on-site IT contractor, they can flip the DNS records that the gateway hands out. From that moment on, anyone in the lobby who types login.microsoftonline.com into a browser is silently redirected to an attacker-controlled server that looks exactly like Microsoft's real portal. The TLS certificate can even match, because the attacker has learned to issue certificates for the original hostname through automated validation services.
The phishing page collects the email address and password, forwards them to the real Microsoft endpoint so that the login succeeds and no visible error appears, and then stores the session cookie. In several cases, the attacker logs in within seconds and uses the legitimate session to enable inbox forwarding rules, create new OAuth app consents, and pivot into SharePoint and OneDrive before the user has even closed the browser tab. Two-factor authentication on the user's account does slow this down, but it does not stop it, because the attacker is now passing through the real Microsoft servers with a valid session.
Why hotel Wi-Fi is uniquely fragile
Public Wi-Fi in general has always been risky. Hotel and conference Wi-Fi is a special case for three reasons. First, the equipment is rarely patched on a fast cadence. Gateway firmware updates are pushed by vendors on a quarterly or longer cycle, while hospitality IT teams often have no formal asset inventory and no monitoring for unexpected configuration changes. Second, the networks are shared by hundreds of strangers in a short window, which gives an attacker a high density of targets and a fast feedback loop. Third, the captive portal means that DNS typically flows through a single, vendor-managed resolver rather than the encrypted resolvers that modern operating systems prefer. When that resolver is compromised, every client on the network is compromised at the same time.
Microsoft's own guidance for traveling executives has long pointed at this risk. The current wave is notable because it appears to target Microsoft 365 specifically rather than generic banking or consumer credentials. That focus suggests the attackers are after corporate email, files, and the OAuth app permissions that grant persistent access to SaaS tenants long after the user has checked out.
Why a VPN is still the single best defense
A trustworthy VPN does three things at once when you connect to hotel Wi-Fi. It moves your DNS lookups off the gateway's resolver and onto a resolver that you control or that your VPN provider runs, which defeats the most direct version of this attack. It encrypts every packet between your device and the VPN server, so the gateway can no longer see the destination hostnames you are about to contact. And, if it includes a kill switch and DNS leak protection, it prevents the operating system from silently falling back to the network's default resolver when the VPN tunnel drops for a second. None of those defenses are exotic; they have been standard features in reputable consumer VPNs for years. What is new is that they are no longer optional for anyone who logs into a Microsoft 365 tenant from a hotel room.
It is worth being precise about what a VPN does not do. It does not protect you from logging into a phishing page through the VPN tunnel itself. If the attacker is performing a man-in-the-middle at a higher layer, or if they have compromised a website you trust, the VPN will pass the traffic along faithfully. It also does not protect a device that is already infected with malware before you connected, or a device that has been configured to trust a malicious root certificate installed by previous malware. For those layers, you need endpoint protection, hardware security keys, and a healthy skepticism of any certificate warning that appears in a browser.
Ten steps to take before you connect to any hotel network
Connect to your VPN before you open a browser, sign in to Wi-Fi, or accept the captive portal terms. The VPN should be active while you type credentials into the portal itself.
Confirm that the VPN's kill switch and DNS leak protection are turned on. Test them on a different network before you travel so you know what a tunnel failure looks like on your device.
Use a hardware security key for Microsoft 365 rather than SMS or app-based codes. A FIDO2 key cannot be phished in real time because the browser binds the challenge to the real domain.
Disable auto-connect to open Wi-Fi networks on your laptop and phone. Most operating systems will silently join a network named after a nearby hotel or airport and expose traffic to it before you even open a browser.
Use your phone's cellular hotspot as a fallback whenever the work is sensitive. A modern phone on a mobile network is dramatically less exposed than the gateway in the lobby.
Treat any unexpected certificate warning as a hard stop. A legitimate Microsoft 365 login page on a real Microsoft domain never produces a certificate error in a modern browser.
Open a private browsing window for the captive portal so that portal cookies and tracking parameters do not bleed into your work sessions.
Review inbox forwarding rules and OAuth app consents on your Microsoft 365 account the morning after you have traveled. Attackers who harvest a session often act within hours and try to persist by adding rules and apps you will not notice.
Keep your laptop and phone fully patched and reboot them before you leave home. A clean session with an up-to-date browser is a smaller target than one that has been running since your last reboot a month ago.
If you run a corporate Microsoft 365 tenant, enable Conditional Access policies that require a compliant device or an approved network for high-risk sign-ins. Combined with security keys, this turns a stolen password into a useless artifact.
The wider pattern, and what it means for 2026
Hotel and conference DNS hijacks are not a new category. What is new in 2026 is the focus on Microsoft 365 and the speed at which attackers turn a single credential into persistent access across a SaaS tenant. The same playbook is being applied to other federated identity providers, to password managers, and to VPN concentrators themselves. Public Wi-Fi is no longer a curiosity for security teams. It is a confirmed initial-access vector for the kind of business email compromise that dominates insurance claims and breach disclosures this year. Travelers who treat every hotel network as hostile, and who layer a reputable VPN with hardware-backed multi-factor authentication, are simply not part of the easiest victim pool. Everyone else is, and the campaigns currently running are designed to find them.
If you take one thing from this article, take this: connect your VPN first, trust the captive portal last, and never let a hotel network see your Microsoft 365 password without a hardware key on the other end of the login.
How to stay safe on hotel Wi-Fi when logging into Microsoft 365
A ten-step routine to apply before and after connecting to any hospitality or conference Wi-Fi network.
- Connect the VPN firstOpen your VPN client and connect to a server before you sign in to the hotel Wi-Fi or open a browser.
- Verify kill switch and DNS leak protectionConfirm that both features are enabled in the VPN client and that you understand what a tunnel failure looks like on this device.
- Use a hardware security key for Microsoft 365Register a FIDO2 security key as your primary second factor so that phishing pages cannot complete the login even if DNS is hijacked.
- Disable auto-connect to open Wi-FiTurn off automatic joining of open networks on your laptop and phone so the device never silently attaches to a hostile SSID.
- Use a cellular hotspot for sensitive workTether your laptop to your phone when you need to log into critical accounts and the hotel network feels unstable.
- Treat certificate warnings as a hard stopStop any sign-in attempt the moment a browser shows an unexpected certificate error, especially on Microsoft 365 domains.
- Sign into the captive portal in a private windowUse a private browsing window for the portal so that cookies and tracking parameters do not carry over to your work sessions.
- Audit inbox rules and OAuth apps after travelingThe morning after a trip, review your Microsoft 365 inbox forwarding rules and registered OAuth applications for anything unfamiliar.
- Patch and reboot before you travelUpdate the operating system and browser on every device you will travel with, then reboot to clear any old session state.
- Enforce Conditional Access for high-risk sign-insIf you administer a Microsoft 365 tenant, require a compliant device or approved network for sign-ins that the risk engine flags as suspicious.
Frequently Asked Questions
Is hotel Wi-Fi dangerous even with a VPN turned on?
A reputable VPN with kill switch and DNS leak protection significantly reduces the risk of a hotel Wi-Fi DNS hijack. The remaining exposure is phishing pages you reach through the VPN and any malware already on the device, which the VPN cannot fix.
What is DNS hijacking, and does a VPN protect against it?
DNS hijacking is when an attacker rewrites the DNS records served by a network so that legitimate hostnames resolve to attacker-controlled servers. A VPN that takes over DNS on your device routes lookups through its own resolver, so the gateway's poisoned records never reach your applications.
How can I tell a fake Microsoft 365 login page from a real one?
Check the certificate in your browser. A real login.microsoftonline.com page always shows a valid Microsoft certificate with no warnings. Any certificate error, an unfamiliar issuer, or a hostname that is spelled slightly differently than the canonical Microsoft domain is a strong sign of a phishing attempt.
Does two-factor authentication stop Microsoft 365 account theft?
Two-factor authentication raises the cost for an attacker but does not stop a session-replay attack. If the attacker can convince the legitimate Microsoft servers that they are you, they can complete the second factor on your behalf. Hardware security keys bound to the real domain are the strongest protection against this specific technique.
Which VPN providers are most reliable for hotel Wi-Fi in 2026?
Any reputable consumer VPN with independently audited no-logs policies, a built-in kill switch, and DNS leak protection is suitable. The exact brand matters less than keeping the VPN on at all times, choosing servers close to your location for speed, and verifying that the kill switch actually blocks traffic when the tunnel drops.
What should I do if I think I logged into Microsoft 365 on a compromised network?
Immediately revoke active sessions from another device, change your password, remove any unfamiliar inbox forwarding rules, audit OAuth app consents, and enable or re-enroll hardware-based multi-factor authentication. If the account belongs to a corporate tenant, contact your IT security team within minutes rather than hours.
Related Articles
Comments
Newsletter
Stay Ahead of Privacy Threats
Get weekly VPN guides, security tips, and exclusive deals delivered to your inbox.


