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 |
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.
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 (8)
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.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.