Why Understanding Attacks Enables Defense
📖 Scenario: You are part of a small company's IT team. Your job is to help protect the company's computer network from bad people who try to break in and cause harm.To do this well, you need to understand the kinds of attacks these bad people use. This knowledge helps you build better defenses.
🎯 Goal: Build a simple list of common attack types, set a threshold for which attacks are most dangerous, filter the list to only include those dangerous attacks, and finally, add a note explaining why knowing these attacks helps protect the network.
📋 What You'll Learn
Create a list called
attack_types with these exact strings: 'Phishing', 'Malware', 'DDoS', 'Man-in-the-Middle', 'SQL Injection'Create a variable called
danger_threshold and set it to 3Create a dictionary called
attack_danger_levels with these exact pairs: 'Phishing': 2, 'Malware': 4, 'DDoS': 5, 'Man-in-the-Middle': 3, 'SQL Injection': 4Create a list called
dangerous_attacks that includes only attacks from attack_types whose danger level in attack_danger_levels is greater than or equal to danger_thresholdCreate a string variable called
defense_note with the exact text: 'Understanding attacks helps build strong defenses.'💡 Why This Matters
🌍 Real World
Knowing common cyber attacks helps IT teams protect networks by focusing on the most dangerous threats.
💼 Career
Cybersecurity professionals must understand attack methods to design effective defenses and keep systems safe.
Progress0 / 4 steps