8 Computer Security

Introduction to Information Technology · Unit 8

Computer Security

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

Computer Security in short

As more data moves online, protecting it becomes vital. This unit explains what computer security protects, how it is done, and the main tools such as firewalls and cryptography.

Computer Security: notes

Computer security definition and targets

Computer security (cyber security) is the protection of computers, networks, programs, and data from theft, damage, or unauthorized access.

The main goals form the CIA triad:

  • Confidentiality: only allowed people can read the data.
  • Integrity: data stays correct and is not changed without permission.
  • Availability: data and services are ready when needed.

Other goals are authentication (proving identity), authorization (what a user may do), and non-repudiation (a sender cannot deny sending).

Targets of attack:

  • Hardware: theft or damage of devices.
  • Software: viruses, worms, and Trojans change or harm programs.
  • Data: stealing, changing, or deleting information.
  • Networks and communication: eavesdropping, spoofing, denial of service.
  • Users: phishing and tricks that make people give away passwords (social engineering).

Security mechanisms and approaches

Security mechanisms are the tools used to stop, find, and recover from attacks.

  • Authentication: passwords, PINs, smart cards, and biometrics (fingerprint, face).
  • Access control: permissions that limit who can read, write, or run a resource.
  • Encryption: turning data into unreadable form.
  • Firewall: blocks harmful network traffic.
  • Antivirus and anti-malware: find and remove harmful programs.
  • Backup: copies of data for recovery.
  • Audit and logging: records of activities to find misuse.
  • Physical security: locks, guards, and CCTV.

Approaches are often described in three kinds:

  • Preventive: stop attacks before they happen (firewall, passwords).
  • Detective: find attacks that occur (intrusion detection, logs).
  • Corrective: repair damage and recover (backup, patches).

A good plan uses several layers together. This is called defence in depth.

What this unit covers

  • Computer security definition and targets
  • Security mechanisms and approaches
  • Security policy definition
  • Firewall purpose, function, and types
  • Cryptography and encryption methods
  • Private key cryptography
  • Public key cryptography
  • Digital signature
  • Technologies for security implementation

Technologies for security implementation

2081 · 5 marks

What is security mechanism? Explain in brief about the technologies used for implementing the security mechanisms. [5]

Show solved answer

Security Mechanism

Definition

A security mechanism is a technical tool, technique, or procedure designed to detect, prevent, or recover from a security attack. Security mechanisms are used to implement security services such as confidentiality, integrity, authentication, non-repudiation, and access control in a communication system or network.


Technologies Used for Implementing Security Mechanisms

1. Cryptography

Cryptography is the science of transforming data into an unreadable form to protect it from unauthorized access.

  • Symmetric Key Cryptography (e.g., AES, DES): Same key is used for encryption and decryption.
  • Asymmetric Key Cryptography (e.g., RSA): A pair of public and private keys is used.
  • It provides confidentiality and data integrity.

2. Digital Signature

A digital signature is a cryptographic technique that verifies the authenticity and integrity of a message or document.

  • It uses the sender's private key to sign and the receiver uses the public key to verify.
  • Provides authentication and non-repudiation.

3. Hash Functions

A hash function converts data of arbitrary size into a fixed-size digest (e.g., MD5, SHA-256).

  • Used to verify data integrity.
  • Even a small change in data produces a completely different hash value.

4. Digital Certificates and Public Key Infrastructure (PKI)

  • A digital certificate binds a public key to an identity, issued by a trusted Certificate Authority (CA).
  • PKI manages the creation, distribution, and revocation of certificates.
  • Used for authentication in SSL/TLS protocols.

5. Firewall

A firewall is a network security device (hardware or software) that monitors and controls incoming and outgoing network traffic based on predefined security rules.

  • Prevents unauthorized access to or from a private network.

6. Intrusion Detection System (IDS) / Intrusion Prevention System (IPS)

  • IDS monitors network traffic and detects suspicious activities or policy violations.
  • IPS not only detects but also takes action to block the threat automatically.

7. Secure Socket Layer / Transport Layer Security (SSL/TLS)

  • SSL/TLS protocols provide a secure channel between two parties communicating over the internet.
  • Used in HTTPS to ensure encrypted and authenticated communication.

8. Access Control Mechanisms

  • Techniques such as passwords, biometrics, smart cards, and role-based access control (RBAC) restrict access to resources only to authorized users.

Summary Table

TechnologySecurity Service Provided
CryptographyConfidentiality, Integrity
Digital SignatureAuthentication, Non-repudiation
Hash FunctionsIntegrity
PKI / CertificatesAuthentication
FirewallAccess Control
IDS/IPSAttack Detection/Prevention
SSL/TLSConfidentiality, Authentication
Access ControlAuthorization

Note: The above answer is based on standard network security concepts, as no specific curriculum notes were provided for this topic.

Open this answer on its own page →

Security mechanisms and approaches

2080 · 10 marks

What is security mechanism? List the technologies used for implementing the security mechanisms.[10]

Show solved answer

Security Mechanism

Definition

A security mechanism is a process (or a device incorporating such a process) that is designed to detect, prevent, or recover from a security attack. Security mechanisms are the tools and techniques used to implement security services and protect information systems from unauthorized access, modification, disclosure, or destruction.

Security mechanisms are defined in the context of the OSI Security Architecture (X.800) and work together to provide security services such as confidentiality, integrity, authentication, non-repudiation, and access control.


Classification of Security Mechanisms

Security mechanisms are broadly classified into two categories:

1. Specific Security Mechanisms

These are incorporated into specific protocol layers to provide OSI security services.

2. Pervasive Security Mechanisms

These are not specific to any particular OSI security service or protocol layer.


Technologies Used for Implementing Security Mechanisms

1. Encipherment (Encryption)

  • The process of transforming data into an unreadable form using mathematical algorithms and keys.
  • Provides confidentiality of data.
  • Two main types:
    • Symmetric Encryption: Same key for encryption and decryption (e.g., DES, AES, 3DES)
    • Asymmetric Encryption: Different keys for encryption and decryption (e.g., RSA, ECC)
  • Example: AES-256 encryption used in secure communications.

2. Digital Signature

  • A cryptographic technique that provides authentication, integrity, and non-repudiation.
  • The sender signs a message using their private key; the receiver verifies it using the sender's public key.
  • Technologies: RSA-based signatures, DSA (Digital Signature Algorithm), ECDSA.
  • Ensures the message has not been altered and confirms the identity of the sender.

3. Access Control

  • Mechanisms that enforce policies determining who can access what resources.
  • Technologies used:
    • ACL (Access Control Lists)
    • RBAC (Role-Based Access Control)
    • MAC (Mandatory Access Control)
    • DAC (Discretionary Access Control)
  • Prevents unauthorized access to system resources.

4. Data Integrity

  • Ensures that data has not been altered during transmission or storage.
  • Technologies used:
    • Hash Functions: MD5, SHA-1, SHA-256, SHA-3
    • HMAC (Hash-based Message Authentication Code)
    • Checksums and CRCs
  • A hash value (message digest) is computed and verified at both ends.

5. Authentication Exchange

  • A mechanism to verify the identity of communicating parties.
  • Technologies used:
    • Passwords and PINs
    • Challenge-Response Protocols
    • Kerberos Authentication
    • Digital Certificates (X.509)
    • Biometrics (fingerprint, retina scan)
    • Multi-Factor Authentication (MFA)

6. Traffic Padding

  • Insertion of dummy bits/data into gaps in a data stream to frustrate traffic analysis attacks.
  • Prevents an attacker from analyzing communication patterns (frequency, volume, timing).
  • Used in high-security military and government communications.

7. Routing Control

  • Enables the selection of specific physically or logically secure routes for data transmission.
  • Allows rerouting when a security breach is detected on a particular path.
  • Technologies: Secure routing protocols, VPN tunneling (IPSec, SSL/TLS).

8. Notarization

  • Involves the use of a trusted third party to assure certain properties of a data exchange (e.g., integrity, origin, time, destination).
  • Similar to a digital notary.
  • Technologies: Timestamping services, Certificate Authorities (CA), Trusted Third Party (TTP) services.

