Established 2026  ·  Free Educational Resources for All

Computer & AI · Computing Fundamentals

Cybersecurity Basics: Threats, Defences and Good Digital Habits

Most attacks rely on a reused password, a missed update or one rushed click. This guide explains how malware, phishing and weak passwords work, and which defences matter most, with diagrams, worked examples and a quiz.

EDUSAMBAM Editorial Team | 18 min read | Computing Fundamentals |Last updated: October 2026
🔊 LISTEN TO THIS ARTICLE
SAVE YOUR EYES • IMPROVE YOUR LISTENING
Listen to the article instead of relying only on continuous screen reading.
Ready to read the article.

Every phone, laptop and online account holds something worth protecting: photos, messages, school work, money, or simply the ability to use the device at all. Cybersecurity is the practice of protecting those things from people who try to steal, change, or lock them. The good news is that most attacks are not clever. They rely on a reused password, a missed update, or one rushed click. This guide explains what is being protected, how the common attacks work, and which defences matter most, so the advice you hear ("use a strong password", "don't click that link") becomes something you understand rather than a rule you memorise. Everything here is defensive: it is about protecting yourself, not about attacking anyone.

Helpful background: What Is the Internet, Really? explains how data travels, and Search Engines & Web Browsers explains how web addresses work, which helps with the section on suspicious links.

1.What Does Cybersecurity Protect?

Security professionals describe the goals of protection using three words, often called the CIA triad (nothing to do with any agency):

The three goals of security: confidentiality, integrity and availability A triangle with a circle at each corner. Confidentiality means only the right people can see data. Integrity means data has not been wrongly changed. Availability means data can be used when needed. Data sits in the middle. The three goals of security Data and services C I A Confidentiality only the right people can see it Integrity not wrongly changed Availability usable when needed
Figure 1. Good security keeps all three goals in balance. The dashed outline moves gently unless your device is set to reduce motion.
Worked Example 1: Which goal was broken?

For each incident, decide which goal is mainly affected.

One incident can break more than one goal, so it helps to ask the question for each of the three.

2.Four Words Worth Knowing: Asset, Threat, Vulnerability, Risk

Thinking in terms of risk helps you decide what to fix first, because you cannot fix everything at once.

Worked Example 2: Ranking risks

A simple method is to score likelihood from 1 (very unlikely) to 5 (very likely) and impact from 1 (minor) to 5 (severe), then multiply: risk = likelihood × impact. The scores below are judgements made for teaching, not measurements.

SituationLikelihoodImpactRisk
Same password used on five sites, including email4520
Phone with no screen lock is lost3412
Phone updates ignored for months339
A classmate glimpses your lock-screen notification212

Conclusion: fix the password reuse first (20), then add a screen lock (12), then turn on updates (9). The last item is worth ignoring for now. The numbers are subjective, but the habit of ranking is useful.

Attackers have different motives, and most are criminals looking for money. Most attacks on ordinary people are opportunistic: huge numbers of messages are sent or passwords tested, to see who falls for it. That is why "nobody would want to hack me" is not a good defence. Automated attacks do not choose targets by name.

3.Malware: Software Built to Cause Harm

Malware (short for malicious software) is any program designed to damage a system, steal from it, or take control of it. Common types are:

TypeWhat it does
VirusAttaches itself to a legitimate file and spreads when that file is shared or opened
WormSpreads on its own across networks, without needing a file to attach to
TrojanPretends to be useful software so that a person installs it willingly
RansomwareLocks (encrypts) a victim's files and demands payment for the key
SpywareSecretly records activity and sends it to an attacker; a keylogger records what is typed
BotnetA group of infected devices controlled together, often used to send spam or flood websites

Malware usually arrives through ordinary routes: an email attachment or link, a fake or pirated download, a malicious advertisement or website, an infected USB drive, or a weakness in software that has not been updated. Warning signs include unexpected pop-ups, programs you did not install, a device that is suddenly much slower or hotter, a battery that drains unusually fast, or security tools that have been switched off. None of these proves infection by itself, but together they are worth checking.

Real-World Example: WannaCry (2017)

