pk.org: Computer Security/Lecture Notes

Week 1 Study Guide

Foundations of Computer Security

Paul Krzyzanowski – 2026-09-08

Security Properties

The CIA triad identifies three primary security properties:

Confidentiality and Related Concepts

Privacy, anonymity, and secrecy are related to confidentiality, but each has a different focus:

Integrity

Integrity applies to data, its source, and the system processing it:

Authenticity and Accountability

Authenticity provides evidence that a person, system, or message is genuine. Integrity asks whether something changed. Authenticity asks whether its claimed source is genuine.

Accountability connects actions to the people or systems responsible for them.

Availability and Denial of Service

A denial-of-service (DoS) attack targets availability by making a system unavailable or too slow to be useful. A distributed denial-of-service (DDoS) attack sends traffic or requests from many systems at once.

Security System Goals

Security controls support three operational goals:

  1. Prevention attempts to stop an attack or failure before it succeeds.

  2. Detection identifies and reports attacks, attempted attacks, and unexpected behavior.

  3. Recovery restores systems and operations after an attack or failure.

No one goal replaces the others. Prevention can fail, detection does not repair damage, and recovery is harder when an incident was never detected.

Defense in depth uses several independent layers of protection so that the failure of one control does not compromise the entire system. The layers may prevent, detect, limit, or help recover from the same event.

Policies, Mechanisms, and Assurance

Securing a system requires two separate decisions: what is allowed and how that decision is enforced.

Mechanisms fall into two groups:

Every mechanism depends on assumptions about the system and its environment. When an assumption is wrong, the mechanism may stop enforcing its policy without an obvious sign of failure.

Assurance measures the confidence that a system correctly enforces its policies. That confidence comes from evidence gathered through design reviews, testing, code audits, and penetration testing.

Security engineering applies these ideas throughout a system’s design, implementation, and operation. It treats security as an ongoing engineering problem involving cost, usability, evolving threats, and recovery.

The Trusted Computing Base (TCB) contains the hardware, firmware, and software that must work correctly for the system’s security rules to hold. A trust boundary is a point where data or control passes between parts of a system that are trusted differently.

The supply chain includes the people, tools, vendors, and components used to build and deliver a system. Supply chain security protects that process, including software dependencies, build systems, and update channels.

Security theater describes a measure that creates the appearance of protection without meaningfully reducing risk. Misaligned incentives arise when the party deciding how much security to buy does not bear the full cost of failure.

Risk Analysis

Risk analysis identifies what needs to be protected, determines how it could be harmed, assesses the likelihood and impact of that harm, and prioritizes ways to address the risk. The sequence is:

asset -> threat -> vulnerability -> attack vector -> security control -> residual risk

Each term in the sequence has a specific role:

A threat model is a structured account of how a specific system could be harmed. Building one means breaking the system into its parts, identifying its trust boundaries, and asking what could go wrong within each part and at each boundary. The model records what must be protected, who or what could cause harm, which controls reduce the risk, and the assumptions behind those decisions.

Responses to an identified risk fall into four categories:

Vulnerabilities, Exploits, and Attacks

These terms describe different stages of a security problem:

An incident does not have to be a data breach. An availability failure can be a serious security incident even when no information is disclosed.

Spectre, Meltdown, and Rowhammer demonstrate that vulnerabilities can also exist in hardware, where performance features and physical behavior may undermine protections that software relies on.

Exfiltration is the unauthorized transfer of data from a system to a location controlled by an attacker. It is an attack action that compromises confidentiality.

Kinds of Attack

The terms below mix objectives and methods, and most incidents involve several at once:

Attack Surface

An attack surface is the complete set of places where an attacker might attempt to enter a system or produce an effect. A single vulnerability may be reachable through several attack vectors, so closing one path does not necessarily remove the vulnerability.

Hardening reduces the attack surface by removing unused software, disabling unnecessary services, closing ports, and changing insecure defaults. A loosening guide describes the consequences of enabling features that a secure default configuration leaves disabled. Forgotten accounts, applications, services, and permissions remain part of the attack surface even when no one remembers creating them.

An air gap removes direct network connectivity and requires a controlled process to cross the boundary. A Sensitive Compartmented Information Facility (SCIF) controls physical access, electronic devices, sound leakage, and procedures. Some SCIFs also include shielding against radio emissions. Neither control eliminates risks from people, removable media, maintenance, or the supply chain.

