CYB23DEU02 // B.TECH. SEMESTER V

Information Security Technical Study Guide

Official technical synthesis derived strictly from course presentation slides and assessment keys. Formatted under the Technical Minimalist specification with Space Grotesk headers, General Sans body typography, JetBrains Mono technical metadata, 1px hairline grid dividers, and zero depth shadows.

Unit I

Information Security Fundamentals and Security Policies

Q1.1

What are the Three Principles of Information Security?

Information security programs are built around three foundational objectives, collectively referred to as the CIA Triad (Confidentiality, Integrity, and Availability). In enterprise security governance, these three principles are supplemented by Authenticity and Non-repudiation.

1. Confidentiality

Confidentiality means that information is not disclosed to unauthorized individuals, entities, or processes. It ensures that sensitive personal, financial, and strategic corporate data remains shielded from eavesdropping, shoulder surfing, and illicit exfiltration.

  • Implementation Mechanisms: Symmetric and asymmetric encryption (e.g., AES-256, RSA), strict access controls, multi-factor authentication (MFA), role-based permissions, data classification, and tokenization.
  • Example: An organization ensuring that employee payroll records and student medical profiles can only be viewed by authorized Human Resources personnel and medical staff.

2. Integrity

Integrity guarantees the accuracy, consistency, completeness, and reliability of information over its entire life cycle. It prevents unauthorized, intentional, or accidental modification, insertion, deletion, or tampering with data.

  • Implementation Mechanisms: Cryptographic hash functions (e.g., SHA-256), digital signatures, message authentication codes (MAC), file integrity monitoring (FIM), and strict database transaction controls (ACID properties).
  • Example: Utilizing cryptographic checksums and digital certificates during banking transactions to ensure an attacker cannot intercept and alter the transferred monetary amount.

3. Availability

Availability ensures that systems, computing infrastructure, networks, and data remain promptly accessible and usable by authorized users whenever required for legitimate business operations.

  • Implementation Mechanisms: Hardware redundancy (RAID configurations, clustered servers), reliable database backup and disaster recovery plans, uninterruptible power supplies (UPS), load balancing, and Distributed Denial of Service (DDoS) mitigation services.
  • Example: A core banking portal or hospital electronic health record system maintaining 99.999% uptime with failover clusters so doctors can access clinical records during emergency procedures.
Supplementary Governed Principles:
• Authenticity: Confirms that users, processes, and messages are genuine and originate from verifiable sources.
• Non-repudiation: Guarantees that an individual or system cannot deny having sent a message, authorized a transaction, or performed an action, enforced through cryptographic logging and digital signatures.
Q1.2

Explain Anderson's Rule.

Anderson's Rule captures a fundamental engineering paradox inherent in database and system security administration:

Exact Definition:
"The more secure a database is made against threats, the more difficult it is to access and use."

Underlying Context and Operational Paradox

When database administrators implement rigorous defensive countermeasures—such as strict multi-factor authentication, deep SQL query sanitization, tight role segmentation, fine-grained row-level encryption, short connection timeouts, and isolated network firewalls—system complexity escalates rapidly.

Key Implications of Anderson's Rule

  • The Security vs. Usability Trade-off: High security constraints directly increase operational friction. Legitimate users encounter multi-step verification gates, latency in transaction processing due to cryptographic operations, and permission barriers.
  • User Workarounds and Shadow IT: If security controls become excessively rigid, end-users may bypass formal mechanisms—such as writing passwords on sticky notes, sharing administrative accounts, or exporting unencrypted data to personal drives—paradoxically decreasing organizational security.
  • System Performance Overhead: In-depth database auditing, real-time packet inspection, and continuous encryption/decryption consume significant memory and CPU cycles, which can degrade database throughput.

Engineering Resolution

Security architects must avoid extreme polar extremes by applying balanced defense-in-depth. This entails deploying contextual access controls (e.g., Attribute-Based Access Control), Single Sign-On (SSO), and automated privilege management that protect against threats without paralyzing legitimate business operations.

Q1.3

Define Information Security (INFOSEC), its Importance, and Types.

Definition

Information Security (INFOSEC) is the comprehensive practice of preventing unauthorized access, use, disclosure, disruption, modification, inspection, recording, or destruction of information. It protects data in all formats—whether electronic (digital databases, network packets, cloud buckets) or physical (printed records, paper archives).

Why Information Security is Important

  1. Protecting Sensitive Information: Shields personally identifiable information (PII), proprietary source code, patient healthcare data, and military secrets from espionage and exfiltration.
  2. Mitigating Risk: Minimizes the probability and severity of security breaches, malware infections, and business disruption.
  3. Regulatory Compliance: Fulfills mandatory statutory frameworks (e.g., GDPR, HIPAA, PCI-DSS, ISO/IEC 27001), preventing heavy penalties, criminal sanctions, and legal lawsuits.
  4. Protecting Reputation & Customer Trust: Preserves brand equity and competitive viability, as data leaks cause severe loss of consumer confidence.
  5. Ensuring Business Continuity: Guarantees that vital enterprise functions survive cyber attacks, system failures, and environmental catastrophes.

Five Major Types of Information Security

Security Type Scope & Protection Focus Standard Protective Controls
Network Security Protects network infrastructure and communication lines from unauthorized access, eavesdropping, and perimeter attacks. Next-Gen Firewalls, VPNs, IDS/IPS, network segmentation, and DMZs.
Application Security Secures software code from design flaws, code vulnerabilities, and logic bugs during development and deployment. Input validation, static/dynamic code analysis (SAST/DAST), parameterized queries, and WAFs.
Endpoint Security Guards individual user devices (desktops, laptops, mobile devices, servers) from local compromises. Endpoint Detection and Response (EDR), antivirus software, device encryption, and patch managers.
Cloud Security Secures isolated cloud computing environments, multi-tenant databases, APIs, and virtual storage instances. Cloud Access Security Brokers (CASB), IAM policies, customer-managed encryption keys, and CSPM.
Database Security Protects database management systems (DBMS), stored data, database servers, and associated data channels. Database firewalls, Transparent Data Encryption (TDE), user privilege auditing, and SQL injection filters.
Q1.4

Explain the Three Tiers of Security Policies.

Security policies are formal, high-level statements, rules, and guidelines developed by an organization to protect its information assets. Organizations structure security policies into a three-tiered hierarchy:

Policy Tier Target Scope & Audience Key Characteristics Functions & Concrete Examples
Tier 1: Organization-Level Policies Entire organization, senior leadership, board of directors, and all employees. • Broad, strategic, and general
• Developed by top executive management
• Organization-wide applicability
• Enduring (designed to last multiple years)
Functions: Establishes the organizational security charter, defines top-level roles, conveys acceptable risk appetite, and supports statutory compliance.
Example: Corporate Information Security Policy (CISP).
Tier 2: Function-Level Policies Specific business departments or operational units (HR, Finance, IT, R&D). • Department-specific and operational
• Translates Tier 1 goals into functional rules
• More detailed than Tier 1
Functions: Regulates domain-specific workflows, sets departmental access controls, and enforces operational integrity.
Examples: Human Resources Background Check Policy, Finance Accounting Access Policy, Employee Password Management Policy.
Tier 3: Application / Device-Level Policies System administrators, software engineers, network operators, and technical infrastructure. • Highly technical, system-specific, and detailed
• Focuses on direct technical configuration and operational controls
Functions: Dictates port openings, database hardening, encryption algorithms, cipher suites, and device usage boundaries.
Examples: Mobile Device (BYOD) Security Policy, Database Access & Query Policy, Firewall Rule Configuration Standard.
Q1.5

Discuss Electronic Information Security (EIS) in Detail.

Definition

Electronic Information Security (EIS) is the systematic process of protecting electronic data, digital systems, computer networks, and communication channels from unauthorized access, misuse, disclosure, disruption, modification, or cyber destruction.

Objectives of EIS

  • Confidentiality: Preventing unauthorized viewing or disclosure of digital records.
  • Integrity: Guaranteeing that digital messages, records, and files are not altered in transit or at rest.
  • Availability: Ensuring authorized computing services remain continuously operational.
  • Authenticity & Accountability: Verifying identity and holding every actor responsible through audit trails.

Three Core Components of Information Security

  1. People: Employees, system operators, security analysts, and management who interact with digital assets. Human training and awareness are vital to prevent phishing and social engineering exploits.
  2. Process: Formal security policies, incident response workflows, data backup routines, access reviews, and change management procedures.
  3. Technology: The defensive hardware and software tools deployed, such as firewalls, cryptographic libraries, SIEM platforms, antivirus engines, and intrusion prevention systems.

Areas of EIS

Network Security, Database Security, Application Security, Cloud Security, and Endpoint Protection.

Threats & Security Mitigation Techniques

Threat Category Threat Description Mitigating EIS Security Technique
Malware Viruses, worms, trojans, and ransomware designed to damage systems or encrypt data. Updated Antivirus / EDR, application whitelisting, and regular automated backups.
Phishing Deceptive emails and fake web portals tricking employees into surrendering credentials. Security awareness training, email filtering/SPF/DKIM/DMARC, and hardware MFA.
Denial of Service (DoS) Flooding servers with bogus traffic to deny access to authorized customers. Load balancers, traffic rate limiting, firewalls, and cloud-based anti-DDoS scrubbers.
Insider Threats Disgruntled or compromised employees abusing authorized system access for illicit theft. Principle of Least Privilege (PoLP), segregation of duties, and behavioral log auditing.
Hacking & Intrusion Exploiting operating system or network software bugs to gain unauthorized control. Vulnerability scanning, automated patch management, and intrusion detection systems (IDS).

Advantages, Challenges, and Applications

  • Advantages: Safeguards sensitive customer assets, prevents massive financial loss, builds market reputation, and preserves continuous business workflows.
  • Challenges: Rapidly mutating cyber threats, high capital investment for security infrastructure, technical complexity, and employee resistance.
  • Applications: Electronic Core Banking, Tele-health & Healthcare Records, E-Commerce Gateways, Government Identity Services, and Online Educational Portals.
Q1.6

List and Explain the Top 10 Database Security Threats.

