Study Atlas › Computer Science › Security

Computer security fundamentals (CIA triad)

Protecting confidentiality, integrity and availability of information.

Edited by Alex C, EduAlx · Sources cited below

Explanation

Controls include authentication (passwords, MFA), authorisation (least privilege), encryption, logging and patching. Common vulnerabilities: SQL injection, cross-site scripting, buffer overflows and weak credentials (OWASP Top 10). Defence in depth layers many controls. Hashing with salts (bcrypt, Argon2) protects stored passwords.

Example

Parameterised SQL queries prevent injection.

Code

# Safe: parameterised query
cur.execute("SELECT * FROM users WHERE email = %s", (email,))
# Unsafe: string concatenation invites SQL injection
# cur.execute("SELECT * FROM users WHERE email = '" + email + "'")

How it works, step by step

  1. Identify assets and threats
  2. Assess vulnerabilities and risk
  3. Apply controls
  4. Monitor, detect and respond
  5. Review and improve

Open the interactive page with diagrams →

People behind it

References

  1. J. H. Saltzer, M. D. Schroeder, Proc. IEEE 1975, 63, 1278–1308.
  2. OWASP Foundation, OWASP Top 10 (current edition).

Textbooks

Related topics

Hash functions and digital signaturesPublic-key cryptography (Diffie–Hellman, RSA)Distributed systems: CAP theorem and consensusWeb development: front end and back endCloud computingSearch engines and PageRankVirtualisation and containersComputer vision and convolutional neural networksFile systems and storageNatural language processing