All exams← All Certified Ethical Hacker (CEH) notes

Malware Threats: Certified Ethical Hacker (CEH) revision notes

Revision notes

## Malware Threats Overview

Malware, short for malicious software, is any program or file harmful to a computer user. Ethical hackers must understand malware types, propagation methods, and analysis techniques to effectively defend systems. Malware poses significant risks, including data theft, system disruption, and financial loss.

## Types of Malware

  • Viruses: Self-replicating programs that attach to legitimate files or boot sectors and require user interaction to spread. They can be polymorphic (change signature to evade detection) or stealth (hide presence).
  • Worms: Self-replicating malware that spreads independently across networks without user intervention, often exploiting vulnerabilities to propagate rapidly.
  • Trojans: Disguised as legitimate software, Trojans perform malicious actions once executed. Common types include backdoors (remote access), RATs (Remote Access Trojans), and downloaders (fetch more malware).
  • Ransomware: Encrypts a victim's files or locks their system, demanding a ransom (usually cryptocurrency) for decryption or access restoration. Notable examples include WannaCry and Ryuk.
  • Spyware: Secretly monitors and collects user information, such as keystrokes (keyloggers), browsing history, or sensitive data, transmitting it to an attacker.
  • Adware: Displays unwanted advertisements, often bundled with legitimate software, and can sometimes track user activity.
  • Rootkits: A collection of tools designed to conceal the presence of malware and maintain persistent access on a compromised system by modifying operating system processes or kernel functions.
  • Botnets: Networks of compromised computers (bots or zombies) controlled remotely by an attacker via a Command and Control (C2) server, used for large-scale attacks like DDoS, spamming, or cryptomining.
  • Fileless Malware: Operates entirely in memory, leveraging legitimate system tools (e.g., PowerShell, WMI) and processes, making it difficult to detect with traditional signature-based antivirus.
  • Logic Bomb: Malicious code intentionally inserted into a software system that executes when specified conditions are met (e.g., date, specific user action, or user deletion).

## Malware Analysis Techniques

  • Static Analysis: Examining malware code without executing it. This includes string extraction, disassembling, decompiling, and checking header information to understand its potential functionality.
  • Dynamic Analysis: Executing malware in a controlled, isolated environment (sandbox or virtual machine) to observe its real-time behavior, such as file system changes, network activity, and process injection.

## Malware Countermeasures

Effective defense involves a multi-layered approach:

  • Antivirus/Anti-malware Software: Uses signature-based, heuristic, and behavioral detection to identify and remove threats.
  • Firewalls & IDS/IPS: Monitor and block suspicious network traffic and detect intrusion attempts.
  • Patch Management: Regularly update systems and software to fix known vulnerabilities that malware could exploit.
  • Security Awareness Training: Educate users about phishing, social engineering, and safe browsing habits to prevent initial infection.
  • Application Whitelisting: Only allows approved applications to run, significantly reducing the risk from unknown executables.
  • Endpoint Detection and Response (EDR): Advanced tools for continuous monitoring, threat detection, and automated response at the endpoint level.

Key facts

Flashcards

What type of malware requires user interaction to spread and attaches to legitimate files?
Virus
tap to reveal
What is a self-replicating malware that spreads independently across networks?
Worm
tap to reveal
What malware encrypts a victim's files and demands payment for decryption?
Ransomware
tap to reveal
Which malware type is designed to conceal the presence of other malicious software and maintain access?
Rootkit
tap to reveal
What is a network of compromised computers controlled by an attacker via a C2 server?
Botnet
tap to reveal
What malware analysis technique involves executing the malware in a controlled environment to observe its behavior?
Dynamic Analysis (or Sandboxing)
tap to reveal
What type of malware operates entirely in memory, leveraging legitimate system tools, making it hard to detect with signature-based AV?
Fileless Malware
tap to reveal
What security control only allows approved applications to run on a system, preventing unauthorized software execution?
Application Whitelisting
tap to reveal
Practice questions

Malware Threats: 5 practice questions

Q1. Which type of malware disguises itself as legitimate software but contains malicious code to grant an attacker unauthorized access to a system?
  • A.  Trojan Horse
  • B.  Adware
  • C.  Virus
  • D.  Worm
Show answer & explanation
✓ Answer: A. Trojan Horse
A Trojan Horse, or Trojan, masquerades as a useful program while secretly performing malicious actions, such as creating a backdoor for remote access.
Q2. A malware variant is designed to change its signature every time it replicates by using an encryption engine and a new key, making it difficult for signature-based antivirus scanners to detect. What is this malware called?
  • A.  Armored virus
  • B.  Stealth malware
  • C.  Metamorphic malware
  • D.  Polymorphic malware
Show answer & explanation
✓ Answer: D. Polymorphic malware
Polymorphic malware uses an encryption engine to change its code, altering its signature with each infection while keeping the core functionality intact.
Q3. An analyst is examining a suspicious executable in a controlled, isolated environment to observe its behavior, such as registry changes, network connections, and file system modifications. What type of malware analysis is being performed?
  • A.  Heuristic analysis
  • B.  Dynamic analysis
  • C.  Static analysis
  • D.  Signature-based analysis
Show answer & explanation
✓ Answer: B. Dynamic analysis
Dynamic analysis (or behavioral analysis) involves running the malware in a sandbox to monitor its actions and understand its purpose in real-time.
Q4. Which type of malware primarily operates in a computer's memory (RAM) and avoids writing itself to the local disk, making it highly evasive and difficult to detect with traditional file-based scanners?
  • A.  Boot sector virus
  • B.  Macro virus
  • C.  Companion virus
  • D.  Fileless malware
Show answer & explanation
✓ Answer: D. Fileless malware
Fileless malware leverages legitimate tools like PowerShell or WMI and exists only in memory to evade detection by traditional antivirus solutions.
Q5. A user's files have been encrypted, and a message on their screen demands a payment in cryptocurrency to restore access. What type of malware is most likely responsible for this attack?
  • A.  Spyware
  • B.  Ransomware
  • C.  Logic Bomb
  • D.  Keylogger
Show answer & explanation
✓ Answer: B. Ransomware
Ransomware is a type of malicious software that encrypts a victim's files and demands a ransom to provide the decryption key.
Test yourself
See the Certified Ethical Hacker (CEH) page

More Certified Ethical Hacker (CEH) topics