Human Factors

Social engineering manipulates a person into providing information or access. Bribery, blackmail, recruitment, and honest mistakes show why human factors cannot be addressed by awareness training alone. Controls must also limit what one person can do, record sensitive actions, and provide a reliable recovery path.

Threats and Threat Actors

A threat may arise from an adversary, an accident, an equipment failure, or a natural event. A threat actor, also known as a threat agent, is a person, group, organization, or state that might carry out an adversarial threat.

Four threat classes describe the effect on a system:

The Internet as a Risk Amplifier

The Internet amplifies risk through several properties:

A botnet is a collection of compromised devices controlled as a group. Its command-and-control (C2) infrastructure distributes instructions and receives results.

The first major Internet worm exposed the need for coordination across organizations. In response, the Computer Emergency Response Team (CERT) was established to coordinate incident response, and many organizations later adopted the model.

Adversaries

An adversary is the person, group, organization, or state pursuing an objective through an attack. Four axes provide a useful description:

  1. Goals describe the result the adversary seeks.

  2. Risk tolerance describes the exposure and cost the adversary will accept.

  3. Resources describe the available money, access, time, personnel, and infrastructure.

  4. Expertise describes the adversary’s ability to understand systems and develop attacks.

A threat matrix emphasizes expertise and focus. Focus ranges from opportunistic, where an attacker searches broadly for any vulnerable target, to targeted, where an attacker pursues a selected victim and adapts when defenses hold.

Common labels identify how adversaries operate or what motivates them:

An advanced persistent threat (APT) is a well-resourced adversary or cluster of actors that pursues significant objectives over an extended period and seeks to maintain or regain access.

Operations, Countermeasures, and Attribution

Cyber espionage primarily seeks information. Cyber warfare primarily seeks effects such as disruption, damage, or loss of control, although there is no universally accepted boundary between the two.

GPS jamming overwhelms satellite signals, preventing a receiver from determining a reliable position or time. GPS spoofing transmits false navigation signals that a receiver accepts as genuine.

Government- and provider-led takedowns operate under legal authority to seize or redirect attacker infrastructure. A private hack-back is an offensive action taken by a victim against an apparent attacker. It creates legal and operational risks because the apparent source may be an innocent compromised system.

Attribution is the process of determining who conducted an operation. Reused tools, compromised infrastructure, false flags, and incomplete evidence make attribution uncertain. Analysts therefore compare tactics, techniques, and procedures (TTPs) across incidents rather than relying solely on actor names. Tactics are objectives, techniques are methods, and procedures are specific implementations.

Tracking Vulnerabilities

Defenders need four types of information about a vulnerability: a shared identifier, a measure of technical severity, evidence of exploitation, and a way to determine whether the affected product is in use. No single source provides all four, so vulnerability management combines identifiers, severity scores, exploitation data, and local system information.

Two tracking concepts form the core vocabulary:

CVE identifies which vulnerability is being discussed. CVSS describes its technical severity, but it does not measure risk to a particular organization.

Two common sources add information beyond CVE identifiers and CVSS scores:

Technical severity does not determine organizational risk on its own. Defenders must also consider whether the product is installed, whether it is exposed, what asset it supports, whether exploitation is occurring, and which controls already protect it.

Vulnerability tracking usually follows this sequence, although attackers and defenders do not wait for the steps to happen in order:

  1. Discovery occurs when someone finds a vulnerability.

  2. Reporting brings the vulnerability to the vendor or another coordinating organization.

  3. Investigation confirms the vulnerability and identifies the affected products and versions.

  4. Assignment gives the vulnerability a CVE identifier.

  5. Publication adds the CVE record to the public catalog.

  6. Scoring describes technical severity with CVSS.

  7. Enrichment adds product, weakness, and other contextual information.

  8. Mitigation supplies and applies a patch or workaround.

  9. Exploitation tracking records confirmed exploitation or estimates its likelihood.

A zero-day vulnerability is previously unknown to the vendor or defenders. A zero-day attack exploits that vulnerability before defenders have time to prepare. The absence of a patch does not by itself make a vulnerability a zero-day.

What You Don’t Need to Study

The lecture notes include the following material to establish scale, provide context, or introduce topics covered later: