The free game that was not free
Sam downloads a free game from a strange website. It works. But a week later her phone is slow and the battery is empty by lunch.
Then a message appears: "Your photos are locked. Pay 200 pounds to get them back."
What happened? Sam installed software that was built to cause harm.
Key words
| Word | What it means | Example |
|---|---|---|
| Malware | Malicious software: software made to cause harm. | a virus |
| Virus | Malware that hides inside a file and spreads when you open it. | a bad attachment |
| Worm | Malware that spreads by itself across a network (linked computers). | a copy that jumps from PC to PC |
| Trojan | Malware that pretends to be a useful program. | a fake free game |
| Keylogger | Malware that records every key you press. | it steals a typed password |
| Spyware | Malware that secretly watches what you do. | it sees the sites you visit |
| Ransomware | Malware that locks your files until you pay. | a locked photo folder |
| Botnet | A group of infected devices that one attacker controls. | 10,000 hacked cameras |
| DoS | Denial of service: so many requests that a site stops working for real users. | a shop site that will not load |
| DDoS | Distributed DoS: the requests come from many devices at once. | a botnet attack |
The cells students fill in are left blank in this preview.
Quick check: which is which?
Have a go
Quick check: which is which?
3 questionsSix kinds of malware
| Type | What it does | Harm to a person | Harm to a company |
|---|---|---|---|
| Virus | Hides in a file and spreads when it is opened | Damaged files | Damaged files and lost work |
| Worm | Spreads alone across a network | A slow device | A whole network slows down |
| Keylogger | Records key presses | Stolen passwords | Stolen passwords and secrets |
| Ransomware | Locks files until you pay | Lost photos | Work stops. Money is demanded |
| Spyware | Secretly watches you | Loss of privacy | Loss of secrets |
| Remote access trojan | Lets the attacker control the device from another place | Camera and files seen | Attacker can move to other devices in the network |
The cells students fill in are left blank in this preview.
Match the malware to the story
Have a go
Loading…
Your answers are marked here and are not kept. A college account keeps every student’s marks.
Too many visitors: DoS
A shop has one checkout. It serves one customer a minute. What if 600 fake customers stand in the queue?
Real customers wait a very long time. Then they leave.
A website is like that checkout. A DoS attack sends too many requests. The site is too busy for real users.
A botnet attack
flowchart TD
attacker([Attacker]) -->|sends orders| controller[Control computer]
controller --> bot1[Infected phone]
controller --> bot2[Infected camera]
controller --> bot3[Infected laptop]
bot1 -->|many requests| site[Target website]
bot2 -->|many requests| site
bot3 -->|many requests| site
user([Real user]) -.->|cannot get in| site
Try it: when is a server overloaded?
# A server can answer 100 requests each second.
capacity = 100
real_users = 40
attack = 0
total = real_users + attack
print("Requests this second:", total)
print("Overloaded?", total > capacity)
# Change attack to 500 and run it again.
Make a free account to save your work and track your progress.
DoS or DDoS?
Important
DoS: the requests come from one place. You can block that one address.
DDoS: the requests come from thousands of places. It is much harder to block.
Your turn: read a request log
A website keeps a log. Each line has the address of the sender. Fill in three functions. The first counts the requests from each address. The second finds the busiest sender. The third says if the log looks like a DDoS: many different addresses. A real log is longer, but the idea is the same. Press Run Tests.
def count_by_source(sources):
# sources is a list of sender addresses, like ["10.0.0.1", "10.0.0.2", "10.0.0.1"].
# Give back a dictionary: each address and how many times it appears.
return {}
def busiest_sender(sources):
# Give back the address that sent the most requests.
return ""
def looks_like_ddos(sources, limit):
# Give back True if MORE THAN limit different addresses sent requests.
return False
Make a free account to save your work, or press Start lab to work through the whole lesson.
Scenario: what went wrong?
Have a go
Scenario: what went wrong?
4 questionsHow to stop each threat
| Threat | Simple prevention |
|---|---|
| Virus, worm, trojan | Anti-malware software. Updates. Do not open strange files or install unknown programs. |
| Keylogger, spyware | Anti-malware software. Multi-factor authentication (asking for two proofs), so a stolen password is not enough. |
| Ransomware | Backups kept away from the main system. Staff training. Updates. Paying does not promise the files come back. |
| Botnet | Keep devices updated. Change the default password on cameras and on the router (the box that connects you to the internet). |
| DoS and DDoS | A firewall (a guard that blocks bad traffic), limits on requests, and a DDoS protection service. |
The cells students fill in are left blank in this preview.
Key words crossword
Have a go
Loading…
Your answers are marked here and are not kept. A college account keeps every student’s marks.
Final check
Have a go
Final check
5 questionsRemember
Important
Malware is software that causes harm: virus, worm, trojan, keylogger, spyware, ransomware. A botnet is a crowd of infected devices. DDoS uses that crowd to overload one website.