11 Computer Security

Introduction to Information Technology · Unit 11 · 3 hrs

Computer Security

Exam-focused notes for Computer Security (Introduction to Information Technology, CSC114): what the TU syllabus asks and how it has actually been tested, with 8 solved past questions from this unit.

Computer Security in short

This final chapter looks at protecting computer systems: the threats and attacks they face, the malicious software behind many of them, the security services a system should provide, the mechanisms used to provide them, and the wider practice of security awareness and policy.

Computer Security: notes

Introduction

Computer security is concerned with protecting systems and the information they hold from threats and attacks, and with the services, mechanisms, awareness and policies that together keep a computer system safe to use.

Security Threat and Security Attack

A computer threat is a possibility of danger that might harm the vulnerability of a computer system and break its security to cause damage. A security attack is an information security threat that involves an attempt to obtain, alter, destroy or remove information without authorized access or permission. Several types of security attack are recognized. Malware refers to various forms of harmful software, such as viruses and ransomware, which attackers use a variety of methods to get onto a computer. Phishing is an attack carried out via email, in which an attacker sends an email, often crafted to seem urgent, that appears to come from someone trustworthy. A SQL injection attack uses malicious code against a website to access private customer information. Cross-Site Scripting (XSS) is similar to a SQL injection attack, except that the malicious code runs in the user's browser and follows the user. Credential reuse exploits the fact that attackers who obtain usernames and passwords from a breached website can use them on other websites where people have reused the same credentials.

Malicious Software

Among malicious software, a virus is a malicious program that self-replicates by copying itself into another program. A worm is a type of malware that infects other systems by making multiple copies of itself and spreading into other computers within a network. A trojan horse is a program that appears harmless but is in fact malicious, causing unexpected changes to computer settings and unusual activity.

What this unit covers

  • Introduction
  • Security Threat and Security Attack
  • Malicious Software
  • Security Services
  • Security Mechanisms (Cryptography, Digital Signature, Firewall, Users Identification and Authentication, Intrusion Detection Systems)
  • Security Awareness
  • Security Policy

Security Awareness

2081 · 5 marks

Explain security awareness and security policy in brief. [5]

Security awareness refers to the knowledge, attitude, and understanding that members of an organization possess regarding the protection of the information and assets of that organization. It involves educating and training users about: - Potential threats such as viruses, worms, trojan horses, a...

Open this answer on its own page →

Security Mechanisms

2080 · 5 marks

Define cryptography. Why do we use firewall? [5]

Show solved answer

Cryptography and Firewall


1. Cryptography (Definition)

Cryptography is the art of protecting information by transforming it (encrypting it) into an unreadable format called cipher text.

  • Only those who possess a secret key can decrypt the message back into readable plain text.
  • It is used as a core security mechanism -- a technical tool and technique used to implement security services.

Key Concepts in Cryptography:

TermDescription
Plain TextOriginal readable message
Cipher TextEncrypted, unreadable form of the message
Secret Key (Private Key)A variable used with an algorithm to both encrypt and decrypt data; used in symmetric cryptography
Public KeyA variable used with an algorithm to decrypt code; used in asymmetric cryptography
Hash FunctionA mathematical function that converts a numerical input of arbitrary length into a fixed-length compressed output
Digital SignatureA security mechanism used to verify the authenticity and integrity of a message

2. Why Do We Use a Firewall?

A firewall is a network security system that monitors and controls incoming and outgoing network traffic based on predetermined security rules.

We use a firewall because:

  • It establishes a barrier between a trusted internal network and an untrusted external network (such as the Internet), preventing unauthorized access.
  • It protects systems from malicious attacks, hackers, and unauthorized intrusions.
  • It filters network traffic based on defined security rules, allowing only legitimate communication.

Types of Firewalls:

1. Hardware Firewall:

  • A physical device installed between the modem and the computer.
  • Protects an entire network.
  • Usually more expensive and harder to configure.
  • Examples: Cisco PIX, Watchguard, Netscreen

2. Software Firewall:

  • A software application installed on the computer system to be protected.
  • Protects a single computer.
  • Usually less expensive and easier to configure.
  • Examples: Norton Internet Security, McAfee Security

In summary: Cryptography secures data by making it unreadable to unauthorized users, while a firewall secures a network by controlling what traffic is allowed in or out -- both are essential components of information security.

Open this answer on its own page →

2079 · 5 marks

What is firewall? How firewall is used to secure computer systems? [5]