According to enterprise database security benchmarks and lecture notes, the top ten threats targeting relational and cloud databases are:

  1. Excessive Privilege Abuse: Users are granted administrative or expansive access privileges that exceed the requirements of their job description.
    Example: A university academic clerk whose job only requires updating student contact addresses abuses excessive database write privileges to alter student course grades.
  2. Legitimate Privilege Abuse: Users execute illicit or unethical actions using legitimate privileges assigned to them.
    Example: A rogue hospital nurse or health administrator with authorized medical record access exports and sells celebrity patient records to tabloid media.
  3. Privilege Elevation: Attackers exploit software vulnerabilities within database stored procedures, built-in system functions, protocol stacks, or SQL statements to convert ordinary user privileges into database administrator (DBA) privileges.
  4. Database Platform Vulnerabilities: Flaws in the underlying server operating system (Windows, Linux/UNIX) or secondary services running on the database host that allow arbitrary code execution, denial of service, or unauthorized host access.
  5. SQL Injection (SQLi): Attackers insert unauthorized, malicious SQL queries into input channels (e.g., login boxes, URL parameters), tricking the database compiler into executing arbitrary commands and revealing entire tables.
  6. Weak Audit Trail: Failure to log database transactions, or recording inadequate details, creates severe organizational exposure: regulatory non-compliance, inability to detect intrusions, failure of deterrence, and impossibility of post-incident forensic recovery.
  7. Denial of Service (DoS): Attackers flood the database server with resource-heavy queries or exploit engine memory leaks, starving server CPU/RAM and preventing legitimate users from accessing mission-critical applications.
  8. Database Communication Protocol Vulnerabilities: Security weaknesses in the proprietary binary protocols used for database client-server communication (e.g., protocol flaws patched in IBM DB2 FixPacks or Oracle Quarterly Critical Patch Updates).
  9. Weak Authentication: Utilizing default accounts, weak passwords, unencrypted credentials, or lacking account lockouts, allowing attackers to brute-force or impersonate legitimate database users.
  10. Backup Data Exposure: Leaving offline database backup media (magnetic tapes, external optical disks, unencrypted cloud storage snapshots) unprotected, resulting in catastrophic physical or network theft of full database copies.
Q1.7

Discuss the Different Types of Security Policies and Supporting Documents.

Security policies establish management's security directives. In corporate governance, they are categorized through two established frameworks:

A. The Hierarchical Tier Classification

  • Tier 1 – Organization-Level Policy: Master policy drafted by top executive leadership covering strategic vision, high-level governance, and corporate commitment. (e.g., Enterprise Information Security Policy).
  • Tier 2 – Function-Level Policy: Tailored operational rules governing specific business units. (e.g., Human Resources Policy, Accounting Access Control Policy).
  • Tier 3 – Application/Device-Level Policy: Implementation-specific rules defining technical configurations. (e.g., Firewall Rule Policy, Database Encryption Policy).

B. Functional Security Policy Categorization (NIST SP 800-14 Framework)

  1. Program Policy (Enterprise Information Security Policy - EISP): Establishes the entire organizational security program, delegates security roles (CISO, security teams), outlines statutory obligations, and states high-level security objectives.
  2. Issue-Specific Security Policies (ISSP): Focuses on addressing distinct technologies, emerging issues, or employee behaviors to prevent misuse.
    Examples: Acceptable Use Policy (AUP), Remote Telecommuting Policy, Internet and Social Media Policy, Bring Your Own Device (BYOD) Policy.
  3. System-Specific Security Policies (SSSP): Serves as technical guidance for administrators configuring particular systems, applications, routers, or database platforms.
    Examples: Access Control Lists (ACLs), Oracle database hardening specifications, and web server cipher configuration standards.

The Complete Policy Governance Architecture

Document Type Enforceability Core Definition & Purpose Practical Examples
Policy Mandatory High-level formal statement of management's intent, philosophy, and directives; built to be durable and resistant to frequent change. Corporate Password Policy, Data Retention Policy.
Standard Mandatory / Compulsory Uniform, mandatory rules, technologies, and specifications that give policies practical support. Enforcing AES-256 for all data-at-rest; mandatory 12-character minimum passwords.
Procedure Mandatory Detailed step-by-step instructions ("cookbooks") for staff to execute repeatable operational tasks. Standard Operating Procedure (SOP) for provisioning new user accounts or performing nightly database backups.
Guideline Discretionary / Flexible Recommended best practices or advice provided to users where specific standards do not apply; open to interpretation. Suggestions for organizing desktop directories or creating memorable mnemonic passphrases.
Q1.8

Explain the Top 10 Web Security Threats.

The web landscape is subject to evolving cyber attacks that threaten web applications, browser clients, and enterprise web servers:

  1. Bigger, Subtler DDoS Attacks: Modern Distributed Denial of Service attacks scale exponentially in bandwidth volume while blending into legitimate application traffic (e.g., slow-rate HTTP floods, SYN floods), overwhelming web servers without triggering crude threshold alarms.
  2. Old Browsers and Vulnerable Plug-Ins: Attackers target legacy browser clients and outdated third-party plug-ins (e.g., Oracle Java runtime, Adobe Flash, PDF Readers) to trigger arbitrary memory execution via drive-by downloads.
  3. Good Sites Hosting Bad Content (Watering Hole Attacks): Cybercriminals compromise legitimate, reputable websites frequented by targeted organizations (such as the historic VOHO watering hole campaign targeting financial portals) to covertly inject malware into visitors' systems.
  4. Mobile Apps and the Unsecured Web: The Bring Your Own Device (BYOD) trend introduces unmanaged smartphones and tablets into corporate firewalls, many running mobile apps with unencrypted HTTP APIs and leaky data storage.
  5. Failing to Clean Up Bad Input (Injection Attacks): The failure of web applications to sanitize, validate, and encode incoming user input, allowing SQL Injection and command injection to compromise back-end infrastructure.
  6. The Hazards of Digital Certificates: Hacks targeting Certificate Authorities (CAs) enable adversaries to forge fraudulent SSL/TLS certificates, allowing them to impersonate trusted financial and corporate domains.
  7. The Cross-Site Scripting (XSS) Problem: Attackers exploit flawed web input fields to inject client-side scripts into trusted web pages, executing code within victims' browsers to hijack session cookies and credentials.
  8. The Insecure "Internet of Things" (IoT): Proliferation of networked devices (printers, smart door locks, webcams) embedded with lightweight web servers running outdated, unpatchable open-source software libraries.
  9. Getting in the Front Door (Malicious Web Bots): Automated bots aggressively scraping proprietary business databases, pricing intelligence, and intellectual property directly from public-facing web applications.
  10. New Technology, Same Problems (Deceptive Hyperlinks): Deceptive links and social engineering persist as humans are conditioned to click links without validating origins or domain authenticity.
Unit II

Database Security and Protection

Q2.1

What is Attribute-Based Access Control (ABAC)?

Attribute-Based Access Control (ABAC) is an advanced, logical access control methodology that grants or denies access permissions dynamically based on the evaluation of characteristics, properties, and values known as attributes.

Core Philosophy

Unlike traditional Discretionary Access Control (DAC) which is owned by users, or Role-Based Access Control (RBAC) which strictly maps static permissions to job roles, ABAC evaluates contextual, multi-dimensional attributes at the exact time an access request is initiated.

Four Fundamental Attribute Categories in ABAC

  1. Subject / User Attributes: Characteristics describing the entity requesting access (e.g., User ID, department, job role, security clearance level, professional title).
  2. Resource / Object Attributes: Characteristics of the data asset being targeted (e.g., file classification, database table name, creation date, department owner, document sensitivity).
  3. Action Attributes: Characteristics defining the operation being attempted (e.g., Read, Write, Edit, Delete, Copy, Export, Execute).
  4. Environment Attributes: Dynamic, contextual conditions present at runtime (e.g., time of day, day of week, user geographic location, IP address, device security posture, threat level).

Rule-Based Boolean Evaluation Example

An ABAC policy statement might specify:

PERMIT access IF:
  Subject.Department == "Cardiology" AND
  Subject.Role == "Doctor" AND
  Resource.Type == "Medical Record" AND
  Resource.Department == "Cardiology" AND
  Action == "Read" AND
  Environment.Time BETWEEN 08:00 AND 18:00 AND
  Environment.Location == "Hospital Internal Network";
Q2.2

Explain the Different Types of Database Firewalls.

A Database Firewall is a specialized security mechanism positioned between database clients (web servers, applications, administrators) and the database server to monitor, filter, and block malicious or unauthorized SQL queries. The primary types include:

Firewall Type Inspection Layer & Working Mechanism Advantages & Limitations
1. Packet Filtering Firewall Operates at the Network and Transport layers (OSI Layers 3 & 4). Examines packet headers: source/destination IP addresses, source/destination ports, and transport protocol (TCP/UDP). Pros: Extremely fast, low latency, consumes minimal system overhead.
Cons: Cannot inspect SQL payloads; blind to SQL Injection attacks concealed inside legitimate database ports (e.g., TCP port 1433 or 1521).
2. Stateful Inspection Firewall Monitors communication states across active connections. Tracks the state of database sessions and validates whether incoming packets belong to an established, valid connection. Pros: Prevents unauthorized connection spoofing, SYN flood attacks, and broken session hijacks.
Cons: Lacks deep grammatical understanding of SQL statement semantics.
3. Application Proxy / Gateway Firewall Acts as an intermediary proxy at the Application Layer (Layer 7). Terminates client connections, reconstructs SQL statements, inspects the SQL syntax against policy rules, and forwards only clean queries. Pros: Deep semantic inspection of database queries; thoroughly detects SQLi and unauthorized schema access.
Cons: Introduces latency; can become a processing bottleneck during peak transaction loads.
4. Next-Generation Firewall (NGFW) Combines traditional stateful inspection with deep packet inspection (DPI), integrated Intrusion Prevention Systems (IPS), SSL/TLS decryption, and real-time threat intelligence. Pros: Identifies complex multi-vector attacks and protocol anomalies.
Cons: Higher capital cost and complex rule maintenance.
5. Database-Specific Firewall (Reverse Proxy / Inline) Custom-engineered specifically for database protocols (e.g., Oracle TNS, TDS for MS SQL, MySQL wire protocol). Operates in Inline (bridge) mode or Sniffer (passive monitoring) mode. Pros: Understands database user identities, stored procedures, table privileges, and SQL grammar; blocks SQLi in real-time.
Cons: Requires specialized database expertise and configuration.
Q2.3

Describe Three SQL Security Mechanisms Used for Database Protection.

Structured Query Language (SQL) provides native mechanisms to protect database integrity and control access:

1. Authentication and User Management

Authentication verifies the identity of users before granting database connection privileges. SQL engines enforce authentication via local database accounts or directory integration.

  • Mechanism: Creating distinct user profiles with password complexity requirements, password expiration, and account lockout policies.
  • Syntax: CREATE USER Surya IDENTIFIED BY 'StrongP@ssw0rd!2026';
  • Benefit: Establishes individual user identity, preventing shared anonymous access and enabling non-repudiation.

2. Authorization and Privilege Management (GRANT & REVOKE)

