Complete the code to identify the malware type that replicates itself by attaching to files.
malware_type = "[1]" # This malware attaches to files and spreads when files are shared
A virus is a type of malware that attaches itself to files and spreads when those files are shared or executed.
Complete the code to identify the malware type that spreads independently over networks.
malware_type = "[1]" # This malware spreads by itself through network connections
A worm is malware that can spread on its own across networks without needing to attach to files.
Fix the error in the code to correctly identify the malware type that disguises itself as legitimate software.
malware_type = "[1]" # This malware pretends to be useful software but is harmful
A trojan disguises itself as legitimate software to trick users into installing it.
Fill both blanks to describe the malware type that encrypts files and demands payment.
malware_type = "[1]" # This malware [2] files and asks for money to unlock them
Ransomware is malware that encrypts files and demands payment to restore access.
Fill all three blanks to create a dictionary mapping malware types to their main behavior.
malware_behaviors = {
"virus": "[1]",
"worm": "[2]",
"trojan": "[3]"
}This dictionary correctly matches each malware type to its main behavior:
virus attaches to files,
worm spreads independently,
trojan disguises as legit software.