MAC and Identity
Spoofing identifiers.
MAC and Identity is a free Ethical Hacking Academy lesson on CoddyKit — lesson 3 of 4. You can read the complete lesson below for free — then practise it hands-on in the browser with a built-in code editor and a 24/7 AI tutor. It is part of the Ethical Hacking Academy learning path, one of 4 lessons in the course, and your progress syncs across the web and the CoddyKit app.
Identifiers Beyond Your IP
Your IP is just one identifier. Devices and browsers expose many others: MAC addresses, hostnames, browser fingerprints, and account logins. True anonymity means controlling all of them.
This lesson focuses on spoofing low-level identifiers, especially the MAC address, and understanding what else can give you away.
What Is a MAC Address?
A MAC address is a 48-bit hardware identifier burned into a network interface, written as six hex pairs like a4:5e:60:1f:2c:8b.
The first three bytes are the OUI, identifying the manufacturer. MAC addresses operate at Layer 2 and are only visible on the local network segment, not across the internet.
Why MAC Matters Locally
On a local network, the MAC address can track your device even if your IP changes. It is used for:
- DHCP leases and network access control.
- Captive portal tracking (paid Wi-Fi remembering your device).
- MAC filtering allow/deny lists.
Spoofing the MAC lets you bypass simple filters and avoid local tracking.
Viewing Your MAC
On Linux you inspect interfaces with ip link or the older ifconfig. Note the interface name (like eth0 or wlan0) and its current MAC.
ip link show wlan0
# link/ether a4:5e:60:1f:2c:8b ...Spoofing the MAC
You can change the MAC in software. The interface must be brought down first, then up after the change. The tool macchanger makes this easy and can assign a random or vendor-specific address.
ip link set wlan0 down
macchanger -r wlan0 # random MAC
ip link set wlan0 upChoosing a Believable MAC
A random MAC with an unusual OUI can look suspicious. To blend in, use an OUI from a common vendor (Apple, Samsung, Intel) so the address resembles ordinary devices.
macchanger -A wlan0
# Sets a random MAC with a real, valid vendor OUIHostname and DHCP Fingerprints
Your device also broadcasts a hostname and DHCP request options that can fingerprint your OS and device model. A hostname like 'Johns-MacBook-Pro' is a giveaway.
For anonymity, set a generic hostname and be aware that DHCP option ordering itself can identify your operating system.
Browser Fingerprinting
Higher up the stack, websites build a browser fingerprint from your user agent, screen size, fonts, installed plugins, canvas rendering, and time zone. Combined, these are often unique even without cookies.
Spoofing your MAC does nothing against fingerprinting. The Tor Browser fights this by making all users look identical.
MAC Randomization on Modern Devices
Phones and laptops now randomize their MAC when scanning or joining Wi-Fi networks to resist tracking. This is a privacy feature you can leverage and should understand when analyzing networks.
However, once associated, some devices reveal a stable per-network MAC, so randomization is not absolute.
Identity Is Multi-Layered
The key lesson: anonymity requires controlling identifiers at every layer:
- Layer 2: MAC address.
- Layer 3: IP (via VPN/Tor).
- Application: hostname, user agent, fingerprint.
- Human: accounts, writing style, habits.
Fixing one layer while leaking another defeats the whole effort.
Persisting a Spoofed MAC
A spoofed MAC set with macchanger reverts on reboot. To keep it, configure your network manager or a startup hook to apply the change at boot.
Be consistent: if you want to look like a brand-new device each session, randomize every time; if you want to impersonate one specific allowed device, set the same address each boot. Match the MAC strategy to your goal.
Quick Check
Reason about how far a MAC address travels.
Recap
You learned about device identity:
- The MAC address is a Layer 2 identifier visible only locally; spoof it with macchanger.
- Use a believable vendor OUI to blend in.
- Hostnames, DHCP options, and browser fingerprints leak identity at other layers.
- Modern devices randomize MACs, but not perfectly.
- Anonymity demands controlling identifiers at every layer.
Next: the human OPSEC mistakes that unmask people.
Frequently asked questions
Is the “MAC and Identity” lesson free?
Yes — the full text of “MAC and Identity” is free to read here on the web, and the Ethical Hacking Academy course includes 4 lessons in total. To practise it interactively (a built-in code editor and a 24/7 AI tutor) and unlock the rest of the Ethical Hacking Academy course, upgrade to CoddyKit PRO.
What will I learn in “MAC and Identity”?
Spoofing identifiers. You practise Ethical Hacking Academy with hands-on code you run directly in the browser, and a 24/7 AI tutor answers your questions as you work through the lesson.
Do I need any experience to start Ethical Hacking Academy?
No prior experience is required. Ethical Hacking Academy on CoddyKit is structured for beginners through advanced learners; this is — lesson 3 of 4, so you can start here or from the beginning and move at your own pace.
How long does the “MAC and Identity” lesson take?
Most CoddyKit lessons take about 5–10 minutes. Each one is bite-sized and interactive, so you make steady progress and pick up exactly where you left off across the web and the app.
Can I write and run code in this Ethical Hacking Academy lesson?
Yes. Every Ethical Hacking Academy lesson includes a built-in code editor, so you write and run real code right in your browser and get instant AI feedback — no local setup required.
All lessons in this course
- Tor and Proxies
- VPNs and Chaining
- MAC and Identity
- OPSEC Mistakes