Cybersecurity Fundamentals series — Part 3. This post continues Part 1: A Complete Beginner’s Guide and Part 2: Security Controls. Each post in the series takes one topic and covers it in depth. This one covers the three goals behind nearly every security decision: confidentiality, integrity, and availability.

The CIA triad is a model that describes the three goals of information security: confidentiality (only the right people can see data), integrity (data is accurate and has not been changed without permission), and availability (systems and data are there when people need them).

Whenever someone says “that’s a security problem,” they almost always mean one of these three things went wrong. A stolen customer list is a loss of confidentiality. A hacked bank balance is a loss of integrity. A website knocked offline is a loss of availability. The CIA triad gives you a short checklist for asking the right question about any system, policy, or attack: which of the three goals does this protect, and which does it threaten?

In Part 2, you learned how security controls are classified. This post explains what those controls are protecting.

What the CIA Triad Is (and Is Not)

The “CIA” in the name has nothing to do with the U.S. Central Intelligence Agency. To avoid confusion, some authors call it the AIC triad, but CIA is the name you will see most often.

The triad is usually drawn as a triangle with one goal at each corner. The shape is a reminder that you need all three at the same time, and that pushing hard on one often pulls on the others.

GoalThe question it answersA failure looks like
ConfidentialityWho is allowed to see this?A data breach exposes private records
IntegrityCan I trust that this is correct and unchanged?Someone alters an invoice or a web page
AvailabilityCan the right people use this when they need it?A server crashes or ransomware locks the files

Confidentiality: Keeping Information Private

Confidentiality means that information is available only to the people who are supposed to have it. It is about privacy and secrecy: customer records, passwords, health information, trade secrets, and your own private messages.

It is also a balancing act. Data must remain usable by the right people, and unreachable to everyone else.

Threats to Confidentiality

  • Data breaches and stolen databases
  • Phishing, which tricks people into giving up passwords
  • Eavesdropping on unencrypted network traffic
  • Lost or stolen laptops and phones
  • Mistakes, such as emailing a file to the wrong person or leaving a cloud folder open to the public
  • Malicious or careless insiders

Protecting Confidentiality

  • Encryption. Data is scrambled so that only someone with the right key can read it. The sender encrypts, and the recipient decrypts it back to readable form. Anyone who captures it in between sees only meaningless data. Encryption protects data in transit (like HTTPS for web traffic) and at rest (like an encrypted disk).
  • Access controls. Each person can see only what their job requires, an idea called least privilege. The marketing team can edit marketing presentations, but cannot open accounting files.
  • Strong authentication. Passwords alone are weak. Adding a second step, as described in two-factor authentication, or using passkeys, makes it much harder for someone to get in with a stolen password.
  • Data classification. Label data by sensitivity (public, internal, confidential) so people know how to handle it.
  • Privacy practices. Collect only the data you need, and keep it only as long as you need it. See what data privacy is.

Integrity: Keeping Information Accurate

Integrity means that data is accurate, complete, and unchanged unless an authorized person changes it on purpose. It also covers systems: a computer whose software has been secretly modified has lost its integrity.

Integrity problems can be quiet. A confidentiality failure is often noticed when the news breaks. An integrity failure may go unseen for a long time: a changed price, a swapped bank account number, a tampered software download.

Threats to Integrity

  • Malware that modifies files or system settings
  • Attackers who alter records, for example through SQL injection
  • Man-in-the-middle attacks that change data while it travels across the network
  • Website defacement
  • Honest mistakes: a wrong value typed into a spreadsheet, or an update applied to the wrong system
  • Corrupted files from failing storage

Protecting Integrity

  • Hashing. A hash function turns any data into a short, fixed-length fingerprint. If even one character of the data changes, the fingerprint changes completely. The sender sends the data along with its hash, and the receiver hashes the data again. If the two hashes match, nothing was altered.
  • Digital signatures. A hash is encrypted with the sender’s private key. This proves two things at once: the data was not changed, and it came from the person who holds that key.
  • Certificates. These bind an identity, such as a website or a device, to a cryptographic key, so you know who you are talking to.
  • Access controls and permissions. Restrict who can change data, not just who can read it.
  • Version control, change management, and audit logs. These record who changed what and when, and let you undo mistakes. See Git for version control.
  • Backups. A clean copy lets you restore data that was damaged or tampered with.

See Hashing in Action

This short Python program uses the standard library to hash two messages that differ by a single character:

import hashlib

original = "Pay Alice $100"
tampered = "Pay Alice $900"

