312-50 ยท Malware threats
Static vs dynamic analysis, YARA and IOCs
Static vs dynamic analysis, sandboxes, hashing and strings, YARA, IOCs, anti-malware and EDR, and prevention practices.
Key points
- Static analysis: no execution; file hashes, strings, headers, imports, packer signs.
- Dynamic analysis: runs in an isolated sandbox; watches file, registry, process, network activity.
- YARA: rules match text, hex or conditions in files or memory to classify samples.
- Indicators of compromise (IOCs): hashes, domains, IPs feed detection.
- Defence: anti-malware, EDR, patching, least privilege, backups, user training.
Practice questions
Which technique examines a malware sample without executing it?
- Static analysis
- Dynamic analysis in a sandbox
- Behavioural monitoring of a live run
- Detonation on a test virtual machine
Show answer
Answer: A. Static analysis
Static analysis inspects the file itself (hashes, strings, headers). Running it in a sandbox or on a test VM is dynamic analysis.
Which of these are typical indicators of compromise (IOCs)?
- SHA-256 hash of a malicious file
- A domain used for command and control
- An IP address contacted by the malware
- The antivirus vendor's logo
- An employee's job title
Show answer
Answer: A. SHA-256 hash of a malicious file, B. A domain used for command and control, C. An IP address contacted by the malware
File hashes, malicious domains and C2 IP addresses are classic IOCs. A vendor's logo and an employee's job title are not indicators of malicious activity.
Two files with the same name always have the same hash, so a file name is a reliable way to identify a known sample.
Show answer
Answer: False
False. Names are trivial to change, while a cryptographic hash is derived from the content. Identify samples by hash, not by name.
Practice 8 questions on this topic in Bitzu
Short lessons, instant explanations and spaced review of what you get wrong. Free on iOS and Android.