Authorization dictates the specific operations an authenticated user is permitted to perform on specific database objects.

  • Mechanism: Differentiating between System Privileges (e.g., CREATE TABLE, ALTER SYSTEM) and Object Privileges (e.g., SELECT, INSERT, UPDATE, DELETE).
  • Syntax:
    GRANT SELECT, UPDATE ON Employee TO Surya;
    REVOKE UPDATE ON Employee FROM Surya;
  • Benefit: Enforces the Principle of Least Privilege (PoLP) by restricting users to only the operations required for their role.

3. Database Views (Virtual Tables)

A View is a virtual table defined by a saved SQL query. Views restrict direct access to underlying physical tables by exposing only specified columns or filtered rows.

  • Mechanism: Hiding sensitive attributes (e.g., Social Security Numbers, salary figures, password hashes) while allowing users to query non-sensitive data.
  • Syntax:
    CREATE VIEW PublicEmployeeInfo AS
    SELECT EmployeeID, FirstName, LastName, Department
    FROM Employee;
    
    GRANT SELECT ON PublicEmployeeInfo TO GeneralStaff;
  • Benefit: Enforces row-level and column-level security without duplicating physical data.
Q2.4

Explain Three Database Backup Techniques.

Database backups are copies of operational data created to restore information during system crashes, hardware failures, or ransomware attacks. Three primary backup techniques include:

Backup Technique Working Principle Storage Overhead & Recovery Time
1. Full Backup Creates a complete copy of the entire database, including all data files, system catalogs, schemas, tables, views, and active transaction logs at a specific point in time. Storage: Highest storage requirement.
Recovery: Fastest and simplest restoration (requires only the single full backup file).
2. Incremental Backup Copies only the data blocks and records that have changed since the most recent backup (whether that previous backup was a Full or an Incremental backup). Storage: Smallest storage footprint and fastest backup execution.
Recovery: Slowest recovery process (requires restoring the baseline Full backup followed by every subsequent Incremental backup in exact sequence).
3. Differential Backup Copies all data blocks and records that have changed since the last Full backup. Each differential backup accumulates changes until the next full backup is taken. Storage: Moderate storage requirement (grows daily until next full backup).
Recovery: Fast restoration (requires only the baseline Full backup plus the single latest Differential backup).
Categorical Classification (Physical vs. Logical Backups):
• Physical Backup: Copies raw physical database files, transaction logs, data files, and control files directly from the storage volume.
• Logical Backup: Uses database utilities (such as mysqldump or Oracle Data Pump) to export database structure and data as human-readable SQL statements (DDL and DML insert commands).
Q2.5

Discuss Security Specification in SQL.

Definition & Purpose

Security Specification in SQL refers to the formal mechanisms, language commands, and administrative constructs provided by SQL standards to control database access, safeguard data confidentiality, and prevent unauthorized operations.

Core Objectives of SQL Security Specifications

  • Protect sensitive corporate and customer information from unauthorized exposure.
  • Prevent unauthorized access and privilege escalation.
  • Maintain data integrity by preventing unapproved modifications or deletions.
  • Enforce administrative accountability and audit compliance.

Key Components of SQL Security Specifications

1. Authentication Specification

Establishes database identities and credential verification rules.

CREATE USER db_analyst IDENTIFIED BY 'SecurePassword2026!';
2. Privilege Management (GRANT and REVOKE Statements)

SQL classifies permissions into two major categories:

  • System Privileges: Permissions to perform administrative tasks across the database instance (e.g., CREATE TABLE, CREATE USER, ALTER DATABASE).
  • Object Privileges: Permissions to execute data manipulation operations on specific database objects (e.g., SELECT, INSERT, UPDATE, DELETE, EXECUTE).
Command Standard SQL Syntax Concrete Example
GRANT GRANT privilege_name ON table_name TO user_or_role; GRANT SELECT, INSERT ON Student TO Surya;
REVOKE REVOKE privilege_name ON table_name FROM user_or_role; REVOKE INSERT ON Student FROM Surya;
3. Role-Based Specifications

Instead of granting permissions individually to hundreds of distinct users, SQL allows administrators to create Roles—named collections of privileges—and assign users to those roles.

CREATE ROLE Auditor;
GRANT SELECT ON FinancialLedger TO Auditor;
GRANT Auditor TO user_ravi, user_priya;
Q2.6

Explain the ABAC Model by Designing its Architecture and Workflow.

Architectural Components of ABAC (XACML Reference Model)

Attribute-Based Access Control systems rely on four standardized architectural entities:

  • Policy Enforcement Point (PEP): The gateway or interceptor that protects the resource. It intercepts incoming user requests, queries the decision engine, and enforces access decisions (Permit or Deny).
  • Policy Decision Point (PDP): The brain of the ABAC engine. It evaluates incoming access requests by comparing user, resource, action, and environment attributes against authorization policies.
  • Policy Information Point (PIP): The attribute repository. It retrieves required attribute values from enterprise directories (LDAP, Active Directory, HR databases, device management systems).
  • Policy Administration Point (PAP): The administrative interface used by security officers to write, manage, test, and publish authorization policies.
Subject / User 1. Request PEP Policy Enforcement 2. Evaluate 5. Decision PDP Policy Decision Point PIP (Attributes) LDAP / DB / Context 3. Query Attr PAP (Policies) Policy Administration 4. Fetch Rules Target Resource Database / Records 6. Access Granted (if Permit)
Figure 2.1: Attribute-Based Access Control (ABAC) Architecture & Inter-Component Workflow

