Live lesson · progress saved to your account

Security Principles

The mental models professionals actually use: the CIA triad and beyond, core design principles, risk, threat modelling with STRIDE, the Cyber Kill Chain and MITRE ATT&CK.

beginner90 minwalkthrough

Anyone can read this lesson. To submit answers and earn XP, create a free account.

TASK 01Why principles come first

Tools change every year. Principles don't.

A penetration tester, a SOC analyst and a security architect all look at the same system and ask the same questions:

  1. What are we protecting? (assets: data, money, reputation, uptime)
  2. From whom? (threat actors and their motivation)
  3. How could it go wrong? (vulnerabilities and attack paths)
  4. What do we do about it? (controls, detection, response)
How a security professional thinks Auto-play
  1. 01What are we protecting?Assets: data, money, uptime, reputation
  2. 02From whom?Threat actors & their motives
  3. 03How could it go wrong?Vulnerabilities & attack paths
  4. 04What do we do about it?Controls, detection, response

This room gives you the vocabulary and frameworks to answer those questions like a professional. By the end you will be able to:

  • Classify any incident using the CIA triad (and know where it falls short)
  • Apply design principles like least privilege, defence in depth and zero trust
  • Calculate and treat risk
  • Run a basic threat model with STRIDE
  • Break an attack down with the Cyber Kill Chain and map it to MITRE ATT&CK

Every term in bold here shows up again in interviews, certifications (Security+, CEH, ISC2 CC) and real incident reports.

Answer the questions

+5 XP

TASK 02The CIA triad, properly

The CIA triad is the foundation model of information security. Every security control protects at least one of these three properties.

The CIA triad Click a corner
ASSET

Confidentiality

How we protect it

Encryption · MFA · access control

Attacked by

Data breach, sniffing, shoulder-surfing

Watch it on a real network. Pick a property, then flip between Defended and Attacked:

CIA: protecting a payment, live Pick a property

Alice

Public Wi-Fi

Bob's bank

Eve (attacker)

Confidentiality holds. Payment is encrypted. Eve sniffs the Wi-Fi but only sees ciphertext.

ControlsEncryption (TLS), MFA, access control

PropertyQuestion it answersTypical controlsExample failure
ConfidentialityCan only authorised people read it?Encryption, access control, MFA, data classificationA leaked database of Aadhaar-linked records
IntegrityIs it accurate and unaltered?Hashing, digital signatures, checksums, change controlAn attacker edits the bank account number on an invoice
AvailabilityCan authorised people use it when needed?Backups, redundancy, DDoS protection, patchingRansomware takes a hospital's systems offline

The opposite view: DAD

Attackers aim for the reverse of CIA, called DAD:

  • Disclosure → breaks confidentiality
  • Alteration → breaks integrity
  • Destruction / Denial → breaks availability

Trade-offs are real

The three properties pull against each other. Encrypting everything with keys only two people hold maximises confidentiality but hurts availability if both are on leave. Security is the art of the right balance for the asset. A public website cares most about availability and integrity, while a medical record system cares deeply about confidentiality.

Beyond the triad

CIA is not the whole story. Two more properties come up constantly:

  • Authenticity: is the data or person genuinely who or what it claims to be?
  • Non-repudiation: can someone deny they performed an action? Digital signatures and tamper-proof logs prevent this.

The Parkerian Hexad (Donn Parker, 1998) extends CIA to six: confidentiality, possession/control, integrity, authenticity, availability and utility.

Case: in November 2022 ransomware hit AIIMS Delhi and forced staff onto manual paper processes for days. That was primarily an availability attack, and investigations also raised fears of data theft (a confidentiality impact).

Answer the questions

+10 XP

+10 XP

+10 XP

+10 XP

+10 XP

TASK 03Core security design principles

These principles are how secure systems are designed, not bolted on afterwards.

AAA: Authentication, Authorisation, Accounting

  1. Authentication: prove who you are.
  2. Authorisation: decide what you're allowed to do.
  3. Accounting (auditing): record what you did.
AAA: watch one login and two requests Live

priya

Authentication

Authorisation

Reports app

Accounting log

Authentication: password + OTP prove it's priya, and she gets a token.

Authorisation: her role allows READ, so the DELETE request is blocked.

Accounting: every decision is written to the audit log.

Authentication factors fall into categories:

FactorExample
Something you knowPassword, PIN
Something you havePhone OTP, hardware key (YubiKey), smart card
Something you areFingerprint, face
Somewhere you are / something you doLocation, typing pattern

MFA requires factors from different categories. A password plus a security question is still one factor type (both are "know").

