ExamSaathi learning library · Government exams · SSC CGL computer knowledge; published syllabus labelled 2024 · Computer knowledge

Cyber security: viruses, worms, Trojans, phishing and how to stay safe

Name each kind of malware by its defining feature, spot phishing, vishing and smishing, and stay safe with updates, antivirus, firewalls, strong passwords and backups.

Status: original pilot lesson. Teacher review is pending. It is not a complete course or official exam material.

You will learn to

Before you start

Cyber security means protecting computers, phones, networks and their data from theft, damage and misuse. Malware (malicious software) is any program written to harm a device or its user. Social engineering tricks people, rather than machines, into handing over a password, PIN or OTP. Unauthorised hacking is breaking into a computer, network or account without permission, as black hat hackers (crackers) do. Ethical hacking is authorised testing: a white hat hacker probes a system within limits agreed with the owner and reports the weak spots.

Malware: one feature for each type

Virus: attaches its code to a host file or program and runs when the host runs; it reaches other computers when the infected file is shared, say on a pen drive. Worm: a standalone program that copies itself to other computers over a network without needing a host file. Trojan horse: looks useful, like a free game or fake update, but hides harmful code; it does not copy itself and depends on tricking someone into installing it, often opening a back door. Ransomware: locks the device or encrypts the files and demands payment to unlock them. Spyware: secretly records what the user does and sends it out; keylogger software, a kind of spyware, records every key pressed. A hardware keylogger, a plug between keyboard and computer, is a device, not malware. Adware: floods the screen with unwanted ads to earn money for its maker; usually more annoying than harmful, though its ads can lead to malware.

Tricks on people, and other attacks

Phishing uses fake e-mails and look-alike websites to make you click a link and enter a password, card number or OTP. Vishing is the same trick by phone call, smishing by SMS. Fake customer-care numbers are planted online; whoever answers asks for an OTP or a screen-sharing app, so take numbers only from the organisation's own website or app. Identity theft is using someone's stolen details, such as Aadhaar, PAN or bank data, to commit fraud in their name. A denial-of-service (DoS) attack makes a service unavailable to genuine users, often by flooding it with requests until its resources run out, or by exploiting a flaw; a DDoS attack comes from many sources at once. India's IT Act, 2000 recognises electronic records and deals with cyber crimes. A fraud victim should tell the bank at once and report it by calling 1930 or on the National Cybercrime Reporting Portal.

Defences that work

Keep antivirus updated: it checks files against known malware signatures and watches for suspicious behaviour, so an out-of-date copy may miss newer threats. A firewall, hardware or software, checks traffic entering and leaving a computer or network and blocks what breaks its rules. Updates to the operating system and apps close the holes malware uses. Use long passwords mixing letters, numbers and symbols, a different one per account, and turn on two-step verification, which asks for a second proof such as a code sent to your phone, so a stolen password alone is not enough; never share that code, a PIN or a password. Back up important files often to a disk kept unplugged between backups: the surest way back from ransomware without paying. HTTPS and the padlock mean the link is encrypted (scrambled with a key so only the intended receiver can read it), but a fake site can show a padlock too. Allow cookies (small files sites keep to remember you) and app permissions only where needed, and do not open unknown attachments or links.

Common mistakes

Calling all malware a virus: a virus must ride in host code. Mixing up virus and worm: only a worm copies itself without a host file. Thinking a Trojan copies itself: it depends on being installed. Expecting a firewall to clean infected files: it filters traffic; antivirus scans files. Calling a fraud call smishing: a call is vishing, an SMS is smishing. Paying a ransom and expecting the key: criminals need not keep their word.

A routine for threat questions

1. Ask what it does: rides in host code (virus), copies itself with no host file (worm), hides in a useful program (Trojan), locks files for money (ransomware), records activity (spyware) or keys (keylogger), or shows ads (adware). 2. For a trick on a person, name the channel: e-mail or fake site (phishing), call (vishing), SMS (smishing). 3. Match the defence: backups for ransomware, updates and antivirus for malware, a firewall for unwanted traffic, two-step verification for stolen passwords. 4. After a fraud, tell the bank and call 1930.

Worked examples

  1. Name the malware. (a) A program spreads from PC to PC across a Pune college network overnight, though nobody opened any file. (b) Ramesh installs a free 'PDF converter' that works but also lets a stranger control his PC; it never copies itself. (c) A game on a shared pen drive carries extra code that copies itself into other programs on each PC where the game is run.

    1. (a) A standalone program copying itself across the network, with no host file, is a worm.
    2. (b) A useful-looking program that hides harm and does not copy itself is a Trojan horse.
    3. (c) Code riding in a host program and spreading when that program runs is a virus.

    Answer: (a) worm, (b) Trojan horse, (c) virus.

  2. Name each trick and the right response. (a) A caller claiming to be from Sunita's bank says her card will be blocked tonight and asks for the OTP she has just received. (b) Imran rings a courier helpline found on a random web page and is told to install a screen-sharing app.

    1. (a) A phone call pushing for a secret is vishing; the deadline is meant to rush her.
    2. (b) A planted helpline is a fake customer-care number; screen sharing would let the fraudster see or control the phone.

    Answer: (a) vishing, (b) a fake customer-care scam. Each should end the contact, share no OTP, PIN or password, and use only the organisation's own number or website.

Practice checks

  1. Which statement correctly tells a virus apart from a worm?
  2. At a Varanasi cyber cafe, a hidden program on a shared PC saves every key typed and sends the log to a stranger. What is it?
  3. Gopal in Jaipur gets an SMS: 'Power will be cut at 9 pm today. Pay your bill at this link.' The link opens a fake payment page. Which attack is this?
  4. Ransomware has encrypted every file on a Surat shop's billing PC and demands payment. Which step gets the files back without paying?
  5. Which defence checks traffic entering and leaving a network and blocks whatever breaks its rules?

Sources checked