Privacy PolicyDownload App

IS Chapter Notes

Chapter 01

Chapter 1 : Overview of Computer Security

Modern computing infrastructure underpins nearly every facet of contemporary society, from industrial control networks and financial transaction ledgers to personal communication and governance systems. These systems process, store, and transmit massive quantities of sensitive data across globally interconnected networks. However, the foundational architectures of early computing systems were engineered primarily for functionality, resource sharing, and performance rather than adversarial resilience. Consequently, modern software and hardware platforms operate within an environment populated by sophisticated threat actors ranging from automated scanning worms to organized cybercrime syndicates and nation-state intelligence agencies. Computer security is the academic discipline and engineering practice dedicated to preserving the predictable, authorized execution of computational systems under adversarial conditions. It involves establishing protective mechanisms, analytical threat models, and architectural controls across all system layers. Security is not an isolated feature added to an existing application. It is an emergent system property that must be deliberately designed, rigorously verified, and continuously monitored across hardware, operating systems, networking protocols, and administrative policies. Understanding the foundational concepts of computer security requires mastering the taxonomy of threats, attacks, vulnerabilities, and assets. A defensive engineer must learn how to model an adversary's capabilities, evaluate the attack surface of complex software deployments, and apply proven design principles to protect critical resources. This unit provides the theoretical basis and operational framework needed to analyze, secure, and defend computational systems against unauthorized access, state corruption, and resource denial.

1. Computer Security Concepts

Computer security is the study and implementation of safeguards designed to protect automated information systems against unauthorized access, modification, and destruction. In practical engineering, it addresses the fundamental challenge of maintaining system trust when software executes on hardware exposed to untrusted inputs or hostile environments. The discipline establishes theoretical definitions, formal security goals, multi-layered computing defenses, and operational controls to constrain system behavior to authorized states.

1.1 Definition of Computer Security

According to the National Institute of Standards and Technology (NIST) Special Publication 800-33, computer security is the protection afforded to an automated information system in order to attain the applicable objectives of preserving the integrity, availability, and confidentiality of information system resources. These resources encompass hardware, software, firmware, information, data, and telecommunications capabilities. The Internet Engineering Task Force (IETF) RFC 4949 similarly defines computer security as measures that implement and assure security services in a computer system, particularly those that enforce access control, data protection, and process isolation. At a structural level, computer security establishes a deterministic boundary between authorized state transitions and unauthorized state transitions. In a purely theoretical execution environment, a computer system transitions from one valid state to another based strictly on legitimate user instructions and programmed logic. In an adversarial execution environment, an attacker supplies malicious inputs or exploits timing windows to force the system into an undefined or unauthorized state. For example, when a remote attacker sends a malformed network packet to an unauthenticated network daemon on a server, computer security controls must guarantee that the daemon either parses the packet safely or drops it entirely without granting the attacker an interactive root shell or leaking kernel memory. Computer security also extends to the operational guarantees provided by the underlying computing platform. A secure computer must guarantee that security policies are continuously enforced even in the presence of hardware faults, software defects, or concurrent hostile processes running on the same central processing unit. This assurance relies on establishing a trusted computing base (TCB) , which consists of all hardware, firmware, and software components whose correct operation is strictly necessary to enforce the system security policy. If any component inside the trusted computing base contains a logic flaw, the security guarantees of the entire system fail.

Chapter 02

Chapter 2 : Cryptographic Algorithms

Cryptography forms the foundational architecture of information security in computing systems. Modern communication occurs across physical and wireless media that are fundamentally open to interception, modification, and unauthorized inspection. Securing digital transactions, confidential correspondence, and sensitive records requires converting clear information into mathematical forms that unauthorized parties cannot parse. This discipline addresses the core challenge of enabling trusted communication over untrusted channels. The historical progression of cryptographic design reflects an ongoing competition between cipher creators and cipher analysts. Early historical systems relied on manual geometric patterns and basic character substitutions. These classical methods depended on the secrecy of the algorithm itself or on very small parameter keys. As mathematical analysis matured, analysts developed statistical techniques such as frequency analysis to break these early systems easily. Modern systems, by contrast, rely on computationally hard mathematical problems and publish their algorithms openly, shifting all security requirements onto large, secret mathematical keys. Studying cryptographic algorithms requires mastering both historical foundations and modern computational structures. Understanding classical ciphers provides essential intuition about basic operations like substitution and transposition. These classical building blocks expose why simple statistical patterns fail and demonstrate how modern ciphers achieve security by combining multiple complex mathematical operations into layered transformation networks.

