Cyber Security Basics 📂 Foundation · 1 of 4 34 min read

Foundations of Cybersecurity — What is Cyber, What is Security, and Why the Problem is So Hard

A foundational tutorial demystifying cybersecurity from the ground up. Covers the meaning of "cyber," the CIA Triad (Confidentiality, Integrity, Availability), the four core concepts (asset, threat, vulnerability, risk), the attack surface, threat actors, the Cyber Kill Chain, defence in depth, and three real-world incidents — all with animated diagrams and zero code.

Section 01

The Word Behind the Word — What Does "Cyber" Actually Mean?

From Greek Helmsmen to Hackers
In 1948, mathematician Norbert Wiener coined cybernetics from the Greek kybernetes — meaning "steersman" or "helmsman" — the person on a ship who reads the wind, the waves, and the stars, and constantly adjusts the rudder to keep the vessel on course.

The word never meant "computer." It meant any system that senses, decides, and acts. A thermostat. A nervous system. A factory robot. A power grid. The internet.

Today, "cyber" is the prefix we attach to anything that lives in that web of sensing-deciding-acting machines. "Cyber" = the entire networked, programmable world we have built around ourselves.

When people hear "cybersecurity" most picture a person in a hoodie typing furiously into a black terminal. That is theatre. The real definition is far more useful — and far more uncomfortable. Cyber refers to the entire fabric of digital systems that now run civilization: laptops, phones, cloud servers, hospital pacemakers, traffic lights, power plants, satellites, dishwashers, cars, and the billions of invisible APIs gluing them together.

🌐
The Honest Definition

"Cyber" is everything that depends on software, networks, or data to function. If you can unplug it and it stops working, it is cyber. Your phone is cyber. Your bank is cyber. The power grid is cyber. Your car — increasingly — is cyber.


Section 02

What Does "Security" Mean? — The CIA Triad

Before adding "cyber" to it, let's strip "security" back to basics. In every domain — from a medieval castle to a modern data centre — security has always meant protecting three things. We call them the CIA Triad (no relation to the agency).

🛡️ The CIA Triad — Animated
CONFIDEN- TIALITY Only the right eyes see it INTEGRITY unaltered Nothing is tampered with AVAILABILITY accessible It works when needed SECURITY All three. Always.

All three corners must hold. Lose any one, and security fails — even if the other two are perfect.

🔒
Confidentiality
"Don't read it"
Information stays visible only to people authorised to see it. Encryption, access control, and need-to-know enforcement live here.
⚖️
Integrity
"Don't change it"
Data is exactly what its author intended — no silent edits, no fake injections. Hashes, digital signatures, and audit logs protect this.
Availability
"Don't break it"
The system actually works when someone needs it. Backups, redundancy, DDoS protection, and uptime engineering live here.
💡
A Simple Mnemonic

C — Can the wrong person read it?   I — Can the wrong person change it?   A — Can the right person still use it? Every security control you will ever encounter exists to defend at least one of these letters.


Section 03

Putting It Together — What Is Cybersecurity?

Now we can stitch the two halves into a sharp, working definition:

Working Definition
Cybersecurity = the practice of protecting
Confidentiality + Integrity + Availability
of digital systems and the data inside them.
It is not about hacking. It is about defending the three pillars across every system that has ever been connected to a network.

Notice what this definition does not include. It says nothing about passwords, firewalls, antivirus, or any specific technology. Those are controls — tools we use to defend the three pillars. The pillars themselves are the goal. Tools come and go; the goal is permanent.

⚠️
The Common Misunderstanding

Most people think cybersecurity is "stopping hackers." That framing is wrong because it puts the attacker at the centre of the story. Cybersecurity is protecting an asset — your data, your service, your users' trust. The attacker is just one of many threats to that asset. Floods, hardware failures, careless employees, and bad code can all break the CIA triad without a single hacker involved.


Section 04

The Four Words Every Defender Lives By

Cybersecurity is built on four interlocking concepts. Internalise them and the entire field becomes legible. Confuse them and you will misunderstand every news story and every product pitch you ever read.

