🎉 75% of content is free forever — Unlock Premium from $10/mo →
CW
NEWSLIVESearch All Content
đŸ’ŧ Servicesâ„šī¸ Aboutâœ‰ī¸ ContactView Pricing Plansfrom $10

Security Fundamentals: CIA Triad and Defense in Depth

Cybersecurity BasicsđŸŸĸ Free Lesson

Security Fundamentals

Every security decision you will ever make is a wager about three properties of information: that the wrong people cannot read it, that nobody alters it without notice, and that the people who need it can get it on time. Firewalls, penetration tests and awareness slides are all implementations of those three properties. This lesson builds the vocabulary and the reasoning pattern you need before touching a single tool, because tooling chosen without these principles produces expensive false confidence.

Principles exist because attack surface is infinite

You cannot enumerate every way a system can be attacked, but you can enumerate what the system owes its owners. Principles compress that obligation into rules you can apply when no playbook covers the situation — which is most situations. When a contractor asks for database access at 6pm, when a vendor wants a copy of your customer export, when a new service needs to call an old one, nobody has time to run a fresh risk assessment. The principles do that thinking in advance, and they do it the same way every time.

The second reason principles matter is economic. An attacker needs one working path; a defender needs every path closed. Without a framework for deciding where money and attention go, security programs drift toward whatever was announced most recently in the news. Risk-based thinking — asset, threat, likelihood, impact — keeps spend proportional to what an adversary would actually gain.

The three goals and where they collide

Confidentiality asks who may read the data. Integrity asks who may change it, and whether changes are attributable. Availability asks whether authorized people can reach the data and systems when they need them. Each goal has a characteristic failure you can observe.

GoalThe question it answersTypical controlsWhat failure looks like
ConfidentialityWho can read this?Encryption, access control, classificationLeaked customer records, stolen credentials
IntegrityWho can change this?Hashing, signatures, version control, audit logsAltered invoices, tampered logs, silent data corruption
AvailabilityCan we use it now?Redundancy, backups, capacity planning, DDoS protectionRansomware outage, failed failover, expired TLS certificate

The goals conflict constantly, and pretending otherwise is how teams make bad calls. Encrypting backups protects confidentiality but slows restoration, hurting availability during an incident. Multi-factor authentication raises the bar for confidentiality while adding a failure mode to availability — if the SMS gateway is down, nobody logs in. Full audit logging strengthens integrity and accountability while eroding confidentiality, because the logs themselves become a rich target holding every administrator's actions. Your job is not to maximize one goal; it is to hold all three at a level the business can tolerate, and to say out loud which goal you are trading away when you make a change.

Least privilege, least function, separation of duties

Least privilege means a user, service or process holds only the permissions required for its current task — not the permissions it had last year, and not the permissions that would be convenient. Least function narrows the same idea to software: run the smallest feature set that does the job, so a flaw in an unused module cannot be reached. Separation of duties splits a sensitive action across two people so that no single compromised account can complete it alone — the person who requests a payment should not be the person who approves it.

Privilege creep is how least privilege quietly dies. Permissions accumulate through role changes, project work and temporary escalations that nobody revoked. A periodic access review is the antidote, and it only works if you can answer a simple question quickly.

# Snapshot what is actually privileged on a Linux host
# World-writable files outside /tmp are almost always a mistake
find /etc /opt /srv -perm -0002 -type f 2>/dev/null

# SUID/SGID binaries: each one is a potential privilege-escalation path
find / -perm -4000 -type f 2>/dev/null

# Who can run commands as root without typing a password?
grep -RhE '^\s*[a-zA-Z0-9_-]+\s+ALL=\(ALL\)\s+NOPASSWD' /etc/sudoers /etc/sudoers.d 2>/dev/null

# Accounts with empty passwords or shell access they should not have
awk -F: '($7 !~ /(nologin|false)$/){print $1, $7}' /etc/passwd

Run that snapshot on a fresh server and on one that has been in production for three years. The difference between them is your real privilege-escalation surface.

Defense in depth assumes one layer will fail

A single control is a single point of failure with a marketing budget. Defense in depth stacks independent controls so that an attacker must defeat several unrelated mechanisms, each of which logs, delays or stops them. The layers are not redundant copies of the same idea; they are different kinds of control, because a bypass that defeats one layer usually does not defeat the next.

From the outside in, a typical stack runs: physical controls on the data center, network controls (firewalls, segmentation, filtering), host controls (hardening, patching, endpoint agents), application controls (authentication, authorization, input validation) and data controls (encryption, classification, backup). Notice that each layer is owned by a different team with different tools — that independence is the point. When a firewall rule is wrong, application-layer authorization still holds. When an application bug lets a user read another tenant's row, database-level encryption scoped per tenant still protects it.

The failure mode to watch for is porous depth: many layers that all depend on the same identity provider, the same shared secrets, or the same unpatched kernel. Depth built on one root of trust is one compromise away from collapse.

