←Back to Subject
Notes
Notes
Study material and explanations
Diagrams
Diagrams
Visualize concepts easily
Mnemonics
Mnemonics
Tricks to remember faster
One Night Prep
One Night Prep
Short and focused revision
Revision
Revision
Quick summary and key points
Important Questions
Important Questions
Practice most relevant questions
Revision

Cyber Security · Unit 3 Revision

Quick summary and key points for Unit 3

Network Security and Types of Attacks

Overview: Reading confidential traffic without changing it is a passive threat.

What is Network Security?

  • When two or more computers, phones, or servers connect via Wi-Fi, LAN cables, or the Internet to share data, they form a Computer Network.
  • Think of the Internet as a busy national highway.

Classification of Network Attacks (ITU-T X.800 Standard)

  • In network security exams, all cyber attacks are classified into two main categories:
  • Passive Attacks (Spying / Listening secretly without changing anything)
  • Active Attacks (Modifying, faking, or blocking data)

View diagram · Classification of Network Security Attacks

Passive Attacks (In Detail)

  • In a Passive Attack, the hacker acts like a silent wiretapper.
  • Two Types of Passive Attacks: Release of Message Contents (Eavesdropping / Snooping):
  • The attacker intercepts and reads a confidential email, phone call, or file being transferred over an unencrypted network.
  • Example: A hacker using Wireshark on a free cafe Wi-Fi to read your unencrypted login password.
  • Traffic Analysis:
  • Suppose the message is encrypted, so the hacker cannot read the actual words.
  • Even then, the hacker watches who is talking to whom, how often, and how long the messages are to guess what is happening!
  • Example: Before a big company merger or military operation, a sudden spike in encrypted emails between two headquarters tips off the…

Active Attacks (In Detail)

  • In an Active Attack, the hacker actively interferes with the network traffic by altering messages, pretending to be someone else, or…
  • Four Types of Active Attacks: An active threat can involve impersonation, replay, alteration or disruption.
  • 1. Masquerade (Impersonation / Spoofing): Occurs when one person or computer pretends to be a different authorized user to gain illegal access.
  • Example: IP Spoofing or Email Spoofing, where a hacker sends an email pretending to be your company CEO or bank manager.
  • 2. Replay Attack: The attacker secretly records a legitimate network transmission (like a valid login token or a "Transfer ₹1,000" bank packet) and…
  • Prevention: Using Timestamps and one-time random numbers (Nonces / OTPs).
  • 3. Modification of Messages (Man-in-the-Middle): Some portion of a genuine message is altered, delayed, or reordered to produce an unauthorized effect.
  • Example: Changing "Allow Rahul to read file" to "Allow Hacker to delete file", or changing the receiver’s bank account number in…

View diagram · The 4 Standard Types of Active Attacks

Comparison: Active Attacks vs. Passive Attacks

  • 1. Nature of Action: Only monitors/observes traffic silently
  • 2. Data Modification: Data is never modified or harmed
  • 3. Security Pillar Violated: Violates Confidentiality
  • 4. System Harm: Causes no direct damage to the system/server
  • 5. Detection vs. Prevention: Very difficult to detect, but easy to prevent (via encryption)
  • 6. Examples: Snooping / Eavesdropping, Traffic Analysis

Brief Introduction to TCP/IP and Network Defense

Overview: If a lab computer can reach a server by IP but cannot resolve its name, begin with DNS.

What is TCP/IP?

  • TCP/IP stands for Transmission Control Protocol / Internet Protocol.
  • Why Do We Study TCP/IP in Cyber Security?: When TCP/IP was originally designed in the 1970s (for ARPANET), it was built for a small group of trusted university…

