Classification of Network Security Attacks
Classification of Network Security Attacks
🕵️♂️ 1. Passive Attacks (Only Listening)
• Attacker secretly monitors/eavesdrops on data
• Does NOT modify or damage the data
• Threatens Confidentiality
• Sub-types:
1. Release of Message Contents (Snooping)
2. Traffic Analysis
⚔️ 2. Active Attacks (Altering / Disrupting)
• Attacker modifies data or injects fake packets
• Directly alters system data or disrupts operation
• Threatens Integrity & Availability
• Sub-types:
1. Masquerade (Spoofing)
2. Replay Attack
3. Modification of Messages
4. Denial of Service (DoS / DDoS)
Explanation
- Passive threats concern observation of traffic.
- Active threats affect the content, identity or availability of a communication.
The 4 Standard Types of Active Attacks
The 4 Standard Types of Active Attacks
🎭 1. Masquerade
Attacker pretends to be someone else (IP Spoofing or stolen login)
🔁 2. Replay Attack
Captures a valid transaction packet and re-sends it later to duplicate action
✏️ 3. Modification
Intercepts a genuine message, alters its contents, and forwards it
🚫 4. Denial of Service
Floods server with fake requests so genuine users cannot access it
Explanation
- An active threat can involve impersonation, replay, alteration or disruption.
- Authentication, freshness checks and availability controls address different parts of that risk.
The 4-Layer TCP/IP Architecture & Its Security Protocols
The 4-Layer TCP/IP Architecture & Its Security Protocols
LAYER 4Application Layer
Protocols: HTTP, FTP, SMTP, DNS | Security: HTTPS, S-HTTP, PGP, S/MIME, SET
LAYER 3Transport Layer (Host-to-Host)
Protocols: TCP, UDP | Security: SSL (Secure Socket Layer), TLS
LAYER 2Internet Layer (Network Layer)
Protocols: IP, ICMP, ARP | Security: IPSec, VPNs, Packet Firewalls
LAYER 1Network Access Layer (Link Layer)
Protocols: Ethernet, Wi-Fi | Security: WPA2/WPA3, MAC Filtering
Explanation
- Link protection applies on a local connection and IP protection can cover network traffic.
- Protocols higher in the stack can protect a session or an individual application message.
How a Network Firewall Works
How a Network Firewall Works
🌍 Untrusted InternetGenuine Traffic + Hackers
➔
🧱 FIREWALLChecks IP, Port & Security Rules
➔
💻 Trusted Internal LANOnly Safe Traffic Enters
Explanation
- Incoming traffic is checked against the firewall's rules and connection state where supported.
- Matching traffic is allowed or blocked according to the configured policy.
How VPN Tunneling & Encryption Work
How VPN Tunneling & Encryption Work
🧑💻 Remote UserLaptop at Home / Cafe
➔
🔐 Encrypted VPN TunnelIPSec / SSL Encapsulation over Public Internet
➔
🏢 Corporate ServerVPN Gateway Decrypts Data
Explanation
- The VPN endpoints wrap traffic inside a tunnel across the intervening network.
- Protection of the tunnel ends where the endpoint unwraps the traffic.
SSL Protocol Stack Architecture
SSL Protocol Stack Architecture
UPPER LAYER1. SSL Handshake Protocol | 2. SSL Change Cipher Spec | 3. SSL Alert Protocol
Negotiates keys, switches encryption on, and sends security alerts
LOWER LAYER4. SSL Record Protocol
Fragments data, compresses it, adds MAC (Integrity), and encrypts it
BASETCP (Transmission Control Protocol)
Reliable transport over IP
Explanation
- The record layer carries protected data over the transport connection.
- Handshake messages establish parameters and keys before application data is exchanged.
HTTPS (SSL/TLS) vs. S-HTTP
HTTPS (SSL/TLS) vs. S-HTTP
🔒 HTTPS (HTTP over SSL/TLS)
• Operates at the Transport Layer
• Encrypts the ENTIRE communication session/pipe
• Can secure any protocol (HTTP, FTP, SMTP)
• Winner: Used by 99.9% of websites today
📄 S-HTTP (Secure HTTP)
• Operates strictly at the Application Layer
• Encrypts only individual HTTP messages/documents one by one
• Works only for HTTP (cannot secure FTP or Email)
• Rarely used today (replaced by HTTPS)
Explanation
- HTTPS protects HTTP using a TLS connection.
- Historical S-HTTP applied its security mechanisms to individual HTTP messages.
How Time Stamping Protocol (TSP) Works
How Time Stamping Protocol (TSP) Works
1. Hash CalculationUser computes Hash H(Doc) of the file
➔
2. Timestamp RequestUser sends ONLY the Hash to TSA (File stays private!)
➔
3. TSA Stamps & SignsTSA attaches Official Atomic Time + Signs with TSA Private Key
➔
4. Timestamp TokenReturned to User as Legal Proof of Time
Explanation
- A requester sends a digest to a trusted time-stamping service.
- The signed response binds that digest to a time that can later be checked.
Key Participants in Secure Electronic Transaction (SET)
Key Participants in Secure Electronic Transaction (SET)
💳 1. Cardholder
Customer buying goods online using a credit/debit card
🛒 2. Merchant
Online shopping website (e.g., Amazon/Flipkart) selling the goods
🏦 3. Issuer (Customer's Bank)
Bank that issued the credit card to the customer (e.g., SBI, HDFC)
🏛️ 4. Acquirer (Merchant's Bank)
Bank that holds the shopkeeper's business account
🖧 5. Payment Gateway
Processes payment messages between the Merchant and the Bank
📜 6. Certificate Authority (CA)
Issues X.509 digital certificates to verify Customer, Merchant & Bank
Explanation
- The cardholder and merchant participate in the purchase.
- The payment gateway and financial institutions handle authorisation and settlement roles.
The 5 Core Services of PGP (Pretty Good Privacy)
The 5 Core Services of PGP (Pretty Good Privacy)
1. AuthenticationSHA-1/SHA-256 Hash + RSA/DSS Digital Signature
➔
2. CompressionZIP Algorithm shrinks message size
➔
3. ConfidentialityAES / 3DES / IDEA encrypts message with One-Time Session Key
➔
4. Radix-64 ConversionBase64 converts binary cipher to ASCII text
Explanation
- PGP can sign a message and encrypt its contents.
- Compression and transport encoding help package the result for email.