On 12 May 2017, a ransomware worm called WannaCry spread rapidly around the world and disrupted many organisations, including services in the National Health Service in England. It used a flaw in Windows for which Microsoft had already released a fix in March 2017. Computers that had not applied that update were exposed. The lesson was clear and still applies: updates matter because attackers actively use known flaws, and a patch only protects the devices on which it is installed.

4.Phishing and Social Engineering: Attacking the Person

Many successful attacks never break any software. Instead, they trick a person. This is called social engineering. The best known form is phishing: a message, usually an email or text, that pretends to be from a trusted source to get you to click a link, open a file, or enter a password on a fake page. Related forms include smishing (by text message), vishing (by phone call) and spear phishing, which targets one person using details found about them, so the message looks far more convincing than a mass email.

Phishing works by pressing human buttons: urgency ("act in 24 hours"), fear ("your account will be closed"), greed ("you have won") or authority ("this is your headteacher/bank"). The aim is to make you act before you stop to think.

Warning signs in a fake email An example fake email with four numbered warning signs: an unfamiliar sender address, an urgent threat in the subject, a generic greeting, and a link that points to a different website than the one it names. Spot the warning signs (made-up example) New message From: MyBank Support <help@mybank-alerts.example> Subject: URGENT! Verify now or account closed Dear Customer, We noticed unusual activity. You must confirm your details within 24 hours. Verify account → www.mybank.example.verify-login.example 1 2 3 4 1 Sender: the address is not the bank's real one 2 Pressure: urgent threat to rush you 3 Greeting: generic, not your name 4 Link: the real domain is not the bank's (see Worked Example 3 for how to read it)
Figure 2. All names and addresses are invented. Any one sign is a reason to stop and check; several together are a strong warning.
Worked Example 3: Which website does this link really go to?

The link in Figure 2 reads www.mybank.example.verify-login.example. The words "example" are used here because it is a name reserved for teaching, so no real site is involved.

Step 1: Find where the address ends. The address part finishes at the first single "/" (or at the end if there is none). Here there is no "/", so the whole thing is the address.

Step 2: Read from the right. The real website is the last two parts, the domain: verify-login.example. Everything to the left (www.mybank.example.) is only a prefix chosen by whoever owns that domain.

Step 3: Compare. The genuine bank's domain would be mybank.example, with nothing after it before the first "/". Here the bank's name appears only as part of the prefix, to look familiar.

Conclusion: this link goes to verify-login.example, not the bank. Do not click it. Instead, open the bank's app or type its address yourself.

Note: some countries use two-part endings such as .co.uk, so the rule is "the name just before the ending", but the habit of reading from the right still works.

What to do with a suspicious message: do not click links or open attachments, do not reply, check the claim by going to the real website or app yourself, report it (most email and messaging services have a report option), and delete it. In school or at work, tell the person responsible for IT.

5.Passwords: Length, Uniqueness and Reuse

A password protects an account only if an attacker cannot guess it or find it elsewhere. There are two main dangers:

Worked Example 4: Why length beats cleverness

The number of possible passwords is (number of possible characters) raised to the power of (length). Suppose an attacker can test 10 billion guesses per second against a stolen file. That figure is only an illustration. Real speeds vary hugely depending on how the website stored the password, so treat these as comparisons, not promises.

What this shows: each extra character multiplies the work, so a few extra characters make a huge difference. A long passphrase of random words can match a short, tricky-looking password but is easier for a person to remember.

Important limit: these figures assume the characters or words are chosen truly at random. Passwords made of names, dates or familiar patterns such as "Summer2026!" are guessed much faster because attackers try those first. Random choice is what makes the arithmetic work.

Illustrative time to guess six kinds of password A bar chart on a logarithmic scale showing time to guess at ten billion guesses a second: 8 lowercase letters, 21 seconds; 4 random words, 27 minutes; 8 any characters, 7 days; 12 lowercase letters, 110 days; 6 random words, 203 years; 12 any characters, 1.5 million years. Time to guess (illustration) 8 lowercase letters 4 random words 8 any characters 12 lowercase letters 6 random words 12 any characters 21 seconds 27 minutes 7 days 110 days 203 years 1.5 million years Bar length is on a logarithmic scale: a bar a little longer means many times more time.
Figure 3. Based on Worked Example 4 (10 billion guesses a second, fully random choices). The numbers are illustrations; the pattern is what matters.

