CompTIA Security+ Essentials
Security Fundamentals
The Bedrock of Security
Cybersecurity isn't just about hackers and firewalls. At its heart, it's a discipline built on a few core principles that guide every security decision. The most fundamental of these is known as the CIA Triad. It's a simple model that helps us think about what we're trying to protect and why.
At its core, cybersecurity aims to protect the Confidentiality, Integrity, and Availability of information, a concept often referred to as the CIA Triad.
Think of it like sending a sensitive package. You want to ensure only the intended recipient can open it (Confidentiality), that its contents arrive unchanged (Integrity), and that the recipient can actually get the package when they expect it (Availability). Let's break down each part.
Confidentiality, Integrity, and Availability
Confidentiality
noun
The principle that information is not disclosed to unauthorized individuals, entities, or processes.
Confidentiality is about keeping secrets. It's the promise that private data stays private. In the digital world, this means preventing unauthorized access to sensitive files, emails, or messages. A common tool for ensuring confidentiality is encryption, which scrambles data so that only people with the right key can read it.
Integrity
noun
Maintaining and assuring the accuracy and completeness of data over its entire lifecycle.
Integrity ensures that information is trustworthy and has not been modified in an unauthorized way. It's the guarantee that the data you're looking at is the same as it was when it was created. Imagine a bank transfer. You need to be certain that the amount sent is the exact amount received, with no changes along the way. That's data integrity.
Availability
noun
The principle that information and systems are accessible to authorized users when they need them.
Information is useless if you can't get to it. Availability means that systems and data are operational and accessible when authorized users need them. This involves protecting against system crashes, network failures, and attacks that aim to shut down services, like a Distributed Denial-of-Service (DDoS) attack that floods a website with traffic until it collapses.
Who Are You and What Can You Do
Protecting confidentiality, integrity, and availability requires a system for managing access. This is where the AAA framework comes in. It's a security model that controls who can access a network or system, what they can do there, and what they actually did.
The AAA framework stands for Authentication, Authorization, and Accounting.
Let's use the analogy of a secure office building.
First, you need to prove who you are to get inside. You might show a photo ID or use a keycard. This is Authentication. It's the process of verifying your identity.
Once you're inside, your keycard might only open certain doors. You can access your own office but not the CEO's. This is Authorization. It determines what resources you're allowed to access and what actions you're permitted to perform.
Finally, the building's security system keeps a log of every time your keycard is used. It records which doors you opened and when. This is Accounting. It's the process of tracking user activity to create an audit trail.
| Principle | Question Answered | Example |
|---|---|---|
| Authentication | Who are you? | Entering a username and password. |
| Authorization | What are you allowed to do? | Having read-only access to a shared folder. |
| Accounting | What did you do? | A log file showing who accessed a file and when. |
Types of Security Controls
To enforce principles like CIA and AAA, we use security controls. These are the safeguards or countermeasures put in place to avoid, detect, or minimize security risks. They generally fall into three categories.
Preventive controls are designed to stop an incident from happening in the first place. Think of them as the locks on your doors. Examples include firewalls, which block malicious traffic, and strong passwords, which prevent unauthorized access.
Detective controls aim to identify and report that an incident has occurred. They are like a security camera that records a break-in. Examples include intrusion detection systems that monitor network traffic for suspicious activity and system logs that record user actions.
Corrective controls are used after an incident to limit the damage and restore systems to their normal state. This is the cleanup crew. Examples include restoring data from a backup after a ransomware attack or updating antivirus software to remove a virus.
A good security strategy uses a mix of all three types of controls, creating a layered defense.
All these concepts are tied together by security policies. A security policy is a formal document that outlines an organization's rules for how it protects its assets. It defines what is and isn't allowed, setting expectations for users and administrators. For example, a password policy might require passwords to be a certain length and include different character types. These policies provide the foundation for implementing effective security controls.
A company discovers that a hacker intercepted and modified a financial report before it was sent to shareholders. Which principle of the CIA Triad was primarily violated?
Verifying a user's identity with a password and a code sent to their phone is an example of ______.
Understanding these fundamentals is the first step in building a strong cybersecurity mindset. They provide the framework for analyzing threats and designing effective defenses.