1. Introduction to Cryptography

Cryptography is the mathematical study and engineering discipline dedicated to securing information against unauthorized observation and alteration. In computer networks, transmitting data across physical cables or radio links exposes messages to eavesdropping and tampering. Cryptography provides formal mechanisms to ensure that only authorized entities with appropriate mathematical credentials can read or modify sensitive information. The study of this subject is organized into core security objectives, standard terminology, and specific algorithmic transformation models.

1.1 Definition of Cryptography

The word cryptography derives from the Greek roots kryptos , meaning hidden or secret, and graphein , meaning writing. In modern computer science, cryptography is defined as the practice and study of techniques for secure communication in the presence of adversarial third parties. It converts standard, legible data into an obscured, unintelligible format using parameterized mathematical functions. The transformation is engineered so that reversing the process is straightforward for parties holding a specific piece of secret information, yet computationally infeasible for any observer who lacks that secret. Cryptography protects data both in transit across communication networks and at rest within physical storage devices. Beyond simple message concealment, the discipline encompasses protocols for establishing cryptographic keys, verifying data completeness, and validating digital identities. It serves as the primary technical foundation for secure web browsing, financial transaction processing, electronic voting protocols, and distributed database security. Without cryptographic mechanisms, digital networks cannot enforce privacy boundaries or verify the source of transmitted instructions.

Chapter 03

Chapter 3 : Message Authentication and Hash Functions

Computer networks operate across physically insecure transmission channels where adversary nodes can intercept, inspect, alter, or inject arbitrary data packets. While symmetric and asymmetric encryption primitives protect data confidentiality by preventing unauthorized entities from reading transmitted plaintexts, encryption alone cannot guarantee data integrity or authenticity. An adversary can modify ciphertext blocks in transit, inject counterfeit messages, or replay previously captured transmissions. Message authentication and cryptographic hash functions provide the foundational mechanisms required to verify that a received message has not been altered and that it originates from the claimed sender. The mathematical study of message authentication centers on building compact, verifiable cryptographic authenticators. These authenticators bind a message to a secret key or an asymmetric identity. Cryptographic hash functions serve as the primary workhorse across this domain, compressing arbitrary-length input messages into short, fixed-length bitstrings known as message digests. These digests act as unique digital fingerprints that exhibit extreme sensitivity to input alterations. When combined with symmetric keys through constructions like Message Authentication Codes or with asymmetric key pairs through digital signatures, hash functions enable efficient, scalable security protocols across the modern Internet. Understanding these primitives requires exploring both their mathematical design and their cryptanalytic vulnerabilities. Hash functions rely on iterative compression architectures governed by the Merkle-Damgard construction, where non-linear round functions, message schedules, and bitwise operations introduce diffusion and confusion. Cryptanalysts evaluate these algorithms against mathematical limits, particularly the Birthday Paradox, which dictates the theoretical bounds of collision resistance. This chapter explores the formal security requirements, structural mechanics, operational properties, and concrete algorithms that govern message authentication, message digests, and cryptographic hash functions.


1. Message Authentication

Message authentication encompasses the cryptographic techniques used to verify the integrity of a transmitted message and the authenticity of its claimed originator. In real-world communication networks, an active attacker can intercept packets, alter individual bits, reorder message sequences, or impersonate legitimate network participants. Establishing secure communication therefore requires cryptographic mechanisms that allow a receiving node to confirm that an incoming data stream matches the exact payload transmitted by the legitimate source and has arrived without unauthorized modification.

1.1 Introduction

