Hiring Partners
Segilola Resources Operating LimitedTaviatech TechnologiesFCMBMTN NigeriaAdvans La Fayette Microfinance BankAboki AfricaFirst Bank of NigeriaOPay
โ† Certified Snort User ยท Lesson 3 of 10

Module One

๐Ÿ“– Every lesson in this course is free to read right here, no account needed. Create a free account to track your progress, take the exam, and earn your certificate.
3
Module 1: IDS/IPS Fundamentals โ€“ Understanding Network Security

๐Ÿ›ก๏ธ Module 1: IDS/IPS Fundamentals โ€“ Understanding Network Security

โ€œHow do we know if something bad is happening on our network? And what do we do about it?โ€

๐Ÿ“– Module Introduction

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! ๐Ÿš€

๐ŸŽฏ Learning Objectives

By the end of this module, you will be able to:

  • โœ”๏ธ Define network security in your own words.
  • โœ”๏ธ Explain the CIA triad (Confidentiality, Integrity, Availability).
  • โœ”๏ธ Describe what an IDS is and what it does.
  • โœ”๏ธ Describe what an IPS is and how it differs from an IDS.
  • โœ”๏ธ List common types of network attacks.
  • โœ”๏ธ Understand the concept of defence in depth.
  • โœ”๏ธ Recognise where Snort fits into network security.

๐Ÿ“š Warm-up Story: The School Computer Lab Incident

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.

๐Ÿ“˜ Main Lessons

Lesson 1: What is Network Security?

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.


Lesson 2: The CIA Triad โ€“ Confidentiality, Integrity, Availability

The CIA triad is a model that helps us think about security. CIA stands for:

  • Confidentiality: Keeping information secret โ€“ only the right people can see it.
  • Integrity: Keeping information accurate โ€“ it should not be changed by accident or on purpose.
  • Availability: Keeping information accessible โ€“ the right people can get to it when they need it.

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.


Lesson 3: What is an Intrusion?

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.


Lesson 4: What is an IDS (Intrusion Detection System)?

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.


Lesson 5: What is an IPS (Intrusion Prevention System)?

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.


Lesson 6: IDS vs IPS โ€“ What's the Difference?

Both IDS and IPS are important, but they have different jobs.

FeatureIDSIPS
What it doesDetects and alertsDetects and blocks
ActionTells you about the problemStops the problem
LocationOften outside the main flow of trafficIn the path of traffic (inline)

๐Ÿ“Œ Mini summary: IDS is a camera; IPS is a camera with a door lock.


Lesson 7: Defence in Depth โ€“ Layered Security

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.


Lesson 8: Common Types of Network Attacks

Here are some common attacks that IDS/IPS tools detect:

  • Malware: Bad software like viruses, worms, and trojans.
  • Phishing: Tricking people into giving away personal information.
  • Denial of Service (DoS): Overloading a system so it stops working.
  • Port scanning: Checking for open doors (ports) on a computer.

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.


Lesson 9: Where Does Snort Fit In?

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.


Lesson 10: How Snort Works โ€“ A Simple Overview

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.


Lesson 11: Signature-Based vs Anomaly-Based Detection

IDS/IPS tools use two main detection methods:

  • Signature-based: Looks for known patterns of attacks (like a fingerprint). It's like a wanted poster โ€“ it recognises known bad guys.
  • Anomaly-based: Looks for anything unusual. It's like a security guard who notices when someone is acting strangely.

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.


Lesson 12: The Role of Rules in Snort

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.


Lesson 13: What Makes a Good Security Tool?

A good security tool like Snort has these qualities:

  • Reliable: It works consistently.
  • Flexible: It can be adapted to different networks.
  • Fast: It doesn't slow down your network.
  • Accurate: It finds real threats and doesn't give too many false alarms.

๐Ÿ“Œ Mini summary: Good security tools are reliable, flexible, fast, and accurate.


Lesson 14: Introduction to Network Traffic

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.


Lesson 15: Security is Everyone's Responsibility

Security is not just about tools. It's about people too. Everyone who uses a network must follow good security habits.

  • Use strong passwords.
  • Don't click on suspicious links.
  • Report strange things to the IT team.

