TechKnowSurge
CompTIA Network+ 4.3 Cisco CCNA 5.3 CompTIA Server+ 3.2 Cisco CCNA 5.7 CompTIA Network+ 4.1 Cisco CCST Cybersecurity 1.2 Cisco CCNA 5.1 Cisco CCST Cybersecurity 2.3
VideoNetworkFree

Hardening Techniques

Network device hardening requires a consistent set of practices including patch management, eliminating default credentials, disabling unnecessary services and switch ports, and applying control plane policing. These techniques reduce the attack surface across every layer of a network environment.

Complete this video to capture a CTF flag worth 1 point.

About this video

Network device hardening is a disciplined, multi-layered process that applies to every piece of equipment on a network, including servers, client machines, switches, routers, and firewalls. One of the most foundational practices is patch and firmware management. Vulnerabilities can exist at the hardware, firmware, OS, or application level, and each layer requires regular updates. A standard maintenance schedule should include at minimum monthly patching cycles, with out-of-band updates applied immediately when critical vulnerabilities are disclosed. Importantly, new devices should not be trusted as secure out of the box — firmware is often outdated by the time equipment leaves the warehouse, making initial patching an essential step before deployment. Patch management tools can help automate and track this process across large environments. Default credentials represent one of the most easily exploited weaknesses in network infrastructure. Many devices ship with published default usernames and passwords that are trivially discoverable through a basic search. Any attacker who can identify the make and model of a device on the network can potentially use those credentials to gain full administrative access. All default credentials must be changed before a device is placed into production, and any accounts not tied to a specific operational need should be removed entirely. Beyond patching and credentials, reducing the active attack surface of each device is critical. Network equipment often ships with pre-enabled services and open switch ports to ensure out-of-box functionality, but services that are not actively needed introduce unnecessary risk. Each device should be audited at setup to identify and disable any services that do not serve a defined purpose. Similarly, unused switch ports should be administratively shut down to prevent unauthorized devices — such as rogue access points or rogue DHCP servers — from being connected to the network without IT authorization. Finally, control plane policing provides an additional layer of protection by applying traffic controls at the device level, enabling administrators to identify and limit abnormal traffic patterns associated with threats like denial-of-service attacks.

What you'll learn

What's covered

Network Equipment Hardening

Aligned to

CompTIA Network+
4.3 Given a scenario, apply network security features, defense techniques, and solutions.
4.1 Explain the importance of basic network security concepts.
Cisco CCNA
5.3 Configure and verify device access control using local passwords
5.7 Configure and verify Layer 2 security features
5.1 Define key security concepts
CompTIA Server+
3.2 Given a scenario, apply server hardening methods.
Cisco CCST Cybersecurity
1.2 Explain common threats and vulnerabilities
2.3 Describe network infrastructure and technologies

Key terms

Patch Management
The process of acquiring, testing, and installing software updates to fix vulnerabilities and improve functionality.
Vulnerability
A weakness in a system, application, or process that can be exploited by a threat actor.
Firewall
A network security device that monitors and controls incoming and outgoing traffic based on predefined security rules.
Switch
A network device that connects devices within a LAN and forwards traffic based on MAC addresses.
Router
A network device that forwards data packets between networks based on IP addresses.
Denial of Service
DoS
An attack that floods a system or network with traffic to make it unavailable to legitimate users.
Attack Surface
The total set of points in a system where an unauthorized user can attempt to enter or extract data.
Firmware Management
The process of updating and maintaining the low-level software embedded in hardware devices to fix security vulnerabilities and ensure proper operation.
Default Credentials
Factory-set usernames and passwords that ship with network devices, applications, and services. Default credentials must be changed immediately upon deployment because they are publicly documented and frequently targeted by automated attackers.
Control Plane Policing
CoPP
A security feature that regulates traffic directed to a network device's control plane to protect it from excessive or malicious traffic such as denial of service attacks.

Transcript

Patching and firmware management

Let's run through a little scenario here. I have a server right here, and let's say that server is running Microsoft Windows Server. Microsoft releases a new feature, and that feature gets installed onto this machine, giving it some additional functionality. But with that additional functionality, it opened up a security hole, something that can be hacked by others. And so now that machine is unprotected. There is a way for somebody to get in and leverage that machine. So now what happens is that Microsoft will work really quickly on figuring out how can we patch this machine, and release a patch or an update that can happen on that machine.

So this can happen at the OS level. It can happen at the firmware or BIOS level on this machine. It can happen at the software level. It can happen on many different levels of this machine. So we're going to want to make sure that the firmware is updated on the hardware. We're going to want to make sure that the OS gets its updates. We're going to want to make sure that if there is any kind of third-party other software that's running on this machine, that that gets updated as well.

So we're going to want to make sure to go through on a regular basis, at least monthly, to go through and update this. And there's potential where something comes out that is really important to get updated right away, and so then they'll come out with a patch and you'll want to go in and patch those right away.

