Security and malware is the second-largest Computer Knowledge topic at about 2.9 questions per paper, rising to 3 in CGL 2024 and 4 in the reported 2025 paper. January 2025 asked about the boot-sector virus, SSL for protecting data in transit, hashing for integrity, patch management for automatic updates, why PCs have passwords and the signs of infection. The reported 2025 paper added Trojans, encrypting e-mail and the limits of symmetric encryption.
In brief
- Cyber security protects computers, networks and data from theft, damage and unauthorised access.
- Its three goals are the CIA triad: confidentiality, integrity and availability.
- Malware is any malicious software, including viruses, worms, Trojans, ransomware, spyware, adware, keyloggers and rootkits.
- A virus attaches to a host file and spreads when that file runs, while a worm is standalone and spreads by itself across networks.
- A Trojan horse looks like useful software but secretly does harm, such as opening a backdoor, and it does not replicate.
- A boot-sector virus infects the boot sector of a floppy disk or the Master Boot Record of a hard disk and runs before the operating system.
- A macro virus hides in documents such as Word or Excel files, and a polymorphic virus changes its code to avoid detection.
- Ransomware encrypts a victim's files and demands payment, as WannaCry did in 2017.
- Phishing tricks people into giving passwords or bank details through fake e-mails and sites, and vishing and smishing do the same by call and SMS.
- A denial-of-service attack floods a system so real users cannot reach it, and a DDoS attack uses many hijacked computers.
- A firewall filters traffic by rules, and an antivirus finds and removes malware using signatures and behaviour.
- Encryption turns plain text into cipher text: symmetric encryption uses one shared key and asymmetric encryption uses a public and a private key.
- SSL/TLS encrypts data in transit, which is what HTTPS uses.
- Hashing produces a fixed-length digest, so any change to data changes the hash, which verifies integrity.
- Patch management installs security updates automatically so known holes are closed without waiting for the user.
- Strong passwords, two-factor authentication, backups and careful clicking are the user's best defences.
Numbers to remember
| Number | What it is |
|---|---|
| 1971 | Creeper, the first self-replicating program, on ARPANET |
| 1986 | Brain, the first PC virus, a boot-sector virus from Pakistan |
| 2017 | WannaCry ransomware attack |
| 2000 | Information Technology Act, India's cyber law |
| 66 | IT Act section on computer-related offences such as hacking |
| 2004 | CERT-In set up as India's national cyber incident agency |
| 1930 | national cyber-fraud helpline |
| 256 | key length in bits of AES-256, and output length of SHA-256 |
Key formulas and rules
- CIA = Confidentiality + Integrity + Availability
- Goals of security.
- Virus = needs host; worm = spreads alone; Trojan = disguised, does not replicate
- Classic threats.
- Boot-sector virus -> boot sector or MBR; macro virus -> documents
- Where viruses hide.
- Symmetric = one shared key (AES); asymmetric = public and private keys (RSA)
- Key distribution is symmetric's weakness.
- SSL/TLS -> data in transit; HTTPS = HTTP + TLS
- Port 443.
- Hashing -> integrity; encryption -> confidentiality; signature -> authenticity
- Pick by goal.
- Patch management = automatic updates without user action
- Closes known holes.
- 2FA = two of: know, have, are
- Password plus OTP.
Common traps
- Calling a Trojan self-replicating is wrong; worms replicate and Trojans do not.
- Saying a worm needs a host file is wrong; a virus does.
- Choosing a macro virus for the MBR is wrong; that is a boot-sector virus.
Solved examples
Q. Which type of virus infects the boot sector of floppy disks or the Master Boot Record (MBR) of hard disks? Options: Direct Action Virus, Resident Virus, Macro Virus, Boot Sector Virus. (CGL 2024 Tier 2, 18 Jan 2025)
Answer: Boot Sector Virus
Step 1: The question names the boot sector and the MBR as the target. Step 2: A macro virus lives in documents, and resident and direct-action viruses describe how a virus runs. Step 3: The answer is the boot-sector virus.
Q. Which method is used to protect sensitive information during data transmission? Options: Decryption, Secure Socket Layer (SSL), Compression, Hashing. (CGL 2024 Tier 2, 18 Jan 2025)
Answer: Secure Socket Layer (SSL)
Step 1: Decryption reverses protection, and compression only shrinks data. Step 2: Hashing checks integrity but does not hide content. Step 3: SSL, now TLS, encrypts the data while it travels, so it is the answer.
Q. What security mechanism ensures that system updates are installed without user intervention? Options: Patch management software, Firewall, Secure Boot, Intrusion Detection System. (CGL 2024 Tier 2, 18 Jan 2025)
Answer: Patch management software
Step 1: A firewall filters traffic and an IDS raises alerts. Step 2: Secure Boot checks start-up software. Step 3: Patch management finds, downloads and installs updates automatically, so it is the answer.
What the full notes cover
- Security goals and basic terms
- Viruses and their types
- Worms, Trojans and other malware
- Attacks on people and networks
- Encryption
- Hashing, checksums and signatures
- Preventive measures
- Cyber law and agencies in India