original_hash = hashlib.sha256(original.encode()).hexdigest()
tampered_hash = hashlib.sha256(tampered.encode()).hexdigest()

print(original_hash)
print(tampered_hash)
print("Same hash?", original_hash == tampered_hash)

# The receiver hashes what arrived and compares it with the hash that was sent
received = "Pay Alice $900"
print("Message intact?", hashlib.sha256(received.encode()).hexdigest() == original_hash)
ab95d3cd12811726731fa05f8ee55d4ae3c113b0a1a4b5c0bcff14c4434af031
f21dc59551a45f12f87c61aafb005b1bc5133ed13efc4c24149411d82c8536d9
Same hash? False
Message intact? False

Changing one digit produced a completely different fingerprint, so the receiver knows the message was altered. You can use the same idea to check that a file you downloaded is the one the publisher released. Publishers often post a hash next to the download, and you compare it with your own:

# Windows PowerShell
Get-FileHash .\installer.exe -Algorithm SHA256

# Linux
sha256sum installer.iso

# macOS
shasum -a 256 installer.dmg

A hash only helps if you got the expected value from a trustworthy place. If an attacker can change both the file and the hash on the same page, the check proves nothing, which is one reason digital signatures exist.

Non-Repudiation

Some teaching materials add non-repudiation under integrity. It means a sender cannot credibly deny having sent something, because there is proof, usually a digital signature. Other sources treat it as a separate goal. Either way, it builds on the same tools. Part 4 covers it in depth: non-repudiation and digital signatures.

Availability: Keeping Systems Working

Availability means that systems, applications, and data are accessible when authorized people need them. A perfectly secret and perfectly accurate system is useless if nobody can reach it.

Availability also reminds us that security measures must not take systems down. A control that crashes the service it was meant to protect has failed.

Threats to Availability

  • Ransomware that locks files, and DDoS attacks that flood a site with traffic
  • Hardware failure, power outages, and network outages
  • Natural disasters, fires, and floods
  • Software bugs, bad updates, and misconfiguration
  • Running out of capacity, such as a sudden traffic spike
  • Human error, such as deleting the wrong thing

Protecting Availability

  • Redundancy and fault tolerance. Use more than one of the important parts, such as disks, servers, power supplies, or internet connections, so that if one fails, another takes over and operations continue.
  • Backups and disaster recovery. Keep tested copies of your data, and a plan to restore it. See what disaster recovery is.
  • Patching and updates. Keep systems current, which both fixes bugs that cause crashes and closes holes attackers use. Test updates first when you can.
  • DDoS protection and load balancing. Services such as Cloudflare absorb and filter attack traffic, and load balancers spread requests across several servers (see networking devices explained).
  • Monitoring. Alerts tell you something is down before your customers do. See Uptime Kuma.
  • Power and environment. Battery backups, generators, and cooling keep equipment running.

Measuring Availability

Availability is often given as a percentage of uptime, such as 99.9%, nicknamed “three nines.” Small differences in the percentage mean big differences in downtime. Here is how much downtime per year each level allows:

UptimeDowntime allowed per year
99%About 3.65 days
99.9%About 8.76 hours
99.99%About 52.6 minutes
99.999%About 5.26 minutes

Each extra “nine” is usually far more expensive than the one before it, so the right target depends on how much downtime your organization can tolerate.

One Incident, Three Goals

A single attack can threaten all three goals. Imagine an online store that is hit by an attacker:

GoalWhat happenedA possible protection
ConfidentialityThe attacker copies the customer databaseEncrypt stored data, limit database access, require MFA for admins
IntegrityThe attacker changes product prices and defaces the home pageFile integrity monitoring, restricted write access, version control, backups
AvailabilityThe attacker then floods the site with traffic, or encrypts the serverDDoS protection, tested backups, redundancy, an incident response plan

Ransomware is the same story at a smaller scale. It encrypts files (availability), often steals them first to threaten publication (confidentiality), and may tamper with backups (integrity).

When the Goals Pull Against Each Other

The three goals are not independent. Improving one can weaken another, so security is often about balance:

Trade-offExample
Confidentiality vs. availabilityMany login steps and strict permissions protect data, but they can slow down or lock out the people who need it, especially in an emergency
Confidentiality vs. availabilityIf you lose the key to encrypted data, nobody can read it, including you
Availability vs. confidentialityExtra copies and replicas keep data available, but each copy is one more place that can leak
Integrity vs. availabilityChecking everything before accepting it protects accuracy but adds delay