The 4 Layers of the TCP/IP Protocol Suite

  • The TCP/IP model organizes networking tasks into 4 stacked layers:
  • Transport Layer (Host-to-Host) Protocols: TCP, UDP | Security: SSL (Secure Socket Layer), TLS
  • Network Access Layer (Link Layer) Protocols: Ethernet, Wi-Fi | Security: WPA2/WPA3, MAC Filtering
  • Layer 1: Network Access Layer (Physical + Data Link): Role: Handles the physical transmission of raw bits over LAN cables (Ethernet) or wireless signals (Wi-Fi) between two directly…
  • Layer 2: Internet Layer (Network Layer): Role: Responsible for logical addressing (IP Addresses like 192.168.1.1) and Routing packets across different networks…
  • Key Protocols:
  • IP (Internet Protocol): Addresses and routes packets (connectionless).
  • ICMP (Internet Control Message Protocol): Used by ping to report network errors.

View diagram · The 4-Layer TCP/IP Architecture & Its Security Protocols

Common Security Attacks on TCP/IP Layers

  • Because standard TCP/IP trusts whatever is written in a packet header, attackers exploit each layer:
  • Application Layer: Phishing, SQL Injection, DNS Spoofing
  • Transport Layer: TCP SYN Flood Attack, Session Hijacking
  • Internet Layer: IP Spoofing, Ping of Death (ICMP Flood)
  • Network Access Layer: ARP Poisoning, MAC Spoofing, Wi-Fi Sniffing

Understanding the TCP 3-Way Handshake & SYN Flood Attack

  • In exams, explaining the TCP 3-Way Handshake shows how Transport Layer attacks work:
  • Step 1 (SYN): Client sends a Synchronize packet to the Server: “Hello, I want to connect.”
  • Step 2 (SYN-ACK): Server reserves memory and replies: *“OK, I am ready.
  • Step 3 (ACK): Client replies: “Confirmed!” — Connection is established!
  • How a TCP SYN Flood Attack Works:

Firewalls and Virtual Private Networks (VPN)

Overview: A firewall can restrict which connections enter an office network.

Part 1: Firewalls

  • What is a Firewall? (In Simple Words): A Firewall is a network security device (either hardware, software, or both) that sits as a barrier (security gatekeeper)…
  • Think of a Security Guard at the main gate of a university campus.
    • Genuine students and professors with valid ID cards are Allowed inside.
    • Unauthorized strangers or suspicious troublemakers are Stopped at the gate.
  • That guard is a Firewall!
  • Types of Firewalls (Must Write in Exams!): There are 4 main types of Firewalls:
  • 1. Packet-Filtering Firewall (Stateless Firewall): Operates at the Network & Transport Layers (Layers 3 & 4).
  • Inspects each packet individually by checking its header:

View diagram · How a Network Firewall Works

