Skip to content

Randomized MAC addresses in scan results on MacOS #3289

@ranok

Description

@ranok

Describe the bug
When using the nmap.org installed version of nmap (v7.98), the MAC addresses of the scanned hosts are randomized. Using the same version installed via homebrew outputs the correct MAC address(es).

To Reproduce
Install the MacOS (I'm running Tahoe 26.2 on an M1) DMG from nmap.org
As root, run the command nmap -nO <IP/host>

Expected behavior
The MAC address reported for the scanned host should match reality/the OS' ARP table (arp <IP>).

This is a screenshot of the nmap.org showing a different MAC (and vendor) for the target from the system's arp output. When I use the homebrew-based version, it shows the correct (same as arp) MAC.
Image

Version info (please complete the following information):

  • OS: ARM MacOS 26.2 (Tahoe)
  • Output of nmap --version: 7.98

Additional context
This is a bog-standard DHCP IPv4 wired network with a 2.5GB ethernet unmanaged switch between the devices, and a UniFi Cloud Gateway Router.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions