MarzleyTech Learn

Home / Learn / Cybersecurity / Cybersecurity basics: the CIA triad, threats, vulnerabilities, risk, attackers and the core defences

Cybersecurity basics: the CIA triad, threats, vulnerabilities, risk, attackers and the core defences

Cybersecurity is protecting computers, phones, networks, accounts and data from attack, damage and unauthorised access. It affects everyone: an individual losing M-Pesa savings to a SIM-swap scam, a school whose records are encrypted by ransomware, a business whose website is defaced, a hospital whose patient data leaks, a county whose services go offline. Kenya's rapid digital growth (mobile money, eCitizen, online banking, e-commerce) makes it a big target, and the national cybersecurity agencies regularly report many millions of cyber threat events each quarter.

This first unit builds the vocabulary and thinking you'll use throughout the subject.

Why it matters

WhoWhat's at stake
IndividualsMoney (M-Pesa, bank), social media accounts, photos, identity, reputation
Small businessesCustomer data, payments, websites, the business's survival after ransomware
Large organisationsMillions of customer records, operations, regulatory fines, trust
Government and critical servicesCitizens' data, power, water, health, elections

The CIA triad

Every security decision protects one or more of three goals:

GoalMeaningExample attackExample control
ConfidentialityOnly authorised people can see dataData breach, eavesdropping on Wi-FiEncryption, passwords, access permissions
IntegrityData isn't altered without authorisationChanging bank details on an invoice, defacing a websiteHashes, digital signatures, change logs, backups
AvailabilitySystems and data are there when neededRansomware, DDoS attacks, hardware failureBackups, redundancy, DDoS protection, patching

Related: AAA = Authentication (proving who you are), Authorisation (what you're allowed to do), Accounting (logging what you did). And non-repudiation: proof someone did something (e.g. a digitally signed transaction) so they can't deny it.

Key terms

TermMeaningExample
AssetSomething valuable to protectCustomer database, laptop, M-Pesa account, reputation
ThreatSomething that could cause harmA criminal, malware, a fire, a careless employee
VulnerabilityA weaknessUnpatched software, weak password, open port, untrained staff
ExploitA method/tool that uses a vulnerabilityCode that abuses a known bug in an old router
RiskLikelihood × impact of a threat exploiting a vulnerabilityHigh: an unpatched public website holding ID numbers
ControlA measure that reduces riskPatching, MFA, backups, training
Attack surfaceAll the points an attacker could tryEvery open port, login page, staff email, USB port
Zero-dayA vulnerability with no fix available yetRare, valuable to attackers

Managing risk

Organisations can mitigate (reduce with controls), transfer (insurance, outsourcing), avoid (stop the risky activity) or accept (live with small risks) each risk. Fix the biggest risks first.

Python · runs live in the interactive lesson
# A simple risk register: likelihood and impact from 1 (low) to 5 (high)
risks = [
    ("Staff fall for phishing", 5, 4),
    ("Ransomware encrypts file server", 3, 5),
    ("Website defaced via old plugin", 3, 3),
    ("Laptop stolen (unencrypted)", 2, 4),
    ("Server room flood", 1, 5),
]
for name, likelihood, impact in sorted(risks, key=lambda r: -(r[1] * r[2])):
    score = likelihood * impact
    level = "HIGH" if score >= 15 else "MEDIUM" if score >= 8 else "LOW"
    print(f"{score:2}  {level:6} {name}")

Who attacks and why

AttackerMotivationTypical attacks
CybercriminalsMoneyPhishing, ransomware, M-Pesa and bank fraud, card theft, selling data
ScammersMoneyFake jobs, investment fraud, social engineering (see the scams lessons)
HacktivistsPolitical or social causesWebsite defacement, DDoS, data leaks
InsidersRevenge, money, or accidentData theft, sabotage, accidental leaks
Nation-state groupsEspionage, disruptionAdvanced, persistent attacks on governments and critical infrastructure
Script kiddiesFun, reputationUsing ready-made tools against easy targets

Most attacks on individuals and small businesses are opportunistic: automated tools scan for easy targets (default passwords, unpatched sites, people who click). You don't need to be "important" to be attacked; you need to be not easy.

Common attack types at a glance

AttackWhat it isLesson
Phishing and social engineeringTricking people into giving information or accessPhishing lessons
Malware and ransomwareMalicious software; ransomware encrypts files for paymentMalware, backups
Password attacksGuessing, credential stuffing with leaked passwordsPasswords and 2FA
SIM swapTaking over your phone number to steal M-Pesa/bank accessSocial engineering
Web attacksSQL injection, XSS, broken access controlWeb security
DoS/DDoSOverwhelming a service with trafficNetworking security
Man-in-the-middleIntercepting traffic, e.g. on fake Wi-FiEncryption and HTTPS

Defence in depth

No single control stops everything. Layer them:

LayerControls
PeopleAwareness training, clear policies, reporting culture
IdentityStrong unique passwords, password managers, MFA, least privilege
DevicesUpdates, antivirus/EDR, encryption, screen locks, app store installs only
NetworkFirewalls, segmentation, secure Wi-Fi, VPN
ApplicationsSecure coding, patching plugins, WAF
DataEncryption, access control, backups (3-2-1)
Monitoring and responseLogs, alerts, an incident response plan

Security controls are also grouped as preventive (stop attacks: MFA, firewalls), detective (spot them: logs, alerts, antivirus), and corrective (recover: backups, incident response).

The human factor

Most successful attacks involve a human mistake: clicking a phishing link, reusing a password, sharing an OTP, installing a fake app. Technology helps, but awareness and a culture where people report mistakes quickly (without fear) are among the most effective defences.

Kenyan laws and bodies

Law/bodyWhat it does
Computer Misuse and Cybercrimes Act, 2018Makes unauthorised access, interception, computer fraud, cyber harassment and related acts crimes
Data Protection Act, 2019Rules for handling personal data; enforced by the Office of the Data Protection Commissioner (ODPC); breaches must be reported
National KE-CIRT/CC (under the Communications Authority of Kenya)National cyber incident response team: advisories, incident coordination
DCI (Directorate of Criminal Investigations)Investigates cybercrime reports

Because unauthorised access is a crime, ethical hackers always need written permission before testing any system they don't own.

Your personal security baseline

  1. Use a password manager and unique passwords; turn on 2FA for email, M-Pesa-linked accounts, banking and social media.
  2. Update your phone, computer, browser and apps promptly.
  3. Install apps only from official stores; avoid "modded" APKs.
  4. Never share PINs, passwords or OTP codes, with anyone.
  5. Back up important files (cloud + an offline copy).
  6. Be suspicious of urgency, unexpected links and "too good to be true" offers.
  7. Lock devices with a PIN/biometric; enable find-my-device and remote wipe.
Think about it: A small pharmacy keeps customer records on one laptop with no password, never updates it, and has no backup. Using the terms threat, vulnerability and risk, describe its situation and two priority fixes.Show answer

Vulnerabilities: no login password, unpatched software, no backups. Threats: theft, malware/ransomware, hardware failure. Risk: high, because likely events would cause serious impact (losing or leaking patient data, plus Data Protection Act obligations). Priority fixes: regular backups (3-2-1) and securing the device (strong login, updates, disk encryption, antivirus).

Summary

  • Cybersecurity protects people, businesses and government from digital harm; everyone is a potential target.
  • The CIA triad: confidentiality, integrity, availability; AAA: authentication, authorisation, accounting.
  • Risk = likelihood × impact of a threat exploiting a vulnerability; mitigate, transfer, avoid or accept.
  • Attackers range from criminals and scammers to insiders and nation-states; most attacks are opportunistic.
  • Defence in depth layers people, identity, devices, network, applications, data and monitoring; Kenyan law criminalises unauthorised access and requires data protection.

Check yourself

  1. What do the letters CIA stand for in security? (three words)

    Show answer

    confidentiality integrity availability

  2. A weakness such as unpatched software is called a …?

    Show answer

    vulnerability

  3. Tricking someone into revealing information is called …?

    Show answer

    phishing

  4. Risk is roughly likelihood multiplied by what?

    Show answer

    impact

  5. Which Kenyan office enforces the Data Protection Act? (abbreviation)

    Show answer

    ODPC

  6. A vulnerability with no fix available yet is called a what? (hyphenated)

    Show answer

    zero-day

Lesson 1 of 13 in Cybersecurity · Written by · Course notes