📊
Asset
what you protect
Anything of value: customer data, source code, a database, a service uptime, a brand reputation, an employee's laptop. Without an asset, there is nothing to defend.
🏴️
Threat
who/what could harm it
Anything that could cause loss: a criminal gang, a nation-state, an angry insider, ransomware, a hurricane, a typo in a deploy script. Threats exist whether or not you can be hurt by them.
🧹
Vulnerability
the weakness
A flaw an attacker can exploit: an unpatched server, a default password, a misconfigured cloud bucket, an employee who reuses passwords. Without vulnerabilities, threats have nothing to grip.
🚨
Risk
the actual exposure
Risk = Asset value × Threat likelihood × Vulnerability severity. It is the only one that matters at the boardroom level. Defenders do not eliminate risk — they reduce it to acceptable levels.
The Bank Vault
Imagine a bank. The asset is the cash inside the vault. The threat is the gang of robbers plotting an attack across town. The vulnerability is the rusted hinge on the back door nobody has inspected in two years. The risk is the combination: high-value cash × motivated robbers × broken hinge = a real chance of loss.

Replace the back door and you reduce the vulnerability — risk drops, even though the threat (the robbers) still exists. This is exactly how cybersecurity works. You rarely defeat the threat. You eliminate the vulnerabilities they would use.

Section 05

The Risk Equation — Animated Diagram

🔥 How Risk Emerges From Three Ingredients
ASSET customer data brand, money × THREAT attacker likelihood, capability × VULNERABILITY unpatched bugs, weak configs = RISK expected loss to the business If any term = 0, total risk = 0 (remove vulnerabilities → reduce risk)

