0
0
Cybersecurityknowledge~30 mins

Why proactive scanning finds weaknesses in Cybersecurity - See It in Action

Choose your learning style9 modes available
Why Proactive Scanning Finds Weaknesses
📖 Scenario: You work in a cybersecurity team that wants to find weak points in a company's computer system before hackers do.To do this, you use a method called proactive scanning, which checks the system regularly to spot problems early.
🎯 Goal: Build a simple Python program that lists system parts, sets a scanning threshold, checks each part for weaknesses, and marks the weak parts found by proactive scanning.
📋 What You'll Learn
Create a dictionary called system_parts with these exact entries: 'Firewall': 85, 'Antivirus': 90, 'Web Server': 70, 'Database': 65, 'Email Server': 75
Create a variable called scan_threshold and set it to 75
Use dictionary comprehension with variables part and security_score to iterate over system_parts.items() and create a dictionary called weaknesses_found that includes only parts with scores less than scan_threshold
Add a final line that sets a variable called scan_complete to True to show the scan finished
💡 Why This Matters
🌍 Real World
Proactive scanning is used by cybersecurity teams to find and fix weaknesses before attackers exploit them.
💼 Career
Understanding how to identify weak points in systems is key for roles like security analyst, penetration tester, and IT auditor.
Progress0 / 4 steps
1
Create the system parts dictionary
Create a dictionary called system_parts with these exact entries: 'Firewall': 85, 'Antivirus': 90, 'Web Server': 70, 'Database': 65, 'Email Server': 75
Cybersecurity
Need a hint?

Use curly braces {} to create a dictionary with the exact keys and values given.

2
Set the scanning threshold
Create a variable called scan_threshold and set it to 75
Cybersecurity
Need a hint?

Just assign the number 75 to the variable named scan_threshold.

3
Find weaknesses with a loop and dictionary comprehension
Use dictionary comprehension with variables part and security_score to iterate over system_parts.items() and create a dictionary called weaknesses_found that includes only parts with scores less than scan_threshold
Cybersecurity
Need a hint?

Use dictionary comprehension with for part, security_score in system_parts.items() and an if condition to filter.

4
Mark the scan as complete
Add a final line that sets a variable called scan_complete to True to show the scan finished
Cybersecurity
Need a hint?

Just assign True to the variable scan_complete.