IT-801 Information Security

Information Security (IT-801) Important Questions

RGPV · B.Tech · IT · Semester 8 · Current scheme · 6 papers (2020 to 2025)

  1. Read the answers

    Start with the topics that come every year.

  2. Revise unit notes

    Go through each unit once to score more.

Paperwala Imp Topics - Information Security important questions

Download Paperwala Imp Question & Answer (PDF)

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

CharacteristicMeaningUsed in security as
ConfidentialityOnly allowed people can read itEncryption, access control
IntegrityIt is whole and unchangedHashes, MACs, signatures
AvailabilityIt can be used when neededBackups, DoS protection
AuthenticityIt is genuine, from the claimed sourcePasswords, certificates
AccuracyIt has no errorsInput checks, audit
Utility and possessionIt is useful and held by its ownerKey custody, asset control

Four kinds of attack (Stallings)

  1. Interruption: the message never arrives, for example a cut cable or a DoS attack. It attacks availability.
  2. Interception: an outsider reads the message, for example wiretapping. It attacks confidentiality.
  3. Modification: an outsider changes the message on the way. It attacks integrity.
  4. 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

PointProtectionSecurity
MeaningInner mechanism that controls which process or user reaches which resourceThe wider aim of keeping the whole system safe from threats
Threats handledInside the systemInside and outside, including network attacks
ExamplesFile permissions, memory protectionFirewalls, 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
Figure: interruption, interception, modification and fabrication

Same or opposite: passive and active attacks

PointPassiveActiveSame or opposite
Changes the dataNoYesOpposite
Threat to the systemYesYesSame
ExamplesEavesdropping, traffic analysisMasquerade, replay, modification, DoSOpposite
DefencePrevent with encryptionDetect and recoverOpposite

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.

Back to the topic list

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

  1. Image: least significant bit (LSB) method changes the last bit of pixel values. The picture looks the same.
  2. Audio: hides bits in sound samples or echoes.
  3. Video: hides data across frames.
  4. Text: uses spaces, line shifts or chosen words.
  5. Network: hides bits in unused header fields of packets.

Tools

  • Hiding tools: Steghide, OpenStego, S-Tools, OutGuess.
  • 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
Figure: Hiding a message in an image

Same or opposite: steganography and cryptography

PointSteganographyCryptographySame or opposite
HidesThat a message existsThe meaning of the messageOpposite
Output looks likeA normal fileRandom textOpposite
Broken bySteganalysisCryptanalysisOpposite
Protects secret dataYesYesSame
Can be used togetherYesYesSame

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.

Back to the topic list

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

  1. Choose two large primes p and q. Compute n = p × q.
  2. Compute φ(n) = (p − 1)(q − 1).
  3. Choose e with 1 < e < φ(n) and gcd(e, φ(n)) = 1.
  4. Find d = e⁻¹ mod φ(n).
  5. 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

  1. Brute force: try every private key. Defeated by a very large d.
  2. Mathematical (factoring): factor n to get p and q. Defeated by primes of 1,024 bits or more each.
  3. Timing attack: measure how long decryption takes to guess bits of d. Defeated by constant-time code or blinding.
  4. Chosen ciphertext attack: feed chosen ciphertexts and study the outputs. Defeated by padding such as OAEP.
  5. 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
Figure: RSA in one look

Same or opposite: RSA and Diffie-Hellman

PointRSADiffie-HellmanSame or opposite
Based onFactoringDiscrete logarithmOpposite
Encrypts messagesYesNoOpposite
Gives digital signaturesYesNoOpposite
Public key methodYesYesSame

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.

Back to the topic list

Q4. Hash functions and their use for integrity

Asked 3 times in 2023, 2024, 2025 · Unit 3

From the papers

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

  1. Works on input of any size. Output has a fixed size.
  2. Easy to compute H(M).
  3. Preimage resistant (one-way): given h, it is hard to find M with H(M) = h.
  4. Second preimage resistant: given M, it is hard to find another M′ with the same hash.
  5. 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

  1. Pad the message so its length is 896 mod 1024 bits.
  2. Append the length as a 128-bit number. The message is now a multiple of 1024 bits.
  3. Initialise eight 64-bit buffers a to h with fixed values.
  4. Process each 1024-bit block in 80 rounds. Each round uses a 64-bit word Wₜ made from the block and a constant Kₜ.
  5. Output the final buffer as the 512-bit digest.
FeatureMD5SHA-1SHA-512
Digest size128 bits160 bits512 bits
Block size512 bits512 bits1024 bits
Rounds648080
StatusBrokenBrokenSecure

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
Figure: SHA-512 overview

Same or opposite: MD5 and SHA-512

PointMD5SHA-512Same or opposite
Digest size128 bits512 bitsOpposite
Block size512 bits1024 bitsOpposite
Collisions foundYes, brokenNoOpposite
Uses padding and length fieldYesYesSame
One-way functionYesYesSame

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.

Back to the topic list

Q5. Firewalls: working and types

Asked 3 times in 2023, 2024, 2025 · Unit 5

