Why Microsoft IP Addresses Appear in Office 365 Failed Login Audits
Question details
Understand why repeated failed authentication events in Office 365 audit logs appear to originate from Microsoft-owned IP addresses.
- Product
- Microsoft 365, Exchange Online, and SharePoint Online
- Device & OS
- not provided
- Scenario
- An organization using SharePoint reviews failed authentication events recorded alongside Exchange activity.
- Observed behavior
- Repeated PasswordLogonInitialAuthUsingPassword failures show Microsoft-owned IP addresses, including addresses in the 40.97.*.* range.
Note the event timestamps, affected accounts, IP addresses, and any correlation IDs. Make sure you have permission to review Microsoft Entra sign-in logs and Microsoft Purview audit records.
Check Whether Microsoft Service Traffic Explains the Audit Events
Use event details and related sign-in records to investigate whether the failures coincide with legitimate Microsoft 365 service activity.
Microsoft service traffic can appear in audit logs when services such as Word Online or Excel Online access SharePoint on a user's behalf. This may be expected, but the audit entries can be unclear, and a Microsoft-owned IP address alone does not establish the cause or prove that an event is safe.
In the Microsoft Purview portal, open Audit and search around the event time. Open a matching record and review its operation, user, workload, IP address, and any available identifiers.
In the Microsoft Entra admin center, go to Entra ID > Monitoring & health > Sign-in logs. Filter by the affected user and time, then inspect matching failures for the application, resource, failure reason, and correlation ID.
In Purview Audit, search the same time period for SharePoint, Exchange, or Office web app activity by the affected user. Compare timestamps and identifiers where available; related activity can provide context but does not by itself confirm the cause.
If the failures remain unexplained or other indicators are suspicious, follow your organization's security investigation process or open a Microsoft support request with the event details and correlation IDs.

Use WPS Office as an Alternative for Everyday Documents
WPS Office is a free, lightweight Office alternative with a familiar interface and support for common Microsoft Office formats, making it easier to move existing documents into your workflow. It does not investigate or resolve Microsoft 365 audit events.

Frequently Asked Questions
Why would a failed Office 365 login come from a Microsoft-owned IP address?
Microsoft service traffic may appear in audit logs when an Office web app accesses SharePoint on a user's behalf. Review the event and related sign-in details before concluding that this explains a particular failure.
Does a Microsoft IP address mean the event is safe?
No. IP ownership alone does not establish whether an event is legitimate. Check the affected account, application, failure reason, time, and any related activity in Microsoft Entra sign-in logs and Purview Audit.
Where can I find the reason for a failed sign-in?
In the Microsoft Entra admin center, go to Entra ID > Monitoring & health > Sign-in logs. Filter by user and time, open a matching event, and review the failure reason and application details.
What should I do if I cannot match the audit event to a sign-in?
Search a wider time window in Purview Audit and Entra sign-in logs, and compare any available correlation IDs and workload details. If the activity remains unexplained, escalate it through your security process or contact Microsoft support.




