Comprehensive Study Notes: Principles of Computer and Information Security
Foundations of Computer Security & Threat Landscapes
Definitions of Security:
Computer Security: A computing state where a system executes only what it is designed to do and prevents unauthorized operations.
Information Security: Protection of data against unauthorized access, modification, or disruption, preserving availability to authorized users across storage, processing, and transmission states.
Information Assurance: The practice of safeguarding information coupled with verifiable metrics demonstrating the degree of protection established.
Attacker Skill Classification:
Script Kiddies (): Low-expertise attackers who deploy automated tools and publicly accessible scripts without understanding underlying system mechanics.
Script Writers (): Mid-tier attackers capable of developing custom exploit scripts targeting identified software vulnerabilities.
Elite Hackers (): Highly capable security experts who identify zero-day vulnerabilities, construct sophisticated payloads, and execute targeted operations.

Threat Profiles:
Unstructured Threats: Brief operations (lasting at most a few months), undertaken by individuals or small cells with limited technical sophistication, low funding, and no insider collusion.
Structured Threats: Coordinated attacks characterized by prolonged planning, higher funding, organized cybercrime groups, and frequent insider recruitment or exploitation.
Highly Structured Threats (Information Warfare): State-sponsored actors and Advanced Persistent Threats (APTs) operating over multi-year timelines with immense resources to target critical adversary infrastructure and intelligence assets.
The Cyber Kill Chain:
Attackers operate through a linear sequence: Reconnaissance (gathering intelligence) Weaponization (coupling an exploit with a malicious payload) Delivery (transmitting the payload via phishing or web) Exploitation (triggering code execution via vulnerabilities) Installation (establishing backdoors/persistence) Command & Control (C2) (maintaining remote server communication) Actions on Objectives (fulfilling operational theft, encryption, or disruption goals).

Critical Infrastructure Targeting:
The Department of Homeland Security (DHS) oversees critical infrastructure sectors (including Energy, Water, Financial Services, Commercial Facilities, and Information Technology).
Real-world disruptions include the December , Ukrainian power grid shutdown ( customers disrupted; linked to BlackEnergy3), TRITON ( malware targeting industrial safety instrumentation systems in a petrochemical facility), and the SUNBURST/SolarWinds supply-chain attack compromising federal systems and commercial entities.
Security Architecture & Formal Security Models
The CIA Triad & Core Objectives:
Confidentiality: Restricting visibility of data exclusively to authorized individuals.
Integrity: Ensuring data remains accurate, complete, and unmodified by unauthorized entities.
Availability: Ensuring computing systems, networks, and data remain accessible on demand to authorized entities.
Authentication: Verifying the identity claim of an entity before granting access.
Nonrepudiation: Cryptographically guaranteeing message origin so the sender cannot deny transmission.
Auditability: Verifying whether a security safeguard or control is operating correctly.
Operational & Quantitative Security Formulations:
Operational Security Model:
Time-Based Security Model: A system remains secure if the duration of protection offered by preventive controls () exceeds the time necessary to detect () and respond to () an attack.
NIST Cybersecurity Framework (CSF): Core functions encompass Identify, Protect, Detect, Respond, and Recover, assessed across maturity tiers from Tier 1 (Partial) to Tier 4 (Adaptive).
Architectural Security Principles:
Least Privilege: Constraining a process or user to the minimum necessary capabilities required for system duties.
Separation of Privilege & Duties: Partitioning multi-step or sensitive tasks among distinct individuals or mechanisms to mitigate fraud and accidental compromise.
Fail-Safe Defaults / Implicit Deny: Denying access automatically unless an explicit rule provides access permissions.
Economy of Mechanism: Enforcing simplicity in architectural design and eliminating nonessential protocols, daemons, and services.
Complete Mediation: Intercepting and authenticating every discrete access attempt without relying on cached permissions.
Open Design: Avoiding security through obscurity; cryptographic and architectural schemes must remain secure assuming their design is fully public.
Least Common Mechanism: Minimizing shared components between different user channels to prevent data leaks (implemented via sandboxing or virtualization).
Psychological Acceptability: Designing security mechanisms that do not unduly hinder normal workflows, preventing users from bypassing controls.
Defense in Depth & Diversity of Defense: Layering defensive boundaries across host and network infrastructure using non-homogeneous controls.
Formal Security Models:
Bell-LaPadula Model (Confidentiality):
Simple Security Rule: "No read up" (subjects cannot inspect higher classification levels).
-Property (Star Property): "No write down" (subjects cannot write information to a lower classification level).

Biba Model (Integrity):
Low-Water-Mark / Simple Integrity Principle: "No read down" (subjects cannot read lower-integrity information to avoid corruption).
-Property (Star Property): "No write up" (subjects cannot write to higher integrity tiers).

Clark-Wilson Model (Commercial Integrity): Protects Constrained Data Items (CDIs) through Transformation Processes (TPs) and Integrity Verification Processes (IVPs); leaves Unconstrained Data Items (UDIs) outside integrity constraints.
Brewer-Nash Model (Chinese Wall): Dynamically restricts read and write operations based on conflicting corporate data classes to prevent conflicts of interest.
Organizational & Operational Security Controls
Governance Framework:
Policies: High-level strategic mandates from executive leadership outlining institutional objectives.
Standards: Compulsory technical criteria and baseline configurations.
Procedures / Standard Operating Procedures (SOPs): Compulsory step-by-step instructions for executing specific tasks.
Guidelines: Discretionary, non-compulsory recommendations.
Policy Lifecycle: Plan Implement Monitor Evaluate.
Data Asset Management & Governance:
Data Owner Role: Establishes classification, privacy needs, retention schedules, and access permissions.
Government Classification Tiers: Unclassified, Confidential, Secret, and Top Secret.
Commercial Classification Tiers: Publicly Releasable, Proprietary, For Internal Use Only, and Company Confidential.
Destruction Controls: Degaussing (magnetic fields), hard-drive platter shaving, optical disc shredding, and multi-pass cryptographic overwriting.
Identity, Access, & Credential Policies:
Password Controls: Minimum length of at least characters ( preferred), complex composition (uppercase, lowercase, numbers, special characters), password history retention, and ban on reuse.
Account Lifecycle: Account disablement is preferred over immediate account deletion to maintain file ownership mappings; automatic account lockouts trigger after preset invalid logon attempts.
Administrative Protections: Mandatory vacations reveal insider fraud through operational turnover; job rotation broadens security insight and eliminates singular operational dependence.
Legal Duties & Incident Response:
Due Care: Fulfilling the legal standard of care expected of a reasonable person in equivalent circumstances.
Due Diligence: The investigative precautions and verification processes standard in institutional planning.
Incident Response Stages: Preparation Detection Containment and Eradication Recovery Follow-up Actions.
Interoperability & Third-Party Agreements:
Service Level Agreement (SLA): Performance metrics, uptime standards, and service boundaries between client and provider.
Memorandum of Understanding (MOU) / MOA: Bilateral agreements clarifying joint operational intent.
Interconnection Security Agreement (ISA): Technical requirements securing data interconnections between distinct IT environments.
Business Partnership Agreement (BPA): Legal operational rights, liability limits, and profit/loss parameters.
Nondisclosure Agreement (NDA): Contractual boundaries protecting proprietary corporate secrets.
Product Lifecycles: End of Life (EOL) ceases manufacturer sales; End of Service Life (EOSL) terminates updates, patches, and vendor support.
Human Factors & Social Engineering
Psychological Triggers Exploit Principles:
Social engineers leverage core behavioral traits: Authority, Intimidation, Consensus (Social Proof), Scarcity, Familiarity/Liking, Trust, and Urgency.
Social Engineering Attack Classifications:
Phishing: Indiscriminate fraudulent emails disguised as trusted entities to acquire credentials or install malware.
Spear Phishing: Targeted phishing crafted against specific organizations or departments.
Whaling: High-value spear-phishing customized against C-suite executives (CEOs, CFOs).
Smishing & Vishing: Phishing conducted over Short Message Service (SMS) and Voice over IP (VoIP)/telephone channels, respectively.
SPIM: Spam distributed across instant messaging clients.
Pharming: Compromising name resolution infrastructure or local host files to secretly redirect valid browser queries to rogue servers.
Watering Hole Attack: Injecting malware into legitimate third-party websites frequently visited by target groups.
Reverse Social Engineering: Tricking a victim into initiating the security interaction (e.g., displaying fake system errors directing users to an attacker-run support helpline).
Prepending: Pre-supplying context or framing information to an individual to artificially legitimize a subsequent fraudulent request.
Typo Squatting (URL Hijacking): Registering common spelling mistakes of popular domains to capture mistyped web traffic.
Physical Breaches & Workplace Vulnerabilities:
Tailgating / Piggybacking: Following authorized staff through access gates without credentials (mitigated via physical mantraps and badge challenge protocols).
Shoulder Surfing: Observing entry of credentials or PINs over the victim's shoulder or using cameras.
Dumpster Diving: Sifting through discarded corporate trash for printed documents, media, or organizational charts.
Clean Desk Policy: Mandating that sensitive paperwork, passwords on sticky notes, and removable media be locked away whenever a workstation is left unattended.
Applied Cryptography & Secure Communications
Cryptographic Primitives & Properties:
Confidentiality: Guaranteed via symmetric and asymmetric encryption (availability is not satisfied by encryption).
Integrity: Guaranteed using cryptographic hash functions (generating fixed-length message digests) and keyed-hash message authentication codes (HMACs).
Digital Signatures: Combination of hashing and asymmetric private-key signing to deliver authenticity, message integrity, and nonrepudiation.
Cryptographic Schemes & Key Management:
Symmetric Encryption: Single shared secret; delivers fast computation for bulk data at rest and data in transit (e.g., AES, 3DES).
Asymmetric Encryption: Public/private key pair; solves secure key exchange and authentication, but incurs higher computational overhead.
Session Keys: Temporary, symmetric keys generated from random seeds to encrypt communication sessions efficiently.
Ephemeral Keys: Cryptographic keys generated for a single transaction and discarded immediately (e.g., EDH, ECDHE).
Key Stretching: Mitigating brute-force vulnerabilities by processing weak keys through iterative rounds (e.g., PBKDF2, Bcrypt).
Key Escrow: Depositing decryption keys with a trusted third party for recovery or lawful inspection.
Data Processing States:
Data at Rest: Inactive stored data across hard drives, solid-state disks, or cloud storage; protected via whole-disk encryption (e.g., BitLocker).
Data in Transit / Motion: Data moving across networks; protected through transport encryption (TLS, IPSec).
Data in Use / Processing: Active data in RAM, CPU registers, or caches; secured using hardware enclave technologies (such as Intel SGX).
Secure Communication Protocols:
TLS (Transport Layer Security): Replaces SSL; TLS v1.3 improves latency, removes insecure legacy ciphers, and streamlines the handshake process.
IPSec: Layer 3 security supporting Transport Mode (data payload encrypted) and Tunnel Mode (both data payload and original IP header encrypted).
Standard Ports & Transport Implementations:
SSH: Encrypted terminal management over TCP port .
HTTPS: Web traffic secured by TLS over TCP port .
Secure POP3: Encrypted email retrieval over TCP port .
Secure IMAP: Encrypted email synchronization over TCP port .
S/MIME & PGP: Public-key standards for digitally signing and encrypting MIME-formatted emails.
DNSSEC: Cryptographic extension authenticating DNS records and responses (provides integrity and authenticity, but not confidentiality).
SRTP: Secure delivery of real-time audio and video over IP networks.
Cryptographic Attacks:
Birthday Attack: Mathematical brute-force attack exploiting the birthday paradox (requiring only people for a probability of a shared birthday) to discover hash collisions.
Collision Attack: Identifying two separate inputs () that produce identical digest outputs: .
Meet-in-the-Middle Attack: Cryptanalytic technique targeting multi-stage encryptions by computing forward from plaintext and backward from ciphertext simultaneously.
Downgrade Attack: Coercing a server into falling back to an obsolete, vulnerable protocol version to exploit legacy weaknesses.
Replay Attack: Recording valid network transmission packets and re-transmitting them later to authenticate without credentials.
Steganography: Concealing payload data within ordinary carrier media (such as picture files or audio tracks) to bypass visual inspection.