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.
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 answerHide 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
| Technology | Security Service Provided |
|---|---|
| Cryptography | Confidentiality, Integrity |
| Digital Signature | Authentication, Non-repudiation |
| Hash Functions | Integrity |
| PKI / Certificates | Authentication |
| Firewall | Access Control |
| IDS/IPS | Attack Detection/Prevention |
| SSL/TLS | Confidentiality, Authentication |
| Access Control | Authorization |
Note: The above answer is based on standard network security concepts, as no specific curriculum notes were provided for this topic.
Security mechanisms and approaches
2080 · 10 marks
What is security mechanism? List the technologies used for implementing the security mechanisms.[10]
Show solved answerHide 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 Mechanism | Technology Used | Security Service Provided |
|---|---|---|
| Encipherment | AES, RSA, DES | Confidentiality |
| Digital Signature | RSA, DSA, ECDSA | Authentication, Non-repudiation |
| Access Control | ACL, RBAC, MAC | Authorization |
| Data Integrity | SHA-256, HMAC | Integrity |
| Authentication Exchange | Kerberos, MFA, X.509 | Authentication |
| Traffic Padding | Dummy data insertion | Confidentiality |
| Routing Control | VPN, IPSec | Confidentiality |
| Notarization | CA, Timestamping | Non-repudiation |
| Firewall | iptables, Cisco ASA | Access Control |
| IDS/IPS | Snort, Suricata | Attack Detection |
2079 · 10 marks
What is security mechanism? List any two approaches.Discuss the different types of software with example.[5+5]
Security policy definition
Computer security definition and targets
2078 · 5 marks
What do you understand by the term Computer security? Explain functions of Firewall. [5]
0 · 5 marks
What do you understand by the term Computer security? What are the targets of the security attack? [5]
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]
Cryptography and encryption methods
2081.2 · 5 marks
What is cryptography? Explain private key cryptography and public key cryptography. [1+4]
Make Unit 8 stick
Practice BIT101 with flashcards & quizzes