University topic explanations and practice

University › Software and Informatics › Computer and Software Security

Security Fundamentals and the CIA Triad

Distinguish confidentiality, integrity and availability, and identify which is violated in a given scenario. Assets, vulnerabilities, threats and risk.

No installation

Learning Outcomes

Topic Explanation

The goal of security and the core question

Information security is the set of conscious decisions taken to protect the desired properties of data and the systems that process it. Security is not about buying a single product or setting a single rule; It is the process of deciding which asset to protect, against whom to protect it, and under what conditions to work under acceptable risk. That's why we ask security work "what are we protecting?" It starts with the question. The thing to be protected could be a file, an account, a service, a communication channel or a user's access rights. Thinking of precautions without naming the object produces unnecessary constraints and does not close the real gap.

In the classical approach, the three main goals of security are confidentiality, integrity and accessibility. This trio is briefly referred to as the CIA triangle. The fact that it is triangular is intentional: strengthening one side often affects the other edges. For example, locking data too tightly can increase privacy but reduce accessibility; Keeping the service open at all times for everyone increases accessibility but increases the possibility of unauthorized access. Safe design is not about ignoring this tension, but about establishing a balance appropriate to the context.

Confidentiality: limiting information to authorized parties

Confidentiality means that information can only be seen by those who need to see it. The critical thing here is the question "who can see it?" Encrypting a file alone does not ensure confidentiality; Who holds the encryption key, how the key is stored, and who can use that key are equally important. Likewise, if an open window on the screen can be read by a person standing behind, privacy is damaged, no matter how strong the technical measure is.

A privacy breach doesn't always happen through a malicious attack. An incorrectly configured share, a permission that is too broad, an unnecessary field written to the log records, or a message sent with an incorrect address can also have the same result. Therefore, privacy work covers not only external threats but also internal accidents. The principles of requesting the least amount of information, keeping it only for as long as necessary, and deleting it securely when necessary are taken as basis in this context.

Integrity: preserving the accuracy of information

Integrity means that the data cannot be changed unauthorized or accidentally, and that it can be noticed when a change is made. The aim here is not only "let no one change it" but also "let's understand if it changes". Making an invisible change to a record is just as dangerous as a privacy breach, as it can mislead decisions. For example, changing one digit of a measurement value can cause the results to be interpreted completely differently.

Two complementary approaches are used to maintain integrity: preventive and detective measures. Preventative measures include limiting write privileges, binding changes to approval, and keeping a version history. Detection measures are summary values, comparison records and change traces. A hash value does not hide the data itself; It only allows us to understand whether it has changed or not. This distinction is often confused and creates a false sense of security.

Availability: delivering the service on time

Accessibility is the ability of the authorized user to access data and services whenever they need them. No matter how secret and accurate a system is, it is useless if it cannot be turned on when necessary. Accessibility is not just about attacks; It is also threatened by hardware failures, software errors, capacity shortage, misconfiguration and natural events. That's why backup, redundancy, capacity planning and regular maintenance are integral parts of security.

When measuring accessibility, the question "under what conditions does it not work" is as important as the question "what percentage works?" While a short-term interruption may be insignificant in some services, it may have irreparable consequences in another service. Therefore, acceptable downtime and acceptable data loss must be determined in advance for each system. Without these values, it is not possible to say whether the measures taken are sufficient or not.

Balance of the triad and inevitable tension

The most instructive aspect of the CIA triangle is that the goals can conflict with each other. While multi-factor authentication strengthens privacy, it creates additional steps and therefore access delay for the user. While frequent backups increase availability, they increase the number of backup copies and therefore the privacy risk. Strict change control can delay implementation of an urgent fix while maintaining integrity. Instead of ignoring these conflicts, it is necessary to talk openly.

Balance needs to be struck according to context. In a system of record, integrity may be a priority; confidentiality in a communication channel; accessibility in a call center service. While prioritizing, user expectations, legal obligations and business process requirements are taken into account together. The important point is that the choice is conscious and registered; A decision taken unconsciously cannot be defended in an event that occurs later.

Extended model: authenticity, accountability and non-repudiation

Three basic objectives alone are not sufficient in practice. Verifying identity, recording the person who made the transaction, and not being able to reject the transaction later are also part of security. Accuracy is the accurate match of data to a person or object in the real world. Accountability means being able to track who made every important action. Non-deniability means making it technically difficult for the person who committed the action to later deny what he did.

These additional features are supported by logs, access control, and digital signature-like mechanisms. However, the mere fact that a record has been kept does not provide undeniability; The record must not be altered, the time information must be reliable, and access to the record must be limited. Otherwise, records turn into a narrative that can be changed and do not provide trust.

Assets, vulnerabilities, threats and risk

It is common for security terms to be confused. An asset is anything worth protecting: data, service, account, device or reputation. A weakness is a vulnerability that can lead to damage to the entity; It could be bad configuration, missing update or a weak process. A threat is a condition or factor that can exploit this weakness. Risk is the evaluation of the threat and the possibility of exploiting the weakness together with the damage that will occur.

Establishing the relationship between these four concepts allows putting the measures in the right place. Where there is no weakness, threats cannot harm; Where there is no threat, weakness does not pose a risk. To reduce risk, you can close the vulnerability, limit the impact of the threat, or reduce the probability. Not holding an asset at all also eliminates risk, but it also eliminates business value. The security decision is the conscious making of this trade-off.

Layers of defense and the weakest link

