Security Aspects
How Malware Spreads, and How It Is Fought
- Downloaded from the Internet — from unsafe sites, pirated software or fake updates.
- Spam e-mail — attachments or links in unwanted bulk mail. Spam itself is unsolicited messages sent in bulk; it wastes time and storage and is a common carrier of malware and fraud.
- Removable storage — infected pen drives and memory cards moved between computers.
- Network propagation — worms that move from one vulnerable computer to the next on their own.
The defences follow: keep antivirus software and the operating system updated, avoid opening attachments or links from unknown senders, scan removable drives before opening them, download only from trusted sources, use a firewall, and back up important data. To defeat a software keylogger when entering a password on a shared computer, an on-screen (virtual) keyboard clicked with the mouse can be used, since no keys are pressed.
| Method | How it works |
|---|---|
| Signature-based detection | compares files with a database of patterns (signatures) of known malware; fast and accurate for known threats, but blind to new malware until the database is updated |
| Sandbox detection | runs a suspicious program in an isolated virtual environment and watches what it does, without risk to the real system |
| Heuristics | examines a program's code and behaviour for features typical of malware, so it can flag new variants with no signature yet |
| Data mining techniques | classify a file as harmful or not from patterns learnt across large numbers of known files |
| Real-time protection | scans files continuously as they are opened, downloaded or run, rather than only during a scheduled scan |
The defences follow: keep antivirus software and the operating system updated, avoid opening attachments or links from unknown senders, scan removable drives before opening them, download…
Hackers, Crackers and Network Threats
- White hat hackers (ethical hackers) find weaknesses in a system with the owner's permission so that they can be fixed.
- Black hat hackers (crackers) break into systems without permission for malicious ends — theft, damage or ransom.
- Grey hat hackers probe systems without permission but without malicious intent, often reporting what they find.
A Denial of Service (DoS) attack floods a server or network with so many requests that genuine users cannot be served; it attacks availability, not secrecy. In a Distributed DoS (DDoS) attack the flood comes from many compromised computers at once — a botnet of "zombie" machines whose owners usually do not know — which makes it far harder to block than traffic from a single source. An intruder may also attack confidentiality. Snooping is gaining unauthorised access to another person's data or communication, which may be examined later. Eavesdropping is secretly listening to a private communication as it happens — intercepting a call or a chat in real time.
- White hat (ethical)
- With permission, to fix weaknesses
- Grey hat
- Without permission, no malicious intent
- Black hat (crackers)
- Without permission, for theft or damage
A Denial of Service (DoS) attack floods a server or network with so many requests that genuine users cannot be served; it attacks availability, not secrecy. In a Distributed DoS (DDoS)…
Why Long and Varied Passwords Matter
A brute-force attack tries every possible password, so the number of possibilities is the measure of strength. A password of 8 lowercase letters has 26⁸ = 208,827,064,576 possibilities, about 2 × 10¹¹. If the characters may be lowercase, uppercase or digits, there are 62 choices per place and 62⁸ = 218,340,105,584,896, about 2 × 10¹⁴, which is a thousand times more. Adding length helps even more than adding character types. A dictionary word or a birthday, however long, is weak because attackers try such guesses first. Safe practice is to use a long passphrase, a different one for each account, together with two-step verification, and never to share it or reply to messages asking for it, which is how phishing works.
A brute-force attack tries every possible password, so the number of possibilities is the measure of strength. A password of 8 lowercase letters has 26⁸ = 208,827,064,576 possibilities…
Key takeaways
- A virus needs a host file and spreads when it is run; a worm spreads by itself over networks; a Trojan looks legitimate and does not replicate.
- Ransomware encrypts or locks data for a payment; spyware steals information; adware pushes ads; a keylogger records keystrokes.
- Malware spreads through downloads, spam attachments, removable drives and network propagation.
- Signature-based detection misses new malware; sandboxing and heuristics catch what has no signature yet.
- HTTPS encrypts what HTTP sends as plain text; a firewall filters traffic by rules; cookies are small text files that can threaten privacy.
- White hats hack with permission, black hats (crackers) with malice; DoS floods a service, DDoS does it from many machines; eavesdropping intercepts in real time.
Practice questions (24)
Attempt each one before opening the answer. Every explanation names the tempting wrong option as well as the right one, because that is where marks are lost.
A malicious program copies itself from one computer to another across a network on its own, without attaching to any file and without the user doing anything. What is it?
Show answer
Answer: C — Worm
Self-replication across a network with no host file and no user action is what defines a worm. A virus also copies itself but needs a host file and spreads when that file is run or shared. A Trojan does not replicate at all — it depends on the user installing it — and adware displays unwanted advertisements.An office finds all its files encrypted and a message demanding payment for the key to unlock them. Which kind of malware is responsible?
Show answer
Answer: B — Ransomware
Ransomware blocks access to data, typically by encrypting it, and demands a ransom for its release — WannaCry in 2017 worked this way. Spyware and keyloggers steal information quietly and want to stay unnoticed, the opposite of announcing themselves with a demand. Adware shows advertisements and does not lock files.A free "photo editor" downloaded from an unknown site works as advertised, but it has also quietly opened a backdoor for an attacker. It does not copy itself to other files. What is it?
Show answer
Answer: D — Trojan
A Trojan disguises itself as useful software so that the user installs it willingly, then carries out a hidden harmful task such as opening a backdoor; it does not replicate. A worm and a virus both copy themselves, which the question rules out. A cookie is a small text file stored by a website, not a program that can open anything.
Show the other 21 questions
Why should a password be entered only on a website whose address begins with https rather than http?
Show answer
Answer: A — HTTPS encrypts the data between browser and server, while HTTP sends it as plain text
Over HTTP the password travels as readable text that anyone intercepting the connection can see; HTTPS encrypts it with SSL/TLS and the site proves its identity with a certificate. HTTPS protects data in transit only — it does not remove malware already on the computer, does not make pages local, and does not prevent a site from setting cookies.What is the main function of a firewall?
Show answer
Answer: C — To monitor incoming and outgoing traffic and allow or block it according to rules
A firewall stands at the boundary of a network or computer and filters traffic in both directions against a set of rules, stopping unauthorised connections. Removing infections from files is the job of antivirus software, which works on what is already inside. A firewall does not compress data, and translating names into addresses is what DNS does.Which statement about cookies is correct?
Show answer
Answer: B — They are small text files stored by websites in the browser, and third-party cookies can track browsing
A cookie is a small text file a website saves on the user's computer through the browser, to remember logins, preferences or a cart; third-party cookies, from domains other than the site visited, can follow a person across sites, which is the privacy concern. Cookies are data, not programs, so they cannot run or replicate. They live on the user's side, and encryption is the work of HTTPS.A website becomes unreachable because thousands of compromised computers around the world flood it with requests at the same moment. What is this attack called?
Show answer
Answer: D — Distributed Denial of Service (DDoS)
Overwhelming a service so that genuine users cannot reach it is denial of service, and when the flood comes from many compromised machines at once — a botnet — it is distributed DoS, much harder to block than a single source. Eavesdropping and snooping attack secrecy by intercepting or accessing data, not availability, and spam-based phishing tricks individual users rather than flooding a server.Assertion (A): Signature-based antivirus software may fail to detect a newly created virus. Reason (R): Signature-based detection identifies malware by matching files against a database of patterns of already known malware.
Show answer
Answer: A — Both A and R are true, and R is the correct explanation of A
A new virus has no signature in the database yet, so a method that works only by matching known signatures cannot recognise it until the database is updated. R states exactly that mechanism, so it explains A. This is why antivirus software adds sandboxing and heuristics, which judge a program by its behaviour or code rather than by a stored pattern.A computer virus is a program that:
Show answer
Answer: A — Attaches itself to other files and spreads when they are run
A virus needs a host file to spread. A worm, by contrast, can spread on its own.A firewall is used to:
Show answer
Answer: A — Monitor and control network traffic according to security rules
A firewall filters traffic to block unauthorised access. It does not increase speed.Sending fake e-mails that appear to come from a bank to steal a user's details is called:
Show answer
Answer: A — Phishing
Phishing uses deceptive messages to obtain sensitive information. Spooling and booting are unrelated computer terms.Copyright protects:
Show answer
Answer: A — Original creative works such as books, music and software
Copyright covers original creative expression. Patents cover inventions and trademarks cover brand identifiers.Match List I with List II:
List I:
A. Virus;
B. Worm;
C. Trojan;
D. Ransomware
List II:
1. Encrypts files and demands payment;
2. Disguised as useful software but harmful;
3. Self-replicates across networks without a host file;
4. Attaches to files and spreads when they are runShow answer
Answer: A — A-4, B-3, C-2, D-1
A virus attaches to files (4), a worm self-replicates (3), a Trojan is disguised (2) and ransomware demands payment (1). Option 2 swaps virus and worm.Consider the following statements:
A. A worm can spread without attaching to a host file.
B. A Trojan appears to be useful software but performs harmful actions.
C. Antivirus software is never needed on a computer with a firewall.
D. Spyware secretly collects information about a user.
Choose the correct answer:Show answer
Answer: A — A, B and D only
A, B and D are correct. C is false because a firewall and antivirus guard against different threats, so option 4 is the trap.Assertion (A): Strong passwords improve security.
Reason (R): A long password mixing letters, digits and symbols is much harder to guess or crack.
Choose the correct option:Show answer
Answer: A — Both A and R are true and R is the correct explanation of A
Length and variety multiply the possibilities an attacker must try, which R states. Option 2 is wrong.The purpose of a Denial of Service (DoS) attack is to:
Show answer
Answer: A — Make a service unavailable to its users by overloading it
A DoS attack floods a server with requests so that genuine users cannot reach it. Silent password theft is spyware or phishing.The Information Technology Act, 2000 of India provides:
Show answer
Answer: A — Legal recognition to electronic records and digital signatures and defines cyber offences
The Act gives legal validity to electronic records and defines offences such as hacking. It has nothing to do with jobs or prices.Small text files stored by a website on a user's browser to remember the user's preferences are called:
Show answer
Answer: A — Cookies
Cookies remember sessions and preferences, and they can also track browsing. A firewall filters traffic and a worm is malware.A user receives an e-mail saying that his bank account will be blocked unless he clicks a link and enters his PIN. This is most likely:
Show answer
Answer: A — A phishing attempt
Banks do not ask for PINs through links in e-mails, and the urgency is a typical trick. Treating it as genuine would hand over the account.Encryption is the process of:
Show answer
Answer: A — Converting plain text into unreadable cipher text using a key
Encryption makes data unreadable to anyone without the key. Deleting and compressing do not protect the content.Assertion (A): Plagiarism is considered unethical.
Reason (R): It presents another person's work as one's own without giving credit.
Choose the correct option:Show answer
Answer: A — Both A and R are true and R is the correct explanation of A
Passing off another's work denies the creator credit, which R states. Option 2 is wrong.Which of the following is NOT a good practice for online safety?
Show answer
Answer: A — Sharing your password with friends
A shared password can be misused and loses its secrecy. The other three are recommended habits.A malware that locks a user's files by encryption and demands money to unlock them is called:
Show answer
Answer: A — Ransomware
Ransomware holds files hostage for a ransom. Adware shows unwanted advertisements and spyware secretly gathers data.A patent differs from a copyright in that a patent protects:
Show answer
Answer: A — A new invention and its working
A patent grants exclusive rights over an invention, whereas a poem or song is protected by copyright and a logo by a trademark.