From the papers

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

  1. All traffic between the inside and the outside must pass through the firewall.
  2. Only traffic allowed by the security policy may pass.
  3. The firewall itself must be hard to break into.

Types

  1. Packet filtering firewall: checks each packet's source and destination IP, port and protocol against rules. Fast but blind to the content.
  2. Stateful inspection firewall: keeps a table of open connections. A reply packet passes only if it belongs to a known connection.
  3. Application level gateway (proxy): works at the application layer for HTTP, FTP or mail. It can read and filter the content. Slower.
  4. Circuit level gateway: sets up two TCP connections, one on each side. It relays bytes without reading them. Example: SOCKS.
  5. Next-generation firewall: adds intrusion prevention and application awareness.
  6. 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 firewall
Figure: a DMZ between an outer and an inner firewall
Figure: Firewall with a DMZ
Figure: Firewall with a DMZ

Same or opposite: packet filter and application gateway

PointPacket filterApplication gatewaySame or opposite
OSI layerNetwork and transportApplicationOpposite
Reads contentNoYesOpposite
SpeedFastSlowerOpposite
Applies a security policyYesYesSame

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.

Back to the topic list

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

  1. Quick detection: an intruder found early can be thrown out before damage or data loss.
  2. Deterrent: a known, working IDS discourages attackers.
  3. Learning: the IDS collects facts about attack methods, which are used to make prevention stronger.

Types of IDS

BasisTypeHow it works
Where it looksHost-based (HIDS)Watches one computer's logs, files and system calls
Where it looksNetwork-based (NIDS)Watches packets on a network segment through a sensor
How it decidesSignature (misuse)Matches known attack patterns; misses new attacks
How it decidesAnomaly (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
Figure: where a network IDS and a host IDS sit

Same or opposite: signature and anomaly detection

PointSignatureAnomalySame or opposite
Detects new attacksNoYesOpposite
Raises alerts on suspicious activityYesYesSame
False alarmsFewMoreOpposite
NeedsUpdated signature listModel of normal behaviourOpposite

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.

Back to the topic list

Q7. Classical ciphers: Caesar and Playfair

Asked 2 times in 2024, 2025 · Unit 1

From the papers

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

  1. Ciphertext only: the attacker has only ciphertext.
  2. Known plaintext: the attacker has some plaintext and its ciphertext.
  3. Chosen plaintext: the attacker can get any chosen plaintext encrypted.
  4. Chosen ciphertext: the attacker can get chosen ciphertext decrypted.
  5. 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.
  6. 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.

Laughter → Mbvhiufs (L→M, a→b, u→v, g→h, h→i, t→u, e→f, r→s).

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
Figure: Kinds of cryptanalytic attack

Same or opposite: substitution and transposition cipher

PointSubstitutionTranspositionSame or opposite
ChangesThe lettersThe order of lettersOpposite
Letter frequenciesChangeStay the sameOpposite
ExampleCaesar, PlayfairRail fence, columnarOpposite
Classical cipherYesYesSame

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.

Back to the topic list

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

  1. Both agree on a prime q and a primitive root α of q.
  2. A picks private Xₐ and sends Yₐ = α^Xₐ mod q.
  3. B picks private X_B and sends Y_B = α^X_B mod q.
  4. A computes K = Y_B^Xₐ mod q. B computes K = Yₐ^X_B mod q. Both get α^(XₐX_B) mod q.
  5. 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.
  6. 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
Figure: Diffie-Hellman with q = 11, alpha = 7

Same or opposite: public and private values in Diffie-Hellman

PointPublicPrivateSame or opposite
Valuesq, α, Yₐ, Y_BXₐ, X_B, KOpposite
Sent over the networkYesNeverOpposite
Needed to compute KYesYesSame
Known to an eavesdropperYesNoOpposite

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.

Back to the topic list

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

  1. Masquerade: a fake message in someone else's name.
  2. Content modification: changes to the message, such as an amount.
  3. Sequence modification: messages added, removed or reordered.
  4. Timing modification: messages delayed or replayed.
  5. Source repudiation is handled by a digital signature, since a MAC key is shared by both sides.

How a MAC is used

UseSender sendsGives
Authentication onlyM 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
Figure: MAC with confidentiality

Same or opposite: MAC and hash

PointMACHashSame or opposite
Uses a secret keyYesNoOpposite
Gives a fixed-size output from the messageYesYesSame
Proves the senderYesNoOpposite
ExampleHMAC, CMACSHA-256, MD5Opposite

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.

Back to the topic list

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)

  1. Client → AS: user ID and TGS ID.
  2. AS → Client: TGT and a session key, encrypted with a key made from the user's password.
  3. Client → TGS: TGT, an authenticator and the server ID.
  4. TGS → Client: service ticket and a client-server session key.
  5. 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.

PointVersion 4Version 5
EncryptionDES onlyAny algorithm, tagged with its type
Ticket lifetimeUp to about 21 hoursAny start and end time
Double encryptionYesNo
Other realmsHardSupported

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 messages
Figure: the six Kerberos messages
Figure: Kerberos message flow
Figure: Kerberos message flow