๐Ÿ“Œ Mini summary: Security is a team effort โ€“ tools and people working together.


๐Ÿ“ Key Vocabulary (simple definitions)

  • Network: A group of connected computers and devices.
  • IDS: Intrusion Detection System โ€“ detects and alerts.
  • IPS: Intrusion Prevention System โ€“ detects and blocks.
  • Confidentiality: Keeping information secret.
  • Integrity: Keeping information accurate and unaltered.
  • Availability: Making sure information is accessible when needed.
  • Intrusion: An unauthorised attempt to access a network.
  • Signature: A pattern that identifies a known attack.
  • Anomaly: Something unusual or unexpected.
  • Rule: An instruction that tells a tool what to look for.

๐Ÿง  Important Concepts

  • Defence in depth: Using multiple security layers.
  • Alert: A notification that an IDS sends when it detects something.
  • False positive: When a tool thinks there's a threat when there isn't one.
  • False negative: When a tool misses a real threat.

๐Ÿชœ Step-by-step: How an IDS/IPS Works

  1. Traffic flows across the network.
  2. Snort captures a copy of the traffic.
  3. Snort decodes the traffic (understands what it is).
  4. Snort checks the traffic against its rules.
  5. If a rule matches, Snort takes action (alert or block).
  6. Security team investigates and responds.
   TRAFFIC โ†’ CAPTURE โ†’ DECODE โ†’ CHECK RULES โ†’ ACT โ†’ RESPOND

๐ŸŒ Real-life Examples

  • Company network: An IDS monitors all incoming and outgoing traffic. When it detects a scanning attempt, it sends an alert to the security team.
  • Government systems: IPS tools are used to block malicious traffic before it reaches sensitive servers.
  • Schools: An IDS helps protect student records and prevent cyberbullying.

๐Ÿ‡ณ๐Ÿ‡ฌ Nigerian Examples

  • Banks in Lagos: Use IDS/IPS to protect customer financial data from hackers.
  • Telecom companies: Use Snort-like tools to monitor their networks and prevent service disruptions.
  • Universities: Use IDS to protect research data and student information.

๐ŸŽˆ Fun Examples children can relate to

  • Lemonade stand: You have a security camera (IDS) to watch your stand. If someone tries to steal your lemonade, you know right away.
  • Classroom: The teacher is like an IPS โ€“ they watch for misbehaviour (detect) and stop it (prevent).

๐Ÿ  Everyday Examples

  • Home: A burglar alarm is like an IDS โ€“ it detects and alerts.
  • Mobile phone: Anti-virus software is like an IPS โ€“ it detects and blocks threats.

๐Ÿ‘ฉโ€๐Ÿซ Teacher Notes

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.

๐Ÿ‘จโ€๐Ÿ‘ฉโ€๐Ÿ‘ฆ Parent Tips

  • Talk to your child about how you protect your home (locks, alarms). Relate this to network security.
  • Encourage them to think about security in everyday life.

๐Ÿค“ Interesting Facts

  • Snort was created by Martin Roesch in 1998.
  • Snort has over 1 million downloads per year.
  • Many commercial security products are based on Snort.

๐Ÿ’ก Did You Know?

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.

๐Ÿ”” Remember This

  • Network security protects computers and data.
  • The CIA triad: Confidentiality, Integrity, Availability.
  • IDS detects and alerts; IPS detects and blocks.
  • Use multiple layers of security (defence in depth).
  • Snort is a free, powerful IDS/IPS tool.

โš ๏ธ Common Mistakes

  • Mistake: Thinking that one tool is enough โ€“ always use layers.
  • Mistake: Not updating rules โ€“ attackers change their methods, so rules must change too.
  • Mistake: Ignoring alerts โ€“ an IDS is only useful if you respond to it.

โœ… Best Practices

  • Keep your IDS/IPS rules up to date.
  • Test your tools regularly.
  • Train staff to recognise and report threats.
  • Monitor and review alerts frequently.

๐Ÿ“Š ASCII Illustrations & Tables

