Skip to content

Networking and Cyber Security

Networking devices and protocols, viruses, worms, Trojans and how to guard against them. Open a topic to read its notes and practise it, then take the mixed tests: each question shows whether you were right and why, as soon as you answer.

Topics: notes and practice

Cyber security tools10 questions

Cyber security means protecting computers, networks and data from attack, damage and unauthorised access. Three aims are always named: confidentiality (only the right people can read data), integrity (data is not changed in secret) and availability (data and services can be used when needed).

Three tools come up in nearly every paper: the firewall, antivirus software and encryption. Each covers a different gap.

Tool What it does What it does not do
Firewall Allows or blocks network traffic by rules Does not remove viruses already inside
Antivirus Finds, removes or quarantines malware Does not filter network connections
Encryption Locks data so only a key holder can read it Does not stop the data being copied

Firewall

A firewall sits between a trusted network and an outside one, such as the Internet, and checks each connection against its rules. It can be hardware, software or both. A hardware firewall, often built into a router, guards every device behind it. A software firewall guards only the computer it is installed on.

Antivirus

An antivirus program scans files and memory and compares them with a list of known malware patterns, called virus definitions or signatures. It also watches how programs behave to catch new threats (heuristic scanning). A file found to be infected is cleaned, deleted or moved to quarantine, an isolated folder where it cannot run. Real-time protection scans every file as it is opened. The definitions must be updated often, because a threat missing from the list goes unnoticed.

Encryption

Encryption turns plain text, which anyone can read, into cipher text, using an algorithm and a key. Decryption turns it back.

  • Symmetric encryption. One shared secret key locks and unlocks. It is fast. AES is an example.
  • Asymmetric encryption. A pair of keys: a public key, given to anyone, and a private key, kept secret. What one key locks only the other can unlock. RSA is an example.

Other tools: a proxy server stands between a user and the Internet and can hide the user's address; a VPN builds an encrypted tunnel; regular backups restore data after loss or attack.

Problem 1. A virus has already entered a computer through an infected pen drive. Which tool is used to find and remove it? (a) firewall (b) antivirus (c) proxy server (d) VPN

Answer: (b) antivirus

An antivirus scans the files on the system and removes or quarantines the infected ones. A firewall controls network traffic and cannot clean a file already on the disk. A proxy server and a VPN deal with Internet connections.

Problem 2. In an asymmetric system, Meena wants to send Ravi a message that only he can read. Which key does she use to lock it? (a) her private key (b) Ravi's public key (c) Ravi's private key (d) her public key

Answer: (b) Ravi's public key

Anything locked with a public key can be unlocked only with the matching private key. Ravi alone holds his private key, so only he can read the message. Meena's private key is used for signing, not for secrecy.

Practise this topic10 questions, each with its solution

Computer viruses and malware10 questions

Malware means malicious software, written to harm a system or steal data. The kinds differ in how they spread and what they do.

Type How it works Spread or symptom
Virus Attaches to a host file and runs when the file runs Spreads by shared pen drives, email attachments and downloads
Worm Copies itself across a network with no host file Slow network, heavy traffic, mass emails
Trojan horse Looks useful but hides a harmful part; does not copy itself The user installs it willingly
Spyware Secretly collects information and sends it out Slow machine, stolen details
Ransomware Locks or encrypts files and demands money A ransom message; files cannot open
Adware Shows unwanted advertisements Pop-ups, changed home page
Keylogger Records keystrokes Passwords stolen
Rootkit Hides itself and other malware, gives high-level access Hard to see at all
Logic bomb Fires when a set condition is met; a time bomb fires on a date Damage on the trigger
Boot sector virus Infects the boot sector or master boot record Trouble starting the computer
Macro virus Hides in the macros of a document such as a Word or Excel file Spreads when the file is opened

Two more virus types are asked. A polymorphic virus changes its own code each time it copies itself, to slip past antivirus signatures. A file infector virus attaches to executable program files.