Message authentication is a procedure that allows communicating parties to verify that received messages are authentic. The two primary aspects of message authentication are confirming that the message content has not been altered (message integrity) and confirming that the message source is valid (data origin authentication). Message authentication protects communicating parties against active attacks by detecting any modification, fabrication, or unauthorized injection of data in transit.

Chapter 04

Chapter 4 : User Authentication

Every secure digital system depends on a reliable method to establish identity. When a human user or automated process attempts to interact with an operating system, database, or network service, the system must establish the validity of the entity's claimed identity before granting access to confidential assets. This fundamental control boundary is user authentication. Without authentication, authorization frameworks collapse because access permissions cannot be bound to a verified identity. Authentication operates as the front line of defense in information security architecture. The process bridges the gap between physical human operators and logical digital identities. Because attackers continually develop automated tools to guess, steal, intercept, and forge credentials, designing authentication mechanisms requires a rigorous understanding of cryptography, system performance, human factors, and network protocol security. Flaws in authentication design compromise entire enterprise perimeters, exposing backend resources to unauthorized manipulation and data extraction. This chapter examines the theoretical foundations and engineering implementations of user authentication. We begin by examining the core principles that separate identity, authentication, and access control. We then inspect the mechanics of password-based security, investigating the mathematical properties of one-way hash functions, salts, key stretching algorithms, and offline cryptanalysis techniques such as rainbow tables. Subsequent sections explore hardware tokens, biometric signal processing pipelines, remote network protocols such as Kerberos, and multi-factor authentication architectures.


4.1 User Authentication Principles

User authentication is the gatekeeping mechanism that validates a claimed identity before granting entry to a computing environment. In real-world computer systems, access control decisions depend entirely on knowing which principal is executing a request. Securing this boundary requires clear distinctions between naming an identity, proving that identity, and enforcing permissions assigned to that identity. The sections below analyze these foundational concepts, establish the taxonomy of authentication factors, and contrast single-factor systems with multi-factor architectures.

4.1.1 Definition of User Authentication

User authentication is the formal process of verifying an identity claimed by or for a system entity. In security engineering, an entity attempting to gain access is designated the claimant , while the system verifying the claim is designated the verifier. The authentication transaction consists of two fundamental phases: an identification step where the claimant presents an identifier, followed by an authentication step where the claimant supplies corroborating evidence, known as credentials or authenticators. The verifier executes an evaluation function that takes the presented credential, compares it against stored reference data, and produces a binary decision: accept or reject. If the verification succeeds, the system creates an authenticated session and assigns a security identifier or access token to the principal. If the verification fails, access is denied, and the system records the failure event in an audit log. User authentication serves to enforce the principle of accountability. When individual actions within an operating system or database can be traced back to an authenticated principal, malicious activity and operational errors can be audited directly. Furthermore, authentication forms the baseline requirement for non-repudiation, preventing users from denying actions they initiated under their credentials.

Chapter 05

Chapter 5 : Access Control

Every multi-user operating system, network service, and database engine relies on a fundamental security boundary. When an active entity requests access to a protected resource, the system must decide whether to grant or deny that request. Without a structured enforcement mechanism, any running process could overwrite system memory, inspect sensitive user data, or disable essential background services. Access control provides the theoretical and technical framework that prevents these unauthorized actions. The study of access control spans theoretical models, formal mathematical representations, and concrete operating system mechanisms. At its core, the discipline separates the organizational rules that define authorized access from the computational logic that evaluates requests and the low-level hardware hooks that enforce those decisions. This separation ensures that security policies remain manageable even as system complexity grows. Understanding access control begins by examining its foundational principles, the core vocabulary of subjects and objects, and the classic mathematical structures used to capture system state. These primitives establish the baseline against which all modern operating system kernels, distributed enterprise directories, and cloud architectures are designed and evaluated.

1. Access Control Principles

Access control is the fundamental gatekeeping architecture within computer security. It governs how active entities interact with passive resources across operating systems, storage devices, and communication networks. Building a dependable access control architecture requires understanding security goals, the multi-stage validation pipeline, and the structural separation between high-level policies, formal models, and low-level mechanisms.

Definition of Access Control

