No history yet

General Security Concepts

The Building Blocks of Security

At the heart of all information security are three core principles, often called the CIA triad. These aren't just abstract ideas; they're the goals we're trying to achieve when we protect data and systems. Every security measure, from a simple password to a complex firewall, is designed to support one or more of them.

Confidentiality

noun

Ensuring that information is not disclosed to unauthorized individuals, entities, or processes.

Think of confidentiality as secrecy. It's about keeping private data private. When you use your credit card online, you expect that number to be confidential. Only you, the merchant, and the bank should see it. Tools like encryption are all about enforcing confidentiality.

Integrity

noun

Maintaining the consistency, accuracy, and trustworthiness of data over its entire lifecycle.

Integrity means the data is accurate and hasn't been tampered with. Imagine you transfer $100 from your checking to your savings account. You need to be sure that the bank's records can't be altered by an attacker to show you transferred $1,000 instead. Integrity ensures the data remains trustworthy.

Availability

noun

Ensuring that systems and data are accessible to authorized users when needed.

Availability is straightforward: the system or data needs to be there when you need it. If a website crashes and you can't access your account, its availability has been compromised. Security isn't just about stopping bad guys from getting in; it's also about making sure legitimate users aren't locked out.

Confidentiality, integrity, and availability—the CIA triad—are the three pillars of information security.

Access and Accountability

Just as important as protecting the data itself is managing who can access it and what they do. This is handled by a framework known as AAA, which stands for Authentication, Authorization, and Accounting.

ConceptQuestion It AnswersExample
AuthenticationWho are you?Logging in with a password or fingerprint.
AuthorizationWhat are you allowed to do?A user can read files but cannot delete them.
AccountingWhat did you do?A log file records that you accessed a file at 3:00 PM.

Authentication is the process of verifying your identity. It’s like showing your ID to a security guard. You're proving you are who you say you are.

Once you're authenticated, authorization determines your permissions. The security guard might let you into the building (authentication), but your key card only opens certain doors (authorization). In a computer system, this means you might be able to view a report but not edit it.

Finally, accounting (also called auditing) tracks your actions. Every time you open a door with your key card, a log is created. This creates a record of activity, which is crucial for investigating security incidents and holding people accountable for their actions.

A Web of Controls

To achieve the goals of the CIA and AAA frameworks, security professionals implement various controls. A control is simply a safeguard or countermeasure. There are many types, and they're often categorized in different ways.

One way to classify controls is by how they are implemented: Managerial, Operational, or Technical.

Managerial controls are high-level. They include strategies, policies, and procedures written by management. An "acceptable use policy" that employees must sign is a classic managerial control.

Operational controls are the things people do. This includes security guard patrols, employee training programs, and disaster recovery plans. They are human-driven processes.

Technical controls use technology to protect assets. Examples include firewalls, antivirus software, and access control lists on a file server.

Another way to classify controls is by their function—what they are trying to do.

As you can see, controls overlap. A firewall is a technical control that serves a preventive function. A security guard is a physical control that serves preventive, detective, and deterrent functions all at once.

  • Preventive controls aim to stop an incident from occurring.
  • Detective controls identify and report an incident in progress or after it has happened.
  • Corrective controls are used to fix a system after an incident.
  • Deterrent controls discourage potential attackers.
  • Directive controls enforce policies or procedures.
  • Compensating controls provide an alternative solution when a primary control isn't possible.
  • Physical controls protect the physical environment where systems are located.

Trust No One

A modern security philosophy that has gained a lot of traction is Zero Trust. The traditional approach to security was like a castle with a moat: once you were inside the network perimeter, you were generally trusted.

Zero Trust throws that idea out. Its motto is "never trust, always verify." It assumes that threats can exist both outside and inside the network. Access to resources is granted on a per-session, least-privilege basis. Every user, device, and connection is authenticated and authorized every single time it requests access to anything.

In a Zero Trust model, there is no trusted internal network and no untrusted external network. There is only the network, and every request must be verified.

The Language of Secrecy

Cryptography is the science of secure communication. It provides the tools to enforce confidentiality and integrity. You'll encounter several key cryptographic solutions.

Encryption

noun

The process of converting information or data into a code, especially to prevent unauthorized access.

Encryption scrambles data so that only authorized parties can read it. It's the primary method for ensuring confidentiality.

Public Key Infrastructure (PKI) is a framework that manages encryption and digital signatures. It uses pairs of keys: a public key that can be shared with anyone, and a private key that is kept secret. Data encrypted with the public key can only be decrypted with the corresponding private key. This is the foundation of secure websites (HTTPS) and many other technologies.

Think of the public key as an open padlock. Anyone can use it to lock a box, but only you, with the private key, can open it.

Other important concepts include:

  • Hashing: This process takes an input (like a file or a password) and returns a fixed-size string of bytes. The output, called a hash, is unique to the input. If even one character of the input changes, the hash changes completely. This is used to verify integrity. You can't reverse a hash to get the original input.

  • Digital Signatures: A digital signature uses PKI to verify the authenticity and integrity of a message. It proves who sent the message and that the message hasn't been altered.

  • Obfuscation: This means making something intentionally difficult to understand. In code, it might mean renaming variables to random characters to make it harder for an attacker to figure out what the code does. It provides a layer of security but is not as strong as encryption.

  • Blockchain: This is a distributed, immutable ledger. It's a chain of blocks, where each block contains a list of transactions. Each block is cryptographically linked to the previous one using hashing. This makes the data extremely difficult to tamper with, ensuring high integrity.

Quiz Questions 1/6

A bank's system is designed to ensure that when a customer transfers 100,therecordcannotbesecretlyalteredtoshowa100, the record cannot be secretly altered to show a 1,000 transfer. Which principle of the CIA triad does this primarily uphold?

Quiz Questions 2/6

After you successfully log in to your company's network with your username and password, you find you can view files in a shared folder but cannot delete them. What two security concepts are being demonstrated, in order?

These concepts form the bedrock of cybersecurity. Understanding them is the first step toward building and managing secure systems.