Counted from the questions in the past papers listed on this site. Repeated = how many times the topic came in those papers.
Information Security important questions with answers
Each answer starts with the short answer. Then come the points to write, a diagram and an exam tip. The questions under each topic are copied from the RGPV papers.
Q1. Security goals, threats and attacks: confidentiality, integrity, availability, non-repudiation
Asked 3 times in 2023, 2024, 2025 · Unit 1
From the papers
“Define the terms threat and attack. List and define categories of security attacks.” (Jun 2025)
“What are the differences between security and protection? Explain.” (Jun 2025)
“Explain fabrication, interception, Non-Repudiation and Integrity in terms of security.” (May 2024)
“Describe the critical characteristics of information. How are they used in computer security?” (May 2023)
The short answer
Information security protects information and systems from people who should not read, change or stop them. Its core goals are confidentiality, integrity and availability (the CIA triad), with authentication and non-repudiation added. A threat is a possible danger to these goals. An attack is a deliberate act that carries out a threat.
Write these points
Critical characteristics of information
Characteristic
Meaning
Used in security as
Confidentiality
Only allowed people can read it
Encryption, access control
Integrity
It is whole and unchanged
Hashes, MACs, signatures
Availability
It can be used when needed
Backups, DoS protection
Authenticity
It is genuine, from the claimed source
Passwords, certificates
Accuracy
It has no errors
Input checks, audit
Utility and possession
It is useful and held by its owner
Key custody, asset control
Four kinds of attack (Stallings)
Interruption: the message never arrives, for example a cut cable or a DoS attack. It attacks availability.
Interception: an outsider reads the message, for example wiretapping. It attacks confidentiality.
Modification: an outsider changes the message on the way. It attacks integrity.
Fabrication: an outsider sends a fake message in someone else's name. It attacks authenticity.
Passive and active attacks
Passive: release of message contents and traffic analysis. Hard to detect, so the aim is to prevent them with encryption.
Active: masquerade, replay, modification of messages and denial of service. Hard to prevent fully, so the aim is to detect and recover.
Non-repudiation stops a sender or receiver from denying a message later. A digital signature gives it.
Security and protection
Point
Protection
Security
Meaning
Inner mechanism that controls which process or user reaches which resource
The wider aim of keeping the whole system safe from threats
Threats handled
Inside the system
Inside and outside, including network attacks
Examples
File permissions, memory protection
Firewalls, encryption, authentication, policies
Mapping attacks on an online bank transfer.
Riya sends "Pay 5,000 to Aman" from her bank app.
The bank server is flooded, so the request fails: interruption, availability lost.
Someone on the same Wi-Fi reads the request: interception, confidentiality lost.
The amount is changed to 50,000 on the way: modification, integrity lost.
An attacker sends a fresh request in Riya's name: fabrication, authenticity lost.
Riya later says she never sent it, but her signature proves she did: non-repudiation.
Real-life example
A sealed envelope keeps a letter private, the seal shows nobody opened it, the signature shows who wrote it and the post office makes sure it arrives. Those are confidentiality, integrity, authenticity and availability.
Figure: interruption, interception, modification and fabrication
Same or opposite: passive and active attacks
Point
Passive
Active
Same or opposite
Changes the data
No
Yes
Opposite
Threat to the system
Yes
Yes
Same
Examples
Eavesdropping, traffic analysis
Masquerade, replay, modification, DoS
Opposite
Defence
Prevent with encryption
Detect and recover
Opposite
Exam tip. Start with the CIA triad and define threat and attack. Then list interruption, interception, modification and fabrication with the goal each one hits. Draw the four small pictures. Add the security and protection table if it is asked.
Q2. Steganography and how it differs from cryptography
Asked 3 times in 2023, 2024, 2025 · Unit 1
From the papers
“Compare steganography with encryption techniques.” (Jun 2025)
“What is Steganography? How it differs from Cryptography?” (May 2023)
“Write a short note on: Steganography” (May 2024)
The short answer
Steganography hides a secret message inside an ordinary file, such as an image, audio or video, so nobody knows the message exists. Cryptography makes the message unreadable but does not hide that it exists.
Write these points
Types
Image: least significant bit (LSB) method changes the last bit of pixel values. The picture looks the same.
Audio: hides bits in sound samples or echoes.
Video: hides data across frames.
Text: uses spaces, line shifts or chosen words.
Network: hides bits in unused header fields of packets.
Steganalysis tools detect hidden data: StegExpose, stegdetect. They look for odd statistics in pixel bits.
LSB example.
Pixel value 10110100. To hide bit 1, change the last bit: 10110101. The value changes from 180 to 181, which the eye cannot see.
Real-life example
A spy can post a normal holiday photo on social media with a message hidden in its pixels. Anyone sees a beach. Only the receiver with the tool and password reads the message.
Figure: Hiding a message in an image
Same or opposite: steganography and cryptography
Point
Steganography
Cryptography
Same or opposite
Hides
That a message exists
The meaning of the message
Opposite
Output looks like
A normal file
Random text
Opposite
Broken by
Steganalysis
Cryptanalysis
Opposite
Protects secret data
Yes
Yes
Same
Can be used together
Yes
Yes
Same
Exam tip. Define both terms in one line each. Then give the comparison table. Explain LSB with a small binary example and name two tools.
Q3. RSA algorithm: Euler's totient, encryption, decryption and attacks
Asked 3 times in 2023, 2024, 2025 · Unit 3
From the papers
“Explain Encryption and Decryption in RSA algorithm. Also discuss various attacks on it.” (Jun 2025)
“Consider a plain text alphabet G. Using RSA algorithm and the value as e = 3, d = 11 and n = 15, find out what this plain text alphabet encrypt to, and verify that upon decryption it transform back to G.” (May 2024)
“What is Euler's totient? Also explain the Factoring problem of RSA algorithm.” (May 2023)
The short answer
RSA is a public key algorithm whose security rests on how hard it is to factor n, the product of two large primes. Each user has a public key (e, n) to encrypt and a private key (d, n) to decrypt, with e × d ≡ 1 mod φ(n), where φ is Euler's totient.
Write these points
Key generation
Choose two large primes p and q. Compute n = p × q.
Compute φ(n) = (p − 1)(q − 1).
Choose e with 1 < e < φ(n) and gcd(e, φ(n)) = 1.
Find d = e⁻¹ mod φ(n).
Public key {e, n}. Private key {d, n}.
Encryption and decryption
Encrypt: C = Mᵉ mod n. Decrypt: M = Cᵈ mod n. It works because of Euler's theorem.
Strength: with keys of 2048 bits, factoring n is out of reach. Attacks are brute force on d, factoring n, timing attacks and chosen ciphertext attacks.
Euler's totient and the factoring problem
Euler's totient φ(n) is the count of numbers from 1 to n that share no factor with n. For a prime p, φ(p) = p − 1. For n = p × q, φ(n) = (p − 1)(q − 1). Example: φ(15) = 2 × 4 = 8.
Factoring problem: anyone who can split n into p and q can compute φ(n) and then d from e. For n of 2,048 bits no known method can do this in practice, which is what keeps RSA safe.
Attacks on RSA
Brute force: try every private key. Defeated by a very large d.
Mathematical (factoring): factor n to get p and q. Defeated by primes of 1,024 bits or more each.
Timing attack: measure how long decryption takes to guess bits of d. Defeated by constant-time code or blinding.
Chosen ciphertext attack: feed chosen ciphertexts and study the outputs. Defeated by padding such as OAEP.
Small e with no padding: if Mᵉ < n, the attacker takes the e-th root. Defeated by padding.
May 2024 paper: e = 3, d = 11, n = 15, plaintext G.
Number the letters A = 0, B = 1, ..., so G = 6.
Check the keys: n = 15 = 3 × 5, so φ(15) = 2 × 4 = 8. e × d = 33 = 4 × 8 + 1, so e × d ≡ 1 mod 8. The keys are a valid pair.
Encrypt: C = 6³ mod 15 = 216 mod 15 = 6.
Decrypt: M = 6¹¹ mod 15. Since 6² = 36 ≡ 6 mod 15, every power of 6 is 6, so M = 6 = G. It transforms back.
With A = 1 numbering, G = 7: C = 7³ mod 15 = 343 mod 15 = 13. Then 13¹¹ mod 15 = 7 = G. Either way decryption gives G back.
Key generation with p = 7, q = 11.
n = 77. φ(n) = 6 × 10 = 60.
d: 17 × d ≡ 1 (mod 60). 17 × 53 = 901 = 15 × 60 + 1, so d = 53.
C = 8¹⁷ mod 77, by squaring: 8² = 64, 8⁴ = 64² mod 77 = 15, 8⁸ = 15² mod 77 = 71.
8¹⁶ = 71² mod 77 = 36. 8¹⁷ = 36 × 8 mod 77 = 57.
Decrypt: 57⁵³ mod 77 = 8. The original message comes back.
Real-life example
When you open a website over HTTPS, the server's certificate often carries an RSA public key. Your browser uses it to check the server, so you know you are talking to the real bank.
Figure: RSA in one look
Same or opposite: RSA and Diffie-Hellman
Point
RSA
Diffie-Hellman
Same or opposite
Based on
Factoring
Discrete logarithm
Opposite
Encrypts messages
Yes
No
Opposite
Gives digital signatures
Yes
No
Opposite
Public key method
Yes
Yes
Same
Exam tip. Write key generation, encryption and decryption first. Then solve the numeric fully with every mod step. Add Euler's totient and the factoring problem in two lines each. List four attacks with their defence.
“Hashing does not ensure integrity of message in network communication. Justify answer with example.” (Jun 2025)
“What is Hashing? What are the benefits of Hashing?” (May 2023)
“Write a short note on: Hash function” (May 2024)
The short answer
A hash function maps a message of any length to a short fixed-length message digest that is one-way and collision resistant. MD5 and SHA are common ones, used for message authentication and digital signatures.
Write these points
Properties of a cryptographic hash
Works on input of any size. Output has a fixed size.
Easy to compute H(M).
Preimage resistant (one-way): given h, it is hard to find M with H(M) = h.
Second preimage resistant: given M, it is hard to find another M′ with the same hash.
Collision resistant: it is hard to find any two messages with the same hash. By the birthday paradox an n-bit hash needs about 2ⁿ⸍² tries, so SHA-512 needs about 2²⁵⁶.
SHA-512 steps
Pad the message so its length is 896 mod 1024 bits.
Append the length as a 128-bit number. The message is now a multiple of 1024 bits.
Initialise eight 64-bit buffers a to h with fixed values.
Process each 1024-bit block in 80 rounds. Each round uses a 64-bit word Wₜ made from the block and a constant Kₜ.
Output the final buffer as the 512-bit digest.
Feature
MD5
SHA-1
SHA-512
Digest size
128 bits
160 bits
512 bits
Block size
512 bits
512 bits
1024 bits
Rounds
64
80
80
Status
Broken
Broken
Secure
Message authentication.
Attacks it stops: masquerade, content change, sequence change and timing change.
Two levels: a low-level function makes an authenticator (MAC, hash or encryption). A higher-level protocol uses it to verify the message.
Why a hash alone does not ensure integrity
A plain hash has no key. An attacker who changes the message on the way can compute the hash of the new message and send it along. The receiver checks the new hash, finds it matching and accepts the forged message. So a hash proves integrity only if the hash itself is protected: encrypted, signed or made with a secret key (HMAC).
Changing a fee notice on the way.
College sends: M = "Fee due 40,000" with H(M) = 7a3f... (SHA-256).
Attacker changes it to M' = "Fee due 4,000" and computes H(M') = c91e... himself.
Student receives M' with c91e..., recomputes H(M') = c91e... and it matches. The forgery passes.
With HMAC: the tag is HMAC(K, M). The attacker has no K, so he cannot make a valid tag for M'. The student's check fails and the change is caught.
Real-life example
When you download Ubuntu or a big game file, the site shows a SHA-256 value. Your computer computes the hash of the file you got. If it matches, the file was not changed on the way.
Figure: SHA-512 overview
Same or opposite: MD5 and SHA-512
Point
MD5
SHA-512
Same or opposite
Digest size
128 bits
512 bits
Opposite
Block size
512 bits
1024 bits
Opposite
Collisions found
Yes, broken
No
Opposite
Uses padding and length field
Yes
Yes
Same
One-way function
Yes
Yes
Same
Exam tip. Give the properties of a hash, the SHA-512 steps and the MD5 and SHA table. If the question says hashing does not ensure integrity, explain that anyone can recompute an unkeyed hash and show the HMAC fix with the fee example.
“Illustrate the three common types of firewalls with diagrams.” (May 2024)
“What is Firewall? How Does a Firewall work?” (May 2023)
“Write short notes on: Firewalls” (Jun 2025)
The short answer
A firewall is hardware or software placed between a trusted network and an untrusted one (such as the Internet). It checks every packet or connection against a set of rules and allows or blocks it.
Write these points
Design goals
All traffic between the inside and the outside must pass through the firewall.
Only traffic allowed by the security policy may pass.
The firewall itself must be hard to break into.
Types
Packet filtering firewall: checks each packet's source and destination IP, port and protocol against rules. Fast but blind to the content.
Stateful inspection firewall: keeps a table of open connections. A reply packet passes only if it belongs to a known connection.
Application level gateway (proxy): works at the application layer for HTTP, FTP or mail. It can read and filter the content. Slower.
Circuit level gateway: sets up two TCP connections, one on each side. It relays bytes without reading them. Example: SOCKS.
Next-generation firewall: adds intrusion prevention and application awareness.
Personal firewall: runs on one PC, such as Windows Defender Firewall.
Placement
DMZ: public servers (web, mail) sit in a separate zone between two firewalls, so a break-in there does not reach the inside network.
Limits: a firewall cannot stop attacks that bypass it, inside threats or malware in allowed traffic.
Packet filter rules for a college web server.
Rule 1: allow TCP from any address to 10.0.0.5 port 443 (HTTPS).
Rule 2: allow TCP from 10.0.1.0/24 (the lab) to 10.0.0.5 port 22 (SSH).
Rule 3: deny everything else.
A packet from 49.36.10.2 to port 443 matches rule 1 and passes. A packet from 49.36.10.2 to port 22 matches no allow rule, so rule 3 drops it.
Real-life example
A college network allows students to open websites but blocks gaming ports and torrent traffic. The firewall at the campus gateway applies these rules to every packet.
Figure: a DMZ between an outer and an inner firewallFigure: Firewall with a DMZ
Same or opposite: packet filter and application gateway
Point
Packet filter
Application gateway
Same or opposite
OSI layer
Network and transport
Application
Opposite
Reads content
No
Yes
Opposite
Speed
Fast
Slower
Opposite
Applies a security policy
Yes
Yes
Same
Exam tip. Draw a network with the firewall between the Internet and the LAN, with a DMZ. Explain three types with one line on how each decides. End with what a firewall cannot do.
Q6. Intrusion detection system and password management
Asked 3 times in 2023, 2024, 2025 · Unit 5
From the papers
“What is Intrusion Detection? Explain Password Management.” (Jun 2025)
“Estimate what is the role of intrusion detection system. What are the three benefits that can be provided by the intrusion detection system?” (May 2024)
“Write short notes on: IDS” (May 2023)
The short answer
An intrusion detection system (IDS) watches a network or a computer for signs of attack and raises an alert. It works after the firewall: the firewall blocks what it can, the IDS spots what got through or what starts inside. Password management is the set of rules and methods that keep passwords hard to guess and safe when stored.
Write these points
Role of an IDS and its three benefits
Quick detection: an intruder found early can be thrown out before damage or data loss.
Deterrent: a known, working IDS discourages attackers.
Learning: the IDS collects facts about attack methods, which are used to make prevention stronger.
Types of IDS
Basis
Type
How it works
Where it looks
Host-based (HIDS)
Watches one computer's logs, files and system calls
Where it looks
Network-based (NIDS)
Watches packets on a network segment through a sensor
How it decides
Signature (misuse)
Matches known attack patterns; misses new attacks
How it decides
Anomaly (statistical)
Learns normal behaviour, flags large deviations; can give false alarms
Password management
Store only a salted hash: H(salt + password), never the password itself.
Salt is a random value stored with each hash, so two users with the same password get different hashes and ready-made hash tables fail.
Password selection: user education, computer-generated passwords, reactive checking (the admin runs a cracker on stored hashes) and proactive checking (the system refuses weak passwords when they are set).
Lock the account after a few failures, ask for a second factor (OTP) and make users change passwords that leak.
Anomaly detection on student portal logins.
Normal: a student fails to log in about 2 times a day, with a standard deviation of 1.
Rule: alert when failures go above mean + 3 × deviation = 2 + 3 × 1 = 5 in a day.
One account shows 40 failed logins in 5 minutes. 40 is far above 5, so the IDS raises a password guessing alert.
The account is locked for 15 minutes and the source IP is reported to the firewall team.
Salted password storage.
Two students both choose the password rgpv@123.
Student 1 gets salt x9 and the system stores H(x9 + rgpv@123). Student 2 gets salt k4 and the system stores H(k4 + rgpv@123).
The two stored hashes are different, so stealing the table does not show that they share a password.
An attacker must now attack each hash separately, which multiplies his work.
Real-life example
A bank has locked doors (the firewall) and also CCTV with a guard watching the screens (the IDS). The doors stop most people. The CCTV catches the one who still gets in.
Figure: where a network IDS and a host IDS sit
Same or opposite: signature and anomaly detection
Point
Signature
Anomaly
Same or opposite
Detects new attacks
No
Yes
Opposite
Raises alerts on suspicious activity
Yes
Yes
Same
False alarms
Few
More
Opposite
Needs
Updated signature list
Model of normal behaviour
Opposite
Exam tip. Define IDS, give its role and the three benefits, then the HIDS, NIDS, signature and anomaly table with the placement figure. For password management, explain salted hashes and the four selection strategies.
“What is play fair cipher? Explain with suitable example.” (Jun 2025)
“Encrypt the following message using Caesar cipher with key = 1. Plaintext is "Laughter is the best medicine".” (May 2024)
The short answer
Cryptanalysis is the study of breaking ciphers without knowing the key. A brute force attack simply tries every key, while classical ciphers such as Caesar and Playfair fall easily to frequency analysis.
Write these points
Types of cryptanalytic attack
Ciphertext only: the attacker has only ciphertext.
Known plaintext: the attacker has some plaintext and its ciphertext.
Chosen plaintext: the attacker can get any chosen plaintext encrypted.
Chosen ciphertext: the attacker can get chosen ciphertext decrypted.
Brute force: tries all keys. A 56-bit DES key has 2⁵⁶ keys. A 128-bit AES key has 2¹²⁸, which is out of reach.
Differential cryptanalysis studies how differences in input pairs change the output differences, to recover key bits.
Classical ciphers
Caesar: shift each letter by k. C = (P + k) mod 26. Only 25 keys, so brute force breaks it at once.
Playfair: 5 × 5 key square, encrypts letter pairs. Same row: take the letter to the right. Same column: take the letter below. Otherwise: take the corners of the rectangle.
Transposition: keeps the letters but changes their order, for example by writing rows and reading columns.
Frequency analysis: in English, E, T and A are most common. The most common ciphertext letter in a substitution cipher is probably E.
May 2024 paper: Caesar cipher with key = 1.
Rule: C = (P + 1) mod 26, so each letter moves one place forward. Spaces stay.
is → jt, the → uif, best → cftu, medicine → nfejdjof.
Ciphertext: Mbvhiufs jt uif cftu nfejdjof. Decrypt by moving each letter one place back.
Playfair cipher: encrypt balloon with keyword MONARCHY.
Square: M O N A R / C H Y B D / E F G I-J K / L P Q S T / U V W X Z.
Split into pairs and break the double l with x: ba lx lo on.
ba: same column, take the letter below each: IB. lx: rectangle, swap columns: SU.
lo: rectangle: PM. on: same row, take the letter to the right: NA.
Ciphertext: IBSUPMNA.
Real-life example
In WWII, codebreakers at Bletchley Park broke the German Enigma cipher by cryptanalysis. They used known words like weather reports in the messages, a known plaintext attack.
Figure: Kinds of cryptanalytic attack
Same or opposite: substitution and transposition cipher
Point
Substitution
Transposition
Same or opposite
Changes
The letters
The order of letters
Opposite
Letter frequencies
Change
Stay the same
Opposite
Example
Caesar, Playfair
Rail fence, columnar
Opposite
Classical cipher
Yes
Yes
Same
Exam tip. State the Caesar rule C = (P + k) mod 26 and solve the given text letter by letter. For Playfair, draw the 5 × 5 square, write the three rules (same row, same column, rectangle) and solve a short word.
Q8. Diffie-Hellman key exchange, primitive root and modular arithmetic
Asked 2 times in 2024, 2025 · Unit 3
From the papers
“What is Primitive Root? Explain Diffie-Hellman Key exchange algorithm with example.” (Jun 2025)
“Evaluate using Diffie-Hellman key exchange technique. Users A and B use a common prime q = 11 and a primitive root alpha = 7. i) If user A has private key XA = 3. What is A's public key YA? ii) If user B has private key XB = 6. What is B's public key YB?” (May 2024)
“To find i) 75 mod 119 ii) 89 mod 119 iii) Primitive root of 11 iv) Primitive root of 5” (May 2024)
The short answer
Diffie-Hellman lets two users agree on a shared secret key over an open channel without sending the key. It uses a prime q and a primitive root α of q. Its safety rests on how hard the discrete logarithm is.
Write these points
Steps
Both agree on a prime q and a primitive root α of q.
A picks private Xₐ and sends Yₐ = α^Xₐ mod q.
B picks private X_B and sends Y_B = α^X_B mod q.
A computes K = Y_B^Xₐ mod q. B computes K = Yₐ^X_B mod q. Both get α^(XₐX_B) mod q.
Man-in-the-middle attack: an attacker can swap Yₐ and Y_B with its own values. Signing the values or using certificates prevents this.
Computational DH problem: given α, α^a and α^b, find α^(ab). Decisional DH problem: tell α^(ab) apart from a random value. Both are believed hard.
Primitive root
α is a primitive root of a prime q if α¹, α², ..., α^(q−1) mod q give every number from 1 to q − 1 once each. Then every public value is reachable and the discrete logarithm is hard to undo.
May 2024 paper: q = 11, α = 7, Xₐ = 3, X_B = 6.
Check α: powers of 7 mod 11 are 7, 5, 2, 3, 10, 4, 6, 9, 8, 1. All ten values appear, so 7 is a primitive root of 11.
A's public key: Yₐ = 7³ mod 11 = 343 mod 11 = 2.
B's public key: Y_B = 7⁶ mod 11 = (7³)² mod 11 = 2² = 4.
Shared key: A computes 4³ mod 11 = 64 mod 11 = 9. B computes 2⁶ mod 11 = 64 mod 11 = 9. Both get K = 9.
May 2024 paper: mod values and primitive roots.
75 mod 119 = 75 and 89 mod 119 = 89, since each is smaller than 119.
Primitive roots of 11: test 2: powers 2, 4, 8, 5, 10, 9, 7, 3, 6, 1 give all ten values, so 2 is one. The full list is 2, 6, 7, 8 (φ(10) = 4 of them).
Primitive roots of 5: 2 gives 2, 4, 3, 1 and 3 gives 3, 4, 2, 1. So they are 2 and 3.
Real-life example
When your browser makes a TLS connection, it usually runs an elliptic-curve version of Diffie-Hellman. Even if someone records the whole conversation, they cannot work out the session key.
Figure: Diffie-Hellman with q = 11, alpha = 7
Same or opposite: public and private values in Diffie-Hellman
Point
Public
Private
Same or opposite
Values
q, α, Yₐ, Y_B
Xₐ, X_B, K
Opposite
Sent over the network
Yes
Never
Opposite
Needed to compute K
Yes
Yes
Same
Known to an eavesdropper
Yes
No
Opposite
Exam tip. Define primitive root first, then write the four steps of the exchange. Solve the numeric with every power shown and check that both sides get the same key. One line on the man-in-the-middle attack adds value.
Q9. Message authentication and message authentication code (MAC)
Asked 2 times in 2023, 2025 · Unit 3
From the papers
“How message authentication code can be used to achieve message authentication and confidentiality?” (Jun 2025)
“What types of attacks are addressed by message authentication?” (May 2023)
The short answer
Message authentication checks that a message really came from the claimed sender and was not changed. A message authentication code (MAC) is a short tag computed from the message and a secret key: T = MAC(K, M). Only someone with K can make a correct tag.
Write these points
Attacks addressed by message authentication
Masquerade: a fake message in someone else's name.
Content modification: changes to the message, such as an amount.
Sequence modification: messages added, removed or reordered.
Timing modification: messages delayed or replayed.
Source repudiation is handled by a digital signature, since a MAC key is shared by both sides.
How a MAC is used
Use
Sender sends
Gives
Authentication only
M plus MAC(K1, M)
Authenticity and integrity; M travels in clear
Authentication and confidentiality (tag on plaintext)
E(K2, M plus MAC(K1, M))
Both; tag hidden inside the encryption
Authentication and confidentiality (tag on ciphertext)
E(K2, M) plus MAC(K1, E(K2, M))
Both; receiver checks the tag before decrypting
Two different keys are used: K1 for the MAC and K2 for encryption.
Common MACs: HMAC (built from a hash such as SHA-256) and CMAC (built from a block cipher such as AES).
A fee payment message with a MAC.
College portal and bank share the key K1. The portal sends M = "Roll 21, paid 40,000" with tag T = HMAC(K1, M), say 3F9A.
An attacker changes M to "Roll 21, paid 4,000". Without K1 he cannot make the right tag, so he leaves 3F9A or guesses.
The bank computes HMAC(K1, new M) = 7C21. It does not match 3F9A, so the message is rejected.
To also hide the amount, the portal sends E(K2, M plus T). The attacker now sees neither the amount nor the tag.
Real-life example
A hostel warden's stamp on a leave slip works like a MAC. The guard knows the real stamp, so a slip with a changed date or a home-made stamp is caught at the gate.
Figure: MAC with confidentiality
Same or opposite: MAC and hash
Point
MAC
Hash
Same or opposite
Uses a secret key
Yes
No
Opposite
Gives a fixed-size output from the message
Yes
Yes
Same
Proves the sender
Yes
No
Opposite
Example
HMAC, CMAC
SHA-256, MD5
Opposite
Exam tip. List the attacks message authentication handles, define MAC as T = MAC(K, M), then draw the three uses with keys K1 and K2. End with the fee example.
Q10. Kerberos: requirements, versions and double encryption
Asked 2 times in 2024, 2025 · Unit 4
From the papers
“Why do these need to use double encryption when using Kerberos?” (Jun 2025)
“Formulate what are the requirements of Kerberos? Explain about Kerberos version.” (May 2024)
The short answer
Kerberos is an authentication service for networks. It uses symmetric keys and a trusted third party, so a user logs in once and then gets access to many servers without sending the password again.
Write these points
Parts
AS (Authentication Server): checks the user and gives a ticket-granting ticket (TGT).
TGS (Ticket Granting Server): takes the TGT and gives a service ticket for one server.
V: the server the user wants, such as a file server.
Steps (Kerberos v4)
Client → AS: user ID and TGS ID.
AS → Client: TGT and a session key, encrypted with a key made from the user's password.
Client → TGS: TGT, an authenticator and the server ID.
TGS → Client: service ticket and a client-server session key.
Client → V: service ticket and authenticator. V can reply to prove itself (mutual authentication).
Realms and versions
A realm is one Kerberos domain. For inter-realm access, the local TGS gives a ticket for the remote TGS. The two TGSs share a key.
v5 over v4: any encryption algorithm (not only DES), any network address type, longer ticket lifetimes, forwarding of tickets, simpler inter-realm trust.
Riya opens a file on the college file server.
1. Riya logs in. Her PC asks the AS for a ticket. The AS replies with a TGT, sealed with a key made from her password, so only her PC can open it.
2. Her PC sends the TGT and the name "fileserver" to the TGS. The TGS replies with a service ticket for the file server.
3. Her PC sends the service ticket and an authenticator (her name and the time) to the file server. The server opens the ticket with its own key and lets her in.
Her password was typed once and never sent over the network. The TGT lets her reach other services without typing it again.
Requirements of Kerberos
Secure: an eavesdropper should not get enough to pose as a user.
Reliable: many services depend on it, so it must keep working; servers are duplicated.
Transparent: the user types a password once and does not notice the rest.
Scalable: it should serve a large number of clients and servers.
Double encryption in version 4
In Kerberos v4 the ticket is already encrypted with the server's key. The AS or TGS then encrypts the whole reply, ticket included, again with the client's key. That second layer is the double encryption. It was used so that only the right client can open the reply and read the session key. Version 5 dropped it, because the ticket was already safe and the extra layer only cost time.
Point
Version 4
Version 5
Encryption
DES only
Any algorithm, tagged with its type
Ticket lifetime
Up to about 21 hours
Any start and end time
Double encryption
Yes
No
Other realms
Hard
Supported
Real-life example
In an office, you log in to a Windows PC once in the morning. After that you open shared folders, printers and the mail server without typing your password again. Behind the scenes, Active Directory gave your PC a Kerberos ticket at login. Each server trusts that ticket, so your password never travels over the network.
Figure: the six Kerberos messagesFigure: Kerberos message flow
Same or opposite: Kerberos v4 and v5
Point
v4
v5
Same or opposite
Encryption
DES only
Any algorithm
Opposite
Ticket lifetime
Up to about 21 hours
Any start and end time
Opposite
Ticket forwarding
No
Yes
Opposite
Uses AS and TGS
Yes
Yes
Same
Exam tip. Write the requirements, the parts (AS, TGS, server) and the message steps. Draw the flow. Then explain double encryption in v4 and give the v4 and v5 table.
Q11. Advanced Encryption Standard (AES): steps, key expansion, confusion and diffusion
Asked 2 times in 2024, 2025 · Unit 2
From the papers
“Explain the terms diffusion and confusion. Explain steps of AES.” (Jun 2025)
“Explain in detail the key generation in AES algorithm and its expansion format.” (May 2024)
The short answer
AES (Advanced Encryption Standard) is a symmetric block cipher that works on 128-bit blocks with a 128, 192 or 256-bit key, using 10, 12 or 14 rounds. Each round mixes the data with four steps. Confusion hides the link between key and ciphertext. Diffusion spreads each plaintext bit over many ciphertext bits. AES gets both from its steps.
Write these points
Steps of each round
SubBytes: each byte is replaced through a fixed S-box. This gives confusion.
ShiftRows: row 1 is not moved, row 2 shifts left 1 byte, row 3 by 2 and row 4 by 3. This gives diffusion across columns.
MixColumns: each column is multiplied by a fixed matrix in GF(2⁸). This gives diffusion within a column. It is skipped in the last round.
AddRoundKey: the state is XORed with the round key. This is the only step that uses the key.
Before round 1 there is one AddRoundKey with the first key. Decryption uses the inverse steps in reverse order.
Key expansion (AES-128)
The 16-byte key fills the first 4 words w[0] to w[3].
Each next word: w[i] = w[i − 1] XOR w[i − 4].
For every 4th word (i divisible by 4), w[i − 1] first goes through g(): RotWord (rotate the 4 bytes left by one), SubWord (S-box on each byte), then XOR with the round constant Rcon.
This gives 44 words, that is 11 round keys of 4 words each.
First step of key expansion (FIPS-197 test key).
Key words: w[0] = 2b7e1516, w[3] = 09cf4f3c.
RotWord(w[3]) = cf4f3c09.
SubWord through the S-box: cf→8a, 4f→84, 3c→eb, 09→01, giving 8a84eb01.
XOR Rcon[1] = 01000000: 8b84eb01.
w[4] = w[0] XOR 8b84eb01 = 2b7e1516 XOR 8b84eb01 = a0fafe17, which matches the standard's table.
Real-life example
Shuffling a deck of cards well is like AES. Each cut and riffle (one round) moves cards a little. After ten good shuffles no card is where it started and you cannot guess the order.
Figure: AES round structure and key expansion
Same or opposite: AES and DES
Point
AES
DES
Same or opposite
Block size
128 bits
64 bits
Opposite
Symmetric block cipher
Yes
Yes
Same
Key size
128, 192, 256 bits
56 bits
Opposite
Structure
Substitution permutation network
Feistel network
Opposite
Exam tip. Define confusion and diffusion, list the four round steps with what each gives and draw the round figure. For key generation, write the w[i] rule and the g() function, then show the first word of the expansion.
Q12. Block cipher modes of operation and why ECB is rarely used
Asked 2 times in 2024, 2025 · Unit 2
From the papers
“Explain working of ECB. Why ECB (Electronic Code Book) is rarely used to encrypt message?” (Jun 2025)
“Give the five modes of operation of Block cipher. Explain any two.” (May 2024)
The short answer
A block cipher encrypts one fixed-size block at a time. Modes of operation say how to use it on a long message. NIST gives five: ECB, CBC, CFB, OFB and CTR. ECB encrypts each block on its own, so equal plaintext blocks give equal ciphertext blocks. That leaks patterns, which is why ECB is rarely used.
Write these points
The five modes
Mode
How it works
Used for
ECB (Electronic Code Book)
Cᵢ = E(K, Pᵢ), each block alone
One short value such as a key
CBC (Cipher Block Chaining)
Cᵢ = E(K, Pᵢ XOR Cᵢ₋₁), C₀ = IV
General messages, files
CFB (Cipher Feedback)
Encrypt the previous ciphertext, XOR with plaintext
Streams of characters
OFB (Output Feedback)
Encrypt the previous output, XOR with plaintext
Noisy channels such as satellite
CTR (Counter)
Cᵢ = Pᵢ XOR E(K, counter + i)
Fast parallel work, disk and network encryption
Why ECB is rarely used
Equal plaintext blocks give equal ciphertext blocks, so patterns in the data show in the ciphertext.
An attacker can cut, copy or reorder blocks without being noticed.
An image encrypted in ECB still shows its outline. CBC and CTR hide it.
The same key and block always give the same output, so a known block (such as a fixed header) can be spotted in every message.
ECB and CBC on equal blocks (toy cipher).
Use a 4-bit toy cipher E(x) = x XOR 1010. Plaintext blocks P1 = P2 = 0110. IV = 1100.
ECB: C1 = 0110 XOR 1010 = 1100 and C2 = 1100. The repeat shows.
CBC gives 0000 and 1100 for the same two blocks, so the repeat is hidden.
Real-life example
Writing every "A" in a letter as "%" is like ECB: a reader soon spots that "%" is the most common sign. Chaining each word to the one before, as CBC does, removes that clue.
Figure: ECB and CBC on two equal blocks
Same or opposite: ECB and CBC
Point
ECB
CBC
Same or opposite
Equal blocks give equal ciphertext
Yes
No
Opposite
Uses the block cipher with one key
Yes
Yes
Same
Needs an IV
No
Yes
Opposite
Encryption in parallel
Yes
No
Opposite
Exam tip. Name the five modes with the formula for each and give the table. Explain ECB with its formula and give the three reasons it is rarely used. The toy ECB and CBC example with the figure earns full marks.
“What are Viruses? Explain the virus related threats and the counter measures applied.” (May 2024)
“What is Virus and Worms? Explain different types of viruses.” (May 2023)
The short answer
A virus is a piece of code that attaches itself to a program or file and copies itself when that program runs. A worm is a separate program that copies itself across a network without needing a host file or a user. Both are malicious software (malware).
Write these points
Phases of a virus
Dormant: waits for a trigger such as a date.
Propagation: copies itself into other programs or disks.
Triggering: the condition is met.
Execution: the payload runs, from a message to deleting files.
Types of viruses
Type
What it does
Boot sector
Infects the boot record; runs when the system starts
File infector
Attaches to executable files
Macro
Lives in documents (Word, Excel macros); spreads when files are shared
Encrypted
Body is encrypted with a changing key; only a small decryptor is visible
Polymorphic
Changes its code on every copy, so signatures fail
Metamorphic
Rewrites itself completely on every copy
Stealth
Hides its changes from antivirus software
Virus related threats and countermeasures
Threats: data loss or theft, slow systems, spread to other users, backdoors for attackers, ransom demands.
Detection, identification, removal: find the infection, name the virus, remove it and restore the file.
Antivirus generations: simple scanners (signatures), heuristic scanners, activity traps (watch for virus-like actions) and full-featured protection.
Generic decryption: runs a suspect file in an emulator so an encrypted virus reveals itself.
Behaviour blocking: stops programs that try to change system files.
User side: update software, do not open unknown attachments, disable macros, keep backups.
How fast a worm spreads.
A worm on one lab PC infects 2 new PCs every hour. Each new PC does the same.
After 1 hour: 1 + 2 = 3 PCs. After 2 hours: 3 × 3 = 9. In general 3ⁿ after n hours.
After 4 hours: 3⁴ = 81 PCs. After 6 hours: 3⁶ = 729, more than a whole campus.
This is why worms are stopped at the network, by patching and blocking the port they use, not PC by PC.
Real-life example
A virus is like a cold that spreads when people shake hands: it needs a host and contact. A worm is like a rumour on a WhatsApp group: it spreads by itself to everyone connected.
Figure: life of a virus
Same or opposite: virus and worm
Point
Virus
Worm
Same or opposite
Needs a host file
Yes
No
Opposite
Copies itself
Yes
Yes
Same
Needs a user action
Usually
No
Opposite
Spreads through
Files, disks, documents
Networks
Opposite
Exam tip. Define virus and worm, give the four phases and the types table. For countermeasures, write detection, identification and removal, the antivirus generations and user habits.
“Write a short note on: DOS and DDOS attack” (May 2024)
The short answer
A denial of service (DoS) attack stops a service from serving genuine users by using up its bandwidth, memory or processing. A distributed DoS (DDoS) attack does the same from thousands of machines at once, usually a botnet of infected computers controlled by the attacker.
Write these points
Types of DoS attack
Type
How it works
SYN flood
Sends many TCP SYN requests with fake source IPs; the server keeps half-open connections until its table is full
UDP and ICMP flood
Sends huge volumes of packets to use up bandwidth
Reflection and amplification
Sends small requests with the victim's IP to DNS or NTP servers, which send large replies to the victim
Application layer (HTTP flood)
Sends many costly page or search requests
Ping of death and teardrop
Sends malformed packets that crash old systems
DDoS structure
The attacker infects many machines (bots or zombies) with malware.
A command and control server holds them.
On command, every bot floods the victim at the same time.
Because traffic comes from everywhere, blocking one IP does not help.
Defences
SYN cookies, so the server keeps no state for half-open connections.
Rate limiting and filtering at the firewall or router.
Ingress filtering at ISPs, so packets with fake source addresses are dropped.
A CDN or scrubbing service that absorbs the flood.
A response plan with the ISP.
SYN flood and amplification in numbers.
A server keeps 1,024 half-open connections, each held for 75 seconds.
The attacker sends 100 fake SYNs a second. The table fills in 1,024 ÷ 100 ≈ 10 seconds and real users are refused.
Amplification: a 60-byte DNS query returns a 3,000-byte reply, a factor of 3,000 ÷ 60 = 50.
1,000 bots each sending 1 Mbps of queries make 1,000 × 1 × 50 = 50,000 Mbps = 50 Gbps at the victim.
Real-life example
On the day results come out, so many students open the RGPV site that it stops loading. That is an accidental DoS. A DDoS is the same jam made on purpose by thousands of hijacked computers.
Figure: a DDoS attack
Same or opposite: DoS and DDoS
Point
DoS
DDoS
Same or opposite
Sources
One machine
Thousands of machines
Opposite
Aim is to stop the service
Yes
Yes
Same
Blocking the source IP
Works
Does not work
Opposite
Traffic size
Limited
Very large
Opposite
Exam tip. Define DoS and DDoS, give the types table, draw the botnet flow and list the defences. The SYN flood numbers make a good short example.
Q15. Symmetric (private key) and public key cryptography compared
Asked 2 times in 2023, 2025 · Unit 3
From the papers
“Compare public and private key cryptography. Also list various algorithm for each.” (Jun 2025)
“How many keys are required for two people to communicate via cipher?” (May 2023)
The short answer
In symmetric (private or secret key) cryptography both sides use the same secret key to encrypt and decrypt. In public key (asymmetric) cryptography each user has a key pair: a public key that everyone may know and a private key that only the owner keeps. What one key encrypts, only the other key of the pair can decrypt.
Write these points
How many keys are needed
Two people with a symmetric cipher need 1 shared secret key.
Two people with public key cryptography need 2 key pairs, that is 4 keys, of which 2 are public.
For n users, symmetric needs n(n − 1)/2 secret keys, one per pair. Public key needs only n key pairs.
Public keys can be put in a directory or a certificate. Secret keys must reach each partner by a safe route.
Comparison
Point
Symmetric
Public key
Keys
One shared key
Public and private key pair
Speed
Fast
About 1,000 times slower
Key distribution
Hard: the key must be sent safely
Easy: the public key can be published
Gives
Confidentiality
Confidentiality, digital signatures, key exchange
Algorithms
DES, 3DES, AES, Blowfish, IDEA, RC4
RSA, Diffie-Hellman, ElGamal, ECC, DSA
Used together
Real systems such as TLS use both: public key cryptography to exchange a session key safely, then a fast symmetric cipher such as AES for the data.
Keys for a class of 100 students.
Symmetric: every pair needs its own key. 100 × 99 ÷ 2 = 4,950 secret keys.
Public key: each student needs one key pair. 100 pairs, that is 200 keys, of which 100 are public.
For 2 people: symmetric needs 2 × 1 ÷ 2 = 1 key. Public key needs 2 pairs.
So public key cryptography solves the key distribution problem. Symmetric ciphers do the heavy encryption.
Real-life example
A symmetric key is like one house key copied for each family member: everyone who has it can open the door. Public key is like a letter box: anyone can drop a letter in, but only the owner with the key can take letters out.
Figure: how the two are used together
Same or opposite: symmetric and public key cryptography
Point
Symmetric
Public key
Same or opposite
Same key for both sides
Yes
No
Opposite
Gives confidentiality
Yes
Yes
Same
Speed
Fast
Slow
Opposite
Example
AES
RSA
Opposite
Exam tip. Define both, answer the number of keys with the n(n − 1)/2 formula and give the comparison table with algorithms for each. One line on how TLS uses both earns extra marks.
What are the most important topics in Information Security?
By how often they were asked in the papers on this site: Security goals, threats and attacks: confidentiality, integrity, availability, non-repudiation (3 times); Steganography and how it differs from cryptography (3 times); RSA algorithm: Euler's totient, encryption, decryption and attacks (3 times); Hash functions and their use for integrity (3 times); Firewalls: working and types (3 times).
How were these Information Security important questions chosen?
Each topic was counted from the questions in the past papers listed on this site (2023-2025). Repeated is the number of times the topic came. The counts come from keyword matching and the answers are not teacher-reviewed, so use them together with your syllabus.
Is there a PDF of Information Security important questions with answers?
Yes. The Paperwala Imp Question & Answer PDF for Information Security is free to download from this page.
The 15 most repeated topics of Information Security (IT-801) for RGPV B.Tech IT semester 8, counted from the previous year papers on this site. Information Security is also searched for as IT-8001.