On this concept: Formula

Not sure which lesson to do first? Find your level and get a plan →

CS Thinking · Systems, Networks & Impact · Grade 6-8

Cybersecurity

The practice of protecting computing systems, networks, and data from unauthorized access, attacks, and damage.

security={confidentiality,integrity,availability}

Quick Answer

The practice of protecting computing systems, networks, and data from unauthorized access, attacks, and damage. Its three goals are confidentiality (only the right people can see the data), integrity (nobody can secretly change it) and availability (it works when people need it). You use it whenever someone might deliberately try to break in, trick a user, change records or shut a service down, and the defences come in layers: strong unique passwords, two-factor login, updates, backups and alertness to phishing.

Why This Matters

Most attacks are not film-style hacking but automated guessing and tricking: a password leaked from one site is tried on hundreds of others, and a fake 'your account is locked' email collects logins. Knowing the three goals tells you what each defence protects, and why one strong lock is not enough: a backup protects availability, two-factor login protects confidentiality, and neither replaces the other.

Intuitive Explanation

Think about a school's grade portal. Confidentiality: only you and your parents can see your grades. Integrity: nobody can change your 72 to a 92, or a 92 to a 42, without it being noticed. Availability: the portal works on report day instead of crashing. An attacker can go after any one of these. Stealing a login breaks confidentiality, editing marks breaks integrity, and flooding the site with fake traffic breaks availability.

Because attacks come from different directions, defences come in layers. A strong password stops guessing. Two-factor login, a code from your phone as well as the password, stops someone who has stolen the password. Software updates close holes that attackers already know about. Backups mean that if ransomware locks the files, they can be restored. Teaching people to spot a fake email stops the trick that gets around all the technology. Each layer covers a gap the others leave.

Cybersecurity is about a deliberate attacker, and that is how you tell it apart from nearby ideas. A laptop that loses a file because its drive wore out has a reliability problem, not an attack, although backups help with both. Privacy is about who is allowed to collect and use your data at all, even when nobody breaks in: an app that legally sells your location raises a privacy question. Encryption is one tool cybersecurity uses, not the whole job.

Think of it like this. Cybersecurity is like protecting a bank: locks on the vault (confidentiality), cameras and receipts so nobody can quietly change the records (integrity), and doors that open during business hours (availability). Banks rely on many layers, not one big lock. The difference: a digital burglar can try a million doors a minute from the other side of the world.

