Join our Newsletter — 33% off our NHI Course

Generic Routing Encapsulation (GRE)

Generic Routing Encapsulation (GRE) is a tunnelling protocol that carries one network protocol inside another. It can hide traffic paths and complicate inspection, and it is often abused to bypass filtering or move traffic between networks. Defenders should inventory GRE tunnels, restrict endpoints, and monitor for unexpected encapsulated traffic.

What GRE Does in a Network

GRE is a tunnelling protocol that wraps one network protocol inside another so traffic can traverse a different path or boundary than the original packet would normally take. That encapsulation is why it is useful for connectivity, but also why it can make inspection and policy enforcement harder.

At a practical level, GRE changes what defenders can observe at the outer edge of the tunnel. The payload may be hidden from simple port-based filtering, basic packet classification, or perimeter rules that only see the outer header, so security teams need to treat the tunnel endpoint as the real enforcement point.

Why GRE Is Security-Relevant

GRE matters because it can create a trusted-looking transport for traffic that would otherwise be blocked, segmented, or scrutinised. In environments with weak tunnel governance, it can become a convenient way to move traffic between networks without using the controls normally applied to application protocols.

The security concern is not the encapsulation itself, but the way it can bypass assumptions built into firewalls, IDS/IPS rules, and network segmentation. If teams only inspect the outer flow, they may miss the true source, destination, or protocol carried inside the tunnel.

How Defenders Validate and Constrain GRE Exposure

Defenders should inventory where GRE is actually needed, identify the endpoints that terminate tunnels, and confirm whether those endpoints are reachable only from approved peers. That is the difference between a deliberate connectivity design and an undocumented path that quietly expands the attack surface.

Monitoring should focus on unexpected encapsulated traffic, new tunnel peers, and changes in the volume or direction of GRE flows. A useful control pattern is to pair network visibility with policy enforcement, so the organisation can see both the outer tunnel and the business reason it exists. The broader network hardening guidance in Network Ports and Protocols Security Guide is especially relevant when a tunnel touches exposed or sensitive infrastructure.

Why GRE Can Be Misused for Evasion or Lateral Movement

GRE is often attractive to attackers and insiders because it can hide where traffic is really going, especially when security tools are tuned to inspect common application ports rather than encapsulated flows. Once a tunnel is established, it can also be used to shift traffic between network zones that would normally be separated by policy.

That makes the main defensive question whether the tunnel is an approved business dependency or an unauthorised channel. A mature network control model should treat GRE endpoints as sensitive infrastructure and review them with the same discipline applied to other cross-boundary connections.

Risk and Threat Considerations

GRE can weaken visibility when organisations rely on perimeter filtering alone, because the inner traffic may not be obvious to controls that only inspect the outer packet. The result is a hidden transport path that can carry disallowed protocols, obscure routing, or move traffic across network boundaries with less scrutiny than intended.

Failure mechanism: A tunnel endpoint is trusted or overlooked, so encapsulated traffic is allowed to pass even when the inner flow would have been blocked or monitored differently.

Impact: Attackers or unauthorised users can use GRE to bypass segmentation, reduce detection, and create a covert path for movement between networks.

Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

NIST CSF 2.0, NIST SP 800-53 Rev 5, CIS Controls v8 and NIST Zero Trust (SP 800-207) set the governance and control requirements practitioners need to meet.

Framework Control / Reference Relevance
NIST CSF 2.0 DE.CM-01 — The network is monitored to detect potential cybersecurity events GRE requires monitoring for unexpected encapsulated traffic and tunnel changes.
PR.AA-05 — Network integrity is protected, including by segmentation, boundaries and traffic control GRE crosses boundaries and can bypass segmentation if tunnel endpoints are not controlled.
ID.AM-01 — Physical devices and systems within the organisation are inventoried GRE defense depends on knowing which systems terminate or permit tunnels.
Recommendation — Monitor network flows for unexpected GRE encapsulation and route changes. Enforce boundary controls on GRE endpoints and allowed tunnel peers. Inventory all GRE-capable endpoints and validate their approved purpose.
NIST SP 800-53 Rev 5 SC-7 — Boundary Protection GRE is a boundary-crossing transport that must be constrained at trust boundaries.
AC-4 — Information Flow Enforcement Encapsulated traffic can bypass intended information-flow restrictions without explicit controls.
Recommendation — Restrict GRE at boundaries and allow only approved tunnel endpoints. Apply flow-enforcement rules to inspect and limit encapsulated GRE traffic.
CIS Controls v8 CIS-12 — Network Infrastructure Management GRE tunnels are part of network infrastructure that must be inventoried and controlled.
Recommendation — Inventory GRE tunnels and review them as managed network infrastructure.
NIST Zero Trust (SP 800-207) Zero Trust Architecture GRE can obscure trust boundaries, which ZTA addresses through explicit verification of flows and endpoints.
Recommendation — Verify tunnel endpoints explicitly instead of trusting encapsulated traffic by default.

Practitioner Guidance

What to watch for: Treat GRE as a governed network exception, not a default protocol. If the organisation cannot name the endpoint owners, the business purpose, and the peers permitted to tunnel, the tunnel should be reviewed as an exposure rather than accepted as normal.

Practitioner takeaway: The safest GRE deployment is the one that is explicit, tightly scoped, and continuously monitored, because ambiguity is what makes encapsulation useful to an attacker.