Security researchers at Palo Alto Networks Unit 42 have identified a new wave of sophisticated phishing campaigns targeting Microsoft 365 users. These attacks employ the Browser-in-the-Browser (BitB) technique, which uses a fake, but highly realistic, browser window rendered inside the actual browser tab to deceive users. This fake window is designed to perfectly mimic a legitimate Microsoft authentication pop-up, tricking users into entering their usernames and passwords. Because the fake pop-up is just HTML and JavaScript within the attacker's webpage, any credentials entered are sent directly to the attacker. This technique is particularly dangerous because it can defeat common user training, as the main browser window can be on a legitimate-looking, but attacker-controlled, domain, and the fake pop-up can display a legitimate URL like login.microsoftonline.com.
The Browser-in-the-Browser (BitB) attack is a social engineering technique that enhances the credibility of a phishing page.
login.microsoftonline.com, making the prompt appear completely legitimate.The BitB technique is an evolution of traditional phishing, focusing on psychological manipulation rather than exploiting a technical vulnerability. It leverages the following MITRE ATT&CK techniques:
T1566.002 - Spearphishing Link: The attack is initiated via a link sent through email or other means.T1598.001 - Phishing for Information: The ultimate goal is to trick the user into voluntarily giving up their credentials.T1204.001 - Malicious Link: The user must click a link to be taken to the phishing page.The core of the attack is the use of <iframe> or <div> elements styled with CSS to look exactly like a native window of the user's operating system (e.g., a Chrome window on Windows 11). This is purely a visual trick; there is no actual new browser window created.
Detecting a BitB attack from the user's perspective is difficult but not impossible.
URL Analysis to check for newly registered domains and suspicious content.Since BitB is a social engineering trick, mitigation relies on a combination of technical controls and advanced user awareness.
Multi-factor Authentication.Using phishing-resistant MFA (like FIDO2) is the most effective technical control, as it prevents the use of stolen credentials.
Mapped D3FEND Techniques:
Training users to recognize the specific tells of a BitB attack, such as the 'drag the window' test.
Using web filters to block the initial phishing page before the BitB attack can be rendered.
Mapped D3FEND Techniques:
The most robust defense against Browser-in-the-Browser (BitB) attacks targeting Microsoft 365 is the enforcement of phishing-resistant Multi-Factor Authentication. Organizations should prioritize the rollout of FIDO2/WebAuthn compliant authenticators, such as YubiKeys or Windows Hello for Business. Unlike passwords or even TOTP codes, these methods tie the authentication ceremony to the specific domain the browser is actually on. When a user tries to authenticate, the security key or biometric prompt will only work if the origin domain matches what is expected (login.microsoftonline.com). Since the BitB attack occurs on an attacker-controlled domain, the FIDO2 challenge will fail, completely neutralizing the attack. This technical control removes the burden from the user to spot the visual deception and provides a nearly foolproof way to prevent credential theft from this technique.

Cybersecurity professional with over 10 years of specialized experience in security operations, threat intelligence, incident response, and security automation. Expertise spans SOAR/XSOAR orchestration, threat intelligence platforms, SIEM/UEBA analytics, and building cyber fusion centers. Background includes technical enablement, solution architecture for enterprise and government clients, and implementing security automation workflows across IR, TIP, and SOC use cases.
Help others stay informed about cybersecurity threats
Every tactic, technique, and sub-technique used in this threat has been identified and mapped to the MITRE ATT&CK framework for consistent, actionable threat language.
Observables and indicators of compromise (IOCs) have been extracted and cataloged. Risk has been assessed and correlated with known threat actors and historical campaigns.
Detection rules, incident response steps, and D3FEND-aligned mitigation strategies are included so your team can act on this intelligence immediately.
Structured threat data is packaged as a STIX 2.1 bundle and can be visualized as an interactive graph — relationships between actors, malware, techniques, and indicators.
Sigma detection rules are derived from the threat techniques in this article and can be converted for deployment across any major SIEM or EDR platform.