Access control is the structured collection of administrative rules, logical frameworks, and technical mechanisms that govern the interaction between active entities and passive system resources. In computational environments, it acts as a decisive boundary that evaluates every inbound request against an established security policy. The primary objective is to guarantee that only authenticated and authorized principals perform specific, pre-approved operations on protected assets. It prevents accidental system corruption, malicious modification, and unauthorized data leakage across hardware and software boundaries. The concept of access control is formalized through the reference monitor abstraction. The reference monitor is an idealized, tamper-proof security kernel component that intercepts every single access attempt made by a subject toward an object. To be completely effective, a reference monitor must satisfy three core architectural properties. First, it must achieve complete mediation , meaning every access attempt without exception is intercepted and validated. Second, it must possess tamper resistance , ensuring that unauthorized processes cannot modify its internal logic or authorization database. Third, it must be verifiable , meaning its codebase is small and simple enough to be analyzed and mathematically proven correct. In modern computing, access control operates at multiple layers of the technology stack. At the hardware layer, memory management units enforce page-level read, write, and execute permissions. Within operating system kernels, system call handlers check user credentials before opening files, binding network ports, or sending process signals. In enterprise software, database management systems and web application firewalls enforce field-level permissions and API access rules. Regardless of the operational layer, the fundamental mechanics remain identical: an active entity requests an action, a mediating component evaluates policy rules, and the system executes or blocks the request based on that evaluation.

Chapter 06

Chapter 6 : Malicious Software and Intrusion

Modern computing systems operate in an environment of constant adversarial pressure. As software architectures have grown in complexity, the attack surface available to unauthorized actors has expanded correspondingly. Malicious software and unauthorized intrusions represent the primary mechanisms through which the core security goals of confidentiality, integrity, and availability are compromised. Defending modern networks requires a deep mechanical understanding of how unauthorized code infects host systems, conceals its presence from detection engines, and replicates across distributed infrastructure. Security engineering treats malicious software not as an unpredictable anomaly, but as executable logic engineered to exploit architectural assumptions within hardware, operating systems, and network protocols. Whether an attack takes the form of a parasitic binary injection, an automated network-layer worm, or a stealthy kernel-level implant, the underlying execution patterns follow deterministic rules. Analyzing these programmatic structures enables engineers to design rigorous detection frameworks, build robust runtime sandboxes, and construct effective intrusion detection systems. This chapter establishes a comprehensive foundation in the taxonomy, anatomy, and behavior of malicious software, followed by the defensive architectures designed to monitor, intercept, and analyze system intrusions. Understanding these principles allows practitioners to model threat behavior accurately and deploy defensive controls that operate effectively across host operating systems and enterprise networks.

1. Malicious Software

Malicious software represents any program, script, or binary routine deliberately introduced into a computing system to perform unauthorized operations that violate the system owner's security policy. This topic explores the technical taxonomy of malware by examining its core characteristics, the vectors through which it gains initial execution, and the payload functions it detonates. We then analyze the overarching objectives driving malware development and classify the primary families of unauthorized code operating across modern platforms.

Definition of Malicious Software

Malicious software, commonly contracted as malware , is defined in computer science as code intentionally inserted into an information system to compromise the confidentiality, integrity, or availability of the host data, applications, or operating system. The distinguishing boundary of malware lies strictly in human developer intent rather than execution failure. Unintentional programming flaws, memory leaks, and logic errors constitute software bugs; they may introduce security vulnerabilities, but they do not qualify as malware because they lack an intentional adversarial objective. Malware encompasses any software component whose primary architectural design is to execute operations without the informed consent of the system owner. Standard bodies such as the National Institute of Standards and Technology (NIST Special Publication 800-83) formalize malware as a program that is covertly inserted into another program with the intent to destroy data, run destructive or intrusive programs, or otherwise compromise the security of the host. In theoretical computer science, malware represents an unauthorized state transition function applied to the host machine's memory, file system, or network interface. The code executes within an acquired processor privilege context, using standard operating system application programming interfaces (APIs) or direct system calls to alter system state. Because malware utilizes the exact same hardware instructions and processor pipelines as legitimate applications, an operating system cannot inherently distinguish malicious execution from benign operations based solely on CPU execution. Detection therefore demands external behavioral observation, static structural inspection, or cryptographic integrity verification.

