HomeHacker FilesWhy blocking foreign IP addresses may not keep foreign attackers out

Why blocking foreign IP addresses may not keep foreign attackers out

A foreign attacker can reach your network through a compromised device in your own country. What matters then is what your access policies let that connection do.

A U.S.-only access rule can admit traffic from an overseas attacker without malfunctioning. If the attacker connects through a compromised router in the United States, the rule can correctly identify the source address as domestic and allow the connection. The geographic check succeeds while the security assumption behind it fails.

Lumen’s Black Lotus Labs describes this approach in its investigation of Volt Typhoon’s Silent Train network. The research provides a practical reason to review what geographic restrictions actually protect, especially where they govern access to network administration.

A domestic address at the end of the chain

Black Lotus Labs attributes Silent Train to Volt Typhoon, a China-linked threat actor. Its investigation describes chains of compromised small-office routers, IoT devices and enterprise infrastructure used to conceal operations. U.S.-based devices provided domestic exit points before connections reached victims, helping malicious traffic bypass geographic blocking and IP reputation filters.

The distinction matters technically. An attacker using a relay does not need to forge a U.S. source address. The relay makes the connection and carries traffic back through the chain. A geographic database can locate that relay accurately without revealing where the operator sits.

Lumen also reports that operators frequently rebuilt their infrastructure and removed tools after operations. This makes a static list of previously identified addresses an incomplete defense: recognizing yesterday’s relay does not establish the reputation of its replacement.

Country restrictions narrow exposure

Geographic filtering can still serve a defined purpose. If a service has no legitimate users in particular countries, blocking connections associated with those countries removes a set of unwanted requests. It can also support an explicit business restriction on where a service is available.

However, an allowed network origin provides no assurance that the person connecting is authorized. A rule allowing U.S. addresses includes far more than employees and approved suppliers. It can include residential connections, rented infrastructure and compromised devices operated by unrelated parties.

Keep the distinction visible in policy reviews. “Connections from excluded countries are blocked” is a testable statement. “Foreign attackers cannot reach this service” is a much broader claim that the rule cannot support. Blocked-request counts demonstrate filtering activity; they do not measure how many capable attackers remain outside.

Check which address the control evaluates

Before changing a country list, trace the connection to the enforcement point. A firewall, web application firewall and identity provider may evaluate different addresses because proxies, VPNs and load balancers change what each system sees.

Microsoft documents that Entra Conditional Access ordinarily evaluates the proxy’s address when a user connects through a cloud-hosted proxy or VPN. It does not accept the X-Forwarded-For header as proof of the user’s public address because the header lacks a trusted source guarantee. An allowed location can therefore describe the organization’s egress service rather than the user’s physical location.

AWS WAF supports a different configuration choice. Geographic rules can evaluate the request-origin address or an address supplied in a configured HTTP header. That flexibility introduces a trust decision: which component supplied the header, and could the requester influence it?

AWS explicitly warns that attackers may alter forwarded headers to bypass inspection. It also distinguishes an invalid address from a missing header. A missing configured header produces no match for that statement; malformed values use the configured fallback behavior. Surrounding rule logic determines the eventual action. Test both conditions instead of assuming one fallback covers them.

Keep geography out of privilege decisions

Review what passing the location check changes. Does it merely allow a connection to reach authentication, or does it also exempt the session from additional verification? Microsoft allows named network locations to be included in or excluded from Conditional Access policies. Those exclusions deserve particular scrutiny for administrative accounts.

A narrow allowlist of organization-controlled administrative egress addresses is more selective than allowing an entire country. It still establishes a network path rather than an administrator’s identity. Access through that path should retain the authentication and authorization required for the task.

For network devices, reduce the number of publicly reachable management interfaces. The joint communications-infrastructure hardening guidance from CISA, NSA and partner agencies recommends dedicated administrative workstations, restricted management paths and phishing-resistant multifactor authentication. Where supported, enforce these controls before administrators can reach device-management services.

This matters particularly for controllers that concentrate authority over managed devices. A geographic rule around a controller does not limit the authority available after compromise. MFA on a login workflow does not fix a vulnerability reachable before authentication; reducing exposure and applying relevant patches remain separate requirements.

Monitor the activity behind the address

A domestic source should not suppress investigation of unexpected administrative activity. Correlate connections with account use and configuration changes: a new administrator, an unapproved ACL change or an unexpected tunnel deserves attention regardless of the country label.

The joint hardening guidance recommends centralized logging, monitoring for unauthorized configuration changes and retaining logs away from the devices that generated them. This provides evidence beyond a source-address lookup and reduces reliance on records held entirely within a potentially compromised appliance.

Make alerts operationally useful by connecting them to approved changes. A configuration export during a documented maintenance task has different context from the same action by an account that has never managed that device. Neither the geographic label nor the action alone explains the session.

Test from somewhere you already allow

The most revealing check is an authorized connection from an allowed country using an unmanaged device and no administrative credentials. Establish which interfaces it can reach, which authentication controls remain mandatory and what appears in the logs. Repeat through the proxies and VPN paths your administrators actually use.

That exercise tests the protection remaining after geography has done its job. If an unfamiliar domestic connection can reach a sensitive interface or avoid a required verification step, the corrective action belongs in exposure, identity or authorization controls. Adding another foreign country to the blocklist will not address that path.

Sources

About NetworkTigers

NetworkTigers is the leader in the secondary market for Grade A, seller-refurbished networking equipment. Founded in January 1996 as Andover Consulting Group, the company originally built and re-architected data centers for Fortune 500 firms. Today, NetworkTigers provides consulting and network equipment to global government agencies, Fortune 2000 companies, and healthcare companies. Visit www.networktigers.com

Katrina Boydon
Katrina Boydon
Katrina Boydon is a veteran technology writer and editor known for turning complex ideas into clear, readable insights. She embraces AI as a helpful tool but keeps the editing, and the skepticism, firmly human.

Popular Articles