In Module 1, we learned what a Unified Vulnerability Scanner is. We learned that it is like a super-smart robot guardian that checks computers for weaknesses.
But here is a big question: How does the scanner know what to check? Does it check everything? Does it check only some things? Does it use a special key to look inside computers?
The answer is: Policies. A policy is a set of rules that tells the scanner what to do. Think of a policy like a recipe. A recipe tells a cook what ingredients to use and how to cook. A scan policy tells the scanner what to check and how to check it.
In this module, we will learn about Advanced Policy Configuration. We will learn how to make policies that are just right โ not too strict, not too loose. We will learn about credentials, which are like special keys that let the scanner look deeper. We will learn how to make the scanner faster and smarter. Let's begin!
By the end of this module, you will be able to:
In a small village in Nigeria, there was a famous chef named Mama Ngozi. People came from far and near to eat her jollof rice. But Mama Ngozi had a secret. She had a special recipe book.
The recipe book had different recipes for different days. On Monday, she used a recipe for a small family. It used only a little pepper and a little salt. On Saturday, she used a recipe for a big party. It used plenty of pepper, plenty of salt, and many spices.
One day, a young girl named Ada asked Mama Ngozi: "Why don't you use the same recipe every day?"
Mama Ngozi smiled and said: "If I use the party recipe for a small family, the food will be too spicy. If I use the small family recipe for a big party, the food will be tasteless. A good cook knows which recipe to use for which occasion."
Ada nodded. She understood. The recipe is like a scan policy. A good security expert knows which policy to use for which network. If the policy is too strict, there will be too many false alarms. If the policy is too loose, the scanner will miss real problems.
Moral of the story: Just like a good cook uses the right recipe, a good security expert uses the right policy.
Definition: A scan policy is a set of rules that tells the scanner what to check and how to check it.
Why it is important: Without a policy, the scanner would not know what to do. It would be like a cook without a recipe.
Simple explanation: A policy is like a checklist. It says: "Check passwords. Check software updates. Check open ports." The scanner follows the checklist.
Real-life example: A doctor uses a checklist before surgery. The checklist is a policy. It makes sure the doctor does not forget anything.
School example: Your teacher has a lesson plan. The lesson plan is a policy. It tells the teacher what to teach and when.
Home example: Your mother has a shopping list. The list is a policy. It tells her what to buy at the market.
Nigerian example: A tailor in Aba has a measurement book. The book is a policy. It tells the tailor the exact size for each customer.
Illustration:
A SCAN POLICY: +----------------------------+ | POLICY: Basic Network | | | | [x] Check passwords | | [x] Check software | | [x] Check open ports | | [ ] Check web apps | | [ ] Check cloud | +----------------------------+
Mini summary: A scan policy is a set of rules. It tells the scanner what to check and how to check it.
Definition: We need policies to make scanning organized and effective.
Why it is important: Without policies, scanning would be messy. We might check the wrong things or miss important things.
Simple explanation: Imagine playing football without rules. Everyone would run everywhere. It would be chaos. Policies are the rules of the scanning game.
Real-life example: Traffic lights are policies. They tell cars when to go and when to stop. Without them, there would be accidents.
School example: School rules are policies. They tell students what to wear and when to arrive. They keep the school organized.
Home example: Family rules are policies. They tell children when to sleep and when to do homework.
Nigerian example: The rules of a market are policies. They tell traders where to set up their stalls. Without them, the market would be a mess.
Illustration:
WITHOUT POLICY: WITH POLICY: [Scan everything] [Scan what matters] [Too many results] [Clear results] [Confusion] [Organization]
Mini summary: Policies make scanning organized. They help us focus on what matters.
A scan policy has several parts. Let us learn each one.
| Part | What it means | Simple example |
|---|---|---|
| Name | The name of the policy | "Basic Network Scan" |
| Targets | What to check | "All computers in the school lab" |
| Credentials | Special keys to look deeper | Username and password |
| Plugins | Checks to perform | "Check for weak passwords" |
| Schedule | When to scan | "Every Monday at 10 PM" |
| Severity | How dangerous a problem is | "High, Medium, Low" |
Mini summary: A policy has a name, targets, credentials, plugins, schedule, and severity levels.
Definition: Credentials are a username and password that let the scanner look inside a computer.
Why it is important: Without credentials, the scanner can only see the outside. With credentials, it can see the inside and find more problems.
Simple explanation: Imagine a house. Without a key, you can only see the outside. You cannot see if the rooms are clean. With a key, you can go inside and check everything. Credentials are the key.
Real-life example: A security guard with a master key can check every room. A guard without a key can only check the front door.
School example: A teacher with a staff room key can check inside. A student without a key cannot.
Home example: Your parents have keys to your house. They can check every room. A visitor cannot.
Nigerian example: A bank manager has keys to the vault. A customer does not. The manager can check the vault. The customer cannot.
Illustration:
WITHOUT CREDENTIALS: WITH CREDENTIALS: +------------------+ +------------------+ | COMPUTER | | COMPUTER | | [outside only] | | [inside too] | | - open ports | | - open ports | | - software | | - software | | | | - passwords | | | | - settings | +------------------+ +------------------+
Mini summary: Credentials are keys that let the scanner look inside computers. They help find more problems.
There are two types of scans: credentialed and non-credentialed.
| Credentialed Scan | Non-Credentialed Scan |
|---|---|
| Uses a username and password | Does not use a username and password |
| Looks inside the computer | Looks only from the outside |
| Finds more problems | Finds fewer problems |
| Fewer false positives | More false positives |
| Like a doctor checking inside your body | Like a doctor looking at your skin |
Nigerian example: A credentialed scan is like a landlord entering every room in his house. A non-credentialed scan is like a landlord looking at the house from outside.
Mini summary: Credentialed scans use keys and find more problems. Non-credentialed scans do not use keys and find fewer problems.
Definition: Plugins are small programs that check for specific problems.
Why it is important: Each plugin knows how to check for one type of problem. Together, they cover many problems.
Simple explanation: Imagine a toolbox. Each tool does a different job. A hammer hammers nails. A screwdriver screws screws. Plugins are like tools. Each plugin checks for one problem.
Real-life example: A doctor has many tests. A blood test checks blood. An X-ray checks bones. Each test is like a plugin.
School example: Your teacher has many exam papers. One paper tests math. Another tests English. Each paper is like a plugin.
Home example: Your mother has many kitchen tools. A knife cuts. A spoon stirs. Each tool is like a plugin.
Nigerian example: A mechanic has many tools. A spanner tightens bolts. A jack lifts the car. Each tool is like a plugin.
Illustration:
PLUGINS: +------------------+ | PLUGIN BOX | | - weak password | | - old software | | - open port | | - bad setting | +------------------+
Mini summary: Plugins are small programs that check for specific problems. Many plugins together cover many problems.
Definition: A policy template is a ready-made policy that you can use or change.
Why it is important: Templates save time. You do not have to start from scratch.
Simple explanation: Imagine you want to write a letter. You can start with a blank page. Or you can use a template that already has the address and greeting. Templates make work easier.
Real-life example: A cake mix is a template. You add eggs and milk. The mix already has flour and sugar.
School example: A sample essay is a template. You change the words to fit your topic.
Home example: A recipe card is a template. You follow it to cook a meal.
Nigerian example: A sewing pattern is a template. A tailor uses it to cut fabric. The pattern saves time.
Illustration:
POLICY TEMPLATES: +------------------+ | TEMPLATES | | - PCI-DSS | | - HIPAA | | - CIS | | - Basic | +------------------+
Mini summary: A policy template is a ready-made policy. Templates save time and effort.
Here are some common policy templates.
| Template | What it is for | Simple example |
|---|---|---|
| PCI-DSS | Protecting credit card information | Banks and online shops use this |
| HIPAA | Protecting patient health information | Hospitals use this |
| CIS | General security best practices | Many organizations use this |
| Basic | Simple checks for small networks | Schools and small businesses use this |
Nigerian example: A bank in Lagos uses the PCI-DSS template. A hospital in Abuja uses the HIPAA template. A school in Enugu uses the Basic template.
Mini summary: Different templates are for different needs. Choose the template that fits your situation.
Definition: Tuning means adjusting a policy to make it work better.
Why it is important: A policy that is too strict gives too many false alarms. A policy that is too loose misses real problems. Tuning finds the balance.
Simple explanation: Imagine tuning a radio. You turn the knob until the sound is clear. Tuning a policy is like tuning a radio. You adjust until the results are clear.
Real-life example: A photographer adjusts the camera lens until the picture is sharp. That is tuning.
School example: You adjust your study time until you find the right balance. That is tuning.
Home example: You adjust the air conditioner until the room is comfortable. That is tuning.
Nigerian example: A DJ adjusts the sound system until the music is perfect. That is tuning.
Illustration:
TUNING A POLICY:
Too Strict: Too Loose: Just Right:
[Many false alarms] [Missed problems] [Clear results]
| | |
v v v
[Fix the policy] [Fix the policy] [Perfect!]
Mini summary: Tuning means adjusting a policy to find the right balance. Not too strict, not too loose.
Definition: Safe checks do not harm the computer. Dangerous checks might harm the computer.
Why it is important: You do not want to break a computer while checking it.
Simple explanation: Imagine checking a car. A safe check is looking at the tires. A dangerous check is taking the engine apart. Safe checks are better for regular scans.
Real-life example: A doctor checks your blood pressure. That is safe. A doctor does surgery. That is dangerous but sometimes needed.
School example: A teacher marks your homework. That is safe. A teacher gives you a hard exam that makes you cry. That is dangerous.
Home example: You look at a cake in the oven. That is safe. You put your hand in the oven. That is dangerous.
Nigerian example: A mechanic checks the car oil. That is safe. A mechanic removes the engine. That is dangerous.
Illustration:
SAFE CHECKS: DANGEROUS CHECKS: [Look at password] [Try to break password] [Look at software] [Delete software] [Look at ports] [Close ports]
Mini summary: Safe checks do not harm the computer. Dangerous checks might. Use safe checks for regular scans.
Definition: Scheduling means choosing when to scan.
Why it is important: Scanning at the wrong time can slow down the network. Scanning at the right time keeps everyone happy.
Simple explanation: Imagine cleaning your room. If you clean while your brother is sleeping, you might wake him. If you clean while he is at school, everyone is happy. Scheduling is choosing the right time.
Real-life example: A bank scans its computers at night when customers are asleep. This does not slow down the bank during the day.
School example: A school scans its computers on Saturday when students are at home.
Home example: You scan your home Wi-Fi at night when everyone is asleep.
Nigerian example: A business center in Lagos scans its computers on Sunday when the shop is closed.
Illustration:
SCHEDULING: Bad time: [Scan during work hours] --> [Slow network] --> [Angry users] Good time: [Scan at night] --> [Fast network] --> [Happy users]
Mini summary: Scheduling means choosing the right time to scan. Scan when the network is not busy.
Definition: False positives are false alarms. Reducing them means making fewer false alarms.
Why it is important: Too many false alarms waste time. People stop trusting the scanner.
Simple explanation: Imagine a smoke alarm that goes off every time you cook. You would stop trusting it. The same happens with scanners. Too many false alarms make people ignore the scanner.
Real-life example: A car alarm that goes off when a cat walks by. The owner ignores it. A real thief could steal the car.
School example: A teacher who always says "Quiet!" even when the class is quiet. Students stop listening.
Home example: A parent who always says "Be careful!" even when there is no danger. Children stop paying attention.
Nigerian example: A security guard who shouts "Thief!" every hour. People stop believing him.
Illustration:
REDUCING FALSE POSITIVES: [Too many false alarms] --> [People ignore scanner] --> [Real problems missed] [Fewer false alarms] --> [People trust scanner] --> [Real problems fixed]
Mini summary: Reducing false positives makes people trust the scanner. Trust is important.
Let us create a simple policy for a small network, like a school computer lab.
| Part | Setting |
|---|---|
| Name | School Lab Scan |
| Targets | All computers in the lab (192.168.1.1 to 192.168.1.20) |
| Credentials | Admin username and password |
| Plugins | Check passwords, check software, check open ports |
| Schedule | Every Saturday at 8 PM |
| Severity | Report all levels |
Illustration:
SCHOOL LAB SCAN POLICY: +----------------------------------+ | NAME: School Lab Scan | | TARGETS: 192.168.1.1 - .20 | | CREDENTIALS: admin/password | | PLUGINS: passwords, software | | SCHEDULE: Saturday 8 PM | | SEVERITY: All levels | +----------------------------------+
Mini summary: A simple policy for a small network has a name, targets, credentials, plugins, schedule, and severity levels.
Now let us create a policy for a bank. Banks need stronger security.
| Part | Setting |
|---|---|
| Name | Bank PCI-DSS Scan |
| Targets | All servers, websites, and ATMs |
| Credentials | Domain admin and database admin |
| Plugins | All security plugins, PCI-DSS template |
| Schedule | Every night at 2 AM |
| Severity | Report high and medium first |
Nigerian example: A bank in Lagos uses a policy like this. It scans every night. It checks everything. It reports the most dangerous problems first.
Mini summary: A bank policy is stronger. It checks more things and scans more often.
Here are some best practices for making policies.
Illustration:
BEST PRACTICES: [Template] --> [Credentials] --> [Schedule] --> [Tune] --> [Safe checks] --> [Review] --> [Repeat]
Mini summary: Best practices help you make good policies. Start with a template. Use credentials. Schedule wisely. Tune regularly.
| Word | Simple Definition |
|---|---|
| Policy | A set of rules that tells the scanner what to do. |
| Credentials | A username and password that let the scanner look inside a computer. |
| Plugin | A small program that checks for a specific problem. |
| Template | A ready-made policy that you can use or change. |
| Tuning | Adjusting a policy to make it work better. |
| Schedule | Choosing when to scan. |
| Safe Check | A check that does not harm the computer. |
| Dangerous Check | A check that might harm the computer. |
| False Positive | A false alarm. The scanner says there is a problem, but there is none. |
| PCI-DSS | A template for protecting credit card information. |
| HIPAA | A template for protecting patient health information. |
| CIS | A template for general security best practices. |
Illustration:
STEP-BY-STEP: [Choose template] --> [Name policy] --> [Choose targets] --> [Add credentials] --> [Choose plugins] --> [Choose schedule] --> [Choose severity] --> [Save] --> [Run] --> [Fix]
+----------------------------+ | POLICY: Basic Network | | | | [x] Check passwords | | [x] Check software | | [x] Check open ports | | [ ] Check web apps | | [ ] Check cloud | +----------------------------+
WITHOUT CREDENTIALS: WITH CREDENTIALS: +------------------+ +------------------+ | COMPUTER | | COMPUTER | | [outside only] | | [inside too] | | - open ports | | - open ports | | - software | | - software | | | | - passwords | | | | - settings | +------------------+ +------------------+
Too Strict: Too Loose: Just Right:
[Many false alarms] [Missed problems] [Clear results]
| | |
v v v
[Fix the policy] [Fix the policy] [Perfect!]
Bad time: [Scan during work hours] --> [Slow network] --> [Angry users] Good time: [Scan at night] --> [Fast network] --> [Happy users]
[Too many false alarms] --> [People ignore scanner] --> [Real problems missed] [Fewer false alarms] --> [People trust scanner] --> [Real problems fixed]
+----------------------------------+ | NAME: School Lab Scan | | TARGETS: 192.168.1.1 - .20 | | CREDENTIALS: admin/password | | PLUGINS: passwords, software | | SCHEDULE: Saturday 8 PM | | SEVERITY: All levels | +----------------------------------+
[Choose template] --> [Name policy] --> [Choose targets] --> [Add credentials] --> [Choose plugins] --> [Choose schedule] --> [Choose severity] --> [Save] --> [Run] --> [Fix]
| Credentialed Scan | Non-Credentialed Scan |
|---|---|
| Uses a username and password | Does not use a username and password |
| Looks inside the computer | Looks only from the outside |
| Finds more problems | Finds fewer problems |
| Fewer false positives | More false positives |
| Like a doctor checking inside your body | Like a doctor looking at your skin |
| Template | What it is for | Simple example |
|---|---|---|
| PCI-DSS | Protecting credit card information | Banks and online shops use this |
| HIPAA | Protecting patient health information | Hospitals use this |
| CIS | General security best practices | Many organizations use this |
| Basic | Simple checks for small networks | Schools and small businesses use this |
| Safe Check | Dangerous Check |
|---|---|
| Does not harm the computer | Might harm the computer |
| Good for regular scans | Only for special scans |
| Example: looking at passwords | Example: trying to break passwords |
| Example: looking at software | Example: deleting software |
| Part | School Lab Policy | Bank Policy |
|---|---|---|
| Name | School Lab Scan | Bank PCI-DSS Scan |
| Targets | Computers in the lab | All servers, websites, ATMs |
| Credentials | Admin username and password | Domain admin and database admin |
| Plugins | Basic checks | All security plugins |
| Schedule | Every Saturday at 8 PM | Every night at 2 AM |
| Severity | Report all levels | Report high and medium first |
In this module, we learned about Advanced Policy Configuration. We learned that a policy is a set of rules that tells the scanner what to do. We learned about the parts of a policy: name, targets, credentials, plugins, schedule, and severity. We learned that credentials are keys that let the scanner look inside computers. We learned that credentialed scans find more problems than non-credentialed scans. We learned about plugins, templates, and tuning. We learned that safe checks do not harm computers, while dangerous checks might. We learned to schedule scans when the network is not busy. We learned to reduce false positives so people trust the scanner. We learned to create simple policies for small networks and stronger policies for banks. We learned best practices for policy configuration. Remember: a good policy is like a good recipe. It makes scanning organized and effective.
Match the word with its definition.
| Word | Definition |
|---|---|
| 1. Policy | A. A username and password |
| 2. Credentials | B. A set of rules |
| 3. Plugin | C. Adjusting to make better |
| 4. Template | D. A small program that checks for problems |
| 5. Tuning | E. A ready-made policy |
Answers: 1-B, 2-A, 3-D, 4-E, 5-C
Activity: "Create a Policy"
Activity: "My Home Scan Policy"
Project: "Design a Policy Poster"
Assignment: "Create a Policy for Your School"
Challenge: "Create a Policy for a Hospital"
Fill-in-the-Blank Answers:
True or False Answers:
Multiple Choice Answers: 1-A, 2-B, 3-B, 4-B, 5-A, 6-A, 7-B, 8-B, 9-A, 10-B, 11-B, 12-A, 13-B, 14-A, 15-B
Matching Answers: 1-B, 2-A, 3-D, 4-E, 5-C
In the next module, we will learn about Operational Excellence and Performance Tuning. We will learn how to make scans faster and more efficient. We will learn how to troubleshoot problems. We will learn how to handle large networks. To prepare, think about these questions:
See you in Module 3!