A botnet is a group of infected computers controlled by an attacker, often used for a DDoS attack. Examples worth knowing:

  • Creeper (1971): an experimental self-replicating program on the early ARPANET, harmless and often called the first of its kind.
  • Brain (1986): the first virus for the IBM PC, a boot sector virus.
  • Morris worm (1988): an early worm on the Internet.
  • ILOVEYOU (2000): a worm that spread by email.
  • Stuxnet (about 2010): a worm that attacked industrial control systems.
  • WannaCry (2017): ransomware.

General signs of infection: the system runs slowly, crashes, or opens programs by itself; files vanish, change name or will not open; unknown pop-ups appear; the browser settings change; network use is high with nobody working.

Common ways malware enters: infected pen drives, email attachments, links in messages, pirated software, unsafe websites and unpatched software.

Problem 3. Which malware needs a host program to spread and is usually carried by shared infected files? (a) worm (b) virus (c) spyware (d) botnet

Answer: (b) virus

A virus must attach itself to a host file or program and spreads when users share it. A worm travels by itself, spyware only collects information, and a botnet is a group of infected machines rather than one program.

Problem 4. After a customer opened a file from an unknown sender, every file on her computer became unreadable and a message asked for payment to restore them. Which malware was this? (a) adware (b) rootkit (c) ransomware (d) logic bomb

Answer: (c) ransomware

Ransomware encrypts the user's files and asks for money for the key. Adware shows advertisements, a rootkit hides malware, and a logic bomb waits for a trigger before it acts.

Practise this topic10 questions, each with its solution

Hacking and hackers10 questions

Hacking means gaining access to a computer or network by getting around its security. Whether it is a crime depends on permission. In India the Information Technology Act, 2000 punishes unauthorised access and misuse: Section 43 is the base section: damage to a computer or access to it without permission makes the offender liable to pay compensation (a civil liability). Section 66 makes the same acts with dishonest intent a crime. The 2008 amendment added 66C (identity theft), 66D (cheating by personation using a computer) and 66F (cyber terrorism).

Types of hacker

Hacker Permission Aim
White hat Yes, from the owner Finds weaknesses so they can be fixed; an ethical hacker
Black hat No Theft, damage or profit; also called a cracker
Grey hat No No harm meant; may report the flaw afterwards

A script kiddie uses tools made by others without understanding them. A hacktivist hacks for a political or social cause.

Fraud and tricks

  • Phishing. Fake emails, messages or sites that trick people into giving passwords, card numbers or OTPs. Spear phishing targets one chosen person or group. Whaling targets senior executives.
  • Vishing is phishing by voice call. Smishing is phishing by SMS.
  • Spoofing. Faking an identity, such as a sender's email, a phone number or an IP address, to look trusted.
  • Pharming. DNS or host settings are tampered with, so users reach a fake site even when they type the correct address. No lure is needed.
  • Sniffing. Capturing data as it moves across a network.
  • Social engineering. Tricking a person, not a machine, into giving access.

Bluetooth hacking (bluehacking)

  • Bluejacking. Sends unwanted messages to nearby Bluetooth devices. It takes no data.
  • Bluesnarfing. Steals data such as contacts and messages from a Bluetooth device without permission.
  • Bluebugging. Takes control of the device, for example to make calls.

A safe habit: keep Bluetooth switched off, or the device hidden, when not in use.

Other cyber crimes

Crime Meaning
Cyber stalking Repeated online harassment or following of a person by email, messages or social media
Cyber bullying Using the Internet or a phone to threaten, insult or humiliate someone
Identity theft Using another person's name, password or card details to pose as that person (Section 66C)
Salami attack Many tiny amounts, too small to notice, are taken from many accounts and add up to a large sum
Data diddling Data is altered before or while it is entered into a computer, and often changed back later
Cyber squatting Registering a domain name that matches a known brand or person, to sell it at a profit
Defacement The look of a website is changed without permission

Problem 5. A hacker finds a hole in a company's website without permission, causes no harm and mails the company the details. This hacker is a: (a) white hat (b) black hat (c) grey hat (d) hacktivist

Answer: (c) grey hat

