macOS 27 Hides Local Interface MAC Addresses Too: What Developers Should Do

Enterprise networks

Over the past few years Apple has pushed client-side MAC randomization aggressively: random probe requests since iOS 8, per-network private addresses since iOS 14, and three association-phase modes (Off/Fixed/Rotating) since iOS 18 (see iOS 18 MAC Randomization Gets Three Modes). But one class of MAC stayed untouched: the hardware address of the local network interfaces themselves. Up through macOS 26, applications that called the right APIs could read the real MAC of every local interface. macOS 27 closes that loophole.

Symptom: sysctl returns 02:00:00:00:00:00

A minimal reproducer showed up in the developer forums in August: call sysctl via CTL_NET / PF_ROUTE / NET_RT_IFLIST to enumerate interfaces, and on macOS 26 you get real MACs while on macOS 27 every interface returns 02:00:00:00:00:00. Same code, same NIC, only the OS version differs.

That value is not random. The first byte starts with 02, which by the rules for reading the first byte of a MAC means the U/L bit is set—it is a locally administered address—and the trailing all-zero tail is an obvious placeholder shape. iOS 11 has returned exactly this value to third-party apps as a "redacted" marker; macOS 27 now applies the same policy to local interface queries on the desktop.

Not a bug, deliberate privacy hardening

Apple DTS engineering replied on the thread in plain terms: not a bug, deliberate privacy hardening. The application layer can no longer freely read the real hardware address of the local interfaces.

The motive is not hard to guess. The local MAC of a device has long been a stable, cross-application identifier: regardless of which Wi-Fi you join or which upper-layer protocol you use, the hardware address stays put. That makes it a natural anchor for cross-app correlation of the same device—exactly the same problem as offline mall sniffing of Wi-Fi probe requests a decade ago (see What a MAC Address Can Leak About You). Letting any application read that anchor means the system is keeping a permanent device fingerprint on your behalf.

What macOS 27 does is tighten that fingerprint from "any app can read" to "only apps declaring a specific capability and authorized by a profile can read." That matches what iOS has always done; it just arrives on the desktop late.

The unlock: Network Topology Observation

Getting the real local MAC back requires a new restricted entitlement:

com.apple.developer.networking.topology-observation

In Xcode 27 beta it appears as the Network Topology Observation capability. Unlike ordinary capabilities, this is a restricted entitlement—it must be authorized by a provisioning profile to work. TN3125 covers restricted entitlements and provisioning profiles in detail.

Key point: it is available to all Apple developers, no special request needed. Do not be misled by "restricted." That word refers to the technical signing constraint (the capability must appear in the profile's com.apple.developer.entitlements and the profile must be embedded in the final signed product), not to a quota or approval process.

If your code ships inside an App or App Extension, things are simple: tick the capability in Xcode and let Xcode handle profile embedding.

Command-line tools are trickier. A bare command-line binary is not a bundle and cannot carry a profile directly. Apple's standard workaround is to wrap it in an app-like wrapper and sign with that wrapper's profile. The details are in Signing a daemon with a restricted entitlement.

Who is hit hardest

Not regular users. End users will barely notice: browsers, IM clients, and enterprise VPN clients do not depend on reading their own local MAC. The affected cases are developer scenarios that need to do things at Layer 2.

AVB / ATDECC controllers. IEEE 1722.1 defines ATDECC, a Layer 2 protocol for discovery and connection management within AVB (Audio Video Bridging) domains. Such controllers work across multiple network interfaces simultaneously and rely on the interface MAC to identify "on which interface a given AVB device was discovered," and then direct replies to that interface only. Once MAC becomes 02:00:00:00:00:00, the controller cannot distinguish interfaces and the discovery mechanism breaks. The forum thread that surfaced this issue was exactly this case.

Layer 2 network tools. Any tool that walks ifaddrs, getifaddrs, or goes through sysctl directly to enumerate interface MACs will get the redacted value on macOS 27. Anything involving frame construction, source-address population, or interface binding is affected. Code that habitually uses the local MAC as a "local identifier" or seed value also needs to change.

Inventory and device identification. Some enterprise asset systems read the local MAC as part of the device fingerprint, as described in Network Inventory with MAC Addresses. These systems on macOS 27 either need to claim the entitlement or switch to other identifiers (serial number, MDM UUID, etc.). Architecturally this is a good thing: MAC should never have been the only anchor, as covered in How Enterprise Networks Identify Devices After MAC Randomization.

Knock-on effect on lookup tools

This site's lookup page has always answered "which vendor does this MAC belong to." It looks up whatever address you type in; it does not read your local NIC. So this change does not affect the lookup itself.

One related phenomenon is worth flagging: more and more users submit "my own device's MAC" to the site and get no vendor back, either because it is a locally administered address from iOS 18's three-mode randomization, or because the tool on macOS 27 returned a redacted placeholder like 02:00:00:00:00:00. In both cases "not found" is expected, not a stale database. The rule for telling whether an address is locally administered is in Reading the First Byte of a MAC Address.

Why iOS did this years ago, macOS only now

iOS has blocked third-party apps from reading the real local MAC since version 11, because iOS devices travel with the user and cross many networks, making the MAC a high-value tracking anchor. macOS has been lenient, partly because desktops are less mobile, and partly because enterprise IT and developer tooling relied on reading the local MAC for identification.

Tightening this in macOS 27 is not accidental timing. Apple is broadly closing down "stable identifiers that can be correlated across apps"—IDFV evolution, the ATT framework for advertising identifiers, sandbox hardening, all on the same line. The local MAC is one of the later closures on that line.

What to do now

For developers. If your code reads the local MAC, start planning a migration:

  • If you genuinely need the real MAC, claim com.apple.developer.networking.topology-observation and prepare your provisioning profile and signing chain.
  • If you use the MAC as a local unique ID, switch to IOPlatformUUID, IOPlatformSerialNumber, or a device UUID issued by MDM. These are better long-term device identifiers and will not break under future privacy policy shifts.
  • If you only show the address to the user, accept the redacted value; do not add complicated signing overhead just to "show the real address."

For enterprise IT. Replace the parts of your inventory system that depend on the local MAC. Modern MDM deployments already have more stable device identifiers; the local MAC should not be the only key.

For end users. You do not need to do anything. This change raises your privacy baseline and costs no everyday functionality.

This is not the end

The arc from "factory-burned hardware fingerprint" to "actively randomized session tag," and now on macOS 27 to "even the local machine cannot read the real value," has a clear direction: at the system level, MAC is being demoted from "device identity" to "session label." The matching evolution on the network side is IETF's Persistent-Device-Id draft, which moves identification up into the certificate layer. Both sides are doing the same thing: taking the identity function away from the MAC.

For developers the concrete action this round is to claim the entitlement or switch identifiers. The longer-term implication is that any code—client-side or network-side—that relies on MAC long-term stability needs to be redesigned.

References

Related Articles
About the Author · Jondy

Network engineer with a background in enterprise network operations and security. Founded 7n4.cn in 2017. Questions or suggestions are welcome—get in touch.

← Back to Blog