Many Microsoft 365 teams have a location alert that keeps firing for no good reason. A user in Warsaw, Manchester or Lisbon appears to have opened a document from a datacenter in Virginia. Sometimes it is Washington, Dublin or Singapore, and sometimes all four in the same hour. You ask the user, and they were at their desk. You close the ticket. The next morning the same alert fires for someone else.
After a while somebody adds an exception, lowers the severity, or moves the rule to a dashboard that nobody opens. That is the real cost. The wasted hour matters less than the fact that a useful kind of detection ends up switched off.
The rule itself is usually fine. The cause is in how the address in the audit log should be read. This post explains that, and what to do about it.
What the address in an audit event means
Each Microsoft 365 audit event has an address field. Most tools read it as the IP address of the person who did the action.
For a large share of events, the field holds the address of the Microsoft server that carried out the operation.
This is by design, and it follows from how the platform works. A lot of what happens in a tenant is not a user clicking something in a browser. A service does the work for the user, in a datacenter, and sometimes well after the user's action:
- Server-side mailbox operations. Permission changes, delegate access, retention actions, and rules that run in the service and not in Outlook.
- Background SharePoint and OneDrive work. Changes made by sync, moves started by the service, and operations that finish after the user's session has ended.
- Copilot and AI interactions. The user types a prompt, and a service reads the files. The read is recorded from wherever that service runs.
- Compliance features. eDiscovery, retention, DLP evaluation and legal hold all run entirely inside Microsoft.
- Application and background service activity. Anything that acts with application permissions has no user IP to record, because no user connection was involved.
In all of these cases the operation did come from a Microsoft datacenter, and the log records that correctly. A location alert, though, wants to know where the user was, and the address field does not answer that for these events.
How this affects your detections
The effect is strongest on the location-based detections that security teams rely on most.
Impossible travel produces false alarms. This check compares two events and asks whether a person could have travelled between the two places in the time available. Suppose one event is a real sign-in from Warsaw and the other is an operation carried out by a service in Virginia. The check then reports a flight across the Atlantic in four minutes. This happens every day, for every user who has a mailbox rule or uses Copilot. The check works as designed, but it is comparing two things that are not both user locations.
Geo-fencing alerts on Microsoft's own services. Take a rule that says "alert on activity outside the countries we operate in". Your allow-list contains the countries where your staff work. Microsoft may serve your tenant from different countries, and those can change. So the rule fires on normal service activity.
Enrichment costs money. If you send audit logs to a SIEM with paid geo-IP lookups, you pay to look up Microsoft's own address ranges again and again. Then you pay to store the results.
The alert gets suppressed, and that hides real attacks. When a location rule is noisy, the usual reaction is to suppress datacenter traffic, foreign traffic, or both. That same suppression helps an attacker. Someone using stolen credentials works from wherever they are, and more and more often that is a hosting provider, which is also a datacenter. A rule that was tuned to hide the false alarms then hides the real sign-in as well.
Why you should not simply ignore datacenter IPs
Ignoring all datacenter addresses is the obvious fix, but it causes a new problem.
You can't tell from an address alone whether it belongs to a Microsoft datacenter or to some other datacenter. Both are hosting infrastructure. Both are far from your office, and both may be in a country where you don't operate. A suppression rule written by hand, based on the addresses you saw last week, covers only part of the ranges. It also goes out of date without anyone noticing.
There are two different cases here, and only one of them is safe to set aside:
| What you see | What it means | What to do |
|---|---|---|
| Microsoft's own infrastructure | The platform acted on a user's behalf | Label it. Never read it as the user's location |
| Any other hosting provider | Something ran from rented infrastructure | Investigate. This is a real signal |
Telling these two cases apart is the main task. If you treat them as the same thing, you either get a flood of false alarms or you miss real attacks.
Two things that fix it
First, recognise Microsoft's infrastructure properly.
Microsoft publishes the address ranges of its services. They cover IPv4 and IPv6, and they change over time. To recognise them you need to keep that list up to date. A few prefixes that someone pasted into a rule two years ago are not enough. Events from these ranges should be labelled as coming from the platform and shown in a neutral way. They should not be shown as suspicious foreign hosting. The events stay visible. They are just no longer treated as the location of a person.
Second, use Microsoft's own location information when it is available.
Many teams don't know about this, and it is the more useful of the two.
Microsoft often records the user's real country next to the address of the server. The connection came from a Microsoft server, but the record still says which country the user was in. When that information is there, use it in place of the address. The address tells you where the server was. The country field tells you where the person was.
The result is easy to see. A file previewed by someone in Poland is shown as Poland, even though the connection came from a Microsoft server in the United States. The daily false alarm stops. It stops because you now know where the user was. You have not told the rule to ignore anything.
What the fix must never do
It is easy to get this wrong in a way that makes things worse.
Do not build a rule that assumes foreign-looking activity is probably just Microsoft. The fix should rely on two things only. One is Microsoft's infrastructure, identified by specific, maintained ranges that you can verify. The other is the explicit country that Microsoft records. It should never rely on "this looks like a datacenter" or "this country is unusual". A real sign-in from an unexpected country is exactly what you are trying to catch.
You can test whatever you build with one question. Suppose an attacker signed in to one of your accounts right now from a rented server in another country. Would your handling of Microsoft's traffic hide that sign-in? The answer has to be a clear no. If it is anything else, you have written a suppression rule.
A checklist for your current setup
You can run these checks against your current setup this week.
- Count it first. Look at the last thirty days and work out what share of your audit events have an address inside Microsoft's own ranges. On most tenants the share is larger than people expect. It tells you how much of your location detection has been reacting to service activity.
- Label these events and keep them. Events that come from the platform are real evidence of what the service did for a user. Keep them and mark them. Leave them out of location logic only.
- Check whether you already receive the country field. If your pipeline reduces audit records to a fixed set of columns, the real-country field is often dropped on the way in. It costs nothing, and you may already be discarding it.
- Turn the detection back on. Impossible travel and geo-fencing are good detections. Once the input is clean, enable them again and watch the volume. It should drop to roughly a tenth, and the alerts that remain should be worth reading.
- Show "Microsoft" and "datacenter" separately in every view. If your tool shows one badge for both, you can't triage. The two mean opposite things.
How 1Security handles it
Location Intelligence turns the network address of every action into a stable place: the country, the city, and the network that owns the connection. It does both of the things described above by default.
Microsoft's own networks are recognised for IPv4 and IPv6 and labelled as Microsoft origin. They are shown in a neutral style and not as suspicious hosting. When Microsoft supplies the user's real country next to a server address, 1Security uses that country. The event is then shown with the country the person was actually in.
Other traffic is still classified for what it is. A sign-in through a commercial VPN, the Tor network or a hosting provider is marked as such on the user's activity. This is one of the strongest early signs of a stolen session. You don't need to write a rule for it, and there is no suppression that could hide it.
It runs on a standard Microsoft 365 licence. The lookup happens locally and privately, so no IP data is sent to a third-party lookup service. It does not require E5, Entra ID P2 or premium sign-in logs.
Frequently asked questions
Does this mean my audit logs are unreliable? No. The logs are accurate about what they record. The address field describes the connection that performed the operation, and sometimes that connection belongs to Microsoft. The mistake is to read the field as the user's location in every case.
Which operations are affected? Broadly, anything that runs on the server side and not inside a user's session. That includes mailbox permission and rule changes, background SharePoint and OneDrive activity, Copilot interactions, compliance and retention features, and anything running with application permissions. Interactive browser sign-ins usually have the real client address.
Can I just filter these events out of my SIEM? You can, but you will lose real evidence. These events record real actions on real data. Label them and leave them out of location logic, but don't delete them.
Does Microsoft always tell me the user's real country? No. It is often there, but not always. When it is missing, the location of that event is unknown, and it is correct to report it as unknown. Do not work out a location from the server address.
Does fixing this need premium licensing? No. You need to recognise Microsoft's address ranges and read a field that is already in the records you receive. The only cost is the engineering work to do it properly.



