The Incident That Reframed How One SOC Uses Location Data
A mid-sized financial services firm received an alert: a privileged account had authenticated successfully from an IP address resolving to Frankfurt, Germany. The account belonged to a senior analyst who worked from a suburb of Chicago. The SOC reviewed the geolocation data, noted the European origin, and escalated immediately. Analysts spent forty minutes investigating a potential account takeover before discovering the IP belonged to a major cloud provider's edge node that physically sat in a data center in northern Illinois. The attacker had routed through a cloud-hosted proxy. The geolocation was wrong. The escalation consumed time that should have gone toward behavioral analysis of what the session actually did after authentication.
This scenario repeats itself across security operations centers every week. Geolocation data carries implicit authority that it rarely deserves. Understanding where that authority breaks down, and building workflows that account for those breaks, is a foundational competency for any team that uses IP intelligence operationally.
How IP Geolocation Actually Works
IP geolocation does not work the way most practitioners assume when they first encounter it. There is no GPS chip in a server rack. Location data comes from a combination of sources: Regional Internet Registry (RIR) allocation records, BGP routing table analysis, active latency measurements, user-reported corrections, and commercial database aggregation. Each of these sources introduces its own lag, its own error profile, and its own geographic resolution limits.
RIR records associate IP blocks with the organizations that registered them. Those organizations may operate infrastructure globally. A block registered by a German company to a Frankfurt address may route traffic through a point of presence in Singapore, Atlanta, or São Paulo. The registration address is not the traffic origin. This distinction matters enormously in security contexts and gets collapsed in practice far more often than it should.
BGP data tells you which autonomous system is advertising a prefix, and where that AS has peering relationships. It tells you almost nothing about where individual packets physically originate. Latency-based triangulation offers better physical accuracy in theory, but commercial geolocation providers apply it inconsistently and rarely disclose their methodology in enough detail for practitioners to evaluate confidence levels per query.
Where the Accuracy Actually Lands
Country-level geolocation is accurate for the majority of non-proxied residential and business IPs, with most commercial providers claiming accuracy rates between 95 and 99 percent at the country level. Those figures deserve scrutiny. The confidence interval depends heavily on the IP type being queried. Consumer ISP addresses in Western Europe and North America resolve with high accuracy. Mobile carrier addresses, cloud provider ranges, satellite internet addresses, and corporate NAT exits resolve with significantly lower accuracy.
City-level accuracy drops sharply. Most providers acknowledge accuracy in the range of 50 to 80 percent at the city level for residential addresses, and those figures degrade further for business and data center IPs. Practitioners who act on city-level data as though it carries the same confidence as country-level data are making decisions on evidence that is wrong nearly half the time.
Postal code and street-level geolocation, which some providers offer, carries accuracy figures that are largely unreliable for security purposes. These granular outputs exist for advertising and logistics applications. Applying them to access control or incident classification introduces noise that degrades the quality of security decisions.
The Infrastructure Categories That Break Geolocation Hardest
Several categories of IP infrastructure produce geolocation results that are systematically misleading in security contexts.
Cloud Provider Ranges
Major cloud providers operate global infrastructure but register IP blocks under corporate addresses in their headquarters countries. AWS, Azure, Google Cloud, and their peers publish machine-readable lists of their IP ranges. The geolocation databases maintained by commercial providers update to reflect these ranges at varying intervals, and coverage is inconsistent. An IP address in an AWS us-east-1 range may geolocate to Seattle, Ireland, or Luxembourg depending on which database you query and when. Any authentication or connection event from cloud infrastructure requires ASN-level verification against the provider's published ranges before geolocation data can inform a decision.
VPN and Proxy Infrastructure
Commercial VPN providers and residential proxy networks deliberately select exit nodes to produce misleading geolocation results. A residential proxy network routes traffic through real consumer devices distributed globally. The geolocation of the exit IP will match the physical location of that consumer device, making the traffic look like it originates from a domestic residential connection. This is the operational reason that IP geolocation alone cannot distinguish legitimate domestic access from proxied foreign access. The watering hole campaigns distributing the ScanBox keylogger, covered extensively in recent threat intelligence reporting, use exactly this kind of infrastructure to make reconnaissance traffic blend with normal web visitor patterns.
Satellite Internet
Starlink and other low-earth orbit providers assign IP addresses from ground station pools that may be geographically distant from the user. A user in rural Montana may geolocate to a city where a ground station operates. This is increasingly relevant as satellite internet adoption grows among remote workers in sectors that handle sensitive data.
Carrier-Grade NAT
Mobile carriers and some ISPs apply carrier-grade NAT, placing thousands of users behind a single public IP. The geolocation of that IP reflects the carrier's infrastructure point, not any individual user's location. Behavioral anomalies visible at the account level matter far more than the IP's resolved location when traffic originates from CGN ranges.
Building a Geolocation Confidence Model in Your SOC
Effective use of geolocation data in security operations requires treating it as a probabilistic signal with a confidence weight, not as a factual attribute. The following framework gives teams a structured approach to calibrating that confidence before acting on location data.
Step One: Classify the IP Type Before Reading the Location
Before interpreting any geolocation output, determine what kind of infrastructure the IP belongs to. Query the ASN and compare it against known cloud provider ranges, hosting registries, and commercial proxy network lists. This classification step changes the interpretation of everything that follows. A location resolving to Germany from a residential ISP ASN carries different weight than the same location resolving from a Hetzner data center ASN. Tools like ip-api, MaxMind GeoIP2, and IPinfo all return ASN metadata alongside location data. Build your enrichment pipeline to surface ASN type alongside geolocation output so analysts see both together.
Step Two: Cross-Reference Against Session Behavioral Signals
Geolocation should never drive a security decision in isolation. The question is not where the IP resolves, but whether the behavior of the session is consistent with how legitimate users from that location behave. Login time relative to the user's historical pattern, device fingerprint, TLS client characteristics, HTTP header ordering, and session velocity all carry more signal than the resolved country. If a session authenticates from an IP geolocating to the Netherlands but uses the same device fingerprint, cookie, and session token as a user's normal domestic session, the geolocation anomaly requires a different response than a session that shows a new device, unusual timing, and no prior history from that IP range.
Step Three: Evaluate the Geolocation Provider's Confidence Score
Most commercial geolocation providers return a confidence or accuracy radius field alongside location data. MaxMind's GeoIP2 Precision database returns an accuracy radius in kilometers. IPinfo returns confidence indicators for individual records. These fields get ignored routinely in SOC workflows because analysts focus on the city and country name. Standardize on surfacing the confidence radius in your enrichment output. An accuracy radius of 5 kilometers means something different from an accuracy radius of 500 kilometers, and both can appear in the same database output for different IPs.
Step Four: Layer Multiple Providers and Compare
Querying a single geolocation provider and treating the output as authoritative is a structural weakness. For high-stakes decisions, query two or three providers and compare results. Divergence between providers is itself a signal: it indicates that the IP falls into a category where location is contested or unclear. Convergence across providers increases confidence but does not eliminate error. Implement multi-provider querying as a standard step in your enrichment chain for events that trigger escalation or automated response actions.
Geolocation in Access Control: What to Build and What to Avoid
Geographic access controls based on IP geolocation appear in almost every mature security program. They work as a coarse filter and fail as a precision instrument. The practical implementation question is which uses actually reduce risk and which create false confidence.
Country-level blocking of regions with no legitimate user base carries real value as a noise reduction measure. If your organization has no users, vendors, or partners in certain countries, blocking those ranges reduces the attack surface your authentication infrastructure presents to automated scanning campaigns. The WSzero DDoS botnet family, now in its fourth version according to recent threat intelligence, recruits compromised nodes globally and will route attack traffic through whatever geography produces the least resistance. Country-level blocks do not stop sophisticated campaigns, but they reduce the volume of commodity attacks that consume analyst time and infrastructure resources.
City-level access controls tied to user home location carry risk that most security programs underestimate. A user traveling domestically, connecting through a hotel network, or switching to a mobile connection may trigger location-based blocks or authentication challenges that degrade their experience and generate alert volume without security value. Build geolocation-triggered controls at the country level for high-risk actions, and supplement them with behavioral and device-based signals for finer-grained decisions.
Automated blocking triggered solely by geolocation is a pattern that generates both false positives and false negatives at rates that most teams underestimate until they measure them. Geolocation should feed into a risk score that influences authentication requirements, not into a binary allow/deny that operates without additional context.
Incident Response Workflows That Account for Geolocation Error
When an incident begins with a suspicious IP and a geolocation that looks alarming, the investigative workflow needs to treat that location as a hypothesis rather than a fact. The forensic steps that follow should either strengthen or weaken the location hypothesis independently of the geolocation database output.
Start with the ASN. Determine who operates the network. Check whether the ASN appears in threat intelligence feeds independently of its location. An ASN associated with a known bulletproof hosting provider carries its own threat signal regardless of what country its IPs resolve to.
Pull BGP routing history for the prefix. Services like BGPView, RIPE Stat, and Hurricane Electric's BGP toolkit expose historical routing data that can reveal whether a prefix has recently changed hands, been hijacked, or moved between ASNs. Prefix hijacking changes where traffic physically routes without updating geolocation databases, which creates systematic geolocation errors for the duration of the hijack event.
Look for timing patterns. Threat actors operating from specific regions follow human schedules even when they try to obscure them. Campaign activity clustered in time zones inconsistent with the resolved geolocation is a weak signal that geolocation may be inaccurate or that a proxy is involved. This is not definitive, but it contributes to the overall picture.
Review historical connection data from your own logs. If the same IP or IP range has appeared in your logs previously with no anomalous behavior, that context matters. If this is the first appearance of the IP and it triggered an alert immediately, that pattern differs from an IP that has been seen across hundreds of sessions before the alert fired.
Integrating Geolocation Into Threat Intelligence Workflows
Geolocation data contributes most to threat intelligence workflows when it is treated as one layer in a multi-signal enrichment chain rather than as a primary indicator. The practical integration looks like this: an IP triggers a detection. Enrichment runs in parallel across ASN data, geolocation, threat intelligence feed matches, passive DNS history, WHOIS records, and open port scan results. The geolocation output feeds into a composite risk score alongside the other signals. Analysts see the full picture before making a decision, not just the country flag.
This model requires enrichment infrastructure that can run parallel queries and return results within the time window that matters for automated response decisions. Many SOAR platforms support this architecture natively. For teams building custom pipelines, caching geolocation results for frequently observed IPs reduces latency and API cost while keeping data reasonably fresh.
Staleness is a specific geolocation problem worth addressing in any enrichment pipeline. IP address assignments change. An IP that resolved to a residential connection in Germany six months ago may now be part of a cloud provider's range, a VPN exit pool, or a different ISP's network entirely. Cache geolocation results with a time-to-live that reflects the volatility of the IP type: shorter for residential and mobile ranges, longer for stable data center ranges where reassignment is less frequent.
What Geolocation Can and Cannot Tell You About Attribution
Attribution using geolocation data is a path that leads to unreliable conclusions more often than practitioners acknowledge. Nation-state actors, sophisticated criminal groups, and even mid-tier threat actors routinely operate through infrastructure in countries unrelated to their actual origin. The Iran-affiliated threat activity shaping current assessments of violent extremism risk and the secondary effects of regional conflicts on cyber operations both demonstrate that threat actors optimize their infrastructure for operational security, not geographic transparency.
Geolocation can tell you where a packet entered the public internet. It cannot tell you where the human or automated process that generated that packet was physically located. For attribution purposes, geolocation data is one weak signal in a much larger analytical problem. SOC teams that present geolocation as attribution evidence in incident reports need to document clearly what they mean: the traffic entered the internet from infrastructure in a particular geographic region, not that the attacker was physically present there.
Tactical attribution for blocking purposes is different from strategic attribution for legal or policy purposes. Blocking a netblock because traffic from it is exhibiting attack patterns is a legitimate tactical response that does not require geographic certainty. Attributing an attack campaign to a specific nation-state requires evidence that geolocation databases are categorically unable to provide on their own.
Practical Takeaways for Security Operations Teams
Building operational discipline around geolocation accuracy means standardizing a few concrete practices that keep the data useful without letting it mislead decisions.
- Always surface ASN type alongside geolocation output in analyst interfaces. Cloud, hosting, residential, mobile, and proxy classifications change how location data should be weighted.
- Configure alert enrichment to include the geolocation provider's confidence radius or accuracy score as a visible field, not just the location name.
- Run multi-provider geolocation queries for any event that drives an automated response action. Divergence between providers is a signal that warrants human review before automated action executes.
- Treat city-level and below geolocation as advisory data with low confidence for security decisions. Country-level data is more reliable but still requires ASN context to interpret correctly.
- Document geolocation in incident reports as infrastructure location, not attacker location. This keeps attribution language accurate and prevents geolocation errors from compounding into incorrect threat assessments.
- Review your geolocation provider's update frequency and methodology documentation. Providers that update databases monthly perform significantly worse on dynamic IP ranges than providers with weekly or near-real-time updates.
- Cross-reference cloud provider IP ranges directly from provider-published lists (AWS ip-ranges.json, Azure Service Tags, Google Cloud json) rather than relying on geolocation databases to correctly classify these ranges.
Geolocation data is useful. It is not reliable enough to carry the weight that security workflows frequently assign to it. The teams that use it well treat it as one input into a richer analytical picture, calibrate their confidence based on IP type and provider accuracy metrics, and build incident response processes that investigate the hypothesis that location data generates rather than accepting it as settled fact.