How Browser-in-the-Browser (BitB) Phishing Works in Practice
Users are trained to check the address bar of "Sign in with Google/Microsoft" popup windows. In a BitB attack, clicking the login button does not open a real OS browser window; instead, JavaScript draws a pixel-perfect fake window frame and fake URL bar inside the current tab DOM. Because it is just an HTML div, the attacker can display any trusted URL text they want.
Defensive Mitigation & Hardening Checklist
Drag the suspected login popup toward the edge of your main browser window—a fake BitB modal cannot leave the boundaries of the parent tab. Better yet, use a password manager or passkey, which checks the real parent tab origin and refuses to autofill on the phishing domain.