A firewall is a network security system (either hardware-based, software-based, or both) that monitors and controls incoming and outgoing network traffic based on a set of predefined security rules. It acts as a barrier (or "wall") between a trusted internal network (such as a private LAN) and an...

Open this answer on its own page →

2077 · 5 marks

What is cryptography? How does cryptography provide security to our data? [5]

Cryptography is the art of protecting information by transforming it (encrypting it) into an unreadable format called cipher text. Only those who possess a secret key can decrypt the message back into readable plain text. In simple terms, cryptography converts readable data (plain text) into an u...

Open this answer on its own page →

Security Threat and Security Attack

2078 · 5 marks

Differentiate security attack for security threat. How virus affects computer? [5]

--- Basis Security Threat Security Attack --------- Definition A security threat is a possibility of danger that might harm the vulnerability of a computer system and break the security to cause damage. A security attack is an actual attempt to obtain, alter, destroy, or remove information withou...

Open this answer on its own page →

Malicious Software

2075 · 5 marks

What is malicious software? How virus differs from worms? [5]

Show solved answer

Malicious Software and Virus vs. Worms

What is Malicious Software? (Malware)

Malicious software (Malware) refers to various forms of harmful software designed to damage, disrupt, or gain unauthorized access to computer systems. It is any software that is intentionally created to cause harm to a computer, server, network, or user.

Attackers use a variety of methods to deliver malware to a target computer, such as phishing emails, malicious downloads, and infected websites.

Common examples of malicious software include:

  • Virus - A self-replicating program that attaches itself to other programs
  • Worm - Spreads across networks by making copies of itself
  • Trojan Horse - A program that appears harmless but is actually malicious
  • Ransomware - Encrypts user data and demands payment for recovery

How Virus Differs from Worms

BasisVirusWorm
DefinitionA malicious program that self-replicates by copying itself to another programA type of malware that infects other systems by making multiple copies of itself and spreading across a network
Spreading MethodRequires a host program or file to attach itself toDoes not need a host; spreads independently
Human InteractionRequires human action (e.g., opening a file) to spreadSpreads automatically without human intervention
TargetAttaches to and corrupts files or programs on a single systemTravels across networks and infects multiple computers
Speed of SpreadSpreads relatively slowlySpreads very quickly across networks
DamageCorrupts or modifies files on the infected systemConsumes network bandwidth and system resources
ExampleFile infector virusMorris Worm, ILOVEYOU worm

Summary

In short, a virus needs a host file and human interaction to spread, while a worm is self-sufficient and spreads automatically across networks. Both are forms of malicious software that pose serious threats to computer security and integrity.

Open this answer on its own page →

0 · 5 marks

What is malicious software? How virus differs from worms? [5]

Show solved answer

Malicious Software and Virus vs. Worms

What is Malicious Software?

Malicious software (Malware) refers to various forms of harmful software designed to damage, disrupt, or gain unauthorized access to computer systems. It is any software that is intentionally created to cause harm to a computer, server, network, or its users.

Attackers use a variety of methods to deliver malware to a target computer, such as phishing emails, malicious downloads, and infected websites.

Common examples of malware include:

  • Viruses
  • Worms
  • Trojan Horses
  • Ransomware

How Virus Differs from Worms

BasisVirusWorm
DefinitionA computer virus is a malicious program that self-replicates by copying itself to another program.A computer worm is a type of malware that infects other systems by making multiple copies of itself and spreading into other computers within the network.
Host RequiredA virus requires a host program to attach itself to in order to spread.A worm does not require a host program; it is a standalone program.
SpreadingSpreads when an infected file or program is executed by the user.Spreads automatically across networks without any user interaction.
ReplicationReplicates by attaching itself to other programs or files.Replicates independently and spreads through network connections.
Speed of SpreadSpreads relatively slower as it depends on user action.Spreads faster as it propagates automatically over networks.
DamageCorrupts or modifies files on the infected system.Consumes network bandwidth and system resources, slowing down systems.
ExampleFile infector viruses, boot sector viruses.Morris Worm, ILOVEYOU worm.

Summary

In short, both viruses and worms are types of malicious software that self-replicate, but the key difference is that a virus needs a host program and user action to spread, while a worm spreads independently across networks without requiring a host or user intervention.

Open this answer on its own page →

Security Services

2074 · 5 marks

Define each of the terms confidentiality, integrity, and authentication. [5]

Confidentiality is the security property that allows only authorized users to access sensitive and protected data. It ensures that unauthorized users are blocked from viewing or obtaining information they are not permitted to access. - In simple terms, confidentiality means keeping information se...

Open this answer on its own page →