Assets, threats, and the arithmetic of risk

Risk management turns vague worry into comparable numbers. Start with assets — what data, systems and reputation would actually hurt to lose — then ask what threatens each asset, how likely the threat is, and what the impact would be in money, downtime or regulatory exposure. Multiply likelihood by impact, subtract what your controls already reduce, and you have a ranking you can defend to a finance team.

python
def risk_score(asset_value, likelihood, impact_multiplier, control_reduction):
    """Rank risks so a backlog can be ordered, not argued over.

    asset_value: 1-5 (how bad losing this asset is)
    likelihood:  1-5 (how plausible the threat is here)
    impact_multiplier: 0.5 - 2.0 (regulatory, customer, cascade effects)
    control_reduction: 0.0 - 1.0 (how much existing controls already help)
    """
    inherent = asset_value * likelihood * impact_multiplier
    residual = inherent * (1 - control_reduction)
    if residual >= 15:
        band = "P1 - fix within 24 hours"
    elif residual >= 8:
        band = "P2 - fix within a sprint"
    elif residual >= 3:
        band = "P3 - schedule this quarter"
    else:
        band = "P4 - accept and monitor"
    return round(residual, 1), band


print(risk_score(asset_value=5, likelihood=4, impact_multiplier=1.5, control_reduction=0.2))
# (24.0, 'P1 - fix within 24 hours')

The numbers are crude on purpose. A ranking that everyone trusts beats a precise model nobody uses, and the discipline of writing the four inputs down exposes disagreements — the sysadmin thinks the likelihood is 2, the incident responder knows it is 4 — before an incident exposes them.

Mapping principles to a framework

Frameworks such as the NIST Cybersecurity Framework and ISO/IEC 27001 exist so your principled decisions survive staff turnover and can be shown to auditors. NIST organizes work into six functions: Identify (assets, risks, governance), Protect (access control, training, data security), Detect (monitoring, anomaly analysis), Respond (incident handling), Recover (restoration, improvements) and Govern (strategy, policy, oversight). ISO 27001 instead specifies an Information Security Management System: a documented set of policies, a risk treatment plan, statement of applicability, and a recurring internal audit and management review cycle that produces certification.

Use the framework as a coverage checklist rather than a bureaucracy. Every incident you have ever read about maps to a function that was either missing or weak: no inventory meant nobody knew what to patch (Identify), no logging meant nobody saw the intrusion (Detect), no playbook meant the response took three days (Respond). When you can point at a control and name the function it serves, you can also prove which functions have nothing behind them yet.

What a credible first month looks like

A new system does not need a hundred controls. It needs a defensible baseline, applied consistently:

  • Inventory what you run and where the sensitive data lives; you cannot defend unknown assets.
  • Turn on multi-factor authentication for every administrative path, including cloud consoles and SSH.
  • Apply patches on a fixed cadence with a documented emergency path for critical fixes.
  • Enable logging for authentication, privilege changes and data access, and ship it somewhere an attacker cannot delete it.
  • Take backups, then restore one and time it — an untested backup is a hypothesis.
  • Write down who owns each control and what happens when it fails.

None of these items is glamorous, and all of them appear in the root-cause analysis of most published breaches.

Common Mistakes

Treating confidentiality, integrity and availability as independent checkboxes

Fix: Evaluate every change against all three goals and state which one you are trading away — encrypting backups, for example, costs recovery speed.

Buying one strong control and calling the system hardened

Fix: Stack independent layers; a single control that fails once fails completely.

Granting broad roles 'to save time' with a plan to tighten later

Fix: Grant narrow permissions at creation time and review them quarterly; later tightening almost never happens.

Running a risk register full of unquantified red items

Fix: Score with asset, likelihood, impact and existing controls so the backlog has a defensible order.

Treating frameworks as paperwork instead of checklists

Fix: Map each control to a NIST function and look for functions with nothing behind them.

Key Takeaways

  • Security protects three properties — confidentiality, integrity and availability — and they routinely conflict, so every decision trades one against another.
  • Principles exist because you cannot enumerate all attacks; they let a team make consistent decisions under time pressure.
  • Least privilege decays through privilege creep unless access reviews are scheduled and someone owns revocation.
  • Defense in depth only works when layers are genuinely independent; many controls sharing one identity provider are one compromise from collapse.
  • Risk = asset value × likelihood × impact, reduced by controls; a rough ranking everyone trusts beats a precise model nobody uses.
  • Frameworks like NIST CSF and ISO 27001 turn principled decisions into a coverage checklist and an auditable cycle.
CW

ChatWhole Learn Editorial Team

Written by experienced data scientists, software engineers, and educators. All content is reviewed by industry professionals to ensure accuracy and relevance.

Last reviewed: 2026-10-12

—
☆☆☆☆☆
0 ratings

Rate & Feedback

Continue Learning

Suggested next tutorials based on this topic

Need Expert Cybersecurity Help?

Get personalized tutoring, project support, or professional consulting.

Advertisement