0
0
Cybersecurityknowledge~30 mins

Threat actors and motivations in Cybersecurity - Mini Project: Build & Apply

Choose your learning style9 modes available
Understanding Threat Actors and Their Motivations
📖 Scenario: You are part of a cybersecurity awareness team at a company. Your task is to create a simple reference guide that lists common types of threat actors and their motivations. This guide will help your colleagues understand who might attack computer systems and why.
🎯 Goal: Build a clear list of threat actors with their motivations using a dictionary data structure. This will serve as a quick reference for your team.
📋 What You'll Learn
Create a dictionary named threat_actors with exact entries for actor types and their motivations
Add a variable named focus_motivation to specify a motivation to filter by
Use a dictionary comprehension to create a new dictionary filtered_actors containing only actors with the specified motivation
Add a final statement that assigns the count of filtered actors to a variable named count_filtered
💡 Why This Matters
🌍 Real World
Understanding different types of threat actors and their motivations helps cybersecurity teams prepare defenses and educate employees about potential risks.
💼 Career
Cybersecurity analysts and awareness trainers use this knowledge to identify threats and explain them clearly to non-technical staff.
Progress0 / 4 steps
1
Create the threat actors dictionary
Create a dictionary called threat_actors with these exact entries: 'Hackers': 'Financial gain', 'Insiders': 'Sabotage', 'Nation States': 'Espionage', 'Hacktivists': 'Political motives', 'Cybercriminals': 'Financial gain'
Cybersecurity
Need a hint?

Use curly braces {} to create a dictionary with keys and values separated by colons.

2
Add a motivation filter variable
Add a variable called focus_motivation and set it to the string 'Financial gain' to specify which motivation to filter by.
Cybersecurity
Need a hint?

Assign the string 'Financial gain' to the variable focus_motivation.

3
Filter threat actors by motivation
Use a dictionary comprehension to create a new dictionary called filtered_actors that includes only the entries from threat_actors where the motivation matches focus_motivation.
Cybersecurity
Need a hint?

Use {key: value for key, value in dict.items() if condition} to filter dictionary entries.

4
Count the filtered threat actors
Add a variable called count_filtered and set it to the number of entries in filtered_actors using the len() function.
Cybersecurity
Need a hint?

Use len() to find how many items are in the dictionary filtered_actors.