There is no perfect setting. The right balance depends on what you are protecting. A hospital needs records to be available at 3 a.m. and private. A public news site cares most about integrity and availability, because its content is public already.

Connecting the Triad to Security Controls

In Part 2, you learned the categories and types of controls. Each control exists to protect at least one of the three goals:

ControlTypeMain goal protected
EncryptionPreventive, technicalConfidentiality
Access control listPreventive, technicalConfidentiality and integrity
Hashing and digital signaturesPreventive and detective, technicalIntegrity
Log monitoringDetective, technicalAll three
Backup and restoreCorrective, technicalAvailability (and integrity)
Redundant serversPreventive, technicalAvailability
Locked server roomPreventive, physicalAll three
Awareness trainingDirective, operationalAll three

When you design or review a security measure, ask which goal it protects, and whether any goal has no protection at all.

Beyond the Triad

The triad is a starting point, not the whole picture. Related ideas you will meet later include:

  • Authenticity: proof that a person, message, or system is genuine.
  • Accountability: being able to trace actions back to who did them, through logging and identity.
  • Authentication, authorization, and accounting: the three steps of controlling access (who are you, what may you do, and what did you do). See Part 5.
  • Some models, such as the Parkerian hexad, extend the triad with additional goals.

The CIA triad remains the most widely used foundation, which is why it is the first thing most security courses teach.

Practice: Which Goal Is at Risk?

For each situation, decide which goal or goals are threatened. Then check the answers.

  1. An employee emails a spreadsheet of client salaries to the wrong person.
  2. A hacker changes a company’s published bank details on its invoices.
  3. A storm cuts power to a data center, and the website goes down.
  4. Ransomware encrypts every file and the attacker threatens to publish a copy.
  5. A laptop with unencrypted customer data is stolen from a car.
  6. A software update contains hidden malicious code that changes system files.

Answers

  1. Confidentiality.
  2. Integrity.
  3. Availability.
  4. Availability and confidentiality (the files are locked, and a copy was stolen).
  5. Confidentiality. Encryption would have protected the data.
  6. Integrity. The system no longer behaves as intended, and it can lead to all three being lost.

Common Misunderstandings

  • “CIA is about the government agency.” It is just the three initials, and it is sometimes called the AIC triad to avoid the mix-up.
  • “Security is only about secrecy.” Confidentiality is one third of the picture. Integrity and availability matter just as much.
  • “More security is always better.” Too much of one goal can damage another. Choose the balance on purpose.
  • “Backups protect confidentiality.” Backups mainly protect availability and integrity. An unprotected backup is another copy that can leak.
  • “If it is encrypted, it is safe.” Encryption helps confidentiality, but it does not guarantee integrity or availability, and the keys must be protected too.

Quick Summary

  • The CIA triad has three goals: confidentiality, integrity, and availability.
  • Confidentiality is protected with encryption, access controls, and strong authentication.
  • Integrity is protected with hashing, digital signatures, permissions, version control, and backups.
  • Availability is protected with redundancy, backups, patching, DDoS protection, and monitoring.
  • The goals can pull against each other, so good security is a balance, based on what you protect and what risks you face.

What’s Next in This Series

You now know what security is trying to achieve. Upcoming posts in the Cybersecurity Fundamentals series will take the topics from Part 1, such as authentication and access control, encryption, network and web security, and incident response, and explore each in depth. To practice, pick a system you use every day, such as your email or your online banking, and write one sentence for each corner of the triad: how is it protected, and what would happen if it failed?

For another explanation of the same idea, Professor Messer offers a free video lesson as part of his CompTIA Security+ SY0-701 course: The CIA Triad.

Conclusion

Confidentiality, integrity, and availability are the three reasons we do security at all. Keep the triad in mind and many details start to make sense: encryption keeps secrets, hashes and signatures keep data honest, and redundancy and backups keep things running. When you face a new tool or a new threat, ask three questions: who can see it, can I trust it, and can people use it? The answers tell you where the gaps are.

Next in the Cybersecurity Fundamentals series: Non-Repudiation Explained: Digital Signatures and Proof of Origin, how hashes and digital signatures prove who sent data.

Cybersecurity Fundamentals series: Part 1: A Complete Beginner’s Guide · Part 2: Security Controls · Part 3: The CIA Triad · Part 4: Non-Repudiation · Part 5: Authentication, Authorization, and Accounting · Part 6: Gap Analysis · Part 7: Zero Trust · Part 8: Physical Security · Part 9: Deception and Disruption