TExcelTAD
Home › Cybersecurity › The CIA Triad & Risk

The CIA Triad & Risk

When security people ask "is this system secure?", they mean something specific: does it keep its information confidential, keep it intact, and keep it available? These three goals are called the CIA triad (nothing to do with the intelligence agency). Almost every control in this course protects at least one of them.

The three properties

Property Question it answers Broken when… Typical controls
Confidentiality Can only the right people read it? A database dump appears online; a laptop is stolen Encryption, access control, MFA
Integrity Is it correct and unmodified? An attacker changes a bank account number in an invoice Hashes, MACs, signatures, change control
Availability Can authorised people use it when needed? Ransomware encrypts the file server; a DDoS takes the shop offline Backups, redundancy, rate limiting, patching

The properties sometimes pull against each other. Encrypting every backup with a key nobody can find protects confidentiality perfectly and destroys availability. Good design finds a balance that fits the data.

Two more properties are often added:

  • Authenticity: the data or person really is who or what it claims to be.
  • Non-repudiation: someone cannot later deny an action they took (digital signatures and audit logs provide it).

Classifying incidents

A good habit when you read about any incident is to ask which property was hit. Here is a tiny classifier that does it with keywords:

python · try it yourself
IMPACT = {
    "confidentiality": ["leak", "stolen", "exposed", "read"],
    "integrity": ["modified", "altered", "tampered", "defaced"],
    "availability": ["offline", "encrypted by ransomware", "deleted", "outage"],
}

incidents = [
    "customer emails exposed in a public bucket",
    "website defaced by hacktivists",
    "file server encrypted by ransomware",
    "invoice IBAN tampered and backups deleted",
]

for text in incidents:
    hit = [prop for prop, words in IMPACT.items()
           if any(word in text for word in words)]
    print(f"{text:<45} -> {', '.join(hit)}")
customer emails exposed in a public bucket    -> confidentiality
website defaced by hacktivists                -> integrity
file server encrypted by ransomware           -> availability
invoice IBAN tampered and backups deleted     -> integrity, availability

Real incidents often hit several properties at once. Modern ransomware groups, for example, copy data before encrypting it, so they attack confidentiality and availability together.

What is risk?

You can never remove every weakness, so security work is about risk: how likely something bad is, and how much it would hurt. The simplest model is

risk = likelihood × impact

Both factors are usually scored on a small scale such as 1–5. The product (1–25) lets you sort a list of risks so that the most serious get attention first. A table of such scores is called a risk register.

python · try it yourself
risks = [
    ("Phishing steals a staff password", 4, 4),
    ("Unpatched VPN appliance exploited", 3, 5),
    ("Office flooded", 1, 4),
    ("Laptop left on a train", 3, 2),
    ("Public bucket misconfigured", 2, 5),
]

def level(score):
    if score >= 15:
        return "HIGH"
    if score >= 8:
        return "MEDIUM"
    return "LOW"

register = sorted(risks, key=lambda r: r[1] * r[2], reverse=True)
print(f"{'risk':<36}{'L':>2}{'I':>3}{'score':>7}  level")
for name, likelihood, impact in register:
    score = likelihood * impact
    print(f"{name:<36}{likelihood:>2}{impact:>3}{score:>7}  {level(score)}")
risk                                 L  I  score  level
Phishing steals a staff password     4  4     16  HIGH
Unpatched VPN appliance exploited    3  5     15  HIGH
Public bucket misconfigured          2  5     10  MEDIUM
Laptop left on a train               3  2      6  LOW
Office flooded                       1  4      4  LOW

These scores are judgements, not measurements. Their value is in making a team discuss each risk and agree on priorities.

Treating a risk

For each risk an organisation picks one of four responses:

Response Meaning Example
Mitigate Add controls that lower likelihood or impact Turn on MFA to lower the phishing risk
Transfer Let someone else carry part of the cost Cyber insurance, a managed hosting provider
Avoid Stop doing the risky thing Don't store card numbers at all; use a payment provider
Accept Live with it, consciously and in writing A low risk where the fix costs more than the damage

The risk left over after controls is the residual risk. Let's see how controls change the register. Each control reduces likelihood or impact by some points (never below 1):

python · try it yourself
risks = {
    "Phishing steals a staff password": (4, 4),
    "Laptop left on a train": (3, 2),
}
controls = {
    "Phishing steals a staff password": ("MFA for every account", -2, 0),
    "Laptop left on a train": ("Full-disk encryption", 0, -1),
}

for name, (likelihood, impact) in risks.items():
    control, dl, di = controls[name]
    new_l = max(1, likelihood + dl)
    new_i = max(1, impact + di)
    print(name)
    print(f"  inherent {likelihood * impact:>2} -> residual {new_l * new_i:>2}  ({control})")
Phishing steals a staff password
  inherent 16 -> residual  8  (MFA for every account)
Laptop left on a train
  inherent  6 -> residual  3  (Full-disk encryption)

MFA does not stop phishing emails arriving, but it makes a stolen password much less useful, so likelihood drops. Disk encryption doesn't stop laptops being lost, but a lost encrypted laptop leaks nothing, so impact drops.

Tip: Write down accepted risks with an owner and a review date. "We accepted it" should be a decision someone made, not something that just happened.

Go further: CIA, AAA and Access Control adds authentication, authorization and accounting to the triad and shows how a missing AAA step is detected and fixed.

Test yourself

A DDoS attack that takes an online shop offline mainly harms which property?

  1. Confidentiality
  2. Integrity
  3. Availability
  4. Non-repudiation

With risk = likelihood × impact on 1–5 scales, which risk ranks higher: (L=2, I=5) or (L=4, I=3)?

  1. (2, 5) with score 10
  2. (4, 3) with score 12
  3. They are equal
  4. Impact always wins, so (2, 5)

A company decides to use a payment provider so it never stores card numbers itself. Which risk response is that?

  1. Accept
  2. Avoid
  3. Mitigate
  4. Ignore