Easier to read with cream paper, a tint, more contrast or larger text? Choose your colours and text, once, for every page.

Free lesson

8.4 (1 of 2): The CIA triad

The whole lesson, free. Read it and have a go at the activities. To work the tasks and labs in the real lesson, press Start lab, with no account needed.

40 minutes

A quick check that you are not a bot, then your own lab opens on the interactive lesson.

Already have an account? Sign in

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

WordWhat it meansExample
ConfidentialityKeeping data private, so only the right people see it.card details are hidden
IntegrityData stays correct, unchanged by the wrong people.the seat number is not changed
AvailabilityData and systems there and useful when needed.the site works on match day
TriadA group of three.three promises
TamperingChanging something without permission.changing a mark in secret
AccessThe ability to see or use something.a login
BreachA security failure where data is lost, seen or changed.a stolen password list
ControlSomething that protects data or a system.a password
DDoSAn attack that floods a site with traffic until it stops.a shop site goes down
MalwareHarmful software.a virus
RansomwareHarmful software that locks your files and demands money.a pay us message
OutageA 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 questions
Have a go: your answers are marked here and then forgotten. Sign in if you would like your score kept, and to pick up where you left off.Sign in to keep your score

The 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

GoalThreat to itA control that helps
ConfidentialityA stolen password listAccess control. Encryption (scrambling data)
IntegrityA stranger changes a markPermissions. Checks against a saved copy. Audit logs
AvailabilityA DDoS attack or a power cutBackups. 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 questions
Have a go: your answers are marked here and then forgotten. Sign in if you would like your score kept, and to pick up where you left off.Sign in to keep your score

The 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

Code: python
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

Code: python
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
ConfidentialityAvailabilitySo many checks that staff cannot do their work
AvailabilityConfidentialityAn open system that anybody can reach all day
Integrity checksSpeedChecking 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.

Code: python
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 questions
Have a go: your answers are marked here and then forgotten. Sign in if you would like your score kept, and to pick up where you left off.Sign in to keep your score

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 questions
Have a go: your answers are marked here and then forgotten. Sign in if you would like your score kept, and to pick up where you left off.Sign in to keep your score

Remember

Important

C is private. I is correct. A is there when needed. Each helps the next: privacy protects integrity, and integrity gives useful data.

Teach this lesson with your class

On a college account your students work the tasks and the labs as well, and every mark is kept for you.