IDS vs IPS Comparison

   +-------------------+-------------------+
   |  IDS              |  IPS              |
   +-------------------+-------------------+
   |  Detects          |  Detects          |
   |  Alerts           |  Alerts           |
   |  Sends alert      |  Blocks           |
   |  Out of path      |  Inline (in path) |
   +-------------------+-------------------+

CIA Triad

   +-----------------------------------+
   |  C = Confidentiality (secret)     |
   |  I = Integrity (accurate)         |
   |  A = Availability (accessible)    |
   +-----------------------------------+

Defence in Depth

   +-----------------------------------+
   |  LAYER 1: Firewall                |
   |  LAYER 2: IDS/IPS                 |
   |  LAYER 3: Anti-virus              |
   |  LAYER 4: Strong passwords        |
   |  LAYER 5: User training           |
   +-----------------------------------+

How Snort Works

   NETWORK TRAFFIC
        |
        V
   SNORT CAPTURES TRAFFIC
        |
        V
   DECODES PACKETS
        |
        V
   COMPARES TO RULES
        |
        +---> MATCH? ---> ALERT / BLOCK
        |
        +---> NO MATCH ---> ALLOW

๐Ÿ“Œ Summary after every lesson

We included mini summaries after each lesson. Let's now wrap up the entire module.

๐Ÿ“˜ End-of-Module Summary

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.

โ“ Frequently Asked Questions (10)

1. What is network security? Protecting computers and data from harm or unauthorised access.
2. What does CIA stand for? Confidentiality, Integrity, Availability.
3. What is an IDS? A tool that detects suspicious activity and sends alerts.
4. What is an IPS? A tool that detects suspicious activity and blocks it.
5. What is the difference between IDS and IPS? IDS alerts, IPS alerts and blocks.
6. What is defence in depth? Using multiple layers of security.
7. What is a signature? A pattern that identifies a known attack.
8. What is an anomaly? Something unusual or unexpected.
9. What is Snort? A free, open-source IDS/IPS tool.
10. Why is security a team effort? Because everyone who uses a network must follow good practices.

๐Ÿ“ Review Questions (15)

  1. What is network security?
  2. Name the three parts of the CIA triad.
  3. What is an IDS?
  4. What is an IPS?
  5. What is the main difference between IDS and IPS?
  6. What is defence in depth?
  7. Give an example of a common network attack.
  8. What is Snort?
  9. What are rules in Snort?
  10. What is signature-based detection?
  11. What is anomaly-based detection?
  12. Why is it important to update rules?
  13. What is a false positive?
  14. What is a false negative?
  15. Why is security everyone's responsibility?

โœ๏ธ Fill-in-the-Blank Exercises

  1. Network security protects computers and __________ from harm. (data)
  2. The CIA triad stands for Confidentiality, Integrity, and __________. (Availability)
  3. An IDS __________ suspicious activity and sends alerts. (detects)
  4. An IPS __________ suspicious activity and blocks it. (detects)
  5. Using multiple layers of security is called __________. (defence in depth)

โœ… True or False Exercises

  1. An IDS can block attacks. (False โ€“ it only alerts)
  2. An IPS can both detect and block attacks. (True)
  3. Confidentiality means keeping information accurate. (False โ€“ confidentiality means keeping it secret)
  4. Defence in depth means using only one security tool. (False โ€“ it means using many layers)
  5. Snort is a free and open-source tool. (True)

