Share via

Hight cost on SMS MFA in B2C and conditional access not working

Edgar Rocha 20 Reputation points
2025-12-15T06:35:55.49+00:00

Our Azure B2C policy is receiving a large number of requests to authenticate with SMS in MFA. This is generating a huge bill. I tried to set up conditional access to a particular country, but it didn't work.

How can I prevent these attacks? Can I get refunded, as these attacks are supposed to be blocked by Azure B2c by default?

Microsoft Security | Microsoft Entra | Microsoft Entra ID
0 comments No comments

Answer accepted by question author

Sridevi Machavarapu 32,725 Reputation points Microsoft External Staff Moderator
2025-12-15T06:48:04.9666667+00:00

Hello Edgar Rocha,

This is expected behavior in Azure AD B2C when SMS MFA is enabled.

In B2C, the SMS is sent before Conditional Access is checked, so it can still be billed even if access is blocked later. Also, hiding the sign-up link (setting.showSignupLink = false) only changes what users see. The sign-up technical profiles were still reachable, which is how automated requests were able to create users.

What you’ve done with Front Door and Cloudflare is the right long-term approach. To prevent this going forward:

  • Keep Front Door / Cloudflare with bot protection and rate limiting
  • Remove the sign-up technical profiles and related steps from the custom policy (not just the UI link)
  • Avoid SMS where possible and use Email OTP or an authenticator app
  • Add CAPTCHA if sign-up is ever enabled again

To confirm the fix, try signing in using the same policy URL with an email that doesn’t exist. The sign-in should fail and no new user should be created.

For the refund, I’ve shared the steps with you in a private message on how to create a support ticket with the Billing team, who will handle that separately.

References:

Was this answer helpful?

1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.