Relying on a single measure is risky. Therefore, measures are layered on different layers: encryption at the data layer, strong authentication at the calculation layer, access limitation at the network layer, input control at the application layer, and awareness at the user layer. This approach is referred to as layers of defense. A layer may be exceeded or misconfigured; That's when other layers come into play.

However, the number of layers alone is not an indicator of trust. The weakest link is still decisive: a long and complex password will not save the user who writes it down somewhere. For this reason, consistency should be sought among measures, and steps that burden the user but do not provide real protection should be avoided. Security increases by strengthening the weakest link in the chain.

Policy, rules and behavior culture

The security policy specifies, in written form, what behavior is acceptable and what is not. A good policy is not a long list of prohibitions; It is a clear framework that includes purpose, scope, responsibility and exception management. Regular training, reminders and example scenarios are required to implement the policy. A prohibition that is not explained why the rule was made is generally seen as an obstacle to be circumvented.

Culture is the unwritten but implemented part of policy. If a user is hesitant to report a suspicious situation when he notices it, the incident will be noticed late, no matter how good the technical controls are. Therefore, error reporting should be handled through an educational process, not a punitive one. Safety culture develops in an environment where correct behavior is easy and habitual.

Measurement and continuity

Security is not a static state, but a constantly repeating cycle. Assets change, new services are added, user habits transform, and new vulnerabilities emerge. Therefore, it should be measured whether the measures work over time. Indicators used for measurement do not have to be numerical; The important thing is that the indicator carries decision-making information. For example, instead of “how many updates have been applied”, it is more meaningful to “how many of the known critical vulnerabilities are still closed”.

Continuity also includes learning. A small glitch can be a warning before a big event. Examining incident records allows incorrect assumptions to be updated and precautions to be realigned. The success of security is measured not by "no incident occurred", but by "when an incident occurred, the correct response was given and the same mistake was not repeated".

Aimprotected propertyTypical violation examplesample measure
SecurityNumber of people who can see the informationUnauthorized person reading the recordMinimum authorization, encryption, access logging
IntegrityThe data has not changedChanging the register value silentlySummary value, version history, approval
accessibilityTimely accessService shuts down unexpectedlyBackup, redundancy, capacity plan
accountabilityAbility to monitor the person performing the transactionNot knowing who changed itDaily recording, unique account, timestamp

These basic concepts form the common ground for cryptography, authentication, network defense and event management, which will be discussed in the following topics. Any new measure must first answer one of these three questions: Who can see the information, how is the change detected, and to whom is it obvious when the service is needed?

Key Points

Worked Examples

Worked Example

Worked Example

Worked Example

Worked Example

Worked Example

Worked Example

Common Mistakes

Tips

Practice Questions

  1. 1. Which of the following are the three main purposes of information security?
  2. 2. Which question does the concept of privacy directly correspond to?
  3. 3. Which of the following is the basic question of the concept of integrity?
  4. 4. In what cases is accessibility considered violated?
  5. 5. What purpose would being read by an unauthorized person defeat a recording?
  6. 6. What purpose would silently changing the value of a record defeat?
  7. 7. What purpose would an unexpected service shutdown defeat?
  8. 8. What security purpose does the first letter of the abbreviation CIA indicate?
  9. 9. Which goal comes second in terms of confidentiality, integrity and availability?
  10. 10. What concept does the "A" in the CIA triangle represent?
  11. 11. What is the main reason why the three security objectives should be considered together?
  12. 12. Which concept explains that a measure that increases privacy reduces accessibility?
  13. 13. What purpose does encryption directly serve on its own?
  14. 14. What is the fundamental role of the hash function in security?
  15. 15. Does hiding a hash value mean that the data is private?
  16. 16. Which definition of entity is correct?
  17. VOLUME 17 What is the main difference between weakness and threat?
  18. 18. The concept of risk is the evaluation of which two components together?
  19. 19. How does closing a weakness affect risk?
  20. 20. What does not storing data that is never used mean in terms of risk?
  21. 21. What is the main rationale for the layers of defense approach?
  22. 22. What does the weakest link principle mean?
  23. 23. Why is it problematic that policy consists only of prohibitions?
  24. 24. With what knowledge is accountability established?
  25. 25. Which of the following is required for non-deniability?
  26. 26 What does the concept of accuracy mean in security?
  27. 27 In a system, all transactions are recorded, but the records can be edited. Which feature does this weaken?
  28. 28 What risk might increasing the number of backup copies increase?
  29. 29 What happens if acceptable downtime is not determined in advance?
  30. 30 Why is the question "how many critical open and closed" questions more valuable than "how many updates have been made?"
  31. 31 How can security success be most accurately measured?
  32. 32 Which principle supports that a small disruption is a warning before a major event?
  33. 33 What problem arises if a user hesitates to report suspicious circumstances?
  34. 34 Which of the following is most supportive of the development of a safety culture?
  35. 35 Why is it important to ask “which asset is being protected” first in a scenario?
  36. 36 The same identity may give different access results in different contexts. What concept describes this situation?
  37. 37 Which of the following features are common to confidentiality, integrity, and availability?
  38. 38 What purpose does having a service only open during certain hours directly limit it?
  39. 39 Which purpose is primarily reinforced when a change in a records system is tied to approval?
  40. 40 What purpose could a misaligned post harm?
  41. 41 What risk does changing one digit of a measurement value pose?
  42. 42 How should the relationship between the cost of security measures and the protection they provide be considered?

Source: Inspired by open curricula of Turkish universities; the explanation is written originally.

Kaynak: Türkiye üniversitelerinin açık ders planlarından esinlenilmiştir; anlatım özgün olarak yazılmıştır.