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': 75Create a variable called
scan_threshold and set it to 75Use 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_thresholdAdd 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