CSC327 ยท 2082 ยท 5 marks
Describe any three types of malicious logic.
Describe any three types of malicious logic. [5]
Quick answer
Malicious logic refers to a set of instructions or programs that are intentionally designed to cause harm, unauthorized access, or disruption to a computer system or network.
Malicious Logic
Malicious Logic (Malicious Code / Rogue Programs)
1. Trojan Horse
A Trojan Horse is a program that appears to perform a legitimate or useful function but secretly contains hidden code that performs unauthorized or harmful actions when executed.
- It does not replicate itself (unlike a virus).
- It tricks the user into running it by disguising itself as a legitimate program.
- Example: A user downloads what appears to be a free game, but the program secretly installs a backdoor, allowing an attacker to gain remote access to the system.
- Damage: Data theft, unauthorized access, system damage.
2. Virus
A virus is a piece of malicious code that attaches itself to a legitimate program or file and replicates when that program is executed. It requires a host program to spread.
- It can spread from one computer to another through infected files, email attachments, or removable media.
- A virus typically has two phases:
- Infection phase: It attaches itself to other programs.
- Attack phase: It performs its malicious activity (deleting files, corrupting data, etc.).
- Example: A virus attached to a
.exefile that corrupts system files when executed. - Damage: File corruption, system crashes, data loss.
3. Worm
A worm is a self-contained, self-replicating program that spreads across networks without needing to attach itself to a host program. Unlike a virus, it does not require user interaction to propagate.
- It exploits vulnerabilities in operating systems or network services to spread automatically.
- Worms consume network bandwidth and system resources, causing slowdowns or crashes.
- Example: The Morris Worm (1988) spread across the Internet by exploiting UNIX vulnerabilities, causing widespread system slowdowns.
- Damage: Network congestion, system resource exhaustion, data theft.
Summary Table
| Type | Replicates? | Needs Host? | Spreads Via |
|---|---|---|---|
| Trojan Horse | No | Yes (disguise) | User deception |
| Virus | Yes | Yes (host file) | Infected files/media |
| Worm | Yes | No | Network/vulnerabilities |
Other types of malicious logic include Logic Bombs (code that triggers under specific conditions) and Trapdoors/Backdoors (hidden entry points left by developers for unauthorized access).
Short on time? The 1, 5 and 10 mark versions of this answer, flashcards and practice sets come with a program pass.