Microsoft 365 Teams external access blocks conversation initiation from unmanaged Teams accounts when AllowTeamsConsumerInbound=false.
Risk
Permitting unmanaged externals to start chats enables phishing, malware delivery, and social engineering, leading to credential theft and data exfiltration. It also allows user enumeration and presence probing, aiding account takeover and lateral movement, impacting confidentiality and integrity.
prowler m365 --checks teams_external_users_cannot_start_conversations
Recommendation
Disable inbound initiation from unmanaged accounts (AllowTeamsConsumerInbound=false). If external collaboration is required, prefer allowlists for trusted domains and use guest access with least privilege. Apply defense in depth: conditional access, link/file scanning, user education, and monitor for anomalous external chats.
Remediation
Set-CsTenantFederationConfiguration -AllowTeamsConsumerInbound $false
- Sign in to the Teams admin center: https://admin.teams.microsoft.com/
- Go to Users > External access
- Under "Teams accounts not managed by an organization", clear the checkbox "External users with Teams accounts not managed by an organization can contact users in my organization"
- Click Save
Source Code
Resource Type
NotDefined
References
- https://learn.microsoft.com/en-us/powershell/module/teams/set-cstenantfederationconfiguration?view=teams-ps
- https://learn.microsoft.com/en-us/microsoftteams/trusted-organizations-external-meetings-chat
- https://learn.microsoft.com/en-us/entra/architecture/9-secure-access-teams-sharepoint
- https://learn.microsoft.com/en-us/microsoftteams/communicate-with-users-from-other-organizations