Start your 3-day free trial
Sign up to experience all premium features at no cost.
*Available only to new users. Each user is limited to one trial.


Browser-in-the-browser phishing, often shortened to BitB, is a technique that draws a fake browser or sign-in window inside an ordinary webpage. The imitation may include a title bar, an address field, a padlock, familiar identity-provider branding, and buttons that appear to belong to a real OAuth or SSO pop-up. It is still only content rendered inside the page. It does not control the outer browser address bar or create a trusted connection to the displayed name.
The attack exploits a useful habit: many people expect a separate “Sign in with…” window and inspect the small window rather than the page that opened it. Modern HTML and CSS can make that imitation highly convincing. Microsoft describes BitB as a technique that simulates a legitimate browser window inside a malicious page and can be paired with other phishing flows.[1]
Key Takeaways
- Treat any login window drawn within a page as untrusted until you verify the real origin using browser-controlled interface elements.
- A genuine separate pop-up can move independently, appear in the browser’s window switcher, and have an address controlled by the browser—not by the website beneath it.
- Password managers, passkeys, and phishing-resistant MFA can reduce risk, but none turns an unverified page into a trusted one.
- Your response depends on what happened: only viewing the imitation is different from entering credentials, approving MFA, or running a download.
The attacker first brings a visitor to a page they control, commonly through a message, advertisement, fake document, search result, or compromised account. The page offers a believable action such as viewing a shared file, joining a meeting, confirming an invoice, or accessing a work portal. When the visitor chooses a familiar sign-in provider, JavaScript displays an imitation window over the page.
The imitation can move inside the page and match an operating-system theme. Its address and padlock are artwork, so they may show the exact official spelling without connecting to that service.
After credentials are submitted, the page may show an error, send the victim to the real service, request an MFA approval, or relay the data into another phishing system. MITRE classifies spearphishing links as links delivered to persuade a target to visit attacker-controlled infrastructure; a BitB window can be the deceptive interface at that destination.[2] The visual trick and the delivery channel are separate parts of the attack.
Do not rely on color, logos, spelling, a padlock image, or the domain displayed inside the window. Instead, test which parts belong to the browser and which belong to the page. The most important reference is the outer browser address bar. It tells you the origin of the page that is drawing everything in its content area.
Try moving the supposed pop-up beyond the edges of the page. A fake element cannot leave its containing tab, although a carefully designed page may make this test less obvious. Switch windows using the operating system: a genuine separate browser window normally appears as another window, while a page element does not. Resize or minimize the outer window and observe whether the “pop-up” remains trapped inside it.
A password manager that normally fills the real provider may refuse because the actual origin is different. Stop when that happens; do not paste the password to bypass the warning.
| Check | BitB imitation | Genuine OAuth or SSO pop-up |
|---|---|---|
| Address shown in the small frame | Drawn by the webpage and can say anything | Controlled by the browser for the pop-up’s real origin |
| Relationship to the outer tab | Trapped inside the page content | Separate browser window with its own browsing context |
| Window switching | Usually absent as an independent window | Normally appears as a separate browser window |
| Password-manager matching | Matches the attacker’s real page origin, not the painted domain | Can match the identity provider’s real origin |
| Safe verification | Close it and open the service from a trusted bookmark or app | Still verify the real origin and requested permissions |
Browser interfaces vary, so the durable check is to abandon the offered path and open the known service independently. A legitimate task should also be visible in its official app or account portal.
These attacks may appear together, but they rely on different mechanisms. BitB paints a convincing browser-shaped interface inside an attacker-controlled page. Clickjacking hides or overlays a real interactive element so that a click activates something different from what the user believes. A BitB form can be entirely fake without any hidden real button.
An adversary-in-the-middle, or AiTM, phishing system proxies a real sign-in exchange and may capture credentials, cookies, or session material. Its page may look like the provider and may use a lookalike domain, but the defining feature is the relay of authentication traffic rather than a painted window frame. Session hijacking is the resulting misuse of a valid session; it can happen through many routes that do not involve BitB.
| Technique | Core deception or capability | Main thing to verify |
|---|---|---|
| Browser-in-the-browser | Fake browser chrome and login form rendered in a page | Outer address bar and real origin |
| Genuine OAuth/SSO | Real provider window asks to authenticate or consent | Provider origin, app identity, requested permissions |
| Clickjacking | Hidden or disguised real control receives the click | Unexpected overlays, framing, and requested action |
| AiTM/session phishing | Attacker relays sign-in and may capture session material | Independently opened account, sign-in alerts, active sessions |
A password submitted to a fake form must be changed. A relayed session may require revocation, and unwanted OAuth consent requires removing the app grant. Start with what you actually entered or approved.
Pause whenever a page creates its own login window after an unexpected link. Read the registrable domain in the outer address bar, not a brand-like word in a subdomain. Close the page and reach the organization through a bookmark, a manually typed address, or its official app. For workplace requests, ask the sender through a known channel or contact the service desk using details you already have.
Do not use support details on the suspicious page or approve MFA for a login you did not independently initiate.
Inspect the task as well as the domain. A real identity provider can be used to request consent for an unfamiliar application. A correct provider origin proves where authentication is happening, not that every requesting app or permission is appropriate. Read the app name, publisher information, account being used, and requested access before approving.
A password manager is useful because it associates saved credentials with an origin. If it does not offer the expected login, the real origin may not match. This is a strong reason to stop, but a password manager cannot evaluate every workflow, and a user can defeat the protection by manually copying a password.
A passkey is designed to be bound to a relying party and can resist credential replay on the wrong site. Phishing-resistant authentication, such as FIDO-based methods, provides stronger protection than codes or simple push approvals. CISA recommends phishing-resistant MFA because it blocks common attempts to capture or replay authentication secrets.[3] However, availability, account recovery, enrollment, and device compromise still matter. A user may also be tricked into authorizing a different action on a real service.
Code-based MFA can still be phished in real time, and push MFA can be abused through misleading prompts. Verify the action and origin even when a second factor is present.
Respond according to the highest exposure that occurred. Preserve the original URL, message, approximate time, and any downloaded filename, but do not revisit the page merely to gather screenshots.
| Exposure | Immediate action | Follow-up |
|---|---|---|
| Only viewed the page | Close the tab and do not grant permissions | Report the link; check whether the browser downloaded anything automatically |
| Entered credentials | From a trusted route, change the password and revoke active sessions | Change reused passwords; inspect recovery details, forwarding rules, and recent sign-ins |
| Approved MFA or consent | Deny further prompts; revoke sessions and unwanted app grants | Contact the service administrator and review account activity |
| Downloaded or executed a file | Stop using the device for sensitive sign-ins and disconnect it if active compromise is suspected | Use trusted security checks or professional support; secure accounts from a clean device |
If a work account was involved, report quickly even if the password has already been changed. Logs can help defenders identify sign-ins, tokens, inbox rules, connected applications, and other affected users. If financial information was submitted, contact the institution through a trusted number. If you installed software or a browser extension, treat the device risk separately from the account risk.
Use phishing-resistant authentication for sensitive accounts, restrict risky legacy sign-in methods, and make legitimate sign-in flows predictable. Users should know which identity provider, domains, and app-consent screens are expected. High-risk grants and new applications should receive additional review.
Controls can block known destinations, while monitoring can flag unusual sign-ins, sessions, consent grants, and inbox rules. Reporting should let a person flag a suspicious page without first naming the technique. Training should distinguish browser-controlled chrome from page content without relying on one operating system. The online security guide, phishing-site guide, and phishing protection guide provide the broader account and recovery context.
Browser-in-the-browser phishing succeeds by painting a trusted-looking login window inside an untrusted webpage. The text and padlock inside that frame do not establish identity. Verify the outer browser address bar and real origin, or leave the flow and open the service independently. Password managers, passkeys, and phishing-resistant MFA add valuable barriers, but recovery still depends on recognizing whether credentials, approvals, sessions, or files were exposed.
Yes. The domain inside a fake frame is ordinary page content, so an attacker can display the exact official spelling and a padlock image. Only a browser-controlled interface can report the frame or window’s actual origin.
No. HTTPS protects the connection to the domain you reached. An attacker can use HTTPS on a deceptive domain, and a painted address field is not a browser security indicator at all.
Not necessarily. JavaScript can make an element draggable inside a page. A stronger clue is whether it can move beyond the outer page, appears as an independent window, and has browser-controlled origin information.
It often helps by refusing to fill on the wrong origin, but it is not a universal detector. Never bypass a mismatch by manually pasting credentials without independently opening the correct service.
Passkeys are strongly resistant to credential phishing because they are bound to the intended relying party. They do not prevent every social-engineering, consent, recovery, malware, or already-compromised-device scenario.
No. BitB imitates a browser or sign-in window inside a page. A fake browser update usually pressures the user to download or run software. A campaign can use both techniques, but the requested action and response differ.
Change the password anyway, revoke sessions, and review account activity. The password is exposed and may be reused later, tried on another service, or combined with a different attempt against your recovery process.
No. Preserve the URL and original message, then report them through trusted channels. Reopening the page can trigger new redirects, downloads, or tracking and is rarely necessary for a normal user response.
This article provides general security information, not incident-response or legal advice for a particular case.
Sources checked 28 August 2026.
Sign up to experience all premium features at no cost.
*Available only to new users. Each user is limited to one trial.