Part 2: Virtual Private Networks (VPN)

  • What is a VPN? (In Simple Words): A Virtual Private Network (VPN) is a technology that creates a safe, encrypted “secret tunnel” across a public, untrusted…
  • Imagine a glass tunnel built underwater through a shark-infested ocean, with tinted black walls.
  • How Does a VPN Work? (2 Key Mechanisms): Encryption: Before data leaves your laptop, the VPN client encrypts it (usually with AES-256) so that even if your ISP or a Wi-Fi…
  • Tunneling (Encapsulation): The encrypted data packet (along with your private IP address) is wrapped inside an outer IP packet (IPSec or…
  • 1. Remote-Access VPN (Client-to-Site): Connects an individual user’s laptop/phone (working from home or a hotel) to the company’s central office…
  • 2. Site-to-Site VPN (Router-to-Router): Permanently connects the entire local network (LAN) of Branch Office A (e.g., Indore) to **Head Office…
  • Key Benefits of Using a VPN: Safe Use of Public Wi-Fi: Protects your passwords and banking data on railway station, airport, or cafe Wi-Fi.
  • IP Address & Location Masking: Websites only see the IP address of the VPN server, protecting user privacy.

View diagram · How VPN Tunneling & Encryption Work

Web Security Protocols: SSL, TLS, and S-HTTP

Overview: TLS can protect a connection while a student submits a form.

Secure Sockets Layer (SSL)

  • SSL (Secure Sockets Layer) was developed by Netscape in 1994 (SSL v2.0 and v3.0) to provide a secure, encrypted communication…
  • Where Does SSL Sit in the TCP/IP Model?: SSL sits right between the Transport Layer (TCP) and the Application Layer (HTTP, SMTP, FTP).
  • Architecture of SSL (The 4 Sub-Protocols of SSL): SSL is not a single protocol; it is a two-layered stack of 4 sub-protocols:
  • 1. SSL Handshake Protocol | 2. SSL Change Cipher Spec | 3. SSL Alert Protocol Negotiates keys, switches encryption on, and sends security alerts
  • TCP (Transmission Control Protocol) Reliable transport over IP
  • SSL Handshake Protocol:
  • SSL Change Cipher Spec Protocol:
  • SSL Alert Protocol:

View diagram · SSL Protocol Stack Architecture

Transport Layer Security (TLS)

  • What is TLS?: TLS (Transport Layer Security) is the modern, upgraded, and more secure successor to SSL.
  • In 1999, the Internet Engineering Task Force (IETF) took over SSL v3.0, fixed its security vulnerabilities, and standardized it as…
  • Today, all modern websites actually use TLS 1.2 or TLS 1.3 (even though people still casually call it “SSL”).
  • 1. Full Form: Secure Sockets Layer
  • 2. Developed By: Netscape (1994–1996)
  • 3. Versions: SSL 1.0, SSL 2.0, SSL 3.0
  • 4. Security Status: Deprecated / Vulnerable (vulnerable to POODLE attack)
  • 5. Message Integrity: Uses an older MAC (Message Authentication Code)

Secure HyperText Transfer Protocol (S-HTTP)

  • What is S-HTTP?: S-HTTP (Secure HTTP) is an older, alternative web security protocol designed in 1994 by **Enterprise Integration Technologies…
  • Crucial Difference: How S-HTTP Differs from HTTPS (HTTP over SSL/TLS): Students often think S-HTTP and HTTPS are the same thing—they are NOT!
  • Analogy:
  • SSL/TLS (HTTPS) builds an armored tunnel and sends all your letters through it.
  • S-HTTP puts a locked envelope around one specific letter (a single web page or form submission) while leaving the rest of the…

View diagram · HTTPS (SSL/TLS) vs. S-HTTP

Time Stamping Protocol (TSP) and Secure Electronic Transaction (SET)

Overview: A time-stamping service can sign a record containing a document’s digest and a time.

Part 1: Time Stamping Protocol (TSP)

  • Why Do We Need a Trusted Timestamp?: Suppose an inventor creates a new software design on 1st January, or a company signs a digital contract before a deadline.
  • What is TSP? (In Simple Words): The Time Stamping Protocol (TSP) is a cryptographic protocol that uses a trusted third party called a **Time Stamping…
  • How Time Stamping Protocol (TSP) Works Step-by-Step: A requester sends a digest to a trusted time-stamping service.
  • Step 1 (Hashing the Document): The user runs their document through a hash function (like SHA-256) to create a short digital fingerprint (Hash).
  • Step 2 (Sending to TSA): The user sends only the Hash (not the secret document itself) to the Time Stamping Authority (TSA).
  • Step 3 (Adding Trusted Time & Digital Signature): The TSA combines the document’s Hash with the exact current time from a tamper-proof Atomic Clock and signs them…
  • Step 4 (Verification): Anyone can later verify the Timestamp Token using the TSA’s Public Key to prove in court that the document existed at…

View diagram · How Time Stamping Protocol (TSP) Works

Part 2: Secure Electronic Transaction (SET)

  • What is SET? (In Simple Words): Secure Electronic Transaction (SET) is a security protocol jointly developed in 1996 by Visa and MasterCard (along…
  • Why Was SET Created? (The Problem with Normal Online Shopping): When you buy shoes on an e-commerce website using a credit card:
  • If you simply send your Credit Card number to the Merchant (Shopkeeper), a dishonest shopkeeper or a hacker who hacks the shop’s…
  • On the other hand, your Bank only needs to know the payment amount—your bank does not need to know what items (shoes, medicines,…
  • It hides your Credit Card details from the Merchant (only the Bank can read your card number).
  • It hides your Shopping Order details from the Bank (only the Merchant can read what items you ordered).
  • Key Participants in a SET Transaction: The cardholder and merchant participate in the purchase.
  • 1. Cardholder Customer buying goods online using a credit/debit card

View diagram · Key Participants in Secure Electronic Transaction (SET)

E-mail Security: Threats, PGP, and S/MIME

Overview: Signing an email lets a recipient check its origin and whether it changed.

Why Do We Need E-mail Security?

  • Electronic Mail (E-mail) is the backbone of corporate, academic, and banking communication.
  • Anyone who handles the postcard along the route can read the message (No Confidentiality).
  • Anyone can write a fake “From:” address on the postcard to pretend to be someone else (Email Spoofing — No Authentication).
  • Anyone can alter the words on the postcard in transit (No Integrity).

Common E-mail Security Threats

  • Before learning the solutions, you should write these 5 common email threats in your exam:
  • Email Spoofing: Forging the "From:" header so an email appears to come from a trusted source (like [email protected] or your college…
  • Phishing & Spear-Phishing: Sending urgent, deceptive emails with fake login links to steal passwords, credit cards, or OTPs.
  • Malicious Attachments (Malware/Ransomware): Hiding viruses, Trojans, or ransomware inside .exe, .zip, or macro-enabled .docx / .pdf email attachments.
  • Eavesdropping (Email Interception): Reading confidential corporate or personal emails as they pass through mail servers.
  • Spam & Mail Bombing: Flooding a user’s inbox with thousands of junk emails so they miss genuine messages or the mail server crashes.

Two Major E-mail Security Protocols: PGP and S/MIME

  • To secure emails end-to-end, two industry-standard cryptographic protocols are used:
  • PGP (Pretty Good Privacy)
  • S/MIME (Secure / Multipurpose Internet Mail Extensions)

PGP (Pretty Good Privacy)

  • Invented by Phil Zimmermann in 1991, PGP (Pretty Good Privacy) is the most famous open standard (OpenPGP) for encrypting and…
  • The 5 Core Services Provided by PGP: PGP can sign a message and encrypt its contents.
  • 1. Authentication (Digital Signature): How do you know the email really came from the sender?
  • PGP creates a Hash of the email using SHA and encrypts that hash using the Sender’s Private Key (via RSA or DSS) to attach a…
  • The receiver verifies it using the Sender’s Public Key.
  • 2. Confidentiality (Message Encryption): How does PGP hide the email content?
  • Since RSA is too slow for long emails with big attachments, PGP generates a random 128-bit Symmetric Session Key and encrypts the email…
  • Then, PGP encrypts that small Session Key using the Receiver’s Public Key (RSA) and attaches it to the email!

View diagram · The 5 Core Services of PGP (Pretty Good Privacy)

S/MIME (Secure / Multipurpose Internet Mail Extensions)

  • What is S/MIME?: Standard MIME is an extension to SMTP that allows emails to carry non-text attachments like images, audio, video, PDFs, and HTML.
  • S/MIME (Secure/MIME) adds cryptographic security (Digital Signatures and Encryption) to MIME emails!
  • Unlike PGP (which uses a decentralized “Web of Trust” where users verify each other’s keys), **S/MIME uses official hierarchical X.509…

Comparison: PGP vs. S/MIME

  • 1. Created By: Phil Zimmermann (1991)
  • 2. Key Trust Model: Decentralized “Web of Trust” (users sign each other’s keys)
  • 3. Built-in Compression: Compresses messages automatically using ZIP
  • 4. Binary-to-Text Encoding: Uses Radix-64
  • 5. Primary Users: Individual privacy advocates, developers, journalists