PYQ Vault

SSC CGL Tier II Computer Knowledge · Cyber Security

Malware and How to Stay Protected

The kinds of malicious software and what each one does, and the tools (firewalls, encryption, hashing, updates) that keep a computer and its data safe.

Why this matters

20 questions in the Tier II bank, all EASY. The Trojan alone was asked four times, so the difference between a Trojan and a virus is the single most useful fact here.

Concept 1 of 2: Kinds of malware

Name a malware by what it does. A virus attaches to a program and copies itself when the program runs; a Trojan looks like useful software but does not copy itself; a keylogger records your typing; ransomware locks your files for money.

Definition

Key facts:

  • Virus: attaches to software and reproduces when it runs.
  • Resident virus: lives in memory, so it can return after the original is deleted.
  • Boot sector virus: infects the boot sector or Master Boot Record.
  • Trojan: disguised as legitimate software; steals or deletes files, opens a backdoor; does NOT self-replicate.
  • Signs of infection: unusual slowness and unexpected errors.
MalwareWhat it doesAsked in
VirusAttaches to software and copies itself when run2022
Resident virusHides in memory and reactivates2022
TrojanDisguised as real software; opens a backdoor2022, 2023, 2025
KeyloggerRecords keystrokes to steal passwords2022
Ransomware (CryptoLocker)Locks files and demands payment2022
AdwareShows ads, earns per click2022
Boot sector virusInfects the boot sector or MBR2024
Practise this conceptself-check · 3 quick reps

The same idea in a real exam question:

SSC CGL Tier II · 2022 · Tier II (CGL 2022), 7 Mar 2023 · Q139Easy

Example 1 · Cyber Security · Malware and How to Stay Protected

Crypto Locker is a form of which of the following?

Saying a Trojan self-replicates

A Trojan relies on the user running it; it does not copy itself. A statement that it self-replicates is the incorrect one.

Concept 2 of 2: Protection tools

Each tool guards one thing: a firewall guards the network door, encryption keeps data unreadable on its way, hashing proves data has not changed, and updates close known holes.

Definition

Key facts:

  • Firewall: filters and controls network traffic.
  • Encryption in transit (SSL) makes data unreadable to anyone who intercepts it.
  • Hashing checks that data has not been altered.
  • Symmetric encryption's weakness: the shared key must be distributed safely.
  • Patch management installs updates without the user's help.

Diagram · each tool guards one thing

Firewall: guards the network doorInternetyour networkallowedblockedit filters traffic in and outEncryption in transit: guards data on its wayHELLOx7#QkHELLOsenton the wayreceivedunreadable to anyone who intercepts itHashing: guards that data is unchangedfile sent: hash 9f2cfile received: hash 9f2c=same hash: not altered
ToolWhat it doesAsked in
FirewallFilters network traffic2023
Patch management softwareInstalls updates automatically2024
Passwords on a PCAn extra layer of security2024
SSLProtects data during transmission2024
HashingVerifies data integrity2024
S/MIMEEncrypts e-mail2025
Symmetric encryptionHard to share the key safely2025
Encryption in transitData unreadable to attackers2025
Practise this conceptself-check · 3 quick reps

The same idea in a real exam question:

SSC CGL Tier II · 2024 · Tier II (CGL 2024), 20 Jan 2025 · Q145Easy

Example 2 · Cyber Security · Malware and How to Stay Protected

The _________ method is commonly used to verify the integrity of data.

Mixing encryption and hashing

Encryption hides data so only the key holder can read it. Hashing does not hide anything; it produces a fingerprint that shows whether data changed.

Summary — formulas & gotchas at a glance

A revision cheat-sheet for the formulas and gotchas above. Click any concept name to jump back to its full explanation.

Reference tables (2)

Kinds of malware7 rows
MalwareWhat it doesAsked in
VirusAttaches to software and copies itself when run2022
Resident virusHides in memory and reactivates2022
TrojanDisguised as real software; opens a backdoor2022, 2023, 2025
KeyloggerRecords keystrokes to steal passwords2022
Ransomware (CryptoLocker)Locks files and demands payment2022
AdwareShows ads, earns per click2022
Boot sector virusInfects the boot sector or MBR2024
Protection tools8 rows
ToolWhat it doesAsked in
FirewallFilters network traffic2023
Patch management softwareInstalls updates automatically2024
Passwords on a PCAn extra layer of security2024
SSLProtects data during transmission2024
HashingVerifies data integrity2024
S/MIMEEncrypts e-mail2025
Symmetric encryptionHard to share the key safely2025
Encryption in transitData unreadable to attackers2025

Watch out for (2)

Test yourself on Cyber Security

10 past SSC CGL Tier II questions from this chapter, timed at 8 minutes and marked the way the exam marks it. You see your score and every answer the moment you finish. Free to start.