Security Fundamentals — Cybersecurity for Engineers
Security is no longer just the security team's job. Every DevOps, cloud, and platform engineer needs foundational security knowledge to build and operate secure systems.
The CIA Triad
The foundation of information security:
Confidentiality — Information is accessible only to authorized parties. Encryption, access controls, and authentication protect confidentiality. Breached by: data exfiltration, eavesdropping, unauthorized access.
Integrity — Data is accurate and hasn't been tampered with. Hash functions, digital signatures, and audit logs protect integrity. Breached by: SQL injection, man-in-the-middle, insider modification.
Availability — Systems are accessible when needed. Redundancy, backups, and DDoS protection maintain availability. Breached by: DDoS attacks, ransomware, infrastructure failures.
Threat Modeling
Before building anything, ask: STRIDE
| Threat | Description | Example |
|---|
|--------|-------------|---------|
| **S**poofing | Impersonating another entity | Stolen credentials |
|---|---|---|
| Tampering | Modifying data or code | SQL injection |
| Repudiation | Denying performed actions | No audit logs |
| Information Disclosure | Exposing sensitive data | Unencrypted PII |
| Denial of Service | Disrupting availability | DDoS, resource exhaustion |
| Elevation of Privilege | Gaining unauthorized access | Privilege escalation |
Defense in Depth
Never rely on a single security control. Layer defenses:
Common Attack Vectors
OWASP Top 10 (Web Applications):
Cloud Security Misconfigurations (most breaches):
Encryption Fundamentals
Symmetric Encryption — Same key for encryption and decryption. Fast. AES-256 is the standard. Problem: secure key exchange.
Asymmetric Encryption — Public key encrypts, private key decrypts. RSA, ECC. Slower but solves key exchange. Used in TLS handshake, SSH, digital signatures.
Hashing — One-way function, produces fixed-length digest. SHA-256, bcrypt (passwords). Used for integrity verification, password storage.
TLS (Transport Layer Security) — Combines asymmetric (handshake) + symmetric (data transfer). TLS 1.3 is current standard. Provides: authentication, confidentiality, integrity.
Identity and Authentication
Multi-Factor Authentication (MFA):
Always enable MFA for: AWS root account, cloud consoles, VPN access, admin SSH, code repositories.
Zero Trust Model: "Never trust, always verify." Assume the network is compromised. Verify every request regardless of origin. Least-privilege access. Micro-segmentation.

