Skip to content

How to Find Rogue Devices on Your Network

Mike WaltonUpdated 5 min read

Somewhere on your network right now there’s probably a device nobody remembers plugging in. Maybe it’s a wireless router someone brought from home so the conference room “would have better Wi-Fi.” Maybe it’s a contractor’s laptop, a smart TV, or a Raspberry Pi under a desk that’s been running since 2021. Most of them are harmless. The problem is you can’t tell which ones until you know they exist.

This guide walks through how to find rogue devices on your network using tools you already have: a quick nmap sweep, your DHCP leases, and the ARP and MAC tables on your switches and routers. Then we’ll cover how to turn a one-time hunt into an inventory that keeps up.

One rule before you start: only scan networks you own or have written permission to scan. If you’re a consultant, get it in writing from the client.

What Counts as a Rogue Device?

A rogue device is anything on your network that isn’t in your inventory and wasn’t approved. That covers a lot of ground:

  • Personal Wi-Fi routers and access points plugged into wall jacks
  • Unmanaged switches added to get “just one more port”
  • IoT gear: TVs, cameras, smart plugs, thermostats
  • Vendor and contractor laptops
  • Old servers or VMs that were supposed to be decommissioned
  • Actual attacker hardware, which is rare but not imaginary

The CIS Critical Security Controls put this at the very top of the list. Control 1 is about inventorying every enterprise asset and dealing with unauthorized ones, and its safeguards specifically call out using an active discovery tool and using DHCP logging to keep the inventory current. That’s exactly the approach below.

Step 1: Build Your “Known Good” List

You can’t spot what doesn’t belong without a list of what does. Before you scan anything, pull together whatever you have: the IP spreadsheet, DHCP reservations, your RMM or endpoint management console, and the switch and AP inventory.

It will be incomplete. That’s fine. The goal is a baseline you can compare scan results against, not a perfect document.

Step 2: Sweep Each Subnet with nmap

nmap’s ping scan (-sn) finds live hosts without running a full port scan, so it’s fast and low-impact. When you run it as a privileged user against your local Ethernet segment, nmap uses ARP requests for discovery, which catches devices that ignore ping. The details are in the nmap host discovery documentation.

sudo nmap -sn 192.168.10.0/24 -oG - | awk '/Up$/{print $2}'

That prints just the live IP addresses. Drop the awk and run it with sudo on the local segment and nmap will also show MAC addresses and the hardware vendor, which is where things get interesting:

sudo nmap -sn 192.168.10.0/24

A MAC vendor of “Espressif” usually means some kind of IoT gadget. “TP-Link” or “Netgear” on a corporate user VLAN is worth a walk down the hall. A vendor you’ve never bought from is worth a closer look.

Run the sweep for every subnet you know about, then compare the results with your known-good list. Anything live that isn’t on the list goes on a “to identify” list.

Step 3: Check DHCP Leases

Scans are a snapshot. A laptop that was off at 10 a.m. won’t show up. DHCP leases fill that gap, because they record every device that asked for an address, along with its MAC address and often its hostname.

On a Windows DHCP server, Get-DhcpServerv4Lease pulls everything from a scope:

Get-DhcpServerv4Lease -ComputerName "dhcp01" -ScopeId 192.168.10.0 -AllLeases |
  Select-Object IPAddress, ClientId, HostName, AddressState, LeaseExpiryTime |
  Export-Csv .\leases-192.168.10.0.csv -NoTypeInformation

The -AllLeases switch includes expired and declined leases, not just active ones. On Linux firewalls and routers, check the lease file or status page for your DHCP service.

Hostnames like DESKTOP-7F3K2Q, android-5a1e..., or a blank hostname are your clues. Match the MAC addresses back to your scan results.

Step 4: Check ARP and MAC Address Tables

Static IPs never touch DHCP, and a device on a firewalled VLAN might not answer your scan. Your network gear still sees them.

On the router or layer 3 switch for each VLAN, the ARP table maps IPs to MAC addresses. On access switches, the MAC address table tells you which physical port each MAC lives on. On most Cisco IOS gear:

show ip arp
show mac address-table interface GigabitEthernet1/0/14

The MAC table is how you go from “there’s an unknown device at 192.168.10.87” to “it’s on port 14 on the second-floor switch,” which is usually enough to walk over and find it. If one access port shows a dozen MAC addresses, someone has plugged in an unmanaged switch or access point.

Step 5: Identify, Then Decide

For each unknown device, figure out what it is and who owns it. Then pick one of three outcomes:

  1. Approve it. Add it to the inventory with an owner and a purpose.
  2. Move it. IoT devices and guest gear belong on their own VLAN, not on the user or server network. Our guide to network segmentation best practices covers how to set that up.
  3. Remove it. Shut the port, block the MAC, and have a conversation with whoever plugged it in.

Don’t skip the paperwork on approved devices. The device you approve today and forget to record is next quarter’s rogue device.

Making It Stick: From One-Time Hunt to Ongoing Inventory

The first sweep always turns up surprises. The real win is catching the next surprise in days instead of months.

That means three things:

  • A single inventory of every subnet and IP, with an owner and description, that everyone on the team updates.
  • Regular scans compared against that inventory, instead of a sweep you run once a year before the audit.
  • A process for the step-5 decision, so unknown devices don’t just sit on a list.

That inventory is also what auditors and cyber insurance questionnaires ask for. If those are on your calendar, see how proper IPAM prepares you for IT audits. And if you want the deeper technical background on scanning methods, our post on automating IP address discovery covers active and passive discovery in detail.

Where Subnet24 Fits

Scripts and spreadsheets work for the first hunt. They get tedious by the third.

Subnet24 keeps every subnet and IP in one place that your whole team sees in real time, and its on-premises scanner runs inside your network to find IP addresses that aren’t documented yet and alert you to IP conflicts it detects. Instead of diffing nmap output against a spreadsheet by hand, the gaps show up next to the records you already have, and the audit trail shows who changed what once you start cleaning up.

You can start with a free Subnet24 account: 4 subnets, free forever, no credit card required.

References

Related posts

Stop losing track of your IP addresses

Subnet24 automates IP address management with real-time scanning, conflict prevention, and team collaboration.

Get Your Free Account!

4 Subnets free forever | No credit card required