Three promises of a ticket site
You buy a football ticket online. The site makes three promises.
One: nobody else can see your card details. Two: your ticket is for the right match and the right seat. Three: the site works on the day you need it.
Break one promise and you are unhappy. Security people call these three promises the CIA triad.
Key words
| Word | What it means | Example |
|---|---|---|
| Confidentiality | Keeping data private, so only the right people see it. | card details are hidden |
| Integrity | Data stays correct, unchanged by the wrong people. | the seat number is not changed |
| Availability | Data and systems there and useful when needed. | the site works on match day |
| Triad | A group of three. | three promises |
| Tampering | Changing something without permission. | changing a mark in secret |
| Access | The ability to see or use something. | a login |
| Breach | A security failure where data is lost, seen or changed. | a stolen password list |
| Control | Something that protects data or a system. | a password |
| DDoS | An attack that floods a site with traffic until it stops. | a shop site goes down |
| Malware | Harmful software. | a virus |
| Ransomware | Harmful software that locks your files and demands money. | a pay us message |
| Outage | A time when a system does not work. | the site is down for two hours |
The cells students fill in are left blank in this preview.
Quick check: C, I or A?
Have a go
Quick check: C, I or A?
3 questionsThe three goals
flowchart TD
c[Confidentiality: only the right people can see it]
i[Integrity: it is correct and unchanged]
a[Availability: it works when needed]
c --- i
i --- a
a --- c
What each goal needs
| Goal | Threat to it | A control that helps |
|---|---|---|
| Confidentiality | A stolen password list | Access control. Encryption (scrambling data) |
| Integrity | A stranger changes a mark | Permissions. Checks against a saved copy. Audit logs |
| Availability | A DDoS attack or a power cut | Backups. Spare systems. A firewall (a guard for internet traffic) |
The cells students fill in are left blank in this preview.
Which goal is broken?
Have a go
Which goal is broken?
6 questionsThe three goals depend on each other
They are not three separate boxes. Each goal helps the next goal.
If you keep data private, strangers cannot change it. So privacy helps integrity.
If data is correct and unchanged, it is useful and can be trusted. So integrity helps availability.
This is one way a failure can spread. It is not the only way: a DDoS attack or a power cut breaks availability on its own.
How one failure leads to another
flowchart LR
c1[Password stolen: confidentiality lost] --> i1[Attacker changes data: integrity lost]
i1 --> a1[Data is wrong, so the system is not useful: availability lost]
Try it: spot a change
saved = "Pay Sam 100 pounds"
now = "Pay Sam 100 pounds"
print("Unchanged?", now == saved)
# Change 100 to 900 in the line that says now = ... and run it again.
Make a free account to save your work and track your progress.
Extra: A hash spots a change
import hashlib
# A hash is a short fingerprint of the text. Keep only the fingerprint, not a whole copy.
def fingerprint(text):
return hashlib.sha256(text.encode("utf-8")).hexdigest()
saved = fingerprint("Pay Sam 100 pounds")
print(saved)
now = "Pay Sam 100 pounds"
print("Unchanged?", fingerprint(now) == saved)
# Change 100 to 900 in the line that says now = ... and run it again.
Make a free account to save your work and track your progress.
The goals can work against each other
| Too much of... | Can hurt... | Example |
|---|---|---|
| Confidentiality | Availability | So many checks that staff cannot do their work |
| Availability | Confidentiality | An open system that anybody can reach all day |
| Integrity checks | Speed | Checking every file every minute slows the system |
The cells students fill in are left blank in this preview.
Your turn: check each goal
Fill in three functions. The first says which goal an event breaks. The second says if text is unchanged, by comparing it with a saved copy. The third works out how many minutes a system was available. Press Run Tests.
def which_goal(event):
# Give back "confidentiality", "integrity" or "availability" for each event.
# "stolen password list" -> confidentiality
# "marks changed by a stranger" -> integrity
# "website down for two hours" -> availability
# Give back "unknown" for anything else.
return ""
def is_unchanged(text, saved_copy):
# True if text is exactly the same as the saved copy.
return False
def available_minutes(total_minutes, outages):
# outages is a list of whole numbers: minutes of each outage.
# Give back the minutes the system WAS available.
return 0
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 questionsKey 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
C is private. I is correct. A is there when needed. Each helps the next: privacy protects integrity, and integrity gives useful data.