Chapter 07

Chapter 7 : Network Security

Computer networks were originally designed to facilitate resource sharing among trusted academic and military institutions. Early protocol architectures, most notably the TCP/IP suite, prioritized interoperability, packet survivability, and reliable delivery across heterogeneous physical media. Security was not an architectural primitive in these early designs. Packets were routed across intermediate nodes in cleartext, source addresses were accepted without cryptographic validation, and session states were maintained using predictable sequence numbers. As networks evolved into critical global infrastructure supporting finance, governance, healthcare, and enterprise commerce, this absence of foundational security created widespread systemic vulnerabilities. An adversary with physical or logical access to an intermediate link can intercept, inspect, alter, or discard packets without the knowledge of the communicating endpoints. Modern network security addresses these fundamental vulnerabilities by engineering cryptographic transformations, access control policies, and structural isolation mechanisms across every layer of the protocol stack. Securing a network requires understanding the distinction between abstract security objectives, the threats that endanger those objectives, the attacks used to exploit vulnerabilities, and the technical mechanisms designed to neutralize those attacks. This chapter explores network security from its core theoretical principles through its applied protocols at the application, transport, and network layers, concluding with the perimeter defenses that guard organizational boundaries.

1. Overview of Network Security

Network security encompasses the collective policies, cryptographic protocols, operational procedures, and hardware configurations deployed to safeguard data and network-accessible resources against unauthorized access, modification, destruction, or disruption. In a packet-switched network, security cannot rely on physical isolation alone because data traverses complex, multi-operator infrastructures across public routing backbones. Securing these communications requires establishing logical trust boundaries across inherently untrusted communication channels. A systematic approach to network security requires decomposing the discipline into four interrelated domains: security objectives, threat models, attack classifications, and technical mechanisms. Security objectives define what a protected system must achieve. Threats identify potential hazards to those objectives. Attacks represent the concrete realization of threats by motivated adversaries. Mechanisms are the mathematical and administrative tools engineered to guarantee the objectives despite active adversarial presence. The following sections explore these foundational concepts systematically.

Definition of Network Security

Network security is formally defined as the set of provisions, policies, and cryptographic controls implemented by a network administrator to prevent, monitor, and remediate unauthorized access, misuse, modification, or denial of a computer network and its network-accessible resources. The scope of network security spans three interdependent dimensions: physical security, logical security, and administrative security. Physical security ensures that network appliances, transmission lines, and routing facilities remain protected from direct physical tampering. Logical security uses mathematical techniques, protocol standards, and software controls to protect data in transit and state information stored on network interfaces. Administrative security establishes the operational policies, credential lifecycles, and access privileges that govern human interaction with the infrastructure. At its technical core, network security focuses on protecting data in transit across public or untrusted communication channels. When a host transmits a packet, that packet leaves the physical perimeter of the sending host and passes through multiple intermediate routers, switches, and transmission media managed by third-party internet service providers. Without network security controls, any intermediate node along this path can compromise the payload. Network security establishes end-to-end or hop-by-hop cryptographic tunnels that enforce confidentiality, verify data integrity, and authenticate the communicating endpoints regardless of the physical transmission path. Network security is an active, continuous operational lifecycle rather than a static state. It encompasses preventative measures such as boundary firewalls and encryption, detective measures such as intrusion detection systems and traffic telemetry, and responsive measures such as automated session termination and route blackholing. Securing modern networks requires applying these controls across all layers of the Open Systems Interconnection (OSI) reference model, ensuring that vulnerabilities at the link, network, transport, or application layers do not cascade into broader system compromises.

+-------------------------------------------------------------------------+
|                       Network Security Lifecycle                        |
+-------------------------------------------------------------------------+
|  PREVENTION: Firewalls, Cryptographic Protocols, Access Control Lists   |
|                                    │                                    |
|                                    ▼                                    |
|  DETECTION: Network Telemetry, Traffic Analysis, Intrusion Detection    |
|                                    │                                    |
|                                    ▼                                    |
|  RESPONSE: Dynamic Packet Dropping, Route Blackholing, Incident Isolation|
+-------------------------------------------------------------------------+

