Cyber Security & Cryptography: Symmetric Ciphers, Public Keys & OWASP Top 10
The Information & Cyber Security domain (5%) tests essential security hygiene, cryptographic algorithms, authentication standards, and defensive coding against prevalent web vulnerabilities.
1. The CIA Security Triad
All security controls protect one or more pillars of the CIA Triad:
- Confidentiality: Ensuring data is accessible only to authorized entities (Achieved via Encryption).
- Integrity: Guaranteeing data has not been modified or tampered with in transit (Achieved via Cryptographic Hashes & HMACs).
- Availability: Ensuring authorized users have timely and reliable access to assets (Protected via DDoS mitigation, redundancy, and backups).
2. Cryptographic Fundamentals
Symmetric vs Asymmetric Encryption
| Feature | Symmetric Encryption | Asymmetric (Public-Key) Encryption |
|---|---|---|
| Key Count | 1 shared secret key for both encryption & decryption | Key pair: Public key (encrypt) & Private key (decrypt) |
| Speed | Extremely fast (hardware accelerated) | Computationally expensive (~1000x slower) |
| Common Ciphers | AES-256, DES, 3DES, ChaCha20 | RSA, ECC (Elliptic Curve), Diffie-Hellman |
| Primary Use | Bulk data encryption at rest and in transit | Key exchange, Digital Signatures, SSL/TLS handshake |
One-Way Hashing Algorithms
- A hash function takes arbitrary-length input and produces a fixed-length deterministic output: $H(m) = h$.
- Properties: Pre-image resistance (cannot reverse $h$ to $m$), second pre-image resistance, collision resistance.
- Modern Secure Hashes: SHA-256, SHA-3, bcrypt, Argon2 (for passwords). Broken/Insecure: MD5, SHA-1.
Digital Signatures
A digital signature provides Authentication, Integrity, and Non-Repudiation:
- Sender signs the document hash using their Private Key.
- Anyone can verify the signature using the sender's Public Key.
3. OWASP Top 10 Web Application Vulnerabilities
- SQL Injection (SQLi): Untrusted user input alters database query structure.
- Remediation: Always use Parameterized Queries (Prepared Statements) or ORMs.
- Cross-Site Scripting (XSS): Injecting malicious scripts into web pages viewed by other users.
- Stored XSS: Injected script permanently stored in database.
- Reflected XSS: Script reflected off web server via URL parameter.
- DOM-based XSS: Vulnerability entirely in client-side JavaScript.
- Remediation: Context-aware output encoding and Content Security Policy (CSP).
- Cross-Site Request Forgery (CSRF): Tricking a victim's authenticated browser into sending unauthorized HTTP requests.
- Remediation: Anti-CSRF tokens and
SameSite=Strictcookie flags.
- Remediation: Anti-CSRF tokens and
- Broken Access Control: Users acting outside their intended permissions (e.g., viewing another user's invoice by changing ID in URL).
Indexed Competency Concepts:
#Cyber Security#Cryptography#OWASP#Encryption#SQL Injection#XSS
Official Standards Verification
Content structured in accordance with Higher Education Commission (HEC) Computing National Curriculum, PSEB TechLift competency standards, and the 120-minute Virtual University assessment model.