You cannot delete the threat (you don't control criminals). You can delete the vulnerability — and zero in any term collapses the entire risk.


Section 06

The Attack Surface — Why There's More to Defend Than You Think

Your attack surface is every door, window, vent, and crack an attacker could come through. On a typical small company, this is enormous and growing. Each item below is a real entry point that defenders must consider.

🏠 Mapping a Modern Attack Surface
Layer 1
People — every employee with email, every contractor with VPN access, every customer with a login. Each is a potential phishing target.
Layer 2
Endpoints — laptops, phones, tablets, USB drives, printers, security cameras. Anything with a CPU and a network jack.
Layer 3
Network — Wi-Fi, switches, routers, firewalls, VPN endpoints. Internal traffic, external traffic, side-channel traffic.
Layer 4
Servers & cloud — every EC2 instance, every S3 bucket, every Kubernetes cluster, every database, every container.
Layer 5
Applications — websites, APIs, mobile apps, internal tools. Each form field, each upload endpoint, each query parameter.
Layer 6
Supply chain — every npm package, every Docker image, every SaaS vendor. Their compromise is your compromise.
Layer 7
Physical — office locks, server-room doors, lost laptops, "tailgaters" into the building, dropped USB sticks in the car park.
📐
The Asymmetry Problem

The defender must protect all of these layers, on every system, every day. The attacker only needs one weak link, in any layer, on any day. Defence requires perfection across thousands of decisions. Attack requires one win. This is the fundamental unfairness at the heart of cybersecurity — and the reason breaches keep happening to even the best-funded organisations.


Section 07

Who Are The Threat Actors?

"Hackers" is a useless word — it lumps a curious teenager in with a nation-state. Defenders categorise threat actors by motivation, capability, and resources, because each category requires a different defence.

💸
Cybercriminals
Motivated by money. Use ransomware, banking trojans, payment-card theft, and fraud. Organised, professional, sometimes industrial-scale.
most common threat to business
🏴️
Nation-State Actors
Government-backed teams pursuing espionage, sabotage, or geopolitical advantage. Patient, well-funded, very hard to detect. Also called APTs.
advanced persistent threats
🔫
Hacktivists
Driven by ideology — political, environmental, social. Goal is publicity: website defacements, data leaks, coordinated DDoS attacks.
ideologically motivated
👨‍💻
Insiders
Employees and contractors who already have legitimate access. Malicious insiders steal data; negligent insiders misconfigure things. Often the hardest to detect.
trust gone wrong
🎯
Script Kiddies
Inexperienced individuals using off-the-shelf tools they did not write. Noisy, opportunistic, low-skill — but dangerous when defences are also low.
low skill, high volume
🤴
Security Researchers
"White hats" who find vulnerabilities and report them responsibly. Not threats — but they use the same techniques attackers do, and bug bounty programs reward them.
the ethical hackers
🔍
Why This Categorisation Matters

A small online shop should mainly defend against cybercriminals and script kiddies — fast, automated attacks for money. A defence contractor must additionally defend against nation-state actors with unlimited time and budget. Same controls won't do the job. Knowing who is likely to attack you is the first step in choosing proportionate defences. This is called threat modelling.


Section 08

The Cyber Kill Chain — How Attacks Actually Unfold

Real attacks are not single events — they are campaigns that unfold over days, weeks, or months in seven recognisable stages. Lockheed Martin's Cyber Kill Chain (2011) is the canonical model. Defenders use it to identify where they could have caught the attack earlier.

01
Reconnaissance
The attacker quietly studies the target — LinkedIn employees, open ports on the public website, leaked credentials on the dark web, the CEO's habits. No alarm bells yet — this is just research.
02
Weaponisation
A payload is crafted: a malicious Word document, a poisoned PDF, a fake login page. The exploit and the delivery wrapper are bundled into one weapon, often using known vulnerabilities (CVEs).
03
Delivery
The weapon reaches the victim — by phishing email, USB drop, watering-hole website, compromised supply-chain update, or malicious ad. This is where most defenders can still stop the attack.
04
Exploitation
The vulnerability fires. A macro runs. A buffer overflows. A stolen password works. The attacker now has some form of code execution or session token on the victim's machine.
05
Installation
A persistent backdoor is installed — a scheduled task, a malicious service, a hidden user account, a web shell. The goal is survive a reboot and survive being noticed.
06
Command & Control (C2)
The backdoor calls home to an attacker-controlled server, often disguised as ordinary HTTPS traffic. The attacker can now type commands into the victim machine from across the world.
07
Actions on Objectives
Finally, the attacker does what they came to do — exfiltrate data, encrypt drives for ransom, pivot deeper, destroy systems, plant evidence, or simply observe. By here, you are reading about it in the news.
🎯
The Defender's Insight

You do not need to stop the kill chain at every stage. One broken link kills the entire attack. A blocked phishing email stops Delivery. A patched server stops Exploitation. A DNS filter stops C2. The earlier in the chain you intervene, the cheaper the recovery. This is why defenders care less about "preventing all attacks" and more about catching attacks earlier in the chain.


Section 09

Defense in Depth — The Onion Model

Because no single control is perfect, defenders stack multiple layers — each catching what the previous layer missed. This is called defence in depth (also known as the "Swiss cheese model" — each layer has holes, but the holes rarely line up).

🥔 Layered Defences — Animated Onion
POLICY & PEOPLE PERIMETER (firewall, WAF) NETWORK SEGMENTATION ENDPOINT (EDR, patching) APPLICATION SECURITY DATA ASSET ATTACK

Each ring stops some percentage of attacks. The asset at the centre survives because attacks rarely punch through every layer at once.

The Math of Layered Defense
P(breach) = p1 × p2 × ... × pn
If each layer leaks 10% of attacks, two layers leak 1%, four layers leak 0.01%. Layers multiply protection — they do not add it.
Why a Single Layer Is Never Enough
99% ≠ 100%
A firewall that catches 99% of attacks still leaks roughly 1 in 100. At scale (millions of attacks per year), that becomes thousands of successful intrusions.

Section 10

Why Cybersecurity Is Genuinely Hard

This is the section that demystifies the problem. Cybersecurity is not "hard" because attackers are geniuses. It is hard because of structural reasons that have nothing to do with cleverness. Understanding them stops the constant surprise of "how did this happen again?"

❌ The Defender's Burden
ConstraintWhat It Means
CoverageMust protect every asset, every day
TimeVulnerabilities must be patched in days
KnowledgeMust know about all threats and assets
BudgetFinite. Always.
PoliticsMust convince executives security is worth it
SpeedCannot slow down the business meaningfully
🎯 The Attacker's Freedom
ConstraintWhat It Means
CoverageNeeds one weakness, anywhere
TimeMonths or years to plan a single attack
KnowledgeOnly studies the chosen target
BudgetCan be unlimited (nation-states) or near zero
PoliticsNone — single mind, single goal
SpeedCan wait as long as needed
📐
The Six Structural Reasons

1. Asymmetry — defenders need to be right every time; attackers only once. 2. Scale — modern enterprises have thousands of systems, each with its own bugs. 3. Complexity — software is too large for any one person to fully understand. 4. Legacy — old systems can't always be replaced. They linger and rot. 5. Humans — clicking links, reusing passwords, ignoring policies. Always. 6. Economics — defenders are cost centres; attackers are sometimes paid millions.


Section 11

Common Threat Categories at a Glance

Threat What It Does Primary CIA Pillar Attacked Common Defence
Phishing Tricks a person into clicking a malicious link or attachment All three (entry point) User training, email filtering, MFA
Ransomware Encrypts data and demands payment for the key Availability Offline backups, EDR, segmentation
Data breach Steals confidential data for sale or leverage Confidentiality Encryption, access control, DLP
DDoS Floods a service with traffic until it collapses Availability CDN, rate limiting, scrubbing services
SQL injection Bends a website's database query to attacker's will Confidentiality + Integrity Parameterised queries, WAF, code review
Man-in-the-Middle Eavesdrops or modifies traffic between two parties Confidentiality + Integrity TLS, certificate pinning
Insider misuse Legitimate user steals or sabotages from inside All three Least privilege, logging, separation of duties
Supply chain Compromises a trusted vendor to reach your systems All three SBOM, vendor review, code signing
Zero-day Exploits a vulnerability the vendor doesn't know about yet All three Defence in depth, detection, fast patching

Section 12

Three Real Incidents — and What They Teach

Equifax (2017)
A single unpatched Apache Struts server exposed personal data of 147 million people. The patch had been available for two months.

Lesson: Patching is not a chore — it is the single highest-impact defensive activity. The vulnerability existed long before exploitation; the organisation simply did not move.
SolarWinds (2020)
Attackers compromised the build system of a software vendor and inserted a backdoor into a routine update. 18,000+ organisations installed it.

Lesson: Your security is bounded by your weakest supplier. "Trusted updates" can no longer be assumed safe — every dependency is a potential attack vector.
Twitter Bitcoin Scam (2020)
Attackers used phone-based social engineering to trick Twitter employees into giving access to internal admin tools. They hijacked Obama, Biden, Musk, and Gates accounts to run a crypto scam.

Lesson: The strongest firewall in the world is bypassed by a well-rehearsed phone call. People are part of the attack surface — always.

Section 13

The Defender's Mindset

Cybersecurity is, finally, a way of thinking. The tools change every year; the mindset is permanent. Adopt it and you will be a defender before you have ever touched a firewall.

🧠 How Defenders Think
Mindset 1
Assume breach. Do not ask "what if we get hacked?" Ask "we have been hacked — how do we limit the damage?"
Mindset 2
Least privilege. Every user, every service, every API key should have the minimum access needed and nothing more.
Mindset 3
Defence in depth. Never bet on a single control. Stack them so a failure in one is caught by the next.
Mindset 4
Secure by default. The safest configuration must be the one the user gets without choosing. Optional security gets skipped.
Mindset 5
Trust nothing, verify everything. "Zero trust" — every request, even from inside the network, gets authenticated and authorised.
Mindset 6
Logging beats prevention. If you cannot prevent it, at least see it — fast detection turns an unstoppable attack into a manageable incident.

Section 14

Golden Rules — The Foundations Distilled

🔐 Cybersecurity Foundations — Non-Negotiables
1
Cybersecurity is about defending Confidentiality, Integrity, and Availability — not about chasing hackers. Every decision should be traceable back to which pillar it protects.
2
Threats are inevitable, vulnerabilities are choices. You cannot stop criminals from trying; you can remove the weaknesses they would use. Focus your effort there.
3
Know your assets first. You cannot protect what you have not inventoried. An undocumented server is an undefended server.
4
Risk ≠ threat. A threat with no vulnerability is no risk. A vulnerability with no threat is rarely worth fixing first. Always reason about all three: asset, threat, vulnerability.
5
People are part of the system. Training, culture, and clear policy matter as much as technical controls. The cheapest exploit is still a convincing email.
6
Detection beats prevention beats response. Prevent what you can, detect what slips through, respond fast when detection fires. All three are required — none alone is enough.
7
Security is a process, not a product. No tool, no certification, no consultant makes you "secure forever." Threats evolve. Defences must evolve. The day you stop adapting is the day the attacker catches up.
🎯
You Are Now Oriented

You can now read any cybersecurity news article and map it to a real concept: which pillar was broken? which threat actor? which kill-chain stage? which layer of defence should have caught it? That mental model is the foundation. Everything else in cybersecurity — cryptography, network security, application security, incident response — is built on top of these ideas.