
reveal // your mac address leaks
ip link show wlan0 | grep etheryour mac address is basically a name tag
every network interface, wifi card, ethernet port, bluetooth chip, all of it, has a mac address burned in. people treat it like a random string of hex, but it's not random at all. the first half is a registered code called the oui, organizationally unique identifier, and it tells you exactly who manufactured that piece of hardware. your router, your laptop, your smart doorbell, all of them are quietly announcing their maker every time they touch a network.
the command
ip link show wlan0 | grep ether
run this on any linux box and you'll get a line back that looks something like:
link/ether b8:27:eb:12:34:56 brd ff:ff:ff:ff:ff:ff
that string, b8:27:eb:12:34:56, is the mac address of your wlan0 interface. split it in half. the first three octets, b8:27:eb, are the oui. the last three, 12:34:56, are supposed to be a unique serial assigned by the manufacturer to that specific device. if you look up b8:27:eb, it comes back as raspberry pi foundation. that's it. no guessing, no fingerprinting tricks, just a public registry lookup.
breaking down what you're actually looking at
ip link show wlan0 asks the kernel for everything it knows about the wlan0 interface, state, mtu, the works. grep ether filters that wall of text down to just the line with the mac address, because you don't need the rest of it for this. swap wlan0 for eth0, wlan1, or whatever ip link show lists on its own if you're not sure what your interface is called.
the oui itself is assigned by the ieee, the same folks who standardize a lot of networking tech. any company that wants to sell network hardware buys a block of these codes and registers it. that registry is public. sites like maclookup.app or wireshark's built in oui database will tell you instantly whether a mac belongs to apple, samsung, intel, tp-link, or a raspberry pi.
why this actually matters for you
this isn't some exotic attack technique, it's just how networking has always worked, but most people have no idea it's happening. if you pull up your router's connected devices list, every mac address sitting there is leaking the manufacturer of whatever's on your network. that's useful for you as the defender, you can spot a device you don't recognize just by its oui alone. it's also useful info if you're trying to figure out why some random 44:65:0d device showed up on your home wifi at 3am.
but flip it around. anyone who can see your network traffic, a nosy neighbor sniffing wifi, someone on public wifi with you, a compromised device on your lan, can build a device inventory of your home or office just from mac addresses. they'll know you've got a nest camera, an amazon device, a specific brand of router, without touching a single packet payload. that's recon that happens before anyone even tries to log into anything.
how to check and lock down your own exposure
start by auditing your own network. run ip link show on your linux devices, check your router's dhcp client list, and look up the ouis of anything connected. you're looking for two things, devices you don't recognize, and how much your own gear is broadcasting about itself.
then use mac randomization where you can. most modern phones and laptops already randomize their mac address for wifi scanning and when connecting to networks they don't trust, check your wifi settings for something like "private address" or "randomized mac." on linux you can spoof a mac temporarily for testing with:
sudo ip link set wlan0 down
sudo ip link set wlan0 address 02:00:00:aa:bb:cc
sudo ip link set wlan0 up
that's a locally administered address, meaning it won't map to any real oui, so it won't leak vendor info. it resets on reboot unless you script it, which is fine for most people, you're not trying to hide from your own router, you're trying to reduce what a stranger on the same network can learn about you.
the takeaway
your mac address was never meant to be private, it was built to be identifiable, that's the whole point of the oui system. the fix isn't panic, it's awareness. know what your devices are broadcasting, audit your own network's device list every so often, and turn on mac randomization where it's offered. small habit, real reduction in what you're handing out for free.