Entry without permission rules out a white hat. No harm and a report to the owner rule out a black hat. This mixture is the mark of a grey hat. A hacktivist acts for a political cause.

Problem 6. A shopkeeper types the correct address of his bank, but the browser opens a copy of the bank's page that steals his login. Which attack is this? (a) pharming (b) bluejacking (c) vishing (d) whaling

Answer: (a) pharming

Pharming redirects users to a fake site even when the right address is typed, because DNS or host settings were tampered with. Bluejacking sends Bluetooth messages, vishing is a voice call fraud, and whaling targets senior executives by email.

Practise this topic10 questions, each with its solution

Prevention and safe practice10 questions

Passwords

  • Use at least 12 characters, mixing capital and small letters, digits and symbols.
  • Do not use a name, a date of birth, a phone number or a common word.
  • Use a different password for every account, so one leak cannot open the rest. A password manager stores many strong passwords behind one master password.
  • Never share a password, PIN or OTP. A bank never asks for them on a call, message or email.
  • Turn on two-factor authentication. The two factors must be of different kinds: something you know (password), something you have (phone for an OTP) or something you are (fingerprint). A password plus a PIN is one factor used twice.
  • Change a password at once if it may have been exposed.

Updates and safe browsing

  • Install updates (patches) for the operating system, browser and apps. They close security holes found after release.
  • Keep an antivirus and a firewall switched on.
  • Look for https and the padlock before entering card details. The padlock means the link is encrypted. It does not prove the site is honest.
  • Type the address of a bank or shop yourself. Do not follow links in unexpected emails or messages.
  • Do not open attachments from unknown senders. Scan pen drives before use.
  • Avoid pirated software. Download apps only from official stores.
  • Avoid banking on open public Wi-Fi. A VPN or mobile data is safer.
  • Log out after using a shared computer, and keep backups of important files on another device.

Reporting in India

CERT-In (the Indian Computer Emergency Response Team, under the Ministry of Electronics and Information Technology) is the national agency that handles cyber security incidents. A cyber crime is reported on the national portal cybercrime.gov.in, and a loss of money through online fraud on the 1930 helpline.

Problem 7. An email claims to be from a courier firm and asks the reader to pay a small fee through a link to receive a parcel. Which action is safest? (a) pay quickly (b) forward it to relatives (c) ignore the link and check on the courier's official site or app (d) reply with the card number

Answer: (c) ignore the link and check on the courier's official site or app

A fee demand with an unknown link is a common phishing lure. The safe step is to use the official site or app, which the reader opens by typing the address. Paying or replying hands the details to the fraudster.

Problem 8. A login asks for a password and then an OTP sent by SMS to the user's registered phone. This is: (a) two-factor authentication (b) a digital signature (c) a hash check (d) a proxy login

Answer: (a) two-factor authentication

The password is something the user knows and the phone that receives the OTP is something the user has, so two different kinds of proof are used.

Practise this topic10 questions, each with its solution

Network and online security10 questions

Many threats have a matching defence. Learn them as pairs.

Threat What happens Defence
DoS and DDoS A server is flooded with requests; in a DDoS, from many machines Traffic filtering, firewalls, extra capacity
Man-in-the-middle An attacker sits between two parties and reads or changes data HTTPS, VPN, encryption
Brute force Every possible password is tried; a dictionary attack tries common words Long passwords, lockout after failures
SQL injection SQL commands typed into an input field reach the database Checking and cleaning all input
Phishing Fake messages steal details Awareness, checking the address, 2FA
Ransomware Files locked for money Offline backups, updates
Spoofing A fake identity looks trusted Verification, signatures
Zero-day attack A flaw nobody knew of yet is attacked before a patch exists Prompt updates, intrusion detection
Spam Unwanted bulk email, often carrying scams or malware Spam filters, not opening unknown mail

