The CIA Triad

  1. Confidentiality: only authorised parties can read the information. Tools: encryption, access control. A violation is a disclosure.
  2. Integrity: information and systems are accurate and are changed only in authorised ways. Tools: hashes, digital signatures, version control. A violation is a modification.
  3. Availability: systems and data can be used when needed. Tools: backups, redundancy, protection from denial of service. A violation is disruption.

Related goals are authentication (proving identity), authorisation (what you may do), accountability and non-repudiation (you cannot deny your action) and privacy. The three triad goals sometimes conflict: heavy locking for confidentiality may reduce availability.

Risk Management

Risk is the chance that a threat will exploit a vulnerability and cause loss: Risk = Likelihood × Impact. Risk management has four steps: identify assets and their value, assess threats and vulnerabilities, evaluate and rank risks, and treat them by one of four choices:

  • Avoid: stop the risky activity.
  • Reduce (mitigate): add controls such as patches and encryption.
  • Transfer: share the loss, for example by insurance or outsourcing.
  • Accept: knowingly live with a small risk.

After treatment some residual risk remains. In quantitative analysis: SLE (single loss expectancy) = Asset value × Exposure factor, and ALE (annual loss expectancy) = SLE × ARO, where ARO is the annual rate of occurrence. A control is worth buying if the fall in ALE exceeds its yearly cost.

Threat Modelling

Threat modelling is a structured way to find threats before attackers do. Steps: model the system (a data-flow diagram showing processes, stores, data flows and trust boundaries), identify threats, rate them, and plan mitigations. The STRIDE method lists six threat types: Spoofing, Tampering, Repudiation, Information disclosure, Denial of service and Elevation of privilege. Attack trees show the ways of reaching an attacker's goal.

Definition: Risk. The potential for loss when a threat exploits a vulnerability of an asset, commonly estimated as the likelihood of the event multiplied by its impact.

Table 1.2: STRIDE threat model

Threat Violates Example
Spoofing Authentication Using another user's password
Tampering Integrity Changing a stored price
Repudiation Non-repudiation Denying a transaction
Information disclosure Confidentiality Leaking a customer file
Denial of service Availability Flooding a web server
Elevation of privilege Authorisation A user gaining admin rights

Example 1.2: Annual loss expectancy and a control

Problem: A server is worth ₹5,00,000. A breach would damage 40 percent of its value (exposure factor) and is expected 0.5 times a year. A control costing ₹40,000 a year reduces the rate to 0.1 a year. Find SLE, ALE before and after, and the net benefit.

Solution:

  1. SLE = 5,00,000 × 0.40 = ₹2,00,000.
  2. ALE before = 2,00,000 × 0.5 = ₹1,00,000.
  3. ALE after = 2,00,000 × 0.1 = ₹20,000.
  4. Reduction in loss = 1,00,000 − 20,000 = ₹80,000.
  5. Net benefit = 80,000 − 40,000 = ₹40,000 a year.

Result: The control reduces the expected yearly loss by ₹80,000 and costs ₹40,000, so it gives a net gain of ₹40,000 and is worth buying.

value, ef = 500000, 0.40
sle = value * ef
ale_before = sle * 0.5
ale_after = sle * 0.1
cost = 40000
print("SLE:", sle, "| ALE before:", ale_before)
print("ALE after:", ale_after)
print("Net benefit:", ale_before - ale_after - cost)

Output

SLE: 200000.0 | ALE before: 100000.0
ALE after: 20000.0
Net benefit: 40000.0

Common mistakes

  • Spending more on a control than the loss it prevents.
  • Ignoring residual risk after applying controls.
  • Rating every risk as high so that nothing can be ranked.
  • Doing threat modelling only after the system is built.

Key takeaways

  • CIA: confidentiality, integrity, availability.
  • Risk = likelihood × impact; ALE = SLE × ARO; SLE = asset value × exposure factor.
  • Treat risk by avoiding, reducing, transferring or accepting.
  • STRIDE: spoofing, tampering, repudiation, information disclosure, denial of service, elevation of privilege.

Practice questions

  1. What does the CIA triad stand for?
  2. Give the formula for ALE.
  3. Name the four ways to treat a risk.

Answers to the practice questions

  1. Confidentiality, integrity and availability.
  2. ALE = SLE × ARO.
  3. Avoid, reduce, transfer and accept.

Sources

  • Official BCA syllabus Computer Security, course code 25BCA406DS02, Unit I