Hi @Anonymous
If these emails are actually from accountprotection.microsoft.com, they are legitimate emails sent by Microsoft.
Please refer to this link: Can I trust email from the Microsoft account team?
The reason why users are receiving these emails even if they are not requesting codes from Microsoft may either be someone mistakes their account address with yours, or he is trying to hack these accounts.
Please contact your Azure AD admin to check the Azure sign-in logs if you can find some suspicious sign-in attempts.
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.