Firewall types and intrusion systems

  • Packet filtering firewall. Checks each packet's addresses and port against rules, one packet at a time.
  • Stateful inspection firewall. Tracks the state of each connection and allows only packets that belong to a genuine one.
  • Application or proxy firewall. Works at the application level and inspects the content, such as web or mail requests, on behalf of the user.
  • IDS (intrusion detection system). Watches traffic and raises an alert on suspicious activity. IPS (intrusion prevention system) also blocks it.

Security terms

  • Digital signature. Made with the sender's private key and checked with the sender's public key. It proves who sent the message and that it was not changed. It gives no secrecy. For secrecy the sender locks the message with the receiver's public key; for a signature the sender uses the sender's own private key.
  • Digital certificate. Issued by a Certificate Authority. It ties a public key to an owner and is used by HTTPS sites.
  • SSL and TLS. Protocols that encrypt data between a browser and a site. HTTPS is HTTP over TLS, on port 443.
  • Hash function. Turns any input into a fixed-length output. It is one-way, the same input always gives the same output, and a tiny change in the input changes the output completely. It is used to check integrity.
  • Steganography. Hiding a secret message inside an ordinary file such as a picture, so that nobody suspects it is there. Encryption, by contrast, makes the message unreadable but visible.
  • VPN. An encrypted tunnel across a public network.
  • Proxy server. An intermediary that can hide the user's address and cache pages.
  • CAPTCHA. A test that tells humans from programs.
  • Cookie. A small file a site stores in the browser to remember the user.
  • Honeypot. A decoy system set up to attract attackers and study them.
  • Biometrics. Identity checks using body features such as a fingerprint or the iris.
  • Wi-Fi security. WEP is the oldest and weakest. WPA, WPA2 and WPA3 are stronger.
  • Remote login. SSH (port 22) is encrypted. Telnet (port 23) sends passwords as plain text.

Problem 9. A website lets a visitor type a name into a search box. An attacker types a database command in the box and the site shows stored records. Which attack is this? (a) DDoS (b) SQL injection (c) brute force (d) spoofing

Answer: (b) SQL injection

SQL injection places database commands in an input field, and a badly written site runs them. A DDoS floods a server, brute force guesses passwords, and spoofing fakes an identity.

Problem 10. Which protocol sends the login password as plain text over the network? (a) SSH (b) HTTPS (c) Telnet (d) TLS

Answer: (c) Telnet

Telnet does not encrypt its traffic, so a password can be read by anyone who captures it. SSH is its secure replacement. HTTPS and TLS both encrypt the data.

Practise this topic10 questions, each with its solution

Quick revision
Item Fact
Firewall Filters traffic by rules; hardware or software
Antivirus Removes malware; needs updated definitions
Virus, worm, Trojan Needs a host file; spreads alone over a network; does not copy itself
Ransomware, spyware, adware Locks files for money; steals information; shows ads
White, black, grey hat With permission; without permission and harmful; without permission, not harmful
Phishing, vishing, smishing Email or site; voice call; SMS
Pharming Fake site even when the correct address is typed
Bluejacking, bluesnarfing Sends messages; steals data
Two-factor Two different kinds of proof
Digital signature Private key signs, public key checks; proves sender and integrity
HTTPS, SSH, Telnet Port 443 encrypted; port 22 encrypted; port 23 plain text
Common mistakes
  • Saying a firewall removes viruses. A firewall filters traffic. Removing a virus from a file is the work of antivirus.
  • Saying a Trojan spreads by itself. A Trojan does not copy itself; the user installs it. A worm spreads alone and a virus needs a host.
  • Mixing up phishing, vishing and smishing. They differ only in the channel: email or site, voice call, SMS.
  • Calling a password plus a PIN two-factor authentication. Both are things you know, so they count as one factor.
  • Thinking the padlock proves a site is honest. It shows only that the connection is encrypted.
  • Confusing bluejacking with bluesnarfing. Bluejacking sends messages and takes nothing; bluesnarfing steals data.

By ICE Academy · Updated 4 Dec 2026 · Found a mistake? Write to info@iceacademy.in

Mixed tests

All 125 questions of this chapter on paper, with the answer key and solutions. Free: the first download asks for your name, phone number and email.

Exams that test this chapter