The big principles

  • Least privilege: give every user, service and process the minimum access it needs, for the minimum time. A compromised account can only do what it was allowed to do.
  • Defence in depth: layer independent controls (firewall → WAF → secure code → database permissions → monitoring) so one failure isn't fatal.
Defence in depth: attacks stream in, layers catch them Live
  • Policy & training
  • Perimeter firewall
  • Network segmentation
  • Endpoint (EDR)
  • Application (WAF)
  • Data (encryption)

Red attack packets are stopped at different layers, while green legitimate users reach the data. No single layer has to be perfect.

  • Separation of duties: split critical actions so no single person can complete them alone (one employee creates a vendor, another approves payment).
  • Zero trust: never trust, always verify. Being "inside the network" grants nothing. Every request is authenticated, authorised and checked continuously.
Castle-and-moat: inside means trusted Toggle the model

Employee

Stolen laptop

Intranet

HR app

Customer DB

Payroll

The stolen laptop is already inside the office network, so every system trusts it. The attacker spreads freely (red).

  • Fail securely: when something breaks, it should default to deny. A crashed authentication service should lock doors, not open them.
  • Secure by default / design: ship with safe settings (no default passwords, unnecessary ports closed).
  • Keep it simple (economy of mechanism): complex systems hide bugs. Less code means less attack surface.
  • Open design: security must not depend on keeping the design secret. Security through obscurity alone is not security (Kerckhoffs's principle).

Answer the questions

+10 XP

+10 XP

+10 XP

+10 XP

+10 XP

TASK 04Threats, vulnerabilities and risk

These words are often used loosely. Professionals don't.

TermMeaningExample
AssetAnything of valueCustomer database
VulnerabilityA weakness that can be exploitedSQL injection in the login form
ThreatSomething that could exploit a vulnerabilityA criminal group selling stolen data
Threat actorThe who behind a threatScript kiddie, hacktivist, insider, organised crime, nation-state (APT)
ExploitThe method or code that uses the vulnerabilityA crafted ' OR 1=1 -- payload
RiskLikelihood × impact of a threat exploiting a vulnerabilityHigh: easy to find, catastrophic if leaked

Calculating risk

Risk = Likelihood × Impact

With a simple 1–5 scale, a vulnerability that is likely (4) with severe impact (5) scores 20/25, so fix it first.

Risk matrix: likelihood × impact Drag the sliders or click a cell

Impact →

3 × 4 =

12/25

High: plan a fix

Mitigate soon; consider transferring (insurance).

Vulnerabilities are scored with CVSS (Common Vulnerability Scoring System) from 0.0 to 10.0. A score of 9.0–10.0 is Critical. Publicly known vulnerabilities get a CVE ID such as CVE-2021-44228 (Log4Shell).

Four ways to treat risk

  1. Mitigate (reduce): apply controls (patch, add MFA).
  2. Transfer: shift the financial impact (cyber insurance, outsourcing).
  3. Avoid: stop the risky activity entirely (decommission the old server).
  4. Accept: consciously live with it when fixing costs more than the impact. This must be a documented, management-level decision.

Ignoring a risk is not acceptance. Acceptance is a decision; ignorance is negligence.

The attack surface

The attack surface is the sum of all points where an attacker can try to get in: open ports, web forms, APIs, employees' inboxes, third-party vendors. Reducing it is one of the cheapest security wins.

Answer the questions

+10 XP

+10 XP

+10 XP

+10 XP

+10 XP

TASK 05Threat modelling with STRIDE

Threat modelling is a structured way to find security problems before code is written, when fixing them is cheapest.

Every threat model answers four questions (Adam Shostack's framework):

  1. What are we working on? Draw it as a data-flow diagram.
  2. What can go wrong? Use STRIDE.
  3. What are we going to do about it? Choose mitigations.
  4. Did we do a good job? Validate.

STRIDE

Created at Microsoft in 1999, STRIDE maps each threat category to the security property it breaks:

STRIDE on a live UPI payment flow Pick a threat

User's phone

API gateway

Payment service

Bank DB

Attacker

Threat

₹100 becomes ₹10,000 in transit.

Property broken

Integrity

Mitigation

Request signing, server-side validation

LetterThreatProperty violatedExample in a UPI payment app
SSpoofingAuthenticityAttacker logs in as the victim with a stolen OTP
TTamperingIntegrityPayment amount modified in the API request
RRepudiationNon-repudiationUser denies authorising a payment and there are no logs to prove it
IInformation disclosureConfidentialityAPI returns other users' transaction history
DDenial of serviceAvailabilityFlood of requests crashes the payment gateway
EElevation of privilegeAuthorisationNormal user calls an admin-only refund endpoint

Walking through a data flow

[User phone] --(HTTPS)--> [API gateway] --> [Payment service] --> [Bank DB]
       trust boundary ↑                 trust boundary ↑

A trust boundary is where data moves between zones with different trust levels. Threats cluster at boundaries, so apply STRIDE at each one.

Other methods worth knowing

  • DREAD: scores threats on Damage, Reproducibility, Exploitability, Affected users, Discoverability.
  • PASTA: a seven-stage, risk-centric process aligned with business objectives.
  • Attack trees: the attacker's goal at the root, with the ways to reach it as branches.

Answer the questions

+10 XP

+10 XP

+10 XP

+10 XP

+10 XP

TASK 06The Cyber Kill Chain

Published by Lockheed Martin in 2011, the Cyber Kill Chain breaks a targeted intrusion into seven stages. The key insight for defenders: break any link and the attack fails.

The Cyber Kill Chain, live on the network Watch the intrusion

Attacker

Mail server

Victim PC

C2 server

File server

Phase 1 · Reconnaissance

Port scan and LinkedIn scraping to map the target

Defender opportunity

Limit public info, alert on scans

Switch to Defender mode and break the chain at any phase.

#PhaseAttacker activityDefender opportunity
1ReconnaissanceHarvest emails from LinkedIn, scan public IPs, find tech stackLimit public info, monitor scanning
2WeaponizationBuild a malicious document with an embedded payload(Mostly invisible: happens on attacker side)
3DeliverySend the phishing email, USB drop, compromised websiteEmail filtering, user awareness
4ExploitationVictim opens file; macro or vulnerability executes codePatching, disable macros, EDR
5InstallationDrop a backdoor and set persistenceApplication allow-listing, EDR
6Command & Control (C2)Implant beacons out to the attacker's serverEgress filtering, DNS monitoring
7Actions on ObjectivesSteal data, encrypt files, move laterallyDLP, segmentation, backups

A worked example

  1. Recon: attacker finds the finance team's emails on a company website.
  2. Weaponization: creates GST_Invoice_Oct.xlsm with a malicious macro.
  3. Delivery: emails it from a look-alike vendor domain.
  4. Exploitation: an accountant enables macros and the payload runs.
  5. Installation: a scheduled task keeps the implant alive after reboot.
  6. C2: the implant beacons over HTTPS to cdn-update[.]net.
  7. Actions: credentials are dumped and payroll data is exfiltrated.

Limitations

The Kill Chain is linear and perimeter-focused. It models the initial break-in well but says little about what happens inside the network (lateral movement, privilege escalation) or insider threats. The Unified Kill Chain (Paul Pols, 2017) extends it to 18 phases covering the full attack, and MITRE ATT&CK goes deeper still.

Answer the questions

+10 XP

+10 XP

+10 XP

+10 XP

+10 XP

TASK 07MITRE ATT&CK: the attacker's playbook

MITRE ATT&CK (Adversarial Tactics, Techniques and Common Knowledge) is a free, globally used knowledge base of real attacker behaviour, built from observed intrusions.

Tactics, techniques, procedures (TTPs)

  • Tactic: the attacker's goal at a step, the "why". IDs look like TA0001.
  • Technique: how they achieve it. IDs look like T1566.
  • Sub-technique: a more specific variant, e.g. T1566.001.
  • Procedure: the exact implementation a specific group used.

The 14 Enterprise tactics

MITRE ATT&CK: replaying an intrusion Auto-play

Recon

TA0043

T1593

Search Open Websites

Resource Dev

TA0042

Initial Access

TA0001

Execution

TA0002

Persistence

TA0003

Priv Esc

TA0004

Defense Evasion

TA0005

Credential Access

TA0006

Discovery

TA0007

Lateral Movement

TA0008

Collection

TA0009

C2

TA0011

Exfiltration

TA0010

Impact

TA0040

T1593 Search Open Websites under Recon

IDTacticAttacker goal
TA0043ReconnaissanceGather information to plan
TA0042Resource DevelopmentSet up infrastructure, accounts, tools
TA0001Initial AccessGet into the network
TA0002ExecutionRun malicious code
TA0003PersistenceSurvive reboots and password changes
TA0004Privilege EscalationGain higher permissions
TA0005Defense EvasionAvoid detection
TA0006Credential AccessSteal usernames and passwords
TA0007DiscoveryLearn the environment
TA0008Lateral MovementMove to other systems
TA0009CollectionGather target data
TA0011Command and ControlCommunicate with compromised systems
TA0010ExfiltrationSteal the data out
TA0040ImpactDisrupt, destroy or encrypt

Techniques you should recognise

IDTechnique
T1566Phishing (.001 attachment, .002 link)
T1190Exploit Public-Facing Application
T1078Valid Accounts
T1059Command and Scripting Interpreter (.001 PowerShell)
T1003OS Credential Dumping
T1021Remote Services (RDP, SSH, SMB)
T1486Data Encrypted for Impact (ransomware)

How teams use it

  • Red teams emulate a real group's TTPs.
  • Blue teams map detections to techniques and find coverage gaps with the ATT&CK Navigator.
  • Threat intel reports describe groups by their techniques, giving everyone a shared language.

The Pyramid of Pain

David Bianco's Pyramid of Pain shows how much it hurts an attacker when you detect and block each indicator, from easiest to change (bottom) to hardest (top):

            ▲  TTPs            ← tough: attacker must change behaviour
           ▲▲  Tools
          ▲▲▲  Network/host artifacts
         ▲▲▲▲  Domain names
        ▲▲▲▲▲  IP addresses
       ▲▲▲▲▲▲  Hash values     ← trivial: recompile, new hash

This is why detecting behaviour (TTPs) beats blocking hashes.

The Pyramid of Pain Click a level

Pain to the attacker

Trivial

Hash values

Recompile the malware, new hash instantly

Answer the questions

+10 XP

+10 XP

+10 XP

+10 XP

+10 XP

+10 XP

TASK 08Case study: Operation Ledger

Put it all together. Read this fictional incident report, then map it.

Operation Ledger: the intrusion, step by step Auto-play
  1. 1Scrape LinkedIn, guess email format
  2. 2Phishing email 'from GST portal' + .docm
  3. 3Macro runs PowerShell, downloads loader
  4. 4Scheduled task restarts implant at boot
  5. 5Beacons every 60s to gst-verify[.]info
  6. 6Mimikatz dumps a domain admin's creds
  7. 7RDP into the file server
  8. 840 GB of KYC docs to cloud storage
  9. 9File servers encrypted, ransom note

Incident summary: Shakti Finance Pvt Ltd (fictional)

  1. The attacker scraped staff names from the company's LinkedIn page and guessed the email format firstname.lastname@.
  2. Finance staff received an email "from the GST portal" with an attached Notice_GSTR3B.docm.
  3. An analyst enabled macros. A PowerShell command downloaded a loader.
  4. The loader created a scheduled task to restart itself on every boot.
  5. It beaconed every 60 seconds to gst-verify[.]info over HTTPS.
  6. Using Mimikatz, the attacker dumped cached credentials, including a domain admin's.
  7. With those credentials they connected over RDP to the file server.
  8. 40 GB of customer KYC documents were uploaded to cloud storage.
  9. Finally, all file servers were encrypted and a ransom note demanded payment in crypto.

Work through it:

  • Which CIA properties were hit? (KYC leak → confidentiality; encryption → availability.)
  • Which Kill Chain phase is step 2? Step 5?
  • Which ATT&CK techniques appear? Phishing attachment, PowerShell, scheduled task, credential dumping, remote services, data encrypted for impact.
  • Which design principles failed? Should an analyst's laptop cache a domain admin's credentials? (Least privilege.) Why could one workstation reach the file server over RDP? (Segmentation / defence in depth.)
  • Which STRIDE threat describes step 7? (Spoofing: the attacker authenticates as the admin.)

Answer the questions

+10 XP

+10 XP

+10 XP

+10 XP

+10 XP

+10 XP

TASK 09Wrap-up and what's next

You now have the frameworks professionals use every day:

Your new toolkit Unlocked

CIA / DAD

What was harmed

Design principles

Build it to resist

Risk = L × I

What to fix first

STRIDE

Find threats early

Kill Chain

Where to break it

ATT&CK

Name the behaviour

FrameworkUse it to…
CIA / DADDescribe what was harmed
AAA and design principlesDesign systems that resist attack
Risk = Likelihood × ImpactDecide what to fix first
STRIDEFind threats before building
Cyber Kill ChainUnderstand the stages of an intrusion and where to break it
MITRE ATT&CKDescribe attacker behaviour precisely and measure detection coverage

Keep going

  • Explore the live matrix at attack.mitre.org: pick one technique and read its detections.
  • Read a real public incident report and try mapping it like you did in Operation Ledger.

Next up in Security Fundamentals: how networks actually move data, the foundation for every attack you'll learn.

Answer the questions

+20 XP