Same or opposite: Kerberos v4 and v5

Pointv4v5Same or opposite
EncryptionDES onlyAny algorithmOpposite
Ticket lifetimeUp to about 21 hoursAny start and end timeOpposite
Ticket forwardingNoYesOpposite
Uses AS and TGSYesYesSame

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.

Back to the topic list

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

  1. SubBytes: each byte is replaced through a fixed S-box. This gives confusion.
  2. 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.
  3. 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.
  4. 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)

  1. The 16-byte key fills the first 4 words w[0] to w[3].
  2. Each next word: w[i] = w[i − 1] XOR w[i − 4].
  3. 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.
  4. 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
Figure: AES round structure and key expansion

Same or opposite: AES and DES

PointAESDESSame or opposite
Block size128 bits64 bitsOpposite
Symmetric block cipherYesYesSame
Key size128, 192, 256 bits56 bitsOpposite
StructureSubstitution permutation networkFeistel networkOpposite

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.

Back to the topic list

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

ModeHow it worksUsed for
ECB (Electronic Code Book)Cᵢ = E(K, Pᵢ), each block aloneOne short value such as a key
CBC (Cipher Block Chaining)Cᵢ = E(K, Pᵢ XOR Cᵢ₋₁), C₀ = IVGeneral messages, files
CFB (Cipher Feedback)Encrypt the previous ciphertext, XOR with plaintextStreams of characters
OFB (Output Feedback)Encrypt the previous output, XOR with plaintextNoisy 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: C1 = E(P1 XOR IV) = E(0110 XOR 1100) = E(1010) = 1010 XOR 1010 = 0000.

C2 = E(P2 XOR C1) = E(0110 XOR 0000) = E(0110) = 1100.

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
Figure: ECB and CBC on two equal blocks

Same or opposite: ECB and CBC

PointECBCBCSame or opposite
Equal blocks give equal ciphertextYesNoOpposite
Uses the block cipher with one keyYesYesSame
Needs an IVNoYesOpposite
Encryption in parallelYesNoOpposite

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.

Back to the topic list

Q13. Viruses, worms and virus countermeasures

Asked 2 times in 2023, 2024 · Unit 5

From the papers

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

  1. Dormant: waits for a trigger such as a date.
  2. Propagation: copies itself into other programs or disks.
  3. Triggering: the condition is met.
  4. Execution: the payload runs, from a message to deleting files.

Types of viruses

TypeWhat it does
Boot sectorInfects the boot record; runs when the system starts
File infectorAttaches to executable files
MacroLives in documents (Word, Excel macros); spreads when files are shared
EncryptedBody is encrypted with a changing key; only a small decryptor is visible
PolymorphicChanges its code on every copy, so signatures fail
MetamorphicRewrites itself completely on every copy
StealthHides 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
Figure: life of a virus

Same or opposite: virus and worm

PointVirusWormSame or opposite
Needs a host fileYesNoOpposite
Copies itselfYesYesSame
Needs a user actionUsuallyNoOpposite
Spreads throughFiles, disks, documentsNetworksOpposite

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.

Back to the topic list

Q14. DoS and DDoS attacks

Asked 2 times in 2024, 2025 · Unit 5

From the papers

  • “Write short notes on: DOS” (Jun 2025)
  • “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

TypeHow it works
SYN floodSends many TCP SYN requests with fake source IPs; the server keeps half-open connections until its table is full
UDP and ICMP floodSends huge volumes of packets to use up bandwidth
Reflection and amplificationSends 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 teardropSends malformed packets that crash old systems

DDoS structure

  1. The attacker infects many machines (bots or zombies) with malware.
  2. A command and control server holds them.
  3. On command, every bot floods the victim at the same time.
  4. 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
Figure: a DDoS attack

Same or opposite: DoS and DDoS

PointDoSDDoSSame or opposite
SourcesOne machineThousands of machinesOpposite
Aim is to stop the serviceYesYesSame
Blocking the source IPWorksDoes not workOpposite
Traffic sizeLimitedVery largeOpposite

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.

Back to the topic list

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

PointSymmetricPublic key
KeysOne shared keyPublic and private key pair
SpeedFastAbout 1,000 times slower
Key distributionHard: the key must be sent safelyEasy: the public key can be published
GivesConfidentialityConfidentiality, digital signatures, key exchange
AlgorithmsDES, 3DES, AES, Blowfish, IDEA, RC4RSA, 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
Figure: how the two are used together

Same or opposite: symmetric and public key cryptography

PointSymmetricPublic keySame or opposite
Same key for both sidesYesNoOpposite
Gives confidentialityYesYesSame
SpeedFastSlowOpposite
ExampleAESRSAOpposite

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.

Back to the topic list

Start with the latest papers

Information Security - Jun 2025

Information Security - May 2024

Information Security - May 2023

See all 6 papers →

Information Security (IT-801) FAQs

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.

Also known as IT-8001