9. Firewall

  • A network security device (hardware or software) that monitors and controls incoming and outgoing network traffic based on predefined security rules.
  • Types: Packet filtering, Stateful inspection, Application-layer (proxy) firewalls.
  • Technologies: iptables, pfSense, Cisco ASA.

10. Intrusion Detection and Prevention Systems (IDS/IPS)

  • IDS: Monitors network traffic and alerts administrators about suspicious activity.
  • IPS: Actively blocks detected threats.
  • Technologies: Snort, Suricata, Cisco IDS/IPS.

11. Public Key Infrastructure (PKI)

  • A framework for managing digital certificates and public-key encryption.
  • Components: Certificate Authority (CA), Registration Authority (RA), Certificate Revocation List (CRL).
  • Technologies: X.509 certificates, SSL/TLS protocols.

12. Virtual Private Network (VPN)

  • Creates a secure, encrypted tunnel over a public network (Internet).
  • Provides confidentiality and integrity for data in transit.
  • Technologies: IPSec, SSL/TLS, OpenVPN, L2TP.

Summary Table

Security MechanismTechnology UsedSecurity Service Provided
EnciphermentAES, RSA, DESConfidentiality
Digital SignatureRSA, DSA, ECDSAAuthentication, Non-repudiation
Access ControlACL, RBAC, MACAuthorization
Data IntegritySHA-256, HMACIntegrity
Authentication ExchangeKerberos, MFA, X.509Authentication
Traffic PaddingDummy data insertionConfidentiality
Routing ControlVPN, IPSecConfidentiality
NotarizationCA, TimestampingNon-repudiation
Firewalliptables, Cisco ASAAccess Control
IDS/IPSSnort, SuricataAttack Detection
Open this answer on its own page →

2079 · 10 marks

What is security mechanism? List any two approaches.Discuss the different types of software with example.[5+5]

--- (a) Security Mechanism and Two Approaches A security mechanism is any method, tool, technique, or procedure that is designed to detect, prevent, or recover from a security attack. It is used to implement and enforce the security policy of a system or network. Security mechanisms are the build...

Open this answer on its own page →

Security policy definition

2080 · 5 marks

What is security policy? Explain. [5]

A security policy is a formal set of rules, guidelines, and procedures that defines how an organization manages, protects, and distributes its sensitive information and resources. It specifies what is and what is not allowed in terms of access, use, and protection of an organization's assets. ---...

Open this answer on its own page →

Computer security definition and targets

2078 · 5 marks

What do you understand by the term Computer security? Explain functions of Firewall. [5]

Computer security refers to the protection of computer systems, networks, and data from unauthorized access, damage, theft, misuse, or disruption. It involves implementing policies, procedures, and technical measures to ensure: - Confidentiality - Information is accessible only to authorized user...

Open this answer on its own page →

0 · 5 marks

What do you understand by the term Computer security? What are the targets of the security attack? [5]

Computer Security refers to the protection of computer systems, networks, and data from unauthorized access, theft, damage, disruption, or misuse. It encompasses the policies, procedures, and technical measures used to prevent unauthorized access, alteration, theft, or physical damage to informat...

Open this answer on its own page →

Firewall purpose, function, and types

2077 · 10 marks

What is the purpose and function of firewall?Name and explain the three types of firewall.[2+8]

A firewall is a network security system (hardware or software) that monitors and controls incoming and outgoing network traffic based on a set of predefined security rules. Purpose: - To act as a protective barrier between a trusted internal network (e.g., a company LAN) and an untrusted external...

Open this answer on its own page →

Cryptography and encryption methods

2081.2 · 5 marks

What is cryptography? Explain private key cryptography and public key cryptography. [1+4]

Note: No specific curriculum notes were found for this topic. The answer below is based on standard, well-established cryptography concepts as taught in BSc CSIT programs. --- Cryptography is the science and art of transforming readable data (plaintext) into an unreadable form (ciphertext) to ens...

Open this answer on its own page →