Step-by-Step ABAC Execution Workflow

  1. Request Initiation: A user (Subject) requests access to a specific database table or document (Resource) to perform an action (e.g., Read).
  2. Interception by PEP: The Policy Enforcement Point intercepts the request and generates an access decision query for the PDP.
  3. Attribute Retrieval via PIP: The PDP requests missing contextual attributes from the Policy Information Point (e.g., querying LDAP for the user's current security clearance or checking system time and location).
  4. Policy Retrieval from PAP: The PDP retrieves active authorization policy rules governing this resource type from the Policy Administration Point.
  5. Decision Formulation: The PDP evaluates the attributes against the boolean conditions defined in the policy and produces a definitive decision: Permit or Deny.
  6. Enforcement: The PDP returns the decision to the PEP. If Permit, the PEP routes the user to the requested data; if Deny, access is immediately blocked and an audit alert is logged.
Q2.7

Discuss Database Backup and Recovery Techniques to Restore Lost Data and Ensure Continued Availability.

Causes of Database Failures

Databases are susceptible to several catastrophic failure modes requiring systematic recovery:

  • System Crash: Hardware malfunctions, sudden power failures, or operating system kernel panics causing active volatile RAM cache to be lost.
  • Transaction Failure: Logical errors, software exceptions, deadlock conditions, or constraint violations forcing an active transaction to abort.
  • Disk Failure: Physical storage breakdown (bad disk sectors, head crashes, disk controller failure) destroying database blocks.
  • Network Failure: Network partitioning, routing breakdown, or communication severed between application servers and the database engine.
  • Media Failure & User Errors: Accidental table drops (DROP TABLE), unconstrained updates (missing WHERE clauses), or malicious ransomware corruption.

Database Backup Techniques

To prepare for recovery, organizations deploy three complementary backup techniques: Full Backups (complete database image), Incremental Backups (captures changes since the last backup), and Differential Backups (accumulates changes since the last full baseline). In addition, backups are maintained as Physical Backups (raw data files, transaction logs) and Logical Backups (SQL DDL/DML export scripts).

Database Recovery Techniques

1. Log-Based Recovery

The database maintains an append-only sequential file known as the Transaction Log. Every database modification is recorded in the log before it is written to disk storage (known as Write-Ahead Logging / WAL). A log record contains: Transaction ID, Data Item, Old Value, and New Value.

Log-Based Strategy Database Update Timing Recovery Procedure During Crash
Deferred Database Modification Actual database writes to disk are deferred until the transaction completely executes its COMMIT operation. Only REDO operations are required.
Transactions that committed before the crash are redone from the log; uncommitted transactions made no disk changes and require no undo.
Immediate Database Modification Database writes to disk are allowed to occur while the transaction is still actively running, prior to commit. Requires both UNDO and REDO.
Uncommitted transactions that wrote dirty data to disk are undone (restoring Old Values), and committed transactions are redone (writing New Values).
2. Checkpointing

Scanning the entire transaction log from the beginning of time after a crash is computationally expensive. The database periodically outputs a Checkpoint:

  1. All log records currently residing in memory buffers are flushed to disk.
  2. All modified database pages in memory buffers are written to disk.
  3. A <checkpoint L> record (where L is the list of active transactions) is written to the log.

During crash recovery, the recovery manager only needs to scan back to the most recent checkpoint, drastically reducing system recovery time.

3. Shadow Paging

An alternative recovery technique that does not rely strictly on logs. The database maintains two page tables during the transaction lifetime: a Current Page Table (reflects uncommitted modifications) and a Shadow Page Table (points to the original unmodified database pages on disk). If the transaction commits, the shadow page table pointer is updated to the current page table. If the transaction crashes, the current page table is discarded, instantly rolling back the database to the shadow state.

4. Rollback and Roll-forward Recovery
  • Rollback (UNDO): Reversing all modifications made by an uncommitted or aborted transaction using the "Old Value" stored in the transaction log.
  • Roll-forward (REDO): Reapplying all committed modifications that were in volatile cache and not yet written to disk when the crash occurred, using the "New Value" in the log.
Q2.8

Explain the Working of a Database Firewall, its Types, and Rules for Access Control.

Working Mechanism of a Database Firewall

A Database Firewall acts as an intelligent security gateway positioned between client applications and the backend database management system (DBMS). Its operational lifecycle proceeds through four steps:

  1. Connection Interception: The firewall intercepts all incoming database connection attempts and client requests, terminating or inspecting the SQL session.
  2. SQL Protocol & Payload Parsing: The firewall breaks down the raw network packet, extracts the SQL query string, and parses the SQL syntax using an internal grammar engine.
  3. Rule & Policy Comparison: The extracted query is evaluated against security rule sets:
    • Is the user authorized to query this specific table?
    • Does the query contain known SQL injection syntax (e.g., ' OR 1=1 --)?
    • Is the query submitted outside permissible business hours or from an unrecognized IP address?
  4. Enforcement & Logging: If the query conforms to all rules, it is passed to the database server. If a violation is detected, the firewall instantly drops the packet, resets the connection, returns an error to the client, and transmits an alert to the Security Operations Center (SOC).

Types of Database Firewalls

  • Packet-Filtering Firewall: Evaluates IP addresses, ports, and protocols at OSI Layers 3 & 4. High speed, but incapable of detecting SQL Injection payloads.
  • Stateful Inspection Firewall: Tracks active TCP connection states, preventing connection hijacking and SYN flood attacks.
  • Application Gateway / Reverse Proxy Firewall: Reconstructs full SQL statements at Layer 7, performing deep semantic analysis of SQL grammar, stored procedures, and table queries.
  • Next-Generation Firewall (NGFW): Combines deep packet inspection, TLS decryption, intrusion prevention (IPS), and threat intelligence feeds.

Database Firewall Rules for Controlling Access

Rule Category Operational Focus Concrete Rule Implementation
Access Control Rules Restricts database connections based on network origins, user identities, and protocols. Allow database connections on TCP port 1433 ONLY from Application Server IP 10.0.1.25; block all direct public connections.
SQL Query Validation Rules (Whitelisting & Blacklisting) Enforces strict grammatical boundaries on incoming SQL statements. Whitelisting: Only permit pre-approved parameterized query signatures generated by the application.
Blacklisting: Block queries containing suspicious patterns (e.g., UNION SELECT, DROP TABLE, xp_cmdshell, or tautologies like '1'='1').
Privilege & Data Masking Rules Restricts unauthorized DDL/DML commands and masks sensitive output fields. Prohibit ordinary application accounts from executing DDL commands (ALTER, TRUNCATE); mask credit card numbers in query output.
Anomaly Detection & Rate-Limiting Rules Detects abnormal query volume or unusual exfiltration behavior. Trigger an immediate IP block and administrative alert if any single user account executes more than 200 SELECT queries per second or attempts to export over 10,000 records.
Unit III

Internet and Web Security

Q3.1

What are the Main Components of an HTTP Request?

An HTTP Request is a standardized application-layer message transmitted by a client (such as a web browser or mobile application) to a web server to request a resource or trigger an operation. An HTTP request consists of four main components:

1. Request Line: POST /api/v1/login HTTP/1.1 2. Request Headers: Host: example.com | User-Agent: Mozilla/5.0 | Content-Type: application/json Authorization: Bearer eyJhbGci... | Cookie: session_id=abc123xyz 3. Blank Line (CRLF - Carriage Return Line Feed separator) 4. Message Body: {"username": "admin", "password": "SecretPassword123"}
Figure 3.1: Structural Decomposition of an HTTP Request

Detailed Component Breakdown

  1. Request Line: The initial line that specifies the fundamental operation to be performed. It consists of three distinct parts:
    • HTTP Method: The action verb (e.g., GET, POST, PUT, DELETE).
    • Request URI (Uniform Resource Identifier): Identifies the targeted web path or resource (e.g., /login.html or /api/data).
    • HTTP Protocol Version: Indicates the HTTP specification supported (e.g., HTTP/1.1 or HTTP/2).
  2. Request Headers: Key-value pairs providing metadata about the client, the requested resource, and connection preferences:
    • Host: Specifies the domain name of the destination server (mandatory in HTTP/1.1).
    • User-Agent: Identifies the operating system, browser engine, and client software version.
    • Accept: Indicates acceptable MIME content types (e.g., text/html, application/json).
    • Authorization: Carries authentication credentials (e.g., Basic auth, Bearer tokens).
    • Cookie: Transmits previously issued session identifiers to maintain state.
    • Content-Type & Content-Length: Defines media type and byte size of the payload.
  3. Blank Line: A mandatory empty line containing only a Carriage Return and Line Feed (CRLF / \r\n). It serves as the definitive delimiter signaling to the web server that headers have ended and the message body begins.
  4. Message Body (Payload): Optional container holding arbitrary client data sent to the server. Present in methods like POST and PUT (transmitting form data, JSON API payloads, or file uploads); typically absent in GET, HEAD, and DELETE requests.
Q3.2

Describe Three Common Web Application Vulnerabilities.

Web applications interface directly with the public Internet, exposing backend infrastructure to client-side and server-side vulnerabilities:

1. SQL Injection (SQLi)

  • Nature & Cause: Occurs when untrusted user input is directly concatenated into a dynamic SQL query without proper sanitization, escaping, or parameterization.
  • Impact: Attackers can bypass authentication, read confidential data across all database tables, modify or delete critical records, and potentially execute administrative operating system commands via database stored procedures.
  • Prevention: Use parameterized queries (Prepared Statements), Object-Relational Mapping (ORM) frameworks with parameter binding, and input whitelisting.

2. Cross-Site Scripting (XSS)

  • Nature & Cause: Involves injecting malicious JavaScript or HTML code into web applications that is subsequently delivered to and executed within the browsers of other unsuspecting users.
  • Impact: Hijacking active user sessions by stealing sensitive session cookies, logging keystrokes, redirecting victims to malicious websites, or defacing portal content.
  • Prevention: Context-aware output encoding (HTML, JavaScript, CSS encoding), rigorous input validation, and implementing a strict Content Security Policy (CSP).

3. Cross-Site Request Forgery (CSRF)

  • Nature & Cause: Tricks an authenticated victim's web browser into transmitting unauthorized commands to a vulnerable web application where the user is currently logged in.
  • Impact: Executes state-changing actions under the victim's identity without their consent—such as transferring bank funds, modifying user email addresses, or changing account passwords.
  • Prevention: Implementing unique, cryptographically unpredictable anti-CSRF synchronization tokens for all state-changing requests, enforcing SameSite=Strict or Lax cookie attributes, and requiring re-authentication for sensitive operations.
Q3.3

What is Internet Security Architecture?

Internet Security Architecture is a comprehensive, multi-layered defensive framework (implementing the Defense-in-Depth principle) designed to protect computing infrastructure, networks, web applications, and digital data from cyber threats across the Internet.

Core Philosophy

Rather than relying on a single defensive boundary (which creates a single point of failure), Internet Security Architecture deploys complementary security layers. If an adversary penetrates outer perimeter defenses, inner layers—such as transport encryption, application-level firewalls, and database access controls—continue to protect critical enterprise assets.

Primary Objectives

  • Ensure end-to-end Confidentiality via robust cryptographic protocols (TLS/SSL, IPsec).
  • Maintain message and data Integrity against man-in-the-middle manipulation.
  • Guarantee high Availability through resilient routing, load balancing, and anti-DDoS architectures.
  • Establish strong Authentication and authorization across all system boundaries.
Q3.4

Explain Three Common HTTP Methods and Differentiate Between GET and POST.

HTTP defines request methods (also known as verbs) to indicate the desired action to be performed on an identified resource. Three of the most common methods are:

  1. GET: Requests a representation of the specified resource. GET requests must only retrieve data and produce no side effects on the server state (idempotent and safe). Parameters are appended directly to the URL query string.
  2. POST: Submits data to the specified resource to be processed by the server (e.g., submitting form data, uploading files, or creating new database records). POST requests typically alter server state and are non-idempotent. Data is transmitted inside the request body.
  3. PUT: Replaces all current representations of the target resource with the uploaded request payload, or creates the resource if it does not exist. Unlike POST, PUT is idempotent (calling it multiple times produces the identical server state).

Comparison of GET and POST Methods (CA Examination Rubric)

Comparison Attribute GET Method POST Method
Primary Purpose Used to retrieve or fetch data from the server. Used to send, submit, or create data on the server.
Data Transmission Data is sent through the URL query string. Data is sent through the HTTP request body.
Parameter Visibility Parameters are visible in the browser address bar. Parameters are hidden from the URL bar.
Typical Applications Used for fetching static pages, articles, and search queries. Used for user authentication, registration, payments, and file uploads.
Data Size Restrictions Data size is strictly restricted by browser/server URL length limits (~2KB). Can handle much larger amounts of data (virtually unlimited body size).
Bookmarking & History Can be bookmarked and remains stored in browser history. Cannot normally be bookmarked and is not stored in history.
Caching Behavior Responses can be cached by browsers, proxies, and CDNs. Responses are generally not cached.
Idempotence & Safety Safe and idempotent (does not modify server resources). Not safe and non-idempotent (creates or modifies server state).
Q3.5

Describe the Internet Security Architecture in Detail: Major Components and Working.

Major Components of Internet Security Architecture

  1. Perimeter Defense & Firewall Layer: The frontline barrier connecting internal networks to the public Internet. Filters incoming and outgoing IP packets based on access control rules, drops unauthorized connection attempts, and mitigates volumetric DDoS attacks.
  2. Intrusion Detection and Prevention Systems (IDS/IPS): Deeply analyzes real-time network traffic patterns to detect signature-based exploits, protocol anomalies, port scans, and zero-day malicious behavior, actively resetting malicious TCP connections.
  3. Web Application Firewall (WAF): An application-layer (Layer 7) proxy that inspects incoming HTTP/HTTPS requests to detect and neutralize web attacks, including SQL Injection, Cross-Site Scripting (XSS), and Cross-Site Request Forgery (CSRF).
  4. Transport Layer Security (TLS/SSL): Establishes cryptographically encrypted sessions between client browsers and web servers. Provides end-to-end confidentiality, ensures message integrity via MAC checksums, and authenticates server identity using X.509 digital certificates.
  5. Web and Application Server Layer: Hardened server environments running web servers (Nginx, Apache, IIS). Protected through least-privilege service accounts, disabled default directories, patched runtimes, and secure coding frameworks.
  6. Database Security Layer: Houses enterprise data behind internal firewalls. Enforces database access control lists, column-level encryption, query parameterization, and transaction logging.
  7. Identity and Access Management (IAM): Authenticates users via Multi-Factor Authentication (MFA), manages Single Sign-On (SSO) federation, and regulates fine-grained role permissions.

Step-by-Step Working of Internet Security Architecture

  1. Request Transmission: A remote user submits a request to access an online banking or enterprise portal via an HTTPS URL.
  2. Perimeter Filtering: The incoming IP packet hits the enterprise perimeter firewall and DDoS mitigation appliance. Bogus packets, malformed headers, and blacklisted IPs are filtered and dropped immediately.
  3. Threat Inspection: Traffic passes through network IDS/IPS sensors that scan for exploit payloads, port probes, and known malware signatures.
  4. WAF Semantic Analysis: The HTTP payload arrives at the Web Application Firewall. The WAF inspects query strings, HTTP headers, cookies, and POST bodies, terminating requests containing SQL injection or cross-site scripting strings.
  5. TLS Termination & Mutual Authentication: Secure cryptographic handshake authenticates the server's digital certificate and establishes symmetric session keys (e.g., AES-GCM) to ensure encrypted data transit.
  6. Application Processing & IAM Verification: The web/application server authenticates user credentials, validates session tokens, and applies authorization rules to determine resource privileges.
  7. Secure Database Querying: If data access is required, the application uses pre-compiled parameterized queries to interact with the database server through internal database firewalls.
  8. Secure Response Return: The processed output is packaged into an HTTP response, encrypted over the established TLS tunnel, and safely delivered back to the client browser.
Q3.6

Explain the Architecture of a Web Browser with a Diagram, its Components, and Working When Accessing a Web Page.

Architecture of a Web Browser

A modern web browser is a complex software system comprised of seven major interconnected subsystems:

1. User Interface (UI) Address Bar • Back/Forward • Bookmarks • Refresh Button • Tab Controls 2. Browser Engine Marshals actions between the User Interface and the Rendering Engine 3. Rendering Engine Blink / WebKit / Gecko HTML Parser (DOM) • CSS Parser (CSSOM) • Layout & Paint 4. Networking HTTP / HTTPS • DNS
Sockets • Cache 5. JS Engine V8 / SpiderMonkey
Executes Scripts
6. UI Backend Draws basic platform widgets & graphics
(windows, combo boxes, surfaces)
7. Data Storage Cookies • LocalStorage • SessionStorage
IndexedDB • Web SQL • Cache
Figure 3.2: Architecture and Structural Components of a Modern Web Browser

Seven Major Components of a Web Browser

  1. User Interface (UI): Includes every visual element except the web page viewport (address bar, back/forward buttons, refresh button, bookmarks bar, security padlock indicator).
  2. Browser Engine: Serves as the operational bridge that marshals actions, events, and data transfers between the User Interface and the Rendering Engine.
  3. Rendering Engine: Responsible for parsing HTML and CSS, calculating layout geometry, and painting visual representations on screen (e.g., Blink in Chrome/Edge, Gecko in Firefox, WebKit in Safari).
  4. Networking Module: Handles all network communication, DNS queries, HTTP/HTTPS transaction flows, socket pools, cache lookups, and TLS cryptographic handshakes.
  5. JavaScript Engine: High-performance runtime that parses, compiles (JIT), and executes client-side JavaScript scripts (e.g., Google V8 in Chrome, SpiderMonkey in Firefox).
  6. UI Backend: Interfaces with the underlying operating system's graphics libraries to draw primitive controls like input text boxes, checkboxes, select menus, and windows.
  7. Data Storage (Persistence Layer): Manages local client persistence, storing cookies, cache files, LocalStorage, SessionStorage, and client databases (IndexedDB).

Step-by-Step Working When a User Accesses a Web Page

  1. User Input: The user enters a URL (e.g., https://www.example.com) into the address bar and presses Enter.
  2. DNS Resolution: The browser checks its local DNS cache; if missing, it asks the OS resolver to perform a DNS lookup to resolve the domain into an IP address.
  3. TCP Connection & TLS Handshake: The Networking module establishes a TCP three-way handshake on port 443 and negotiates an encrypted TLS session with the web server.
  4. HTTP Request Transmission: The browser transmits an HTTP GET request requesting the root resource.
  5. Server Response Processing: The web server returns an HTTP response containing headers (status 200 OK) and the raw HTML text payload.
  6. Parsing and Tree Construction:
    • The HTML Parser processes HTML tokens and constructs the Document Object Model (DOM) Tree.
    • When CSS files or style tags are encountered, the CSS Parser builds the CSS Object Model (CSSOM) Tree.
  7. Render Tree Creation: The Rendering Engine combines the DOM and CSSOM trees into a Render Tree, containing only visible nodes that require display.
  8. Layout (Reflow): The engine calculates the exact geometric coordinates, positioning, margin bounds, and pixel dimensions for every node on the screen.
  9. Painting (Rasterization): The UI Backend traverses the render tree and paints text, borders, colors, and images onto screen pixels.
  10. JavaScript Execution: As scripts load, the JavaScript Engine executes code, which may manipulate the DOM and trigger incremental reflows or repaints.
Q3.7

Analyze Web Application Vulnerabilities: Types, Working, Effects, and Preventive Measures.

Web applications are exposed to distinct categories of security vulnerabilities that attackers exploit to compromise client browsers and server databases:

Vulnerability Working Mechanism & Attack Process Consequences & Effects Preventive & Defensive Measures
SQL Injection (SQLi) Attackers insert malicious SQL statements (e.g., ' OR '1'='1) into input fields. The application concatenates input into an unparameterized SQL query string sent to the database. • Complete data breach & table dumps
• Unauthorized database modification/deletion
• Authentication bypass
• Command execution on database host
• Parameterized Queries (Prepared Statements)
• Stored procedures
• Principle of Least Privilege for DB user
• Web Application Firewall (WAF)
Cross-Site Scripting (XSS)
(Stored, Reflected, DOM)
Attackers inject malicious JavaScript (e.g., <script>alert(document.cookie)</script>) into web applications, which execute inside victims' browser contexts. • Hijacking session tokens and cookies
• Credential theft via fake login popups
• Website defacement
• Drive-by malware distribution
• Context-sensitive output encoding
• Input sanitization
• Content Security Policy (CSP)
• Setting HttpOnly on session cookies
Cross-Site Request Forgery (CSRF) An authenticated user visits an attacker-controlled site. The site contains a hidden form or image tag that silently sends a state-changing HTTP request to the target site, leveraging the browser's stored session cookies. • Unauthorized fund transfers
• Account password changes
• Email address modification
• Data corruption under victim's identity
• Unique anti-CSRF synchronization tokens
• Set SameSite=Strict/Lax on cookies
• Verify Origin and Referer headers
• Re-authentication for sensitive actions
Blind SQL Injection Vulnerability where the application does not display database errors or query data on screen. The attacker asks the database True/False questions by measuring boolean responses or using time-delay functions (e.g., WAITFOR DELAY). • Stealthy, automated extraction of usernames, tables, and password hashes without generating error logs. • Parameterized queries
• Strict input data typing
• Disabling detailed database error output
XPath Injection Attacker injects malicious syntax into input fields that construct dynamic XPath queries to query backend XML data stores. • Authentication bypass
• Unauthorized reading of confidential XML nodes containing customer records and credentials.
• Parameterized XPath queries
• Pre-compiled XPath expressions
• Input sanitization
XML External Entity (XXE) Injection Exploits misconfigured XML parsers that process external entity declarations (<!ENTITY xxe SYSTEM "file:///etc/passwd">). • Disclosure of internal system configuration files
• Server-Side Request Forgery (SSRF)
• Denial of Service (Billion Laughs attack)
• Disable Document Type Definitions (DTDs) and external entity resolution in XML parsers.
Q3.8

Explain How Password Extraction Works and Describe the Different Methods of Extracting Passwords.

Definition

Extracting Passwords from a Database is a critical cyberattack in which an adversary gains unauthorized access to stored user credentials by exploiting software flaws, weak permissions, or communication vulnerabilities in web applications and database management systems.

Step-by-Step Mechanism of Password Extraction

  1. Vulnerability Identification: The attacker scans the web application and database infrastructure for unpatched weaknesses (e.g., SQL Injection, open ports, exposed administration consoles).
  2. Unauthorized Access Establishment: The attacker leverages the vulnerability (or uses stolen administrative credentials) to gain unauthorized query execution rights on the database.
  3. Credential Retrieval: The attacker executes queries targeting internal credential tables (e.g., SELECT username, password FROM users;).
  4. Plaintext Reading: If passwords were stored in plaintext, the credentials are immediately harvested without additional effort.
  5. Cryptographic Password Cracking: If passwords are stored as cryptographic hashes, the attacker exfiltrates the hash dump and runs offline password cracking tools (brute-force, dictionary attacks, or precomputed rainbow tables) to recover the original passwords.
  6. Account Takeover & Exploitation: The recovered passwords are used to hijack user accounts, escalate administrative privileges, exfiltrate confidential data, or execute credential stuffing attacks on secondary systems.

Methods of Extracting Passwords

  1. SQL Injection (SQLi): Attackers input crafted SQL payloads into vulnerable web input channels.
    Mechanism: Utilizing UNION SELECT statements to append internal user credential tables to legitimate query results, or using blind boolean/time-based extraction to extract password hash characters one by one.
    Example: SELECT * FROM products WHERE id = 1 UNION SELECT 1, username, password_hash FROM admin_users;
  2. Database Misconfiguration: Exploiting lax or default database settings.
    Mechanism: Connecting to internet-exposed database ports (e.g., MySQL port 3306 or MongoDB port 27017) using default vendor administrator accounts (such as sa, root, or admin with empty passwords).
  3. Insider Attacks: Malicious or compromised employees abusing authorized database access.
    Mechanism: Database administrators, software developers, or contractors copying password tables or backup dumps to removable media without authorization.
  4. Malware Attacks on Database Hosts: Deploying malicious software on the database server.
    Mechanism: Memory-scraping trojans (e.g., Mimikatz equivalents) that extract plaintext passwords or Kerberos tickets from memory, or rootkits that capture database login traffic.
  5. Offline Password Cracking: Applied after exfiltrating database password hash dumps.
    Mechanism:
    • Dictionary Attacks: Testing millions of known dictionary words and common password variations against target hashes.
    • Brute-Force Attacks: Systematically calculating hashes for every possible permutation of characters until a match is found.
    • Rainbow Table Attacks: Using massive precomputed tables of reverse cryptographic hash chains to rapidly crack unsalted MD5 or SHA-1 hashes.

Prevention and Secure Storage Techniques

  • Strong Adaptive Password Hashing: Never store plaintext passwords or weak hashes (MD5, SHA-1). Use slow, memory-hard hashing algorithms such as bcrypt, Argon2id, or PBKDF2.
  • Cryptographic Salting: Append a unique, cryptographically random salt (at least 16 bytes) to every password before hashing to defeat precomputed rainbow tables.
  • Prevent SQL Injection: Enforce parameterized queries across all database access layers.
  • Enforce Multi-Factor Authentication (MFA): Prevents stolen password hashes from granting immediate account access.
  • Principle of Least Privilege: Restrict database service accounts so web applications cannot read the master authentication tables.
Unit IV

Security Threats, Attacks, and Vulnerability Management

Q4.1

Explain the Man-in-the-Middle (MITM) Attack.

Definition

A Man-in-the-Middle (MITM) Attack is a cyberattack in which an adversary secretly intercepts, monitors, or alters the communication flow between two communicating parties (such as a user browser and a banking web server) without their knowledge. The attacker positions themselves between the endpoints, deceiving both parties into believing they are communicating directly and privately with each other.

Common Techniques Used in MITM Attacks

  • ARP Spoofing (ARP Poisoning): On a local area network (LAN), the attacker broadcasts forged Address Resolution Protocol (ARP) response packets to link the attacker's MAC address with the legitimate default gateway's IP address, routing all subnet traffic through the attacker's machine.
  • DNS Spoofing (DNS Cache Poisoning): Corrupting a DNS resolver's cache with fraudulent IP mappings, redirecting users requesting legitimate domain names (e.g., bank.com) to an attacker-controlled clone portal.
  • Rogue Wi-Fi Access Point (Evil Twin): Deploying an unauthorized wireless hotspot with an identical SSID to a legitimate public network (e.g., "Airport_Free_WiFi"), tricking devices into connecting so unencrypted traffic can be sniffed.
  • SSL / TLS Stripping: Downgrading an encrypted HTTPS session into unencrypted HTTP by intercepting the initial redirect from the server, transmitting plaintext data to the client while maintaining an HTTPS connection with the server.
  • Session Hijacking: Stealing active session cookies via network sniffing or XSS, allowing the attacker to impersonate an authenticated user without knowing their password.

Preventive Countermeasures

  • Enforce HTTPS with TLS 1.3 across all web portals, accompanied by HTTP Strict Transport Security (HSTS) to prevent SSL stripping.
  • Implement Digital Certificate Pinning in mobile applications to reject forged certificates.
  • Deploy Virtual Private Networks (VPNs) to encapsulate all traffic in encrypted tunnels when using public or untrusted networks.
  • Enable Dynamic ARP Inspection (DAI) and DHCP Snooping on enterprise switches to block ARP poisoning.
  • Use DNSSEC (Domain Name System Security Extensions) to cryptographically validate DNS responses.
Q4.2

Calculate the Mean Time to Detect (MTTD) for the Organization.

Problem Statement

An organization experienced 5 security incidents, and the detection times were recorded as follows:

  • Incident 1: 2 hours
  • Incident 2: 4 hours
  • Incident 3: 3 hours
  • Incident 4: 5 hours
  • Incident 5: 6 hours
MTTD Mathematical Calculation
MTTD = Total Time Taken to Detect All Incidents ÷ Total Number of Incidents Detected
Step 1: Calculate Total Detection Time
Total Detection Time = 2 + 4 + 3 + 5 + 6 = 20 hours

Step 2: Identify Total Number of Incidents (N)
N = 5 incidents

Step 3: Compute MTTD
MTTD = 20 hours ÷ 5 = 4 hours

Result & Interpretation: The organization's Mean Time to Detect is 4 hours. This indicates that, on average, a security incident or intrusion persists in the environment for 4 hours before being detected by defensive monitoring systems.

Key Factors Affecting MTTD and Methods for Reduction

  • Security Information and Event Management (SIEM): Centralizes logs across servers, endpoints, and firewalls to perform real-time correlation.
  • Intrusion Detection Systems (IDS/IPS): Continuously monitors network packet headers and payloads for known attack signatures.
  • Automated AI/ML Anomaly Detection: Identifies abnormal lateral traffic or mass data exfiltration that eludes static rules.
  • 24/7 Security Operations Center (SOC): Ensures continuous human triage and analysis of defensive alerts.
Q4.3

Differentiate Between a Threat and an Attack.

In cybersecurity governance, Threat and Attack represent distinct stages within the risk and vulnerability exploitation lifecycle:

Comparison Attribute Threat Attack
Core Definition A potential event, condition, or agent that has the capacity to exploit a vulnerability and cause harm to organizational assets. A deliberate, actual attempt by an adversary to actively exploit a vulnerability and compromise confidentiality, integrity, or availability.
Operational Nature A theoretical possibility or latent danger; passive until acted upon. An active, operational execution that has already been initiated or carried out.
Occurrence Status May or may not materialize into an actual event. An actual event currently in progress or completed.
Intent & Causation Can be intentional (hackers), accidental (employee mistakes), natural (floods, earthquakes), or environmental (power failure). Almost exclusively intentional, malicious, and human-driven with a specific objective (financial gain, espionage, disruption).
Security Phase Identified during risk assessment and threat modeling phases. Handled during real-time incident detection, containment, and response phases.
Concrete Examples • Presence of unpatched software vulnerabilities
• Severe weather or natural disasters
• Disgruntled employees
• Malware circulating globally on the Internet
• Executing a SQL Injection query to steal records
• Launching a SYN Flood DDoS against a web server
• Sending targeted spear-phishing emails with trojans
• Deploying ransomware to encrypt storage arrays

Types of Attacks: Passive vs. Active

  • Passive Attacks: The attacker monitors, listens to, or copies data without altering the transmission or modifying system resources. Difficult to detect because system operations are undisturbed (e.g., traffic analysis, network sniffing, wiretapping). Violates Confidentiality.
  • Active Attacks: The attacker actively modifies, injects, deletes, or disrupts system operations, network packets, or database records (e.g., Man-in-the-Middle, Denial of Service, SQL Injection, session hijacking). Affects Integrity and Availability.
Q4.4

Calculate the Mean Time to Respond (MTTR) for the Organization.

Problem Statement

Suppose an organization experienced 4 security incidents, and the response times were recorded as follows:

  • Incident 1: 3 hours
  • Incident 2: 2 hours
  • Incident 3: 5 hours
  • Incident 4: 6 hours
MTTR Mathematical Calculation
MTTR = Total Time Taken to Respond to All Incidents ÷ Total Number of Incidents
Step 1: Calculate Total Response Time
Total Response Time = 3 + 2 + 5 + 6 = 16 hours

Step 2: Identify Total Number of Incidents (N)
N = 4 incidents

Step 3: Compute MTTR
MTTR = 16 hours ÷ 4 = 4 hours

Result & Interpretation: The organization's Mean Time to Respond is 4 hours. This indicates that following initial detection, it takes the incident response team an average of 4 hours to investigate, isolate the threat, remediate the damage, and begin restoring operational systems.

Stages of Incident Response Influencing MTTR

  1. Incident Identification: Verifying and classifying the alert severity.
  2. Incident Analysis: Investigating root cause, scope, and affected systems.
  3. Containment: Isolating affected machines to prevent lateral spread.
  4. Eradication: Removing malware, terminating illicit accounts, and patching flaws.
  5. Recovery: Restoring systems from clean backups and validating security.
  6. Post-Incident Review: Documenting lessons learned and updating runbooks.

Methods to Reduce MTTR

  • Deploying Security Orchestration, Automation, and Response (SOAR) platforms to automate endpoint isolation and IP blocking.
  • Maintaining an updated, tested Incident Response Plan (IRP) with predefined playbooks.
  • Conducting regular tabletop exercises and incident response drills for technical teams.
  • Ensuring high-speed, verified data backup repositories to accelerate system restoration.
Q4.5

Explain the Identity and Access Management (IAM) Architecture and Process.

Definition

Identity and Access Management (IAM) is an enterprise cybersecurity framework of policies, processes, and technologies that ensures the right individuals have the appropriate access to technology resources for verified business purposes.

Architectural Components of IAM

  1. Identity Management (Identity Lifecycle): Manages the onboarding, provisioning, profile maintenance, and eventual de-provisioning of digital user identities.
  2. Authentication Engine: Verifies the claimed identity of users through multiple authentication factors (passwords, time-based OTPs, biometrics, hardware security keys like FIDO2/WebAuthn).
  3. Authorization Engine: Governs access permissions based on security policies, utilizing models like Role-Based Access Control (RBAC), Attribute-Based Access Control (ABAC), and Access Control Lists (ACLs).
  4. Single Sign-On (SSO) & Identity Federation: Centralizes authentication across multiple independent software systems using industry protocols (SAML 2.0, OpenID Connect, OAuth 2.0).
  5. Centralized Directory Services: Authoritative data stores (e.g., Microsoft Active Directory, OpenLDAP) holding user attributes, group memberships, and credentials.
  6. Audit, Logging, and Governance: Continuously monitors, records, and audits all authentication attempts, privilege elevations, and access modifications for compliance.
1. Identity Creation HR / Provisioning 2. Authentication MFA / Biometrics Verify Credentials 3. Authorization RBAC / ABAC Determine Access 4. Access Monitoring Audit Logs / SIEM 5. Modification / Revocation Deprovision / Offboard Centralized Governance: Directory Services (LDAP/AD) • Least Privilege • Zero Trust Policy
Figure 4.1: The End-to-End Five-Stage Identity and Access Management (IAM) Process

The Five-Stage IAM Lifecycle Process (Exam Marking Rubric)

  1. Identity Creation (Provisioning): Establishing the digital identity within directory services upon hiring or enrollment, generating unique identifiers, assigning baseline corporate attributes, and issuing initial credentials.
  2. Authentication: Cryptographically verifying the identity claim when the user attempts system login (validating username, password hash, MFA token, or biometric template).
  3. Authorization: Evaluating organizational policy engines (RBAC/ABAC) to determine the exact set of applications, servers, databases, and records the authenticated user is permitted to interact with.
  4. Access Monitoring: Continuously tracking, recording, and analyzing user sessions, transactions, and resource access in audit logs to detect abnormal behavior or policy violations.
  5. Access Modification or Revocation (De-provisioning): Adjusting privileges upon internal role transitions, and immediately revoking all account access upon employee termination or resignation to prevent orphaned accounts.
Q4.6

Analyze Types of Malicious Code and Apply Appropriate Security Measures to Detect, Prevent, and Mitigate.

Definition of Malicious Code (Malware)

Malicious Code (Malware) is any software, script, or firmware intentionally engineered to damage computer systems, steal sensitive data, disrupt operations, or gain unauthorized administrative access to networks and devices.

Ten Types of Malicious Code

Malware Type Working Mechanism & Attack Characteristic Typical Consequences
1. Virus Attaches its malicious payload to legitimate executable files (.exe, .dll). Propagates only when the infected host file is executed by a user. Corrupts files, deletes data, modifies system boot records, and degrades system performance.
2. Worm A self-contained, self-replicating program that exploits operating system network vulnerabilities to spread autonomously across networks without user interaction. Consumes network bandwidth, degrades network infrastructure, and drops secondary payloads.
3. Trojan Horse Disguises itself as desirable, benign software (e.g., game, utility, PDF reader). Once installed, it unloads a malicious payload. Creates backdoors, installs keyloggers, and grants remote control to the attacker.
4. Ransomware Uses strong asymmetric/symmetric cryptography (AES/RSA) to encrypt user files or lock operating systems, demanding cryptocurrency ransom. Severe operational downtime, permanent data loss, extortion, and financial devastation.
5. Spyware Surreptitiously monitors user computing habits, captures browser history, and harvests personal credentials without user knowledge. Breaches personal privacy, captures banking logins, and leaks corporate intellectual property.
6. Adware Automatically displays aggressive, unwanted advertisements and popups; often bundled with tracking beacons. System slowness, browser hijacking, and redirects to malicious exploit kits.
7. Rootkit Installs at deep kernel or hypervisor levels to conceal the presence of malware, processes, and network ports from security tools. Provides undetectable, persistent privileged administrative control to attackers.
8. Keylogger Software or hardware device that intercepts and logs every keystroke typed by a user on the keyboard. Steals passwords, credit card numbers, confidential chat transcripts, and private encryption keys.
9. Logic Bomb Malicious code embedded in software that lies dormant until triggered by a specific event or condition (e.g., specific calendar date or deletion of employee payroll record). Sudden, catastrophic deletion of enterprise databases or server disk wiping upon triggering.
10. Bot & Botnet Malware turning an infected computer into an automated "bot" (zombie). A collection of bots commanded by a Command & Control (C2) server forms a Botnet. Used to launch massive Distributed Denial of Service (DDoS) floods, send spam campaigns, and mine cryptocurrency.

Comprehensive Security Measures: Detect, Prevent, and Mitigate

1. Detection Measures
  • Signature-Based Scanning: Compares file hash signatures against vendor threat intelligence databases.
  • Heuristic & Behavioral Analysis: Analyzes process execution behavior in real-time to detect suspicious activities (e.g., a word processor attempting to invoke PowerShell to modify registry run keys).
  • File Integrity Monitoring (FIM): Tracks unauthorized changes to critical system binaries and configuration files.
  • SIEM & EDR Telemetry: Correlates endpoint telemetry and network connection logs to identify lateral movement.
2. Prevention Measures
  • Automated Patch Management: Regularly patching operating systems, third-party software, and network equipment to close vulnerabilities.
  • Principle of Least Privilege (PoLP): Running standard user accounts without local administrative rights to stop malware installation.
  • Application Whitelisting: Permitting only cryptographically signed, pre-approved executables to run on corporate endpoints.
  • Email & Web Gateway Filtering: Sandboxing suspicious email attachments and filtering malicious URLs.
3. Mitigation Measures
  • Automated Endpoint Isolation: Immediately severing network connectivity of an infected machine to halt lateral propagation.
  • Immutable Offline Backups: Maintaining air-gapped, encrypted backups to restore systems cleanly without paying ransomware ransoms.
  • Incident Response Plan (IRP) Activation: Invoking incident response playbooks to eradicate root causes and rebuild compromised hosts from clean baseline images.
Q4.7

Explain the Vulnerability Management Life Cycle (VMLC) in Detail.

Definition

The Vulnerability Management Life Cycle (VMLC) is an ongoing, cyclical, and proactive cybersecurity process designed to systematically discover, evaluate, prioritize, remediate, and monitor security flaws across an enterprise's digital infrastructure.

1. Asset Discovery Hardware & Cloud Inventory 2. Vulnerability Scan Automated Scanner Engine 3. Risk Assessment CVSS Severity Scoring 4. Prioritization Business Impact Ranking 5. Remediation Patching & Config Fixes 6. Verification Rescan & Pen-Testing 7. Monitoring Continuous Telemetry Continuous Closed-Loop Feedback Cycle
Figure 4.2: The Seven Structured Phases of the Vulnerability Management Life Cycle

Seven Phases of the Life Cycle (Lecture Presentation Framework)

  1. Phase 1: Asset Discovery & Inventory: Building and maintaining a comprehensive inventory of all computing hardware, operating systems, applications, databases, cloud repositories, and network appliances. Organizations cannot defend what they do not know exists.
  2. Phase 2: Vulnerability Identification: Deploying automated vulnerability scanners (e.g., Nessus, Qualys, OpenVAS) to execute credentialed and uncredentialed scans across internal networks and external perimeters, discovering missing patches, insecure ports, and configuration bugs.
  3. Phase 3: Vulnerability Assessment: Analyzing identified weaknesses against severity frameworks like the Common Vulnerability Scoring System (CVSS v3.1), determining whether vulnerabilities are Critical, High, Medium, or Low.
  4. Phase 4: Risk Prioritization: Contextualizing vulnerabilities based on asset business criticality. A vulnerability on a public-facing core transaction database takes precedence over the same flaw on an isolated testing workstation.
  5. Phase 5: Vulnerability Remediation: Implementing fixes to eliminate security weaknesses:
    • Remediation: Installing vendor security patches or updating software binaries.
    • Mitigation: Applying compensating controls (e.g., WAF virtual patching or disabling an insecure port) if an official patch cannot be immediately deployed.
  6. Phase 6: Verification and Validation: Rescanning remediated hosts and conducting targeted penetration testing to guarantee that the applied patches resolved the vulnerability and introduced no operational side effects.
  7. Phase 7: Continuous Monitoring: Security is an iterative process. Continuously monitoring threat feeds, analyzing system logs, and repeating vulnerability scans on a recurring weekly or monthly schedule.
Unit V

Information Security Risk, Asset Valuation, and Incident Response

Q5.1

What is Risk Management?

Definition

Risk Management is the systematic, structured process of identifying, analyzing, evaluating, treating, monitoring, and controlling risks that threaten an organization's information assets, computing infrastructure, and business operations.

Objectives of Risk Management

  • Proactively identify and classify security risks across all digital and physical assets.
  • Minimize the financial, legal, and operational impact of potential cyber breaches.
  • Enable executive leadership to make informed, cost-effective decisions regarding security control investments.
  • Ensure sustained compliance with statutory, legal, and regulatory mandates.
  • Maintain operational resilience and continuous business delivery during adverse events.

Key Components of Risk Management

  1. Asset Identification: Cataloging valuable organizational data, hardware, software, and personnel.
  2. Threat Identification: Recognizing potential natural, human, or technical events that could exploit vulnerabilities.
  3. Vulnerability Assessment: Identifying internal flaws, unpatched systems, and procedural loopholes.
  4. Risk Analysis & Evaluation: Estimating likelihood and impact to calculate risk severity against organizational risk tolerance.
  5. Risk Treatment: Selecting appropriate countermeasures (Avoidance, Mitigation, Transfer, Acceptance).
  6. Continuous Monitoring: Periodically reviewing and auditing controls against mutating threats.
Q5.2

Calculate the Risk Score Using the Risk Estimation Formula.

Problem Statement

An organization assesses the likelihood of a security risk as 4 and its impact as 5. Calculate the Risk Score using the Risk Estimation formula.

Risk Estimation Formula & Computation
Risk Score = Likelihood × Impact
Where:
• Likelihood (Probability): The evaluated chance that a specific threat will exploit a vulnerability (Scale 1 to 5). Given = 4 (High).
• Impact (Consequence): The severity of operational, financial, or reputational damage if the threat succeeds (Scale 1 to 5). Given = 5 (Very High / Catastrophic).

Step-by-Step Calculation:
Risk Score = 4 × 5 = 20

Result & Risk Matrix Interpretation

A calculated Risk Score of 20 (out of a maximum possible score of 25 on a standard 5×5 risk matrix) falls into the High / Critical Risk tier:

  • Risk Category: Critical / Unacceptable Risk.
  • Required Action: Requires immediate executive intervention, priority allocation of capital, and deployment of mandatory mitigation controls before systems are placed or continued in production.
Q5.3

Explain Three Factors That Affect the Value of an Information Asset.

The valuation of an information asset is not solely determined by its initial acquisition price. In information security, three primary factors govern an asset's critical value:

1. Confidentiality Requirement

The degree of sensitivity associated with the information and the potential damage resulting from unauthorized disclosure.

  • Impact: If proprietary source code, patient health records, national defense data, or customer banking credentials are leaked, the organization faces severe regulatory fines, competitive disadvantage, and loss of client trust. The higher the confidentiality requirement, the greater the asset's assessed value.

2. Integrity Requirement

The necessity for the data to remain completely accurate, unaltered, and trustworthy throughout its lifecycle.

  • Impact: For clinical dosage databases, financial trading ledgers, or air traffic control telemetry, even a minor undetected modification could cause catastrophic loss of life, fraudulent fund diversion, or regulatory shutdown. Data whose corruption destroys operational validity possesses exceptionally high value.

3. Availability Requirement

The criticality of the asset remaining accessible in real-time to authorized personnel and customers.

  • Impact: If an e-commerce checkout engine, hospital emergency dispatch system, or interbank settlement switch experiences downtime, the business incurs massive per-minute revenue losses and legal liability. Assets supporting mission-critical real-time operations carry the highest availability valuation.
Additional Valuation Factors from Course Notes:
• Replacement Cost: The total capital, labor, and time required to reconstruct or repurchase the asset.
• Legal and Regulatory Impact: Mandatory statutory penalties under GDPR, HIPAA, or PCI-DSS if the asset is compromised.
• Competitive Advantage: The degree to which proprietary intellectual property differentiates the business in the market.
Q5.4

Define Residual Risk, its Formula, and Factors Affecting It.

Definition

Residual Risk is the remaining level of security risk that persists after an organization has designed, implemented, and verified appropriate security controls and defensive countermeasures.

Residual Risk Conceptual Formula
Residual Risk = Inherent Risk - Impact of Security Controls

Where Inherent Risk is the raw risk level before any controls are applied, and Impact of Security Controls represents the risk reduction achieved through administrative, technical, and physical safeguards.

Practical Example: An enterprise deploys redundant Next-Generation Firewalls, host antivirus software, and end-to-end database encryption. Despite these robust controls, a residual risk remains due to potential zero-day vulnerabilities, novel social engineering techniques, or malicious insider collusion.

Factors Affecting Residual Risk

  1. Effectiveness of Security Controls: Properly configured, maintained, and audited controls lower residual risk, whereas misconfigured controls increase it.
  2. Emerging Threats: Novel cyberattack methodologies, automated exploit kits, and zero-day vulnerabilities that bypass existing defenses.
  3. Human Errors: Accidental misconfigurations by system administrators or employees falling victim to sophisticated spear-phishing campaigns.
  4. Technological Changes: Rapid adoption of cloud platforms, microservices, or mobile endpoints introduces new attack surfaces.
  5. Business Environment Changes: Corporate mergers, geographic expansions, or new regulatory mandates altering data exposure.

Risk Control Measures for Managing Residual Risk

  • Risk Mitigation: Deploying supplementary controls to reduce risk further.
  • Risk Transfer: Purchasing cyber insurance or sharing liability with third-party cloud providers.
  • Risk Acceptance: Formally documenting and accepting residual risk when the cost of additional countermeasures exceeds the asset value.
  • Risk Avoidance: Discontinuing a high-risk operational activity altogether.
Q5.5

Explain Asset Valuation in Information Security: Types of Assets, Valuation Methods, and Factors Affecting Value.

Definition & Purpose

Asset Valuation is the systematic process of determining the financial worth, business criticality, and strategic importance of an organization's assets. Accurate asset valuation is essential because it dictates the appropriate level of security investment: organizations should never spend $100,000 to protect a $10,000 data asset.

Types of Organizational Assets

Asset Category Description & Scope Concrete Examples
1. Information Assets Raw data, processed records, and intellectual property stored digitally or physically. Customer databases, employee records, financial ledgers, trade secrets, clinical trials data, source code.
2. Software Assets System and application software that drives business workflows. Operating systems, ERP platforms (SAP/Oracle), custom web applications, database management systems (DBMS).
3. Hardware Assets Physical computing machines, processors, and peripheral electronic equipment. Enterprise servers, blade chassis, SAN storage arrays, employee laptops, workstations, backup appliances.
4. Network Assets Communication infrastructure connecting devices, systems, and users internally and externally. Routers, core switches, Next-Gen firewalls, load balancers, VPN concentrators, wireless access points.
5. Human / People Assets Employees, system architects, software developers, and executive leadership who operate the systems. Key personnel with institutional domain expertise, certified cloud administrators, security analysts.
6. Physical & Documentation Assets Physical facilities and written operational artifacts supporting enterprise execution. Server rooms, data center buildings, power generators (UPS), security policies, procedure manuals, legal contracts.

Asset Valuation Methods

  1. Cost-Based Valuation: Calculates value based on the historical cost of acquiring, developing, and deploying the asset, or computes the current replacement cost required to rebuild the asset from scratch following complete loss.
  2. Market-Based Valuation: Determines value by evaluating the current commercial market price of equivalent assets, or assessing how much external competitors or buyers would pay to acquire the data or technology.
  3. Income-Based (Business Impact) Valuation: Estimates the future economic revenue generated by the asset over its lifetime, or calculates the total financial losses (downtime costs, regulatory fines, customer churn, breach notification expenses) incurred if the asset were compromised or unavailable.

Factors Affecting Asset Value

  • Confidentiality, Integrity, and Availability (CIA) Criticality: The operational and legal consequences of unauthorized exposure, alteration, or downtime.
  • Legal & Regulatory Mandates: Assets subject to strict compliance oversight (e.g., GDPR, HIPAA, PCI-DSS) carry higher valuation due to severe statutory non-compliance penalties.
  • Competitive Advantage: Whether the asset provides exclusive market leadership or intellectual property differentiation.
  • Interdependency: The degree to which secondary critical systems depend upon the asset to function.
Q6.6

Describe the Risk Management Process: Identify, Analyze, Evaluate, Treat, and Continuously Monitor.

Overview of the Risk Management Life Cycle

The enterprise Risk Management process is a structured, cyclical framework designed to maintain operational risks within tolerable thresholds.

1. Asset & Risk Identification 2. Risk Analysis 3. Risk Evaluation 4. Risk Treatment 5. Continuous Monitoring Ongoing Risk Review & Periodic Audit Cycle
Figure 5.1: The Five-Stage Enterprise Risk Management Process

Detailed Step-by-Step Breakdown

  1. Step 1: Risk Identification: Cataloging critical assets, mapping business processes, and discovering potential threats (hackers, system failures, natural disasters) and system vulnerabilities (unpatched software, missing access controls).
  2. Step 2: Risk Analysis: Determining the severity of identified risks through quantitative (monetary loss calculation: Annualized Loss Expectancy = Single Loss Expectancy × Annualized Rate of Occurrence) or qualitative analysis (evaluating Likelihood on a 1-5 scale and Impact on a 1-5 scale).
  3. Step 3: Risk Evaluation: Calculating the composite Risk Score (Likelihood × Impact) and comparing findings against management's predefined Risk Appetite and Risk Tolerance thresholds to prioritize which risks require active intervention.
  4. Step 4: Risk Treatment: Applying one of the Four Established Treatment Strategies (The 4 T's):
    • Risk Avoidance: Completely eliminating the risk by terminating the risky activity (e.g., shutting down a legacy, unpatchable web server).
    • Risk Mitigation / Reduction: Implementing technical, administrative, or physical safeguards to lower the likelihood or impact (e.g., deploying Multi-Factor Authentication, firewalls, and encryption).
    • Risk Transfer (Sharing): Shifting the financial consequence to a third party (e.g., purchasing comprehensive cyber liability insurance or outsourcing hosting to certified cloud providers).
    • Risk Acceptance (Retention): Formally acknowledging and signing off on low-priority risks where the cost of defensive countermeasures exceeds the asset value.
  5. Step 5: Continuous Monitoring and Review: Continuously tracking the operational effectiveness of implemented controls, monitoring emerging threat intelligence, and re-evaluating risk posture through regular security audits and penetration tests.
Q5.7

Explain the Major ISO Security Standards: ISO/IEC 27001, 27002, 27005, 27701, 22301, and 27017.

The International Organization for Standardization (ISO) and the International Electrotechnical Commission (IEC) establish globally recognized benchmarks for information security management:

ISO Standard Formal Standard Title Core Purpose, Scope & Practical Application
ISO/IEC 27001 Information Security Management Systems (ISMS) – Requirements The foundational international specification against which organizations achieve formal certification. Specifies requirements for establishing, implementing, operating, maintaining, and continually improving an Information Security Management System (ISMS).
Example: A commercial bank implementing an ISMS to systematically secure customer banking data and prove security governance to auditors.
ISO/IEC 27002 Information Security Controls – Code of Practice Serves as the practical implementation reference guide for the security controls outlined in ISO/IEC 27001 Annex A. Provides detailed best-practice recommendations for organizational, people, physical, and technological controls.
Example: An IT department implementing password complexity, cryptographic key management, and clear-desk procedures based on ISO 27002 recommendations.
ISO/IEC 27005 Information Security Risk Management Provides detailed guidelines and methodologies specifically dedicated to Information Security Risk Management. Details techniques for identifying, analyzing, evaluating, and treating information risks within an ISMS framework.
Example: Performing formal threat-vulnerability risk assessments before migrating internal databases to a third-party cloud environment.
ISO/IEC 27701 Privacy Information Management System (PIMS) An extension standard to ISO/IEC 27001 and ISO/IEC 27002 for managing data privacy. Specifies requirements and guidance for establishing a Privacy Information Management System (PIMS) to protect Personally Identifiable Information (PII) and demonstrate compliance with privacy laws (GDPR, CCPA).
Example: A healthcare provider protecting patient medical histories and fulfilling legal privacy requirements.
ISO/IEC 22301 Business Continuity Management Systems (BCMS) – Requirements Specifies requirements for planning, establishing, operating, and improving a documented Business Continuity Management System (BCMS). Ensures an enterprise can maintain critical operations during severe disruptions, natural disasters, or major cyberattacks.
Example: A telecommunications firm maintaining uninterrupted communication networks and rapidly recovering following a massive ransomware incident.
ISO/IEC 27017 Code of Practice for Information Security Controls for Cloud Services Provides guidelines specifically tailored for Cloud Computing Services. Defines additional cloud-specific controls and implementation advice for both Cloud Service Providers (CSPs) and Cloud Service Customers (CSCs) regarding multi-tenancy, virtual machine isolation, and shared responsibility.
Example: A cloud hosting provider configuring virtual machine isolation, client access controls, and administrative monitoring across cloud data centers.
Q5.8

Discuss the Incident Response and Management Process: Identification, Containment, Eradication, Recovery, and Lessons Learned.

Definition & Core Objectives

Incident Response and Management (IRM) is a structured, coordinated process used by an organization to identify, analyze, contain, eradicate, recover from, and manage cybersecurity incidents. Its primary objectives are to rapidly detect attacks, minimize operational and financial damage, preserve forensic evidence, restore normal business services, and prevent recurrences.

1. Preparation Policy & CSIRT Toolkits & Drills 2. Identification SIEM Alerts Triage & Verify 3. Containment Isolate Hosts Stop Propagation 4. Eradication Purge Malware Close Exploits 5. Recovery Restore Backups Validate Health 6. Lessons Learned Post-Incident Audit Update Runbooks Feedback Loop: Update Incident Response Plan & Security Controls
Figure 5.2: The Six Standard Phases of the Incident Response Life Cycle

The Six Phases of Incident Response (NIST / SANS & Lecture Syllabus Model)

  1. 1. Preparation: Proactively establishing the organizational capability to handle incidents before they strike. Involves developing an Incident Response Plan (IRP), establishing a Computer Security Incident Response Team (CSIRT), deploying monitoring toolkits (SIEM, EDR), maintaining reliable offline data backups, and training personnel via drills.
    Example: Formulating playbooks for ransomware containment and conducting simulated attack drills.
  2. 2. Identification (Detection): The security team detects, analyzes, and confirms that an event is a genuine security incident. Analysts review automated SIEM alerts, IDS telemetry, and firewall logs to determine the attack vector, scope, and severity.
    Example: Detecting abnormal outbound data exfiltration alerts generated by an EDR sensor.
  3. 3. Containment: Preventing the incident from spreading laterally across the network and causing additional damage.
    • Short-Term Containment: Immediately isolating affected endpoints (disconnecting network cables, disabling Wi-Fi, or isolating VMs) to stop immediate propagation.
    • Long-Term Containment: Applying temporary firewall blocks, rebuilding clean perimeter rules, and preserving volatile memory for forensic analysis.

    Example: Isolating a workstation actively encrypting file shares to prevent ransomware spreading to network storage.
  4. 4. Eradication: Eliminating the root cause of the incident from the computing environment. Involves removing malware binaries, deleting malicious scheduled tasks/registry run keys, terminating compromised administrative accounts, and applying patches to close the exploited vulnerability.
    Example: Wiping malware from infected servers, resetting compromised domain credentials, and closing exposed RDP ports.
  5. 5. Recovery: Restoring affected systems, services, and databases back into operational production safely and without reintroducing vulnerabilities. Involves restoring clean data from verified offline backups, replacing compromised code, and testing system security under heightened monitoring.
    Example: Restoring database tables from a clean pre-incident backup and verifying that database firewalls block the original injection payload.
  6. 6. Lessons Learned (Post-Incident Review): Conducting a formal retrospective review meeting with technical teams and management. The team analyzes what occurred, why existing defenses failed, how the response team performed, and updates policies, technical configurations, and response runbooks.
    Example: Updating enterprise firewall rule sets and mandating hardware MFA after investigating a credential-stuffing incident.

Incident Response Best Practices

  • Maintain a formal, executive-approved Incident Response Plan (IRP).
  • Establish a clearly designated, trained Incident Response Team (IRT).
  • Continuously monitor enterprise infrastructure through centralized 24/7 SIEM/SOC operations.
  • Perform routine, verified offline backups.
  • Conduct periodic tabletop drills and adversary simulation exercises.
  • Document all security incidents meticulously to fulfill mandatory breach notification laws and regulatory compliance.