The Hidden Teams Security Gap: How Guest Access Can Bypass Microsoft Defender (And What To Do About It)
Microsoft Teams guest access creates a cross-tenant blind spot where a user's home-tenant security controls, including Defender for Office 365, do not apply when they join another organisation's tenant as a guest. An attacker can set up an unprotected tenant, send a legitimate-looking guest invitation, and deliver phishing links or malware that the victim's organisation cannot scan or see.
A quiet but serious loophole in Microsoft Teams lets attackers sidestep your organization’s security controls. Here’s what’s happening and how to stay protected.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely a design gap in Microsoft Teams cross-tenant collaboration: guest sessions are governed by the host tenant's policies, so the guest's home-tenant security controls such as Defender for Office 365, Safe Links and Safe Attachments are not applied.
Impact
An attacker could deliver phishing links or malware to a victim through a guest session without the victim's organisation detecting or logging it, because the activity happens outside their security boundary.
What the attacker needed
Attacker creates a Microsoft 365 tenant; victim accepts a Teams guest invitation; victim's organisation uses Teams
The fix
Organisations should restrict which domains can send guest invitations, disable chat with anyone via email if not needed, tighten B2B cross-tenant access policies, limit external Teams communication, train users about unexpected invitations, and monitor sign-ins for unusual guest activity.
How it was found
- The attacker creates a new Microsoft 365 tenant on a cheap plan without Defender protections.
- The attacker removes or minimises security settings in that tenant.
- The attacker collects target email addresses, for example from public staff email formats.
- The attacker starts a Teams chat with the victim, which triggers an automatic email invitation from Microsoft that passes email authentication checks.
- The victim clicks Accept and joins the attacker's tenant as a guest.
- The attacker sends phishing links, malware attachments or fake documents that are not scanned by the victim's own security tools.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
When you accept a guest invitation to another company's Microsoft Teams, you are effectively working inside their account, not yours. Your own company's security tools, which normally check links and attachments for threats, stop working for that session. An attacker can create a free Microsoft 365 account with no security tools, invite you as a guest, and then send you phishing links or malware that your employer's defences never see.
What is Misconfiguration?
Settings left unsafe: exposed panels, open storage buckets, debug modes, default credentials.