7 Malware And Cyber Threats

Information Security · Unit 7

Malware and Cyber Threats

Exam-focused notes for Malware and Cyber Threats (Information Security, BIT303): what the TU syllabus asks and how it has actually been tested, with 6 solved past questions from this unit.

Malware and Cyber Threats in short

Malware is software built to harm a system, steal data or give an attacker control. This chapter explains the main types, how they spread, how people are tricked, and how we defend and investigate.

Malware and Cyber Threats: notes

Malicious software definition and types

Malware (malicious software) is any program or code made to damage, disturb or gain unauthorised access to a system.

Main types:

  • Virus: attaches to a host file and spreads when the file is run.
  • Worm: spreads on its own through networks.
  • Trojan horse: looks useful but hides harmful code.
  • Ransomware: locks or encrypts data and asks for payment.
  • Spyware: secretly collects information.
  • Adware: shows unwanted adverts.
  • Keylogger: records what the user types.
  • Backdoor: a hidden way in that skips normal login.
  • Rootkit: hides the attacker's presence.
  • Bot (zombie): a machine under remote control.
  • Logic bomb: code that runs when a condition is met, such as a date.

Another way to group malware is by need: some need a host program (viruses, logic bombs) and some are independent (worms, bots). Some copy themselves and some do not (Trojans, logic bombs).

Viruses, worms and Trojan horses

A virus needs a host. Its parts are an infection method, a trigger and a payload. Its life has four phases: dormant, propagation, triggering and execution.

A worm is a stand-alone program. It finds new hosts through network weak points, e-mail or shared drives. It copies itself without help from a user.

A Trojan horse pretends to be useful software. It does not copy itself. The user installs it, and it then opens a backdoor or steals data.

PointVirusWormTrojan horse
Needs a host fileYesNoNo, but looks like a program
Self-copyingYesYesNo
SpreadWhen the infected file is runThrough the network by itselfBy tricking the user to install
Needs user actionUsuallyNot alwaysYes
Main harmCorrupts filesUses bandwidth, spreads fastSteals data, opens backdoor

What this unit covers

  • Malicious software definition and types
  • Viruses, worms and Trojan horses
  • Zombies, bots and rootkits
  • Phishing attacks
  • Countermeasures for malware
  • Audit trail analysis

Malicious software definition and types

2082 · 10 marks

Define malicious software. Explain the different types of malicious softwares.[10]

Show solved answer

Malicious Software: Definition and Types

Definition of Malicious Software

Malicious software (Malware) is any software program that is intentionally designed to gain unauthorized access to a computer system, disrupt normal operations, steal sensitive information, or cause damage to hardware, software, or data without the knowledge or consent of the user.

Malware is created by attackers, hackers, or cybercriminals with harmful intent. It can spread through email attachments, infected websites, removable media, network connections, and software downloads.


Types of Malicious Software

1. Virus

  • A virus is a self-replicating program that attaches itself to legitimate executable files or programs.
  • It activates when the infected program is executed and spreads to other files.
  • It can corrupt or delete files, slow down the system, and cause data loss.
  • Example: File infector virus, Boot sector virus.
  • Key feature: Requires a host program to spread.

2. Worm

  • A worm is a standalone malicious program that replicates itself and spreads across networks without needing a host file.
  • Unlike viruses, worms do not need to attach to an existing program.
  • They consume network bandwidth and system resources.
  • Example: Morris Worm, ILOVEYOU worm.
  • Key feature: Self-propagating through networks.

3. Trojan Horse

  • A Trojan horse is a program that appears to be legitimate and useful software but contains hidden malicious code.
  • It does not self-replicate but tricks users into installing it.
  • Once installed, it can create backdoors, steal data, or allow remote access.
  • Example: Remote Access Trojans (RATs), Banking Trojans.
  • Key feature: Disguised as legitimate software.

4. Spyware

  • Spyware is software that secretly monitors and collects user information without their knowledge.
  • It tracks browsing habits, keystrokes, passwords, and personal data and sends it to a third party.
  • It often comes bundled with free software downloads.
  • Example: Keyloggers, adware with tracking capabilities.
  • Key feature: Operates silently in the background.

5. Adware

  • Adware is software that automatically displays or downloads unwanted advertisements on a user's computer.
  • While not always harmful, it can slow down the system and redirect browsers.
  • Some adware also acts as spyware by tracking user behavior.
  • Example: Pop-up generators, browser hijackers.
  • Key feature: Generates unwanted advertisements.

6. Ransomware

  • Ransomware is malware that encrypts the victim's files or locks the system and demands a ransom payment (usually in cryptocurrency) to restore access.
  • It is one of the most dangerous and financially damaging types of malware.
  • Example: WannaCry, CryptoLocker.
  • Key feature: Encrypts data and demands payment.

7. Rootkit

  • A rootkit is a collection of tools that allows an attacker to gain administrator-level (root) access to a computer while hiding its presence.
  • It modifies the operating system to conceal malicious activity.
  • Very difficult to detect and remove.
  • Example: NTRootkit, Azazel.
  • Key feature: Hides itself and other malware from detection.