And that happens on every single piece of equipment. So as I mentioned, you have the hardware, you have the OS, and then you have any programs that are operating on top of that. And you might have multiple programs that you need to update on this one server. You have your client machines, and they have their own software, they have their own firmware, they have their own operating systems. You have the switches on your network. You have the routers that are on your network. You have a firewall that's on your network. So you have all of this equipment that's running on your network that needs to be patched and updated.

And there's patching and updating software that's out there as well. So you can go and get patching and updating software that will help manage some of the patching and updating of this equipment. But whatever the case may be, this is a huge part of patching and updating your equipment, making your equipment secure.

I will also mention, even out of the box, when you take things out of the box, usually what's happened is that's been manufactured somewhere, the firmware has been put onto that piece of equipment, it's been packaged into a box, and it sits in a warehouse for a while. So by the time you unpack something like a switch, you may think that it's updated and patched, but in fact it does need to go through its patching. Even right out of the box, you're going to need to install the patches and updates on those machines. Same thing even with your desktops and your laptops: those are going to be outdated by the time you actually get it in your hand, and you're going to need to make sure that you go through those updating and patching.

Changing the default passwords

A big security hole is default passwords. Let's say you get a switch and it may come with a default username and password, and so when you get onto that switch, you'll use that username and password to get onto that switch. Now, many devices like your OSs will have you set up a username and password when you start configuring it, but there are many devices that just work straight out of the box and either don't require a username and password or have this default username and password.

If you leave it on there, then anyone on the network can figure out what kind of model, what kind of brand it is of switch that they're plugged into, or hardware that they're plugged into, or whatever is on the network, and then be able to do a simple Google search to find out what the default username and password is for there, and then get onto that machine. So make sure you change those default passwords. Make sure you get rid of the default username and password and create your own on any of your equipment on your network.

Managing services

Another thing that happens is when you set up a Microsoft server, it assumes that there's already some services that you're going to want to have set up on that machine, so that way you can take it out of the box and start working with it right away. Same thing with switches. If you were to unpack a switch and start plugging equipment into it, but when you plug that equipment into it the switch doesn't work right away, you're going to assume that the switch is broken, package it back up, and send it back to the manufacturer. The manufacturer obviously doesn't want you to do that. So switches come with some stuff already preconfigured, with some services running, and it will do some, like for instance with Cisco, it'll do some Cisco Discovery Protocol, and it will do things on your network that you may not necessarily want.

If you're not using them and it's not adding value, then it is a risk. It's actually a risk either way, but if it adds a certain amount of value, maybe you're willing to take that risk. But if you don't want to take that risk, you need to get onto that equipment and start turning off unneeded services. So when you set up equipment, figure out what services are running on it. Figure out what it is that you could or should turn off, and start turning off those services.

Now, some of this equipment, like some of the Cisco equipment, some of the Microsoft equipment, you can actually run some programs on it to go through and harden the piece of equipment. It will analyze what you're using and what you're not using, and then turn off unneeded services on those devices.

Turning off unused switch ports

Another thing is your equipment will come with probably the switch ports on it already up and running, which means that you can plug devices into it and the device will come up right away. It just makes the most sense because, once again, if it didn't work then you would question what's wrong with this switch. And so one thing you may want to do is go off and turn off any unused switch ports.

This is especially important. Let's say you have jacks all throughout your building, and whether they're being used or not, they come back to your switch. Now anybody can plug in a rogue switch that's out there, or a rogue DHCP server, or rogue access point. They can plug this into your network and it exposes the rest of your network to this. So what you can do is you can go onto this switch and start turning off any of these ports that are not currently being used.

Now, the disadvantage to that is if somebody does have a legitimate reason and plugs in a laptop to this port, it's not going to function, it's not going to work. But it's one way that we can turn off security, and then they have to contact IT and ask for the switch port to be turned on before they can use it. So that is one way you can harden these devices, is by turning off unused switch ports, so that way no one can plug in any rogue equipment.

Control plane policing

Now, I'm not going to get real in depth into control plane policing, but I'm going to briefly mention what it is and briefly explain it. The devices on your network have several layers within the device of how it functions, and so one of those layers is the control plane, and it does the controlling or the forwarding or the directing of traffic. But what we can do is we can set up policing on there in order to start analyzing that traffic and start controlling that traffic. And where this can help out is with things like denial of service attacks. You can identify traffic that shouldn't be on that network and start controlling that. So this is control plane policing, and it's a way to start mitigating some of the issues like denial of service attacks.

About TechKnowSurge

TechKnowSurge builds IT and cybersecurity professionals through hands-on, concept-first training built around real understanding — not memorization. Free interactive tools, structured programs, and 25+ years of real-world experience, all in one place.

Explore free tools and programs →