6 Network Security And Public Key Infrastructure

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.

Network Security and Public Key Infrastructure: notes

Overview of Network Security and Digital Certificates (X.509)

Network security is the set of preventive measures, physical and software, that protect networking infrastructure from unauthorized access, misuse, modification, or destruction. As more devices connect to shared networks, the population of potential attackers and attack surfaces both grow, so network security increasingly rests on layered measures: strong, non-default passwords, access control, application-level security, firewalls, and virtual private networks, each closing a different class of gap.

Binding a public key to the party who owns it, the problem left open at the end of Unit 3, is solved in practice with a digital certificate: a signed document, issued by a Certificate Authority (CA), that packages an entity's public key together with identifying information and the CA's own signature over that package. X.509 is the standard format almost all real digital certificates use. An X.509 certificate is a digital certificate that follows this internationally accepted public-key infrastructure standard to bind a public key to a hostname, domain, organization, or individual, and it may be signed either by a publicly trusted CA or, less securely, by itself. A typical X.509 (version 3) certificate carries: a version field; a serial number, unique per issuing CA; the issuer, naming the CA; the subject, naming the certificate's holder; a validity period, the window during which the certificate is trusted; a public-key algorithm field, describing how the subject's key and the CA's signature should be interpreted; the subject's public key itself; the CA's digital signature over the whole certificate; and optional extensions, such as constraints on what the key may be used for.

Certificate Life Cycle Management

Digital certificates enable secure transmission between client and server through identity authentication and data encryption, but a large deployment of certificates and their associated private keys must itself be actively managed: certificates from different vendors expire at different times, and tracking renewal, revocation, and replacement across an entire organization's certificate population is a genuinely hard operational problem, one that challenges even sophisticated enterprises. Many organizations adopt a Managed Public Key Infrastructure (MPKI) service to offload this burden, though even with MPKI in place much of the work, enrolling new certificate holders, renewing certificates before they expire, and revoking certificates whose keys have been compromised, remains resource-intensive and requires deliberate process design rather than a one-time setup.

PKI Trust Models and PKIX

A public key infrastructure (PKI) is the combination of hardware, software, people, policies, and procedures needed to create, manage, store, distribute, and revoke digital certificates built on asymmetric cryptography; its central goal is to make acquiring a public key that can be trusted both convenient and secure. Different PKI trust models describe how trust is anchored and propagated: a single root CA that every party trusts directly, a hierarchy of CAs where a root delegates trust to intermediate CAs, or a mesh of CAs that cross-certify each other, each model trading off single points of failure against the operational complexity of maintaining many trust relationships. PKIX (Public Key Infrastructure X.509) is the IETF's concrete profile of X.509-based PKI, defining the components and functions a real deployment needs. Its components are the end entity (a user, device, or any subject named in a certificate), the Certification Authority (CA), which issues certificates and may delegate some administrative work to one or more Registration Authorities (RAs), an optional CRL issuer, which publishes certificate revocation lists on the CA's behalf, and a repository, any storage mechanism through which end entities retrieve certificates and CRLs. PKIX also defines the functions a PKI must support end to end: registration (an end entity makes itself known to a CA), initialization (establishing that the end entity is really talking to the right CA), certification (the CA issues a certificate binding the end entity's identity to its public key), key generation (PKIX requires that an end entity be able to generate its own private/public key pair), and key update (smoothly transitioning from an expiring key pair to a fresh one through automatic certificate renewal).

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 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

TypeOSI LayerKey Feature
Packet FilteringNetwork (L3)Filters by IP/port rules
Stateful InspectionNetwork/TransportTracks connection state
Application Layer (Proxy)Application (L7)Deep content inspection
Circuit-Level GatewaySession (L5)Monitors TCP handshake
Next-Generation FirewallMultiple LayersDPI + IPS + App control
Open this answer on its own page →

2081 · 5 marks

What is the use of firewall? How circuit level gateway differs from stateful inspection firewall? [5]

A firewall is a network security system that monitors and controls incoming and outgoing network traffic based on predetermined security rules. Its main uses include: - Access Control: Blocks unauthorized access to the internal network while allowing legitimate traffic. - Protection from IP Spoof...

Open this answer on its own page →

2076 · 5 marks

What is the task of a firewall? List the elements of X.509. [5]

--- A firewall is a network security system that monitors and controls incoming and outgoing network traffic based on predetermined security rules. Its primary tasks are: 1. Access Control: Permits or denies traffic between networks (e.g., trusted internal network and untrusted external network/I...

Open this answer on its own page →

Certificate Life Cycle Management

2082 · 5 marks

What is digital certificate? Discuss the certificate life cycle. [5]

A digital certificate is a certificate issued by a Certificate Authority (CA) to verify the identity of the certificate holder. The CA issues an encrypted digital certificate containing the applicant's public key along with a variety of other identification information. A digital certificate is u...

Open this answer on its own page →

2080 · 5 marks

List the stage of certificate life cycle. What are the types of firewalls? [5]

--- A digital certificate (such as an X.509 certificate) issued by a Certificate Authority (CA) goes through the following stages during its life cycle: The entity (user, server, or organization) submits a request to the Certificate Authority (CA) along with identity information and a public key....

Open this answer on its own page →

IP Security

2080 · 5 marks

Describe about IPSec. List the five services of PGP. [5]

IPSec is a suite of protocols designed to provide security at the network layer (IP layer) of the Internet. It provides security services for IP datagrams by authenticating and/or encrypting each IP packet in a communication session. IPSec operates in two modes: - Transport Mode: Only the payload...

Open this answer on its own page →

Email Security

2079 · 5 marks

Describe the services provided by Pretty Good Privacy protocol to secure email. [5]

Pretty Good Privacy (PGP) is an open-source, freely available software package designed for email security. It provides confidentiality and authentication services that can be used for electronic mail and file storage applications. PGP operates through 5 main services as described below. --- PGP ...

Open this answer on its own page →

PKI trust models

2078 · 5 marks

Describe the PKI trust model. [5]

Show solved 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
  1. An end entity requests a certificate, providing proof of identity to the RA.
  2. The RA validates the request and forwards it to the CA.
  3. The CA issues a signed digital certificate binding the entity's identity to its public key.
  4. The certificate is stored in a repository for public access.
  5. 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:

MethodDescriptionWeakness
Public AnnouncementUsers broadcast their public keys (e.g., append to emails)Vulnerable to forgery
Publicly Available DirectoryKeys stored in a trusted directoryDirectory must be trusted
CA-based DistributionCA signs and vouches for public keysRelies 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.

Open this answer on its own page →

Secure Socket Layer

2078 · 5 marks

Define SSL protocol. Mention the services provided by PGP. [5]

--- Definition: SSL (Secure Sockets Layer) is a protocol designed to provide secure communication over the Internet between a client and a server. It operates between the application layer and the transport layer (TCP/IP) and ensures that data transmitted between web browsers and servers is encry...

Open this answer on its own page →