Skip to content
GK24
GK NotesComputer AwarenessCyber Security and Threats

Cyber Security and Threats: Malware, Attacks and PYQs

Exam notes on cyber security: the CIA triad, viruses, worms, Trojans and ransomware, phishing and DDoS attacks, firewalls, encryption and CERT-In.

By · Published · 4 min read

Cyber Security and Threats: Malware, Attacks and PYQs — GK24 title card
Cyber Security and Threats: Malware, Attacks and PYQs — GK24 title card

Cyber security is the practice of protecting computers, networks, programs and data from unauthorised access, damage or theft. As banking, ticketing, examinations and government records moved online, the same network that made them convenient exposed them to attack, so every competitive examination now asks a few questions from this chapter. The subject is built on three goals, remembered as the CIA triad: confidentiality, that only authorised people can read the data; integrity, that the data is not altered on the way; and availability, that the authorised user can reach the system when needed. Authentication and non-repudiation are usually added to the list.

Malicious software

Malware is the general name for any program written to harm a system. A virus attaches itself to a file or program and spreads only when that host is copied or run, so it needs human action. A worm is a stand-alone program that copies itself across a network by itself and needs no host file, which is why worms spread far faster. A Trojan horse pretends to be useful software, and once installed opens a back door; it does not replicate. Ransomware encrypts the victim's files and demands payment for the key, the WannaCry outbreak of 2017 being the best known case. Spyware watches quietly and reports back, a keylogger records every keystroke, adware pushes advertisements, and a rootkit hides deep in the system so that scanners miss it. A logic bomb is code that waits for a condition or a date before it fires.

MalwareNeeds a host fileSpreads by itself
VirusYesNo, it needs the host to be run or copied
WormNoYes, across the network
Trojan horseNoNo, the user is tricked into installing it
RansomwareVariesVaries; it encrypts data and demands money

Attacks on people and on systems

Phishing is the sending of a fake message that appears to come from a bank or an office so that the reader gives away a password, a card number or a one-time password. Spear phishing aims at one named person, whaling at a senior executive, vishing works by telephone call and smishing by text message. Pharming quietly redirects a correct web address to a fake site. All of these are forms of social engineering, in which the weakest link attacked is the human being rather than the machine.

Against systems, a denial of service attack floods a server with requests until genuine users cannot be served; when the flood comes from thousands of hijacked machines at once it is a distributed denial of service attack. Those hijacked machines, controlled together by an attacker, form a botnet, and each infected machine is called a zombie. A man in the middle attack places the attacker silently between two parties who believe they are talking directly. SQL injection feeds database commands into a web form so that the site returns data it should not. A zero-day attack uses a flaw that the maker does not yet know about, so no patch exists. A brute force attack tries every possible password, while a dictionary attack tries likely words first.

Defences

A firewall stands between a trusted internal network and the untrusted outside, examining traffic and blocking whatever the rules do not permit; it may be hardware, software or both. Antivirus software compares files against a store of known signatures and also watches for suspicious behaviour, quarantining what it finds. Encryption turns readable plaintext into ciphertext. In symmetric encryption the same secret key locks and unlocks the message, as in AES and the older DES; in asymmetric or public key encryption a public key encrypts and a matching private key decrypts, as in RSA, and this is what makes the digital signature possible. A digital signature proves who sent a document, shows that it was not altered, and prevents the sender from later denying it.

Everyday defences matter as much. A strong password mixes cases, digits and symbols and is not reused. Two-factor authentication adds a second proof, usually a one-time password or a fingerprint, so that a stolen password alone is not enough. HTTPS, shown by the padlock in the address bar, means the connection is protected by SSL or TLS. A virtual private network carries traffic through an encrypted tunnel, useful on public wi-fi. A CAPTCHA tells a human apart from an automated program, and a honeypot is a decoy system set up to attract and study attackers.

The Indian framework

The Information Technology Act, 2000, amended in 2008, is the parent law for cyber offences in India. CERT-In, the Indian Computer Emergency Response Team, is the national nodal agency for responding to computer security incidents and works under the Ministry of Electronics and Information Technology. The National Critical Information Infrastructure Protection Centre protects systems in sectors such as power, banking and transport whose failure would harm national security. The Cyber Swachhta Kendra is the botnet cleaning and malware analysis centre that helps users remove infections. Complaints are filed on the national cybercrime reporting portal, and the national cybercrime helpline number is 1930. Safer Internet Day is observed on the second Tuesday of February.

Exam Point of View

Most marks here come from definitions and from telling look-alike terms apart. The favourite pairs are virus against worm, worm against Trojan, and DDoS against botnet, and the safest way to answer is to ask whether the program needs a host file and whether it spreads by itself. Full forms are asked word for word, CAPTCHA above all. Phishing and its family, spear phishing, vishing, smishing and pharming, appear in every banking paper. Firewall, antivirus, digital signature and the difference between symmetric and asymmetric encryption are asked as simple purpose questions. On the Indian side, learn CERT-In as the nodal agency, the helpline 1930 and the Information Technology Act of 2000 as amended in 2008. Do not memorise numbers of reported incidents or the latest attack of the year, because such figures change and are easily misremembered.

Important Facts

CIA triadConfidentiality, integrity, availability
VirusAttaches to a host file; spreads when the host is run or copied
WormStand-alone; replicates across a network without a host
Trojan horseDisguised as useful software; does not replicate
Ransomware exampleWannaCry, 2017
BotnetNetwork of infected zombie machines under one controller
FirewallFilters traffic between a trusted and an untrusted network
Symmetric encryptionOne shared key; DES, AES
Asymmetric encryptionPublic and private key pair; RSA
CAPTCHACompletely Automated Public Turing test to tell Computers and Humans Apart
Parent law in IndiaInformation Technology Act, 2000, amended in 2008
Nodal agencyCERT-In, under the Ministry of Electronics and Information Technology
Cybercrime helpline1930

