Intrusion Detection Systems (IDS) and Intrusion Prevention Systems (IPS) are security tools that monitor network traffic for signs of unauthorized access, with IDS alerting administrators to threats and IPS automatically taking action to stop them.
Intrusion Detection & Prevention
Just because we set up firewalls and a great perimeter around our systems doesn't mean that adversaries can't get into our network. So we need some sort of methodology, some sort of way of telling if there has been an intrusion on our network. That's what intrusion detection and intrusion prevention systems do.
Unfortunately, intrusions are quite common on networks. Maybe somebody forgot to update the firewall and now an adversary took advantage of some vulnerability that didn't get patched and is in the system. Or maybe they did some sort of social engineering to gain access through one of the devices on the network. Whatever the case may be, we need some sort of way to recognize when there's an intrusion.
An intrusion detection system does just as the name suggests: it detects when there's an intrusion on the network. There are a few ways we can set this up. For instance, we can plug it into the switch and it can monitor the traffic that's going across that switch -- maybe we're duplicating all the data to see what's happening on it. That's one way to set it up. Or we could set it up on the front end, so as traffic comes into this network we can analyze it, or maybe as it's going out of the network. Whatever the case may be, it's looking for suspicious traffic.
The key to an intrusion detection system is detection. It's looking for whether there's an intrusion on the network, and if it finds it, it will do some sort of alerting. Either you have to check the box -- maybe it's some sort of dashboard that you pull up -- or it's probably going to send you some sort of email and let you know something is happening on your network and it detected it.
If there's an intrusion on your network and it's been detected and you've been warned about it, now you have to manually take action. You have to go to the firewall and maybe create a new rule that blocks that adversary from continually accessing your network, or take some sort of action in order to fix the problem.
The other way we could go about doing this is to implement an intrusion prevention system, which will actually take steps to fix the issue. It's really just an intrusion detection system, but rather than warning you, it takes the extra step and actually just takes care of it.
An example of this is we've got a machine right here, and maybe this is set up with an IPS, an intrusion protection system. Now when somebody has intruded onto your network, it recognizes that and takes automatic steps to block it. Maybe it sets up a rule automatically to block that, or maybe it does it at the intrusion prevention system. Whatever the case may be, it takes steps to fix the issue.
Here's the difference between IDS and IPS. An intrusion detection system is just for detecting, versus a prevention system will actually stop the attack from happening.
The problem is that this can have a performance hit on the traffic that's going back and forth, and it could accidentally block something that is legitimate, and you don't have time to respond because it all happens automatically. Versus the IDS, which can't stop those attacks, but it does reduce the chances or the impact if there's a false positive. That is, if it identifies that there's an intrusion and stops it, but it actually was legitimate traffic, that could be very impactful.
The other thing that happens is that if the IDS gets overloaded and just tries to keep up, it's not going to stop communication from happening. Versus the intrusion prevention system, which can end up doing that: if you overload the system, then it could end up possibly blocking some of that traffic.
Now, IDSs and IPSs are pretty much the same thing, except that an IPS really just takes action on it. So it's really the same system. When you see these systems, you'll see IDS/IPS, because it's really just a check box of, okay, do you want to take that extra step and block it after that, and whether you do or don't. If you uncheck that box, then what it's going to do is just detect and warn you. If you check that box, now it's actually going to take action. So really an IDS and an IPS are not separate systems -- it's just a selection that you have on there.
IDSs and IPSs can be their own systems that you implement, but a lot of times now we have it on the firewall. They're built into the firewall, and so the firewall will do this if you set it up to do that. Most of the time you're going to be working with your firewall for these IDS/IPS solutions.
How do they work? They use signatures, fingerprints, trends. What happens essentially is that they will download updates on what to look for, and then they'll start looking for those.
Think of it as a fingerprint. If there's a fingerprint at a crime scene, it'll identify something that's happened. There are fingerprints when it comes to adversaries and attacks. Certain adversaries have certain patterns. They have certain tools that they'll use. Packets that are coming in and out of the system will look different. So based off of these patterns, they'll create signatures, and then the intrusion detection system / intrusion prevention system will download these signatures and start looking for them on your network.
We can also implement these on a network side or on a host side. If it's on the host side, then it's just on each individual host. And every host -- if you have Linux and Windows and Macs, you'll have to have a separate agent, a separate way of doing that for each one of those systems -- and it only is protecting those systems. Versus if you have network-based, it's looking at the network overall, but might not get as granular as these host-based systems. So many times we'd actually implement both network-based and host-based systems, so we've got all of our bases covered.
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 →