What current expert guidance says

Modern guidance, including the United States' NIST Digital Identity Guidelines (SP 800-63B) and the CISA "Secure Our World" campaign, points the same way: use long passwords, make them unique for every account, and use a password manager, which is a program that creates and stores strong passwords for you so you only remember one strong master password. NIST also advises that services should not force strange symbol rules or force people to change passwords on a timetable. Changing a password is needed when there is evidence it may be compromised, for example after a breach. Making people change passwords constantly tends to produce weaker, more predictable ones.

6.Multi-Factor Authentication and Passkeys

Authentication means proving you are who you say you are. There are three kinds of proof:

Multi-factor authentication (MFA), also called two-step verification, requires proof from at least two different kinds. If someone steals your password, they still cannot log in without the second factor. Not all second factors are equally strong. A code from an authenticator app is generally safer than a code sent by text message, and a physical security key resists phishing even better. Any form of MFA is still much better than none. Turn it on first for your email, because email can be used to reset other accounts.

Passkeys are a newer way to log in. Instead of a password, your device holds a secret cryptographic key and proves possession of it, usually after you unlock the device with a fingerprint, face or PIN. Because there is no password to type, there is nothing for a fake website to steal in the usual way. Many major services now support passkeys, though support varies.

If you get a login approval request or code you did not ask for, do not approve it. Someone may have your password, so change it.

7.Encryption: Making Stolen Data Useless

Encryption scrambles data using a mathematical key so that only someone with the right key can read it. The original readable data is called plaintext and the scrambled version is ciphertext.

Worked Example 5: A very old cipher, and why it is weak

The Caesar cipher is named after the Roman general Julius Caesar, who is said to have used something similar. It shifts each letter forward by a fixed number. The key is the shift. Let us use a shift of 3.

Encrypt "CYBER": C→F, Y→B (after Z the alphabet wraps back to A), B→E, E→H, R→U. The ciphertext is FBEHU.

Decrypt: shift each letter back by 3: F→C, B→Y, E→B, H→E, U→R, giving CYBER again.

Why it is weak: there are only 25 possible shifts, so anyone can try them all in moments. Modern encryption works on the same idea (a key scrambles the data) but uses keys with so many possibilities that trying them all is impossible. For example, a 128-bit key has 2128 (about 3.4 × 1038) possible values.

You rely on encryption every day:

A VPN (virtual private network) encrypts your connection between your device and the VPN company's server. It can protect against snooping on the local network and hide your address from the sites you visit, but it does not make you anonymous. Instead, you are trusting the VPN company with the data your internet provider would otherwise see.

8.Defence in Depth: Many Layers

No single protection is perfect, so security uses layers. This idea is called defence in depth. If one layer fails, another can still stop the attack, just as a castle has a moat, walls and guards.

Layers of protection around your data Nested boxes. From the outside in: people and habits, network, devices, accounts, and at the centre, your data. People: awareness, caution, good habits Network: firewall, secure Wi-Fi, HTTPS Devices: updates, anti-malware, screen lock Accounts: unique passwords, MFA Your data files, photos, messages, money + backups kept separately
Figure 4. Defence in depth. An attacker has to get past several layers, and each layer you strengthen makes the next one less likely to be needed.

Here are the main tools and what each one does:

9.Backups and Ransomware

Ransomware shows why backups are a security tool and not just a convenience. If a clean copy of your files exists somewhere the attacker cannot reach, a ransomware attack becomes an inconvenience rather than a disaster. A widely used rule of thumb is 3-2-1: keep 3 copies of important files, on 2 different kinds of storage, with 1 kept off-site or offline. Remember that an always-connected synced folder is not a true backup, because deletions and encrypted files can sync too (see Cloud Computing for the difference).

If ransomware strikes, disconnect the device from the network to limit the spread, tell the responsible adult or IT team, and do not rush to pay. Law-enforcement and security agencies generally advise against paying, because payment does not guarantee that the files will be returned and it encourages further attacks.

