Cryptography · Unit 6 · 6 hrs
Network Security and Public Key Infrastructure
Exam-focused notes for Network Security and Public Key Infrastructure (Cryptography, CSC327): what the TU syllabus asks and how it has actually been tested, with 9 solved past questions from this unit.
Network Security and Public Key Infrastructure in short
Cryptographic primitives only become useful security once they are deployed inside real protocols and organizational processes. This unit covers that deployment layer: the public-key infrastructure that binds keys to identities, the protocols (PGP, SSL/TLS, IPSec) that use those bound keys to protect email, web traffic, and IP packets, and the firewalls that sit at network boundaries enforcing policy.
What this unit covers
- Overview of Network Security
- Digital Certificates and X.509 certificates
- Certificate Life Cycle Management
- PKI trust models
- PKIX
- Email Security: Pretty Good Privacy (PGP)
- Secure Socket Layer (SSL) and Transport Layer Security (TLS)
- IP Security (IPSec)
- Firewalls and their types
Firewalls and their types
2082 · 5 marks
List and explain the types of firewall. [5]
Show solved answerHide answer
Types of Firewall
Firewall
A firewall is a network security system that monitors and controls incoming and outgoing network traffic based on predetermined security rules. It establishes a barrier between a trusted internal network and untrusted external networks.
Types of Firewall
1. Packet Filtering Firewall
- Operates at the Network Layer (Layer 3) of the OSI model.
- Inspects each packet passing through the network and filters them based on rules such as source IP, destination IP, port numbers, and protocols.
- It does not examine the content of the packet.
- Advantage: Fast and efficient.
- Disadvantage: Cannot detect application-level attacks; stateless (does not track connection state).
2. Stateful Inspection Firewall (Dynamic Packet Filtering)
- Operates at the Network and Transport Layer.
- Tracks the state of active connections and makes filtering decisions based on the context of traffic (e.g., whether a packet is part of an established connection).
- Maintains a state table to monitor ongoing sessions.
- Advantage: More secure than simple packet filtering.
- Disadvantage: Slower than packet filtering; cannot inspect application-layer data.
3. Application Layer Firewall (Proxy Firewall)
- Operates at the Application Layer (Layer 7).
- Acts as an intermediary (proxy) between the client and the server; it intercepts all messages entering and leaving the network.
- Can inspect the full content of network traffic including HTTP, FTP, DNS, etc.
- Advantage: Provides deep packet inspection; hides internal network details.
- Disadvantage: Slower performance due to deep inspection; requires more resources.
4. Circuit-Level Gateway
- Operates at the Session Layer (Layer 5).
- Monitors TCP handshaking and session establishment to determine whether a requested session is legitimate.
- Does not inspect the actual content of the packets.
- Advantage: Faster than application-layer firewalls; hides internal network information.
- Disadvantage: Cannot filter individual packets after the session is established.
5. Next-Generation Firewall (NGFW)
- Combines the features of traditional firewalls with advanced capabilities such as:
- Deep Packet Inspection (DPI)
- Intrusion Prevention System (IPS)
- Application awareness and control
- SSL/TLS inspection
- Can identify and block sophisticated attacks including malware and application-layer threats.
- Advantage: Comprehensive security; highly effective against modern threats.
- Disadvantage: Expensive and complex to configure.
Summary Table
| Type | OSI Layer | Key Feature |
|---|---|---|
| Packet Filtering | Network (L3) | Filters by IP/port rules |
| Stateful Inspection | Network/Transport | Tracks connection state |
| Application Layer (Proxy) | Application (L7) | Deep content inspection |
| Circuit-Level Gateway | Session (L5) | Monitors TCP handshake |
| Next-Generation Firewall | Multiple Layers | DPI + IPS + App control |
2081 · 5 marks
What is the use of firewall? How circuit level gateway differs from stateful inspection firewall? [5]
2076 · 5 marks
What is the task of a firewall? List the elements of X.509. [5]
Certificate Life Cycle Management
2082 · 5 marks
What is digital certificate? Discuss the certificate life cycle. [5]
2080 · 5 marks
List the stage of certificate life cycle. What are the types of firewalls? [5]
IP Security
2080 · 5 marks
Describe about IPSec. List the five services of PGP. [5]
Email Security
2079 · 5 marks
Describe the services provided by Pretty Good Privacy protocol to secure email. [5]
PKI trust models
2078 · 5 marks
Describe the PKI trust model. [5]
Show solved answerHide answer
PKI Trust Model
Introduction
Public Key Infrastructure (PKI) is a framework that manages the creation, distribution, storage, and revocation of digital certificates. The PKI trust model defines how trust is established and maintained among entities using public key certificates.
Key Elements of the PKI (PKIX) Model
The PKIX (Public Key Infrastructure X.509) model consists of the following elements:
1. End Entity
A generic term used to denote end users, devices, or any other entity that can be identified in the subject field of a public key certificate. End entities are the ultimate consumers of PKI services.
2. Certification Authority (CA)
- The trusted third party that issues and signs digital certificates.
- The CA binds a public key to an identity by digitally signing the certificate with its own private key.
- Trust in the PKI system ultimately rests on trust in the CA.
3. Registration Authority (RA)
- Acts as an intermediary between the end entity and the CA.
- Verifies the identity of the end entity before the CA issues a certificate.
4. Certificate Repository
- A publicly accessible store (e.g., LDAP directory) where certificates and Certificate Revocation Lists (CRLs) are published and retrieved.
5. Digital Certificates
- A certificate binds a public key to an individual or entity.
- It is signed by the CA, so any party that trusts the CA can verify the certificate.
- Benefits include:
- Authentication: The individual's unique private key was used to apply the signature, so recipients can be confident of the signer's identity.
- Integrity: Even the slightest change to the original document causes signature verification to fail.
- Confidentiality: Content encrypted with a public key can only be decrypted with the corresponding private key.
How the Trust Model Works
End Entity <----> Registration Authority (RA)
|
v
Certification Authority (CA)
|
Issues Certificate
|
Certificate Repository
|
Relying Party verifies
- An end entity requests a certificate, providing proof of identity to the RA.
- The RA validates the request and forwards it to the CA.
- The CA issues a signed digital certificate binding the entity's identity to its public key.
- The certificate is stored in a repository for public access.
- A relying party retrieves the certificate, verifies the CA's signature, and trusts the public key.
Public Key Distribution in PKI
Several techniques are used for distributing public keys:
| Method | Description | Weakness |
|---|---|---|
| Public Announcement | Users broadcast their public keys (e.g., append to emails) | Vulnerable to forgery |
| Publicly Available Directory | Keys stored in a trusted directory | Directory must be trusted |
| CA-based Distribution | CA signs and vouches for public keys | Relies on CA trustworthiness |
Summary
The PKI trust model establishes a chain of trust rooted in a trusted CA. By using digital certificates, it ensures authentication, integrity, and confidentiality in public key cryptography, solving the key distribution problem in a scalable and verifiable manner.
Secure Socket Layer
2078 · 5 marks
Define SSL protocol. Mention the services provided by PGP. [5]
Make Unit 6 stick
Practice CSC327 with flashcards & quizzes