#Why this matters
Every security control, from a laptop password to a backup generator, protects at least one of three core properties: Confidentiality, Integrity, and Availability. Together they form the CIA Triad, the foundational model used to evaluate threats, design defenses, and classify incident impact.
With this model, you can inspect any incident - a leaked spreadsheet, a tampered grade record, or an overloaded exam portal - and state exactly what failed and which controls prevent a repeat.
#Confidentiality
Confidentiality prevents unauthorized disclosure of sensitive data at rest and in transit. Common breaches include insider leaks, Man-in-the-Middle (MitM) eavesdropping on unencrypted traffic, password compromise via credential stuffing, and misconfigured public cloud buckets.
Key controls include:
- Access control (RBAC, ABAC): granting only the permissions needed for a role (least privilege).
- Multi-factor authentication (MFA): requiring a second factor beyond a password.
- Data masking: hiding sensitive values in interfaces and logs (e.g.,
****1234). - Encryption: converting plaintext to ciphertext so stolen data stays unreadable without the key.
Symmetric encryption uses one shared secret key for encryption and decryption; it is fast, but key distribution is hard. Asymmetric encryption uses a public key to encrypt and a matching private key to decrypt. Protocols like TLS 1.3 combine both: asymmetric cryptography exchanges a session key, and a symmetric cipher protects traffic.
| Algorithm | Type | Key length | Use | Status |
|---|---|---|---|---|
| AES-256 (GCM) | Symmetric | 256 bit | Disks, files, TLS 1.3 | Recommended |
| ChaCha20-Poly1305 | Symmetric | 256 bit | Mobile, TLS 1.3 | Recommended |
| RSA-2048+ | Asymmetric | 2048+ bit | Key exchange, signatures | Recommended |
| DES | Symmetric | 56 bit | Legacy systems | Weak, avoid |
| RC4 | Symmetric | 40-2048 bit | Legacy WEP | Broken, avoid |
#Integrity
Integrity ensures data stays accurate, authentic, and unmodified during storage or transit. Threats include SQL injection altering database rows, MitM packet tampering, corruption, and ransomware encrypting files.
Cryptographic hash functions verify integrity by mapping any input to a fixed-length digest. They are one-way and show the avalanche effect: changing one character yields a completely different hash.
| Algorithm | Output | Status | Guidance |
|---|---|---|---|
| MD5 | 128 bit (32 hex) | Broken (collisions) | Never use for security |
| SHA-1 | 160 bit (40 hex) | Broken (collisions) | Deprecated |
| SHA-256 | 256 bit (64 hex) | Secure | Standard for files and TLS |
| SHA-512 | 512 bit (128 hex) | Secure | High-assurance checks |
| SHA-3 | 224-512 bit | Secure | Modern NIST standard |
During file verification, the sender computes SHA-256 (H1) and shares it via a trusted channel; the receiver computes H2 locally. If H1 equals H2, integrity holds; any mismatch signals tampering or corruption.
- Sender computes H1Run SHA-256 on the original file
- File travels networkUntrusted links risk tampering
- Receiver computes H2Run SHA-256 on the received copy
- Compare H1 and H2Equal means intact; mismatch means altered
A digital signature adds authenticity: the sender hashes the document and signs the hash with their private key, and any verifier checks it with the sender's public key against a fresh hash.
#Availability
Availability guarantees authorized users can reach systems when needed. Teams track it with a Service Level Agreement (SLA) measured in "nines":
| SLA level | Annual downtime | Monthly downtime | Weekly downtime |
|---|---|---|---|
| 99% (2 nines) | 3.65 days | 7.30 hours | 1.68 hours |
| 99.9% (3 nines) | 8.76 hours | 43.8 minutes | 10.1 minutes |
| 99.99% (4 nines) | 52.6 minutes | 4.38 minutes | 1.01 minutes |
| 99.999% (5 nines) | 5.26 minutes | 25.9 seconds | 6.05 seconds |
Availability threats include DDoS attacks - volumetric (UDP/ICMP floods), protocol-based (SYN floods), and application-layer (HTTP floods, Slowloris) - as well as disk failures, power outages, disasters, and misconfigurations.
Core controls:
- Redundancy and failover: RAID, clusters, load balancing, and automatic failover remove single points of failure.
- Power continuity: UPS units and backup generators handle outages.
- 3-2-1 backup rule: keep 3 copies on 2 media types, with 1 offsite and offline against ransomware.
- DDoS mitigation: Anycast routing, CDNs, rate limiting, and traffic scrubbing absorb floods.
#Hands-on: permissions and hashes in Linux
Here an analyst restricts a world-readable grade file (chmod 600), checks the SHA-256 avalanche effect between Salom and salom, and verifies file integrity with sha256sum -c.
$ ls -l grades.csv
-rw-r--r-- 1 analyst analyst 412 Nov 20 10:15 grades.csv
$ chmod 600 grades.csv
$ ls -l grades.csv
-rw------- 1 analyst analyst 412 Nov 20 10:15 grades.csv
$ printf 'Salom' | sha256sum
441f71d48aacacdc18293201da2bfda40a421c4f93d8e509fcd2d0440b007b46 -
$ printf 'salom' | sha256sum
038f270ca678c66f5bf393f958e8eebcf98b049e5a0d32a69cabf46b576cabbf -
$ sha256sum grades.csv > grades.sha256
$ sha256sum -c grades.sha256
grades.csv: OKChanging only S to s alters every character of the 64-character digest. Any later edit to grades.csv causes sha256sum -c to return FAILED.
#Balancing the triad
Strengthening one pillar can strain another. Overly strict approvals or heavy per-read checks hurt availability and slow workflows, while skipping authentication for speed invites leaks and tampering. Effective design fits the asset: emergency systems prioritize availability and integrity, while sealed archives prioritize confidentiality and integrity.
#Defending and common mistakes
- Online-only backups: synced folders mirror ransomware encryption; keep at least one offline or immutable copy.
- Using MD5 or SHA-1 for security: practical collisions break trust; standardize on SHA-256 or SHA-3.
- Encryption without access control: disk encryption does not block an over-privileged logged-in account.
- Ignoring usability during hardening: test controls against real workflows so staff do not invent insecure workarounds.
- Treating ransomware as availability-only: modern ransomware hits availability (lockout), integrity (encryption), and often confidentiality (data theft).
#Summary
The CIA Triad defines the three pillars of information security: Confidentiality protects secrets, Integrity guarantees data accuracy, and Availability keeps systems reachable. Pair modern algorithms (AES-256, ChaCha20-Poly1305, SHA-256, TLS 1.3) with access control, MFA, redundancy, and 3-2-1 backups, and always balance protection against operational usability.