10.Staying Safe on Phones, Wi-Fi and Social Media

For more on what you leave behind online, see Digital Footprint & Online Privacy.

11.If Something Goes Wrong

Mistakes happen to careful people too. The most important rule is to act quickly and tell someone instead of hiding it. If you think an account has been taken over:

  1. Use a device you trust to change the password, making it new and unique.
  2. Turn on MFA, and sign out of all other devices if the service offers that option.
  3. Check the account's recovery email and phone number, and any forwarding rules, in case the attacker changed them.
  4. Change the password anywhere else you used the same one.
  5. Tell a trusted adult, teacher or IT team, and report the problem to the service.

If money was sent, contact the bank or payment provider immediately. If a message or photo is being used to threaten you, keep the evidence, do not give in, and talk to a trusted adult.

12.Law and Ethics

Getting into someone else's computer, account or network without permission is illegal in most countries, even "just to see". Security is a respected career, and ethical hackers test systems only with the owner's clear permission. If you are curious, practise on systems you own or on environments built for learning.

13.Common Mistakes and Misconceptions

14.Check Your Understanding

Try each question first, then tap it to reveal the answer. A scored multiple-choice quiz follows below.

1. What do the letters C, I and A stand for in the CIA triad?

Confidentiality (only the right people can see data), Integrity (data is accurate and not wrongly changed) and Availability (data can be used when needed).

2. What is the difference between a threat and a vulnerability?

A threat is something that could cause harm, such as a scammer. A vulnerability is a weakness that the threat could use, such as an out-of-date app or a reused password.

3. What is the real website in the link www.shop.example.cheap-deals.example/login?

The address ends at the first single "/", so read from the right: the domain is cheap-deals.example. The "shop.example" part is only a prefix.

4. Why does password length matter so much?

Each extra character multiplies the number of possible passwords, so the work needed to guess it grows enormously. Random choice is also essential, because predictable passwords are tried first.

5. Why is MFA helpful even if your password is stolen?

The attacker also needs the second factor, such as a code from your authenticator app or a security key, so the password alone is not enough to log in.

6. Why is a synced folder not a good defence against ransomware?

Because the encrypted or deleted files can sync too, so every copy may be damaged. A separate backup, ideally off-line or off-site, can survive an attack.

15.Summary

For Teachers and Parents

Spot the phish (no accounts needed): print several made-up messages, some genuine-looking and some fake, and have pairs mark every warning sign. Use only invented addresses such as the reserved ".example" names.

Password arithmetic: ask students to recalculate Worked Example 4 with their own password-length ideas, using a calculator, and discuss why random choice is necessary.

Safety note: please keep all practice to invented examples. Do not test real passwords, scan other people's networks or try to access accounts that are not your own. Tell students to speak to a trusted adult if they are being threatened or pressured online.

16.Sources and Further Reading

This article is original EDUSAMBAM writing. It follows widely accepted public guidance, listed below, and all diagrams are original EDUSAMBAM schematics. The password calculations are plain arithmetic using an illustrative guess rate, all example names and addresses are invented, and the risk scores are teaching judgements. Where this article states a historical event, it is from the documented record.

Threats and best practice change over time, so check the current advice from your school, your service providers and national cybersecurity agencies. If you are in immediate danger or being threatened online, contact your local emergency services and a trusted adult.

Test Your Understanding

Practice Quiz

10 questions. Select an answer for each, then submit to see your score instantly.

0 of 10 answered
0/10
You scored 0%
Keep practicing
1.Which security goal means information is accurate and has not been wrongly changed?
2.What is a vulnerability?
3.How is spear phishing different from ordinary phishing?
4.In the link www.shop.example.cheap-deals.example/login, which is the real domain?
5.What is credential stuffing?
6.Which change does the most to make a random password harder to guess?
7.Why does multi-factor authentication help even if your password is stolen?
8.With a Caesar cipher using a shift of 3, what does "BAD" become?
9.You get a message saying your account will close in 24 hours unless you click a link. What is the best response?
10.What lesson does the WannaCry attack of 2017 teach?
← Previous: AI Agents: When AI Takes Action, Not Just TalksGateway