Core idea. Security involves three goals: confidentiality (only authorized access), integrity (data isn't tampered with), and availability (systems stay running).


When to Use

Use cybersecurity when a problem involves someone deliberately trying to get in, trick people or cause damage: stolen or guessed passwords, phishing emails, malware, ransomware, a hacked account. Sort each threat by the goal it attacks: confidentiality, integrity or availability. If the question is about who may collect and use personal data, with no attacker involved, that is Privacy; if it is specifically about scrambling data with a key, use Encryption.

Tip. Ask: Is someone deliberately trying to get in, trick a user, change data or shut a system down?

How to Recognize It

Before you call it a cybersecurity problem, look for an attacker and for what they are after.

  1. Is a person or a harmful program acting on purpose against the owner's wishes?

    Yes means cybersecurity. If the worry is a company collecting data you agreed to share, with no attacker, that is Privacy.

  2. Would the attack expose data, change it, or make a service stop working?

    Yes: those break confidentiality, integrity and availability. Name which one, because each needs a different defense, such as Encryption for secrecy or backups for availability.

  3. Is the question only about locking data so outsiders cannot read it?

    Yes points to Encryption, one tool inside cybersecurity. Cybersecurity also covers passwords, updates, backups and people.

  4. Does the attack work by fooling a person rather than breaking the technology?

    Yes is still cybersecurity, as with phishing, and the defense is training and checking. If nothing was attacked and a program simply crashed from its own mistake, that is Debugging.

Cybersecurity vs Privacy vs Encryption vs Debugging

News stories about data often mix these together. Ask whether there is an attacker, whether it is about who may use your information, whether it is one locking tool, or whether a program simply has a bug.

Cybersecurity

Meaning
Cybersecurity is the work of keeping systems and data safe from people who attack them on purpose.
Key test
There is an attacker, and something could be stolen, changed or shut down.
Formula
{confidentiality,integrity,availability}
Example
Turning on two-factor login so a stolen password alone cannot open your account.

Privacy

Meaning
Privacy is your right to decide what personal information is collected about you and who may use it.
Key test
No attacker is needed; the issue is permission and control.
Example
A map app asking to track your location even when it is closed.

Encryption

Meaning
Encryption turns readable data into scrambled ciphertext that only a matching key can unlock.
Key test
It is one specific tool; it protects secrets but cannot stop every attack.
Formula
ciphertext=Ek(plaintext)
Example
A messaging app that scrambles chats so that even the company's servers cannot read them.

Debugging

Meaning
Debugging is finding and fixing mistakes in a program that make it behave wrongly.
Key test
The fault came from the program's own error, not from an attacker.
Example
A school portal crashes every Monday because of a date bug, with no hacker involved.

Formula & Notation

security={confidentiality,integrity,availability}
Cybersecurity enforces the CIA triad: Confidentiality (C), Integrity (I), and Availability (A) over a system's assets. Threats are modeled as adversaries attempting to violate one or more of {C,I,A}, and controls are countermeasures that reduce risk.

Worked Examples

Example 1 — Which goal does each attack break?

Easy

A school's online homework system has three incidents: (a) someone logs in with a teacher's stolen password and downloads every student's home address; (b) a student changes their own quiz score from 6 to 10; (c) attackers flood the site with millions of fake requests, so nobody can log in the night before a deadline. Which security goal does each attack, and what defence would help?
Show the steps and the answer
  1. (a) breaks confidentiality.

    Private data was seen by someone not allowed to see it; two-factor login would have stopped a stolen password from working on its own.

  2. (b) breaks integrity.

    Data was changed without permission; letting students only view scores, and logging every change, would block it or reveal it.

  3. (c) breaks availability.

    Nothing was stolen or changed, but nobody could use the system; filtering out the fake traffic keeps the site running.

Answer: (a) confidentiality, defended with two-factor login; (b) integrity, defended with permissions and change logs; (c) availability, defended by filtering the flood of fake traffic.

Takeaway: Name the goal an attack breaks, and the right defence follows from it.

Example 2 — Attack, accident or privacy question?

Standard

Which of these is a cybersecurity problem: (a) an attacker sends a fake 'reset your password' email to every student; (b) a laptop's hard drive wears out and a project is lost; (c) a free game shares players' ages with advertisers, as its terms say it will?
Show the steps and the answer
  1. (a): a person is deliberately tricking users to steal their logins.

    That is phishing, an attack on confidentiality; the defences are spotting fake emails and using two-factor login.

  2. (b): nobody attacked anything; a part failed.

    It is a hardware reliability problem. A backup would help, but there is no attacker.

  3. (c): nobody broke in, and the sharing follows the terms.

    Whether that sharing is acceptable is a privacy question about who may use your data, not a security breach.

Answer: Only (a) is a cybersecurity attack. (b) is a hardware failure and (c) is a privacy issue.

Takeaway: Cybersecurity needs a deliberate attacker; without one, think about reliability or privacy instead.

Example 3 — Find the mistake: one strong password everywhere

Application

Zara uses one long password, TigerSunset!2024, for her email, her games and her school account. She says: 'It's so strong nobody can guess it, so I'm fully secure.' Then a game site she uses is hacked and its list of passwords is leaked. Find the mistake.
Show the steps and the answer
  1. Follow the leak: attackers now have her email address and that exact password.

    A strong password protects against guessing, not against being stolen from a site that was hacked.

  2. Follow the attack: automated tools try the leaked email and password on email, school and shopping sites.

    Because she reused it, one leak opens every account; this trick is called credential stuffing.

  3. Fix it with layers: a different password for every account (a password manager helps) and two-factor login on her email and school account.

    Then a leak exposes only one account, and even that password is useless without the code from her phone.

Answer: Strength is not enough when one password is reused everywhere: after the leak, every account is at risk. She needs a unique password for each account plus two-factor login.

Takeaway: No single defence is enough; unique passwords and two-factor login cover gaps that a strong password leaves.

Where You'll See It

  • Signing in with a password and a code

    Your school account asks for your password and then a 6-digit code from an app on your phone. Those are two separate factors, something you know and something you have, so a person who steals only the password still cannot get in. That protects confidentiality.

  • A school's grade portal getting hacked

    If an attacker changes students' grades, that breaks integrity; if they lock the portal so teachers can't log in, that breaks availability — two of the three CIA goals failing at once.

  • A phishing email pretending to be your gaming account

    Cybersecurity isn't only software — a fake 'reset your password' email tries to trick a human, which is why human awareness is as important as strong technology.

Common Mistakes

  1. The slip: Cybersecurity is only about keeping secrets (confidentiality).

    Why it's tempting: 'Hacking' is usually shown as stealing data, so security feels like it's only about hiding information.

    Instead: Security has three goals — confidentiality, integrity (data isn't tampered with), and availability (systems stay running). All three can be attacked.

  2. The slip: A long, strong password by itself makes you fully secure.

    Why it's tempting: A complex password feels unbreakable, so it seems like the whole job is done.

    Instead: Strong passwords help, but multi-factor authentication, software updates, and avoiding phishing are equally needed — a single layer is not enough.

  3. The slip: Only big companies and governments get attacked, so individuals are safe.

    Why it's tempting: News covers huge breaches, so small targets feel invisible and not worth attacking.

    Instead: Individuals and small organizations are frequent targets, often via automated attacks that don't care who you are.


Mini Practice

Try these on your own. Tap Reveal when you want to check.

  1. Label each attack with the security goal it hurts (confidentiality, integrity or availability): (a) a hacker reads your private messages, (b) a virus changes grades in a school database, (c) a flood of fake traffic crashes a game server.

    Hint: Ask whether data was seen, changed, or made unreachable.

  2. A phone lock screen uses a 4-digit PIN, each digit 0-9. How many PINs are possible? If an attacker could try 1 PIN per second, how many hours could it take to try them all?

    Hint: Each of the 4 digits has 10 choices. There are 3,600 seconds in an hour.

  3. Compare a 6-character password of lowercase letters only (26 choices per character) with a 6-character password using lowercase, capitals and digits (62 choices per character). About how many times more passwords does the second allow?

    Hint: Count each total as choices per character raised to the power 6, then divide.

  4. An email says "Your school account closes in 1 hour. Click here to log in" and links to schoo1-login.com. Name two warning signs, and say what you should do.

    Hint: Look closely at the web address and at how the message tries to rush you.

  5. An app's settings let you choose whether it shares your location with advertisers. Is this mainly a cybersecurity question or a privacy question?

    Hint: Is anyone breaking in, or is someone choosing who gets their data?

  6. Zoe says: "My password is 16 characters long, so I don't need two-factor login or software updates." What is wrong?

    Hint: Think about how a password can be stolen, and what old software can let in.

Want the full set?

50 practice questions for this concept — free to try, every one with a complete worked solution showing the why, not just the answer.

Frequently Asked Questions

What makes a password strong?

Length matters more than odd symbols. A password made of four random, unrelated words is much harder to guess than a short one like P@ssw0rd, because attackers' programs try common words with predictable letter swaps first. The most important rule is to use a different password for every account, so one leaked password cannot open the rest. A password manager can remember them all for you.

What is ransomware?

Ransomware is a harmful program that locks or encrypts the files on a computer and then demands payment to unlock them. It attacks availability: the files are still there, but no one can use them. Hospitals, schools and city governments have all been hit. The best defense is a recent backup kept separate from the computer, because then the files can be restored without paying.

How can I spot a phishing message?

Look for pressure and mismatches. Phishing messages often claim something urgent, such as an account being closed today, and ask you to click a link or share a code. Check the sender's real address and look at where a link actually goes; a bank link that leads to a strange web address is a warning. When unsure, open the app or website yourself instead of using the link.

Is it hacking if I log into my friend's account as a joke?

It can be. Getting into an account without the owner's permission is unauthorized access, even if you meant no harm and changed nothing. In many countries it breaks the law, and schools usually treat it as a serious rule break. Cybersecurity depends on permission: the same login is fine for the owner and an attack for anyone else.

Learning Path

← Before

NetworkProtocol
Cybersecurity

You are here

You should know Network (how devices connect) and Protocol (the rules that move data between them), because most attacks travel over networks and abuse how protocols are used. Cybersecurity adds the three goals, confidentiality, integrity and availability, and layered defences for each. Next, Privacy asks who should be allowed to have your data at all, and Encryption is the main tool for keeping data unreadable to attackers.

See Also