Practice MCQs on this topic

Q1.Computer AwarenessAsked in: Madhya Pradesh · 17 Dec, 2023Easy

Which of the following is a type of cyber attack that involves tricking users into revealing sensitive information?

  1. A.Phishing attack
  2. B.SQL injection attack
  3. C.DoS attack
  4. D.None of the above
Show answer
Correct answer: A. Phishing attack

Phishing sends a message that looks as if it came from a bank, an employer or a government office, and asks the reader to confirm a password, a card number or a one-time password on a page that belongs to the attacker; the target of the attack is the person…

Q2.Computer AwarenessAsked in: Madhya Pradesh · 17 Dec, 2023Easy

What is the purpose of a firewall in cyber security?

  1. A.To allow unrestricted access to a network
  2. B.To block unauthorised access to a network
  3. C.To create a backup of a network's data
  4. D.None of the above
Show answer
Correct answer: B. To block unauthorised access to a network

A firewall sits between a trusted internal network and the untrusted world outside, inspects the traffic crossing it and permits only what its rules allow, dropping the rest; it may be a hardware appliance, a software program or both together.

Q3.Computer AwarenessAsked in: Uttar Pradesh · 27 August 2023Medium

What is the term for a cyber security attack that targets multiple interconnected devices simultaneously to create a large-scale attack network?

  1. A.DDoS attack
  2. B.Botnet attack
  3. C.Zero-day attack
  4. D.Spear phishing attack
Show answer
Correct answer: B. Botnet attack

A botnet is built by infecting many connected devices, each of which becomes a zombie obeying a single controller; the network so assembled is then rented out or used for spam, fraud or a flood of traffic.

Q4.Computer AwarenessAsked in: Madhya Pradesh · 21 May 2023Easy

The feature(s) of cyber security is/are:

  1. A.Compliance
  2. B.Defence against internal threats
  3. C.Threat prevention
  4. D.All of the above
Show answer
Correct answer: D. All of the above

The correct answer is D, all of the above, because cyber security is not one activity but a programme that covers all three.

Q5.Computer AwarenessEasy

In the CIA triad of information security, the letter I stands for:

  1. A.Identification
  2. B.Integrity
  3. C.Internet
  4. D.Isolation
Show answer
Correct answer: B. Integrity

The triad names the three goals of information security: confidentiality, that only authorised people can read the data; integrity, that the data is complete and unaltered from the moment it was created or sent; and availability, that the system works when an authorised user needs it.

Q9.Computer AwarenessMedium

The full form of CAPTCHA, used on websites, is Completely Automated Public Turing test to tell Computers and ______ Apart.

  1. A.Consoles
  2. B.Humans
  3. C.Hackers
  4. D.Hosts
Show answer
Correct answer: B. Humans

CAPTCHA stands for Completely Automated Public Turing test to tell Computers and Humans Apart, and it is the distorted text, image grid or check box that a site shows before accepting a form, so that automated programs cannot register accounts, book tickets in bulk or guess passwords by the thousand.

Q10.Computer AwarenessHard

A zero-day attack is one that exploits:

  1. A.A vulnerability for which no patch yet exists
  2. B.A password that is exactly zero characters long
  3. C.A computer that has been switched off
  4. D.A network with zero bandwidth
Show answer
Correct answer: A. A vulnerability for which no patch yet exists

The name counts the days the software maker has had to fix the flaw, and that number is zero: the attacker knows of a weakness that the vendor has not discovered or not yet repaired, so no update protects the user and even a fully patched system is exposed.

Q11.Computer AwarenessMedium

Which method of encryption uses a pair consisting of a public key and a private key?

  1. A.Symmetric encryption
  2. B.Asymmetric encryption
  3. C.Hashing
  4. D.Compression
Show answer
Correct answer: B. Asymmetric encryption

Anyone may hold the public key and use it to encrypt a message, but only the holder of the matching private key can decrypt it, so no secret has to be exchanged in advance; RSA is the standard example, and the same pair used the other way round produces a…

Frequently Asked Questions

What is the difference between a virus and a worm?

A virus attaches itself to a file or program and spreads only when that host is opened, copied or run, so it depends on the user. A worm is a complete program in itself, copies itself over the network without any user action, and therefore spreads much faster.

Is a cookie a kind of virus?

No. A cookie is a small text file that a website stores in the browser to remember a login, a language choice or the contents of a cart. It cannot execute, so it cannot infect a computer, though tracking cookies do raise questions of privacy.

What does two-factor authentication add?

It adds a second, independent proof of identity to the password, usually a one-time password on the phone, a hardware token or a fingerprint. A thief who has stolen only the password still cannot log in, which defeats most password leaks.

What is the difference between DoS and DDoS?

A denial of service attack floods a server from one source until genuine users cannot be served. A distributed denial of service attack sends the same flood from thousands of compromised machines at once, which makes it far harder to block by address.

What does the padlock and HTTPS in the address bar mean?

It means the connection to that website is encrypted with SSL or TLS, so data travelling between the browser and the server cannot be read in transit. It does not by itself prove that the website is honest, since a fake site can also obtain a certificate.

Sources

  • About CERT-In and its functions — Indian Computer Emergency Response Team
  • The Information Technology Act, 2000 — Ministry of Electronics and Information Technology
  • Computer Science, Class XI, Chapter on Societal Impacts — NCERT
View all