๐Ÿ”˜ Multiple Choice Questions (15) with Answers

  1. What does CIA stand for in security?
    A) Confidentiality, Integrity, Availability
    B) Computer, Internet, Access
    C) Control, Identity, Authentication
    Answer: A
  2. What is an IDS?
    A) A tool that detects and blocks
    B) A tool that detects and alerts
    C) A tool that only monitors
    Answer: B
  3. What is an IPS?
    A) A tool that detects and blocks
    B) A tool that detects and alerts
    C) A tool that only monitors
    Answer: A
  4. Which of these is a layer of defence in depth?
    A) Firewall
    B) IDS/IPS
    C) Anti-virus
    D) All of the above
    Answer: D
  5. What is Snort?
    A) A type of virus
    B) An IDS/IPS tool
    C) A password manager
    Answer: B
  6. What is a signature?
    A) A pattern that identifies an attack
    B) A password
    C) A type of firewall
    Answer: A
  7. What is an anomaly?
    A) Something unusual
    B) Something normal
    C) A type of rule
    Answer: A
  8. What is a false positive?
    A) A real threat that was missed
    B) A false alarm
    C) A correct alert
    Answer: B
  9. What is a false negative?
    A) A real threat that was missed
    B) A false alarm
    C) A correct alert
    Answer: A
  10. Why should rules be updated?
    A) Attackers change their methods
    B) To slow down the network
    C) To use more storage
    Answer: A
  11. What is a DoS attack?
    A) Overloading a system
    B) Stealing data
    C) Changing data
    Answer: A
  12. Which of the following is NOT part of the CIA triad?
    A) Confidentiality
    B) Integrity
    C) Authentication
    D) Availability
    Answer: C
  13. What is the main purpose of an IDS?
    A) To block all traffic
    B) To monitor and alert
    C) To encrypt data
    Answer: B
  14. What is defence in depth?
    A) Using multiple security layers
    B) Using one strong tool
    C) Ignoring security
    Answer: A
  15. Is Snort a commercial tool?
    A) Yes, it costs money
    B) No, it's open-source and free
    C) Only for schools
    Answer: B

๐Ÿ”— Matching Exercises

Match the term with its definition:

TermDefinition
1. IDSA. Detects and blocks attacks
2. IPSB. Detects and alerts about attacks
3. ConfidentialityC. Keeping information secret
4. IntegrityD. Keeping information accurate
5. AvailabilityE. Making sure information is accessible

Answers: 1-B, 2-A, 3-C, 4-D, 5-E

โœ๏ธ Short Answer Questions

  1. Explain the difference between an IDS and an IPS.
  2. Describe the CIA triad and why it's important.
  3. What is defence in depth? Give an example.

๐ŸŽฌ Scenario-based Exercises

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.

  1. Would you use an IDS, an IPS, or both? Why?
  2. What type of detection (signature-based or anomaly-based) would help find this problem?
  3. How would you prevent this from happening again?

๐Ÿ‘ฅ Group Activity

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.

๐Ÿง‘ Individual Activity

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?

๐Ÿ—ฃ๏ธ Classroom Discussion Questions

  1. Why is network security important for a school?
  2. What are the dangers of not having an IDS/IPS?
  3. How can individuals help protect the network?

๐Ÿ› ๏ธ Mini Project

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.

๐Ÿ“‹ Practical Assignment

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.

๐Ÿ† Challenge Exercise

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.

๐Ÿ”‘ Quiz Answers

  • Fill-in-the-Blanks: 1. data; 2. Availability; 3. detects; 4. detects; 5. defence in depth.
  • True/False: 1F, 2T, 3F, 4F, 5T.
  • Multiple Choice: 1A, 2B, 3A, 4D, 5B, 6A, 7A, 8B, 9A, 10A, 11A, 12C, 13B, 14A, 15B.

๐ŸŽฏ Key Takeaways

  • โœ… Network security protects computers and data from harm.
  • โœ… The CIA triad (Confidentiality, Integrity, Availability) guides security goals.
  • โœ… IDS detects and alerts; IPS detects and blocks.
  • โœ… Defence in depth uses multiple layers of security.
  • โœ… Snort is a free, powerful IDS/IPS tool.
  • โœ… Security is everyone's responsibility.

๐Ÿ”œ Preparation for the Next Module

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 ๐Ÿš€

๐Ÿ† Get Certified

๐Ÿ”’

Earn this certificate

Every lesson is already free to read. Sign up, finish the lessons, pass the exam (โ‚ฆ2,000 or 20,000 coins), and get a verified certificate with your name on it.

๐ŸŽ“ Sign Up to Get Certified
๐Ÿ› ๏ธ Practice Tools
Hands-on simulators & labs - subscription required.
โ†’
๐ŸŽฏ Internship Tasks
Real-world tasks to build your portfolio - unlock them with a subscription.
โ†’