Chapter 08

Chapter 8 : Security Auditing

Information security architectures rely on preventative controls such as firewalls, cryptographic protocols, and access control lists to establish security boundaries. These mechanisms attempt to block unauthorized actions before they occur. Preventative controls alone cannot guarantee total defense. Complex software stacks, misconfigurations, insider threats, and novel exploit techniques create inevitable opportunities for bypass. A secure system requires empirical verification mechanisms to observe system behavior, validate that controls function as intended, and record evidence when security boundaries fail. Security auditing provides this empirical verification. It acts as the systematic examination of an organization's information systems, operational workflows, and technical configurations against defined security baselines. While preventative controls establish rules, security auditing measures reality. It determines whether security policies exist only on paper or operate effectively in active production environments. The technical foundation of auditing rests upon audit trails. An audit trail is an append-only, chronologically ordered sequence of event records. Each record captures a discrete state change, access attempt, or administrative action within a system. By analyzing these records, security teams transform raw system telemetry into actionable intelligence, legal evidence, and governance assurance. Modern computing environments distribute workloads across microservices, cloud platforms, container clusters, and edge networks. This distributed reality complicates the auditing process. Generating, transporting, protecting, and interpreting audit data requires a dedicated engineering architecture. Without a structured architecture, event data becomes fragmented, inconsistent, and vulnerable to tampering by adversaries attempting to cover their tracks. Understanding security auditing requires studying both its governance principles and the technical systems that collect and analyze audit data.

1. Security Audit

Security auditing represents the formal process through which an organization measures its operational state against established security criteria. It provides the structured methodologies required to evaluate technical controls, verify user behavior, and confirm compliance with legal and organizational mandates. Understanding this discipline requires examining its foundational definitions, core principles, organizational classifications, and five-phase execution lifecycle.

1.1 Definition of Security Audit

A security audit is an independent, systematic, and documented evaluation of an organization's information system controls, policies, and operational activities against predetermined criteria. It is not an informal check or an ad-hoc inspection. It follows structured methodologies defined by international standards such as ISO/IEC 27007 and NIST SP 800-53A. The audit measures the degree to which an environment satisfies specific security requirements. These requirements derive from internal security policies, industry benchmarks, or statutory regulations. An audit differs fundamentally from adjacent security assessments such as vulnerability assessments and penetration tests. A vulnerability assessment uses automated scanners to discover known technical flaws and unpatched software versions. A penetration test employs adversarial techniques to actively exploit vulnerabilities and demonstrate potential damage. A security audit encompasses a broader, control-centric scope. It evaluates not only technical vulnerabilities, but also configuration baselines, administrative procedures, separation of duties, log retention compliance, and policy governance.

+--------------------------+--------------------------------------------------------+
| Assessment Type          | Primary Focus and Execution Methodology                |
+--------------------------+--------------------------------------------------------+
| Security Audit           | Evaluates control design and operational effectiveness |
|                          | against formal standards (e.g., ISO 27001, NIST).     |
+--------------------------+--------------------------------------------------------+
| Vulnerability Assessment | Discovers and catalogs technical weaknesses using      |
|                          | automated inspection tools.                            |
+--------------------------+--------------------------------------------------------+
| Penetration Testing      | Actively exploits vulnerabilities to simulate real     |
|                          | adversary attack paths and business impact.            |
+--------------------------+--------------------------------------------------------+

An audit produces an authoritative finding report that documents discrepancies between the desired security baseline and actual operational practice. For example, when auditing an enterprise database server, the auditor checks whether database configurations enforce the principle of least privilege. The auditor inspects access control lists, verifies that administrative logins require multi-factor authentication, reviews connection logs, and verifies that database encryption matches the stated corporate policy. If the audit discovers that database administrators use shared accounts without individualized audit logging, this finding is recorded as a non-conformance.