8. Backdoor

  • A backdoor is a hidden method of bypassing normal authentication to gain unauthorized access to a system.
  • It can be installed by a Trojan or created by the software developer intentionally or unintentionally.
  • Allows attackers to remotely control the system.
  • Key feature: Provides unauthorized remote access.

9. Logic Bomb

  • A logic bomb is malicious code that remains dormant until a specific condition or trigger event occurs (e.g., a specific date, time, or user action).
  • Once triggered, it executes its payload, which may delete files or crash the system.
  • Example: A disgruntled employee planting code to activate on termination date.
  • Key feature: Triggered by a specific event or condition.

10. Keylogger

  • A keylogger records every keystroke made by a user on the keyboard.
  • It captures passwords, credit card numbers, and other sensitive information.
  • Can be software-based or hardware-based.
  • Key feature: Records keystrokes to steal credentials.

Summary Table

TypeSelf-ReplicatesNeeds HostMain Purpose
VirusYesYesCorrupt files
WormYesNoSpread via network
TrojanNoNoBackdoor/data theft
SpywareNoNoSteal information
RansomwareNoNoExtort money
RootkitNoNoHide malware
Logic BombNoYesTriggered damage
KeyloggerNoNoCapture keystrokes

Conclusion

Malicious software poses a serious threat to individuals, organizations, and governments. Understanding the different types of malware is essential for implementing effective security measures such as antivirus software, firewalls, regular updates, and user awareness training to protect computer systems and sensitive data.

Open this answer on its own page →

2080 · 5 marks

Describe any two types of malicious software. [5]

--- A computer virus is a malicious program that attaches itself to a legitimate host file or program and replicates when that file is executed. It requires human action (such as running an infected program) to spread. - It self-replicates by inserting copies of itself into other executable files...

Open this answer on its own page →

Zombies, bots and rootkits

2081 · 5 marks

Define zombies, rootkits and Trojans. [5]

Show solved answer

Zombies, Rootkits, and Trojans

Note: No specific reference notes were found for this topic. The following answer is based on standard cybersecurity concepts as taught in BSc CSIT curriculum.


1. Zombies

A zombie (also called a bot) is a compromised computer that has been infected by malware and is secretly controlled by a remote attacker (called a botmaster or bot herder) without the knowledge of the legitimate owner.

Key characteristics:

  • The infected machine responds to commands from a Command and Control (C&C) server
  • Multiple zombies form a botnet
  • Used to carry out DDoS attacks, send spam emails, steal data, or mine cryptocurrency
  • The owner of the zombie machine is usually unaware of the malicious activity

2. Rootkits

A rootkit is a collection of malicious software tools designed to gain unauthorized root/administrator-level access to a computer system while hiding its presence from users, administrators, and security software.

Key characteristics:

  • Operates at a deep level (kernel level or user level)
  • Hides files, processes, registry entries, and network connections
  • Very difficult to detect and remove
  • Often installed after an attacker has already gained initial access
  • Can persist even after system reboots (in some cases)

Types: Kernel-level rootkits, User-level rootkits, Bootloader rootkits


3. Trojans (Trojan Horse)

A Trojan or Trojan Horse is a type of malware that disguises itself as a legitimate or useful program to trick users into installing it, but performs malicious actions in the background.

Key characteristics:

  • Named after the Greek mythological Trojan Horse
  • Does not self-replicate (unlike viruses or worms)
  • Relies on social engineering to deceive users
  • Once installed, it can create backdoors, steal passwords, download other malware, or give remote access to attackers
  • Common examples: Remote Access Trojans (RATs), banking Trojans

Summary Table

FeatureZombieRootkitTrojan
Primary purposeRemote control for attacksHide attacker's presenceDisguise as legitimate software
Self-replicatesNoNoNo
Controlled remotelyYes (by botmaster)SometimesSometimes
Detection difficultyModerateVery HighModerate
Open this answer on its own page →

0 · 5 marks

Define zombies, bots and rootkits. [5]

Note: No specific reference notes were found for this topic. The following answer is based on standard computer security concepts as covered in BSc CSIT curriculum. --- A zombie is a compromised computer that has been taken over by a malicious attacker (often without the knowledge of the legitima...

Open this answer on its own page →

Countermeasures for malware

2080 · 5 marks

What do you mean by countermeasures for malwares? Discuss about audit trail analysis. [5]

Countermeasures for malwares refer to the set of techniques, tools, and practices used to prevent, detect, and respond to malicious software (malware) attacks on computer systems and networks. Category Description ------ Prevention Stopping malware from entering the system Detection Identifying m...

Open this answer on its own page →

Viruses, worms and Trojan horses

2079 · 5 marks

Differentiate between virus, worm and Trojan horse. [5]

Note: Standard computer security concepts are used here as no specific curriculum notes were provided. --- Feature Virus Worm Trojan Horse ------------ Definition A malicious program that attaches itself to a legitimate file/program and spreads when that file is executed A self-replicating progra...

Open this answer on its own page →