What is a browser-in-the-browser attack?

A browser-in-the-browser (BitB) attack is a phishing technique that draws a fake browser popup window — complete with a forged address bar showing a legitimate URL — entirely inside a web page using HTML and CSS. It imitates the single sign-on prompts you see when you click "Sign in with Google" or "Sign in with Microsoft," so the victim types real credentials into a window that is just part of the attacker's page. Because the address bar is a picture, not a real one, the usual advice to "check the URL" does not help.
At a glance
Quick Takeaways
- A BitB attack renders a counterfeit login popup inside the page; the address bar and padlock are fake HTML, not a real browser window.
- It targets single sign-on (SSO) and OAuth flows, where users expect a small popup asking for Google, Microsoft, or Apple credentials.
- The technique was popularized by a security researcher known as mr.d0x, who published a working proof of concept in 2022.
- Checking the URL does not defend against it because the URL shown is drawn by the attacker.
- Password managers, passkeys, and dragging the popup outside the window are reliable tells because they react to the real origin, not the fake one.
- DMARC cannot see a BitB page — it stops the lure email from being spoofed from your domain, but the attack happens after the click.
How does a browser-in-the-browser attack work?
The attack recreates the look of an operating-system browser popup using ordinary web code. When a site offers SSO, clicking the button normally opens a genuine small window pointing at Inside that fake frame sits a real login form controlled by the attacker. The victim, seeing what appears to be a trusted Google or Microsoft prompt with the correct address in the bar, enters their username and password. Those values go straight to the attacker's server. Many kits also relay the credentials in real time to capture the multi-factor prompt and the resulting session, defeating one-time-code MFA. The whole illusion depends on the victim reaching the attacker's page first — usually through a phishing email, a malicious ad, or a lookalike domain. The page itself is legitimate HTML from the attacker's server, so there is no malware to scan and nothing for a mail filter to catch once the link is clicked. Most phishing training tells people to hover over links and read the address bar. BitB defeats that habit directly. The address bar the victim inspects is part of the phishing page, so it can display Three details make it land: The fake window betrays itself the moment you test it against something the attacker cannot fake: Because BitB happens after the click, defense combines identity controls that cannot be phished with the email controls that keep your domain out of the lure.accounts.google.com or login.microsoftonline.com. A BitB page skips the real popup and instead draws a Why is a BitB attack so convincing?
https://accounts.google.com with a padlock while the actual page is on the attacker's domain.
This is the same blind spot behind why so many phishing emails pass SPF and DKIM checks: the technical envelope can look clean while the human-facing content is entirely fake.
How do you spot a browser-in-the-browser attack?
How do you stop browser-in-the-browser attacks?
For MSPs and IT teams, Palisade automates the email-authentication layer — getting client domains to DMARC enforcement and keeping them there — so your own domains cannot be used to deliver the phishing email that starts a BitB attack. A free Email Security Score shows which client domains are still spoofable today.
google.com simply will not authenticate against the attacker's domain, so a stolen password gets the attacker nothing. This is the single strongest control — see the MFA types worth deploying.p=none to p=quarantine or p=reject once your legitimate senders are aligned; check where you stand with the DMARC checker.Related reading
Questions readers ask
Frequently asked questions
Keep going with AI
Ask AI how this applies to you
Take this guide to your assistant — each question opens pre-filled, with a link back to this page so it can read the details.

Written by
Samuel ChenardCEO & Co-Founder, Palisade
Samuel Chenard is the CEO and co-founder of Palisade, AI-first DMARC software for IT teams and MSPs, from one domain to thousands.
More from Samuel →


