NAT64 addresses can bypass network destination group policy
Description
microsandbox's network policy engine classified destinations in NAT64 IPv6 prefixes only as IPv6 addresses. In NAT64-capable environments, a sandbox restricted to public egress could target an IPv6 NAT64 address whose embedded IPv4 address was private, loopback, link-local, or cloud metadata, and the destination could be treated as ordinary public IPv6 traffic.
Impact
A sandbox workload with public-only egress policy could bypass destination group restrictions on networks that route the targeted NAT64 prefix. The highest-impact case is access to cloud metadata addresses such as 169.254.169.254 through the well-known NAT64 prefix 64:ff9b::/96.
This affects network policy enforcement for translated IPv4 destinations, including private, loopback, link-local, and metadata IPv4 ranges.
Affected versions
The DestinationGroup policy classifier is present in tagged releases starting at 0.3.13. Releases from 0.3.13 through 0.7.4 are affected.
Standalone msb binaries from v0.3.13 through v0.7.4 are also affected. The issue is fixed in v0.7.5.
Patched behavior
The fix classifies destinations in configured NAT64 /96 prefixes by both their IPv6 address and the embedded IPv4 address. The well-known 64:ff9b::/96 prefix is enabled by default, and deployments can configure additional NAT64 /96 prefixes when their environment routes them.
The fix does not try to automatically detect every possible NAT64 prefix. NAT64 prefixes can be deployment-specific, so arbitrary IPv6 ranges are not treated as embedded IPv4 unless they are the well-known prefix or are explicitly configured by the operator.
Workarounds
Before upgrading, operators can reduce exposure by disabling sandbox networking for untrusted workloads or by blocking routed NAT64 prefixes at the host or network boundary. Environments that do not route NAT64 prefixes are not expected to be exploitable through the NAT64 vector.
Credit
Reported by tonghuaroot.
Remediation
Upgrade the affected packages to 0.7.5 or later.