โHow do we know if something bad is happening on our network? And what do we do about it?โ
Welcome to the first module of your journey to becoming a Certified Snort User! Snort is a tool that helps protect computer networks. It's like a security guard for your network.
Before we can use Snort, we need to understand the basics. What is a network? What are the dangers? How do we find and stop bad things?
In this module, we will learn about the building blocks of network security. We will explore the CIA triad (Confidentiality, Integrity, and Availability). We will learn about different types of attacks. And we will understand the role of IDS (Intrusion Detection Systems) and IPS (Intrusion Prevention Systems).
By the end of this module, you'll have a solid understanding of why security is important and where Snort fits in.
Let's get started! ๐
By the end of this module, you will be able to:
In a school in Lagos, Nigeria, there was a computer lab with 30 computers. The students used them for learning and research. One day, something strange happened. The computers started running very slowly. Files went missing. Some computers showed strange messages.
The IT teacher, Mr. Adebayo, was worried. He didn't know what was happening. He checked the computers and found that a virus had infected the network. The virus was spreading from one computer to another, stealing files and slowing everything down.
Mr. Adebayo realised he needed a way to see what was happening on the network. He needed to know when something bad was happening, and he needed to stop it. He needed an IDS โ an Intrusion Detection System โ to watch for problems. And he needed an IPS โ an Intrusion Prevention System โ to block the attacks.
This is why we need tools like Snort. They help us protect our networks from bad things.
Definition: Network security is the process of protecting computers, servers, and other devices on a network from harm, theft, or unauthorised access.
Why it matters: Our networks carry important information โ bank details, personal messages, school records. If they are not protected, bad people can steal or damage them.
Simple explanation: Think of your home. You lock the doors and windows to keep out intruders. Network security is like locking the doors of your computer network.
+-----------------------------------+ | NETWORK SECURITY = PROTECTING | | YOUR COMPUTERS AND DATA | +-----------------------------------+
๐ Mini summary: Network security is like a shield for your computers and information.
The CIA triad is a model that helps us think about security. CIA stands for:
School example: Your school records (Confidentiality โ only teachers and parents should see them). Your exam grades should not be changed (Integrity). You should be able to see your grades when you need to (Availability).
+-----------------------------------+ | C = Confidentiality (secret) | | I = Integrity (accurate) | | A = Availability (accessible) | +-----------------------------------+
๐ Mini summary: The CIA triad helps us remember the three main goals of security.
Definition: An intrusion is when someone or something tries to get into your network without permission.
Why it matters: Intrusions can lead to data theft, damage, or system failure.
Fun example: Imagine your house has a locked gate. Someone trying to climb over the gate is an intrusion.
๐ Mini summary: An intrusion is an unauthorised attempt to access your network.
Definition: An IDS is a tool that monitors network traffic for suspicious activity. It detects intrusions and alerts you.
Why it matters: An IDS is like a security camera. It watches what's happening and tells you if something looks wrong.
Simple explanation: Imagine you have a security camera at your front door. It records everyone who comes near. If it sees someone trying to break in, it sends you an alert. That's what an IDS does.
+-----------------------------------+ | IDS = DETECTS AND ALERTS | | (like a security camera) | +-----------------------------------+
๐ Mini summary: An IDS watches your network and raises an alarm when it sees something bad.
Definition: An IPS is like an IDS, but it can also block attacks. It detects and prevents intrusions.
Why it matters: An IPS is like a security guard who not only sees the intruder but also stops them from entering.
Simple explanation: If an IDS is a camera, an IPS is a camera with an alarm and a locked door. It detects the intruder and also prevents them from coming in.
+-----------------------------------+ | IPS = DETECTS + BLOCKS | | (like a security guard) | +-----------------------------------+
๐ Mini summary: An IPS detects attacks and also stops them from harming your network.
Both IDS and IPS are important, but they have different jobs.
| Feature | IDS | IPS |
|---|---|---|
| What it does | Detects and alerts | Detects and blocks |
| Action | Tells you about the problem | Stops the problem |
| Location | Often outside the main flow of traffic | In the path of traffic (inline) |
๐ Mini summary: IDS is a camera; IPS is a camera with a door lock.
Definition: Defence in depth is a strategy that uses multiple layers of security. If one layer fails, another layer is there to protect you.
Why it matters: No single tool can block all threats. Using many tools together makes it much harder for attackers to succeed.
School example: Your school has a fence, then a gate with a guard, then locked doors, then security cameras. Each layer helps keep the school safe.
+-----------------------------------+ | LAYER 1: Firewall | | LAYER 2: IDS/IPS | | LAYER 3: Anti-virus | | LAYER 4: Strong passwords | +-----------------------------------+
๐ Mini summary: Use many layers of security โ like an onion โ so that if one layer breaks, others still protect you.
Here are some common attacks that IDS/IPS tools detect:
Nigerian example: A bank in Lagos might be targeted by attackers trying to overload their website (DoS) so customers can't access their accounts. An IPS can help block this.
๐ Mini summary: Attackers use many methods โ IDS/IPS help catch them.
Definition: Snort is a popular open-source IDS/IPS that can detect and prevent attacks. It can work in both IDS mode (detect and alert) and IPS mode (detect and block).
Why it matters: Snort is one of the most widely used security tools in the world. It's free, powerful, and flexible.
Real-life example: Many organisations, from small schools to large banks, use Snort to protect their networks.
+-----------------------------------+ | SNORT = IDS/IPS TOOL | | - Free to use | | - Open source | | - Used worldwide | +-----------------------------------+
๐ Mini summary: Snort is the tool we will learn to use to protect networks.
Snort works by looking at network traffic. It compares the traffic against a set of rules that describe what bad traffic looks like. If it matches a rule, it takes action (alert or block).
NETWORK TRAFFIC โ SNORT โ COMPARE TO RULES โ ALERT / BLOCK
๐ Mini summary: Snort checks traffic against rules and acts on what it finds.
IDS/IPS tools use two main detection methods:
Simple explanation: Signature-based is like recognising a thief from a photo. Anomaly-based is like seeing someone wearing a mask and acting suspiciously.
๐ Mini summary: Signature-based finds known attacks; anomaly-based finds unusual behaviour.
Definition: Rules are the instructions that tell Snort what to look for. Each rule describes a specific type of attack.
Why it matters: Without rules, Snort wouldn't know what to watch for. Good rules are the key to good detection.
RULE EXAMPLE: If you see a certain pattern in the traffic, send an alert.
๐ Mini summary: Rules tell Snort what to look for and what to do when it finds it.
A good security tool like Snort has these qualities:
๐ Mini summary: Good security tools are reliable, flexible, fast, and accurate.
Definition: Network traffic is the data that flows across a network. It includes emails, web pages, messages, and more.
Why it matters: Attacks happen through network traffic. To detect attacks, Snort must examine the traffic.
Fun example: Think of cars on a highway. The cars are data. The highway is the network. Snort is like a police officer watching the cars for suspicious activity.
๐ Mini summary: Network traffic is the data that moves across networks โ Snort watches it for problems.
Security is not just about tools. It's about people too. Everyone who uses a network must follow good security habits.
๐ Mini summary: Security is a team effort โ tools and people working together.
TRAFFIC โ CAPTURE โ DECODE โ CHECK RULES โ ACT โ RESPOND
Tip: Use analogies like 'security camera' (IDS) and 'security guard' (IPS) to make the concepts concrete. Use the school computer lab story to create engagement.
The first IDS was developed in the 1980s. It was called the "Network Security Monitor". Today, tools like Snort are much more powerful and widely used.
+-------------------+-------------------+ | IDS | IPS | +-------------------+-------------------+ | Detects | Detects | | Alerts | Alerts | | Sends alert | Blocks | | Out of path | Inline (in path) | +-------------------+-------------------+
+-----------------------------------+ | C = Confidentiality (secret) | | I = Integrity (accurate) | | A = Availability (accessible) | +-----------------------------------+
+-----------------------------------+ | LAYER 1: Firewall | | LAYER 2: IDS/IPS | | LAYER 3: Anti-virus | | LAYER 4: Strong passwords | | LAYER 5: User training | +-----------------------------------+
NETWORK TRAFFIC
|
V
SNORT CAPTURES TRAFFIC
|
V
DECODES PACKETS
|
V
COMPARES TO RULES
|
+---> MATCH? ---> ALERT / BLOCK
|
+---> NO MATCH ---> ALLOW
We included mini summaries after each lesson. Let's now wrap up the entire module.
In this module, we learned the fundamentals of network security. We explored the CIA triad โ Confidentiality, Integrity, and Availability โ and why each is important. We learned about IDS (Intrusion Detection System) and IPS (Intrusion Prevention System), and the difference between them. We also discussed defence in depth (using multiple layers of security) and common types of network attacks.
We learned that Snort is a powerful IDS/IPS tool that uses rules to detect and prevent attacks. We also covered signature-based vs anomaly-based detection and the importance of security being a team effort.
This foundation will help you understand why Snort is so important and how it fits into a larger security strategy.
Match the term with its definition:
| Term | Definition |
|---|---|
| 1. IDS | A. Detects and blocks attacks |
| 2. IPS | B. Detects and alerts about attacks |
| 3. Confidentiality | C. Keeping information secret |
| 4. Integrity | D. Keeping information accurate |
| 5. Availability | E. Making sure information is accessible |
Answers: 1-B, 2-A, 3-C, 4-D, 5-E
Scenario: You are the IT person at a small school. You notice that files are being deleted from the server, and some computers are running very slowly. You suspect a virus or an attack.
In groups, discuss the CIA triad. For each part, come up with an example of how it could be broken (e.g., a confidentiality breach). Then, suggest a security control to prevent each breach. Present to the class.
Think about a network you use (like your school or home network). List the potential threats to that network. What security measures (IDS, IPS, firewall, etc.) would you recommend?
Create a poster explaining the CIA triad and the difference between IDS and IPS. Use drawings and simple language to make it easy to understand. Present it to the class.
Research a recent cyber attack that made news in Nigeria or globally. Write a report: what happened, what type of attack it was, and how an IDS/IPS could have helped detect or prevent it.
Imagine you are a security consultant. You need to design a simple security plan for a small business with 20 computers. Your plan should include: a firewall, an IDS/IPS, anti-virus, and user training. Write a one-page plan explaining why each component is needed.
In Module 2, we will dive deeper into Snort itself. We'll learn how to install Snort, understand its architecture, and explore its different modes of operation. Make sure you understand the basics from this module โ they will be very important!
Bring your curiosity and be ready to get hands-on with Snort. See you in Module 2!
๐ก๏ธ End of Module 1 โ IDS/IPS Fundamentals โ Understanding Network Security ๐