Information Security Overview and Practices
Information Security Overview and Practices
UNIT 1
Objectives of InfoSec:
Importance:
Trust: Customers and partners trust companies that secure their data.
Example: In 2013, the Target data breach exposed 40 million credit card details
because of poor security measures. The company lost millions and its
reputation was damaged.
Common Threats:
INS 1
1. Malware (Malicious Software)
2. Phishing
Fake emails, SMS, or websites that trick people into revealing personal
data (passwords, credit card numbers).
Example: An email looking like it’s from a bank, asking you to “verify”
your account by entering your login details.
3. Social Engineering
4. Insider Threats
Security Attacks
It is any action that compromises the confidentiality, integrity, or
availability (CIA Triad) of information or information systems.
INS 2
Types of Passive Attacks
1. Masquerade (Impersonation)
2. Replay Attack
3. Modification of Messages
SECURITY MODELS
INS 3
CIA Triad
The CIA Triad is the foundation of information security.
1. Confidentiality
2. Integrity
3. Availability
Security Services
INS 4
It is a processing or communication service that enhances the security of
information systems and data transfers.
Types:
Examples:
Examples:
In Google Drive, the file owner decides whether another user can view,
comment, or edit.
Types:
INS 5
Examples:
HTTPS encryption hides your credit card info when buying online.
Types:
Examples:
Examples:
Digital signatures: If Alice signs an email, she cannot later deny sending
it.
Risk Management
Security isn’t about eliminating risks completely (impossible), but reducing
risks to acceptable levels.
1. Risk Assessment
2. Mitigation Strategies
INS 6
Apply security controls to reduce risks.
Options:
3. Security Audits
Cryptography
It is the science of securing information so that only the intended parties
can access and understand it.
It converts data into an unreadable form (encryption) and then back into
readable form (decryption) using keys.
INS 7
Example -
Encryption
→ process of transforming information from readable to unreadable format.
Types of Cryptography
1. Symmetric Cryptography
It involves only 1 key to encrypt and decrypt (or cipher and decipher)
information.
Plain Text → Encryption (Key1) → Cipher Text → Decryption (Key1) → Plain Text
INS 8
It is also called public key cryptography.
Plain Text → Encryption (Key1) → Cipher Text → Decryption (Key2) → Plain Text
IMPORTANT - A message that is encrypted using a public key can only be
decrypted using a private key, while also, a message encrypted using private
key can be decrypted using public key.
3. Hash Functions
One-way cryptographic functions that take input data and generate a fixed-
size hash value.
Cipher
It is a method (or algorithm) used to perform encryption (convert plaintext
into unreadable ciphertext) and decryption (convert ciphertext back to
plaintext).
Encrypts data one bit or one byte at a time, using a pseudorandom key
stream.
INS 9
B. Block Cipher
Divides plaintext into fixed-size blocks (e.g., 64 or 128 bits) and encrypts
each block using a key.
INS 10
Feature Block Cipher Stream Cipher
Typical unit size Uses 64 bits or more. Stream cipher uses 8 bits.
C. Substitution Cipher -
Each letter (or group of letters) in the plaintext is replaced with another
letter, symbol, or number.
1. Caesar Cipher
INS 11
INS 12
2. Playfair Cipher
Fill the 5×5 matrix with letters of the keyword (no repeats).
INS 13
Fill remaining spaces with other alphabets (I and J are treated as the
same).
Example:
MONAR
CHYBD
EFGIK
LPQST
UVWXZ
If a pair has the same letters (e.g., "MEET" → "ME" "ET", but "EE" is not
allowed):
Example:
Plaintext: "HELLO" → HE LX LO
c. Apply Encryption Rules
For each pair of letters in plaintext:
Replace each letter with the letter to its right (circular wrap if at end).
Replace each letter with the letter below (circular wrap if at bottom).
c. Rectangle Rule
If letters are at different rows & columns → replace with letters that form
the rectangle corners (same row as original letter).
3. Hills Cipher
Basic Idea
INS 14
Group them into vectors (block size depends on key matrix dimension).
Encryption
INS 15
Decryption
INS 16
INS 17
4. Vigenere Cipher
INS 18
INS 19
INS 20
5. Vernam Cipher
INS 21
D. Transposition Cipher -
letters remain the same, but their positions are rearranged according to a
rule.
2. Row Transposition
INS 22
3. Double Transposition
INS 23
Fiestel Cipher
INS 24
Diffusion & Confusion – Claude Shannon
INS 25
1. Terms confusion and diffusion were introduced by Claude Shannon.
If these statistics are in any way reflected in the ciphertext, the cryptanalyst
(attacker) may be able to deduce the encryption key.
1. Confusion
2. Diffusion
Diffusion
If a symbol in the plaintext is changed, several or all symbols in the
ciphertext will also change.
According to Wikipedia:
Confusion
It hides the relationship between ciphertext and the key.
If a single bit in the key is changed, then most/all bits of the ciphertext
will also be changed.
According to Wikipedia:
Confusion means that each bit of the ciphertext should depend on several
parts of the key, obscuring the connection between the two.
INS 26
(→ make unclear or difficult to understand).
Note
Decryption
[ Cipher Block-1 ] -> ( Decryption Algorithm with key ) -> [ PlainText Block 1 ]
This will happen for every box.
INS 27
In encryption algo we do XOR of the current plaintext block and the
preceding ciphertext block. So, repeating patterns not exposed.
Encryption
Decryption
INS 28
Encryption
Decryption
Encryption
INS 29
Decryption - Cj and Pj will be exchanged
Encryption
INS 30
INS 31
KEY GENERATION
INS 32
INS 33
DOUBLE DES
INS 34
INS 35
1. Drawback of 2DES
2DES means encrypting plaintext with DES twice using two different keys:
C=EK2(EK1(P))C = E_{K2}(E_{K1}(P))C=EK2(EK1(P))
Drawback:
INS 36
The main attack on 2DES is the Meet-in-the-Middle attack.
Steps:
Complexity:
Memory ≈ 2562^{56}256
3. Meet-in-the-Middle Attack
Why it works:
INS 37
Reduces complexity from exponential in two keys
(256×256=21122^{56} \times 2^{56} = 2^{112}256×256=2112)
TRIPLE DES
AES
INS 38
INS 39
INS 40
Asymmetric Key Cryptography
RSA
The key selection algorithm in RSA involves generating a pair of keys: a public
key (used for encryption) and a private key (used for decryption).
RSA Key Generation Algorithm
INS 41
Example -
INS 42
Digital Signatures
A Digital Signature is like an electronic fingerprint that ensures:
The sender creates a hash of the message using a hash function (e.g.,
SHA-256).
The hash value is encrypted with the sender’s private key → this
becomes the digital signature.
Receiver decrypts the digital signature using the sender’s public key,
which gives the original hash.
4. Pre-image Resistance → hard to find the original input from its hash.
5. Collision Resistance → hard for two different inputs to produce same hash.
1. Data Integrity → used in checksums to verify files are not altered (e.g.,
MD5, SHA).
1. MD5
INS 44
MD5 (Message Digest 5) is a widely used cryptographic hash function
developed by Ronald Rivest in 1991.
It is mainly used for data integrity checks, but is not secure for
cryptography today (due to collisions).
2. Padding
Then, the original message length (in 64 bits) is added → total length
becomes a multiple of 512 bits.
3. Divide into Blocks - The padded message is split into 512-bit blocks.
4. Initialize Buffers - Four 32-bit registers (A, B, C, D) are initialized with fixed
constants.
Features of MD5
INS 45
Applications (Today) → Checksums for files, basic data verification (not
cryptography).
2. SHA
SHA (Secure Hash Algorithm) is a family of cryptographic hash functions
designed by NIST (National Institute of Standards and Technology).
It converts any input (message, file, or data) into a fixed-length hash value
(digest).
Examples:
1. Input Message
After all rounds, SHA produces a fixed-length hash value (e.g., 256-bit
digest for SHA-256).
Features of SHA
INS 46
Fixed Output Size → regardless of input length.
Collision Resistant → difficult for two different inputs to produce the same
hash.
CYRPTOGRAPHIC PROTOCOL
SSL
It is a cryptographic protocol developed by Netscape in 1995.
Architecture of SSL
SSL has two layers:
1. SSL Record Protocol → takes data, fragments it, compresses, adds MAC,
encrypts, and transmits.
1. Client Hello
2. Server Hello
INS 47
Server responds with chosen cipher suite, SSL version, its digital
certificate (containing public key).
3. Authentication
4. Key Exchange
5. Secure Communication
All further data is encrypted with symmetric session key (faster than
public-key).
PGP
PGP stands for Pretty Good Privacy.
It is an encryption and decryption program that provides confidentiality,
integrity, and authentication in digital communication (mainly emails, files, and
documents).
PGP combines the features of:
INS 48
Asymmetric encryption (Public-Key Cryptography) (for secure key
exchange and authentication)
Working
Key Generation → Each user creates a public key (shared) and a private
key (secret).
Encryption →
The session key is then encrypted with the receiver’s public key.
Decryption →
Receiver verifies the digital signature with the sender’s public key.
PGP Provides
TLS secures most of the internet → used in HTTPS, email, VPNs, VoIP,
instant messaging.
Goals of TLS
INS 49
2. Authentication → Uses digital certificates to verify server (and optionally
client).
1. Client Hello
2. Server Hello
Server replies: chosen TLS version, cipher suite, its own random
number.
3. Authentication
4. Key Exchange
Client and server agree on a shared session key using RSA or Diffie-
Hellman (in TLS 1.3 → ECDHE is used).
Both now have the same secret session key (but no one else knows it).
6. Secure Communication
From now on, data is encrypted with the session key (fast symmetric
encryption like AES).
INS 50
Key Exchange Protocol
It is a method by which two parties (e.g., your browser and a website
server) securely agree on a shared secret key over an insecure network.
This shared key is later used for symmetric encryption (fast and efficient).
Why is it Needed?
Symmetric encryption (AES, DES) is fast, but both sides need the same
secret key.
So, we need a secure way to establish the key → that’s what key exchange
protocols do.
INS 51
INS 52
Firewall
Security system (hardware, software, or both) that monitors and controls
incoming and outgoing network traffic based on predefined rules.
Its main job: act as a barrier between a trusted network (like your
organization’s LAN) and an untrusted network (like the internet).
Types
1. Packet Filtering Firewall
INS 53
✅ Fast, lightweight
❌ Weak security (does not check payload).
2. Stateful Inspection Firewall (Dynamic Filtering)
Conceal communication –
Secure communication – make the
Objective make it look like no secret
message unreadable to outsiders.
message exists.
Method Uses techniques like LSB Uses algorithms like AES, RSA, DES
(Least Significant Bit) for encryption/decryption.
INS 54
Aspect Steganography Cryptography
substitution in images, or
audio/video steganography.
Watermarking, covert
Banking transactions, passwords,
Use cases communication, copyright
confidential communications.
protection.
INS 55