OSI/TCP-IP Security Audit Overview
OSI/TCP-IP Security Audit Overview
b. Compare and contrast the functionality of each layer, providing examples of protocols used
at each layer.
Ans.
(part of Application
Presentation Data translation, encryption, compression. SSL/TLS, JPEG, MPEG
in TCP/IP)
Handles logical addressing and routing of data IP, ICMP, ARP, RIP,
Network Internet
packets across networks. OSPF
Akhil Nautiyal E1 09
TCS 795 - Security Audit and Compliance - II
OSI Model (7 TCP/IP Model (4
Functionality Example Protocols
Layers) Layers)
c. From the perspective of security, discuss which OSI/TCP-IP layers are most frequently
targeted by attackers and why.
Ans.
Session (OSI 5,
Manages sessions and authentication Session hijacking, cookie theft,
merged in TCP-IP
tokens. replay attacks
Application)
Akhil Nautiyal E1 09
TCS 795 - Security Audit and Compliance - II
Ans. ITU-T X.800 / X.805 Security Architecture :
The ITU-T X.800 standard defines security services & mechanisms, while X.805 extends it into a security
architecture for networks (esp. Next-Gen Networks).
It organizes security into 3 Security Layers, 3 Security Planes, and 8 Security Dimensions.
Akhil Nautiyal E1 09
TCS 795 - Security Audit and Compliance - II
• What protections are needed → Security Dimensions (8 core aspects: Access Control, Authentication,
Non-repudiation, Confidentiality, Communication Security, Integrity, Availability, Privacy)
This ensures that no aspect is missed when building secure communication systems.
Presentation (OSI 6 / Encrypt & encode SSL/TLS, AES encryption, PKI certificates,
merged in TCP-IP App) sensitive data data compression with integrity checks
Session (OSI 5 / merged Secure sessions to Session tokens, Kerberos, secure cookies,
in TCP-IP App) prevent hijacking timeout policies
Transport (OSI 4 / TCP- Ensure reliable, TLS over TCP, VPN tunnels, port hardening,
IP Transport) confidential transport DoS/DDoS protection
Network (OSI 3 / TCP- Secure routing & IPSec, firewalls, intrusion prevention (IPS),
IP Internet) addressing BGP/OSPF authentication
Data Link (OSI 2 / Control access at LAN MAC filtering, VLAN segmentation, ARP
TCP-IP Link) level inspection, switch security
Akhil Nautiyal E1 09
TCS 795 - Security Audit and Compliance - II
1. Access Control → RBAC, firewalls, network segmentation.
2. Authentication → Smart cards, MFA, PKI-based digital certificates.
3. Non-repudiation → Digital signatures, audit logs.
4. Confidentiality → AES-256, TLS, IPSec VPNs.
5. Communication Security → VPN tunnels, secure routing, anti-jamming.
6. Data Integrity → Hashing (SHA-256), file integrity monitoring.
7. Availability → Redundant servers, load balancers, anti-DDoS.
8. Privacy → Data minimization, compliance with national privacy laws.
Akhil Nautiyal E1 09
TCS 795 - Security Audit and Compliance - II
[Link] a Zero Trust-based security architecture for a university campus network using a labeled
diagram.
Ans. Core Principles in Action (University Context):
1. Never Trust, Always Verify:
o No device, user, or application is inherently trusted, regardless of whether it's connecting
from a campus lab, a dorm room, or off-campus.
o Every access request to any resource (e.g., academic servers, student info system, library
database) must be explicitly authenticated and authorized.
2. Explicitly Verify (Who, What, Where, When, How):
o User Identity:
▪ Students: Valid university ID, password, and MFA (e.g., DUO Push, Google
Authenticator).
▪ Faculty/Staff: University ID, stronger password policies, MFA, and potentially
biometric checks for highly sensitive systems.
▪ Guests: Limited access via sponsored accounts or self-registration with stricter usage
policies.
o Device Health/Posture:
▪ Before allowing access, checks are performed: Is the device university-owned or
personal? Is antivirus software updated? Is the OS patched? Is there disk encryption?
▪ Non-compliant devices are either denied access or placed in a remediation zone until
issues are resolved.
o Location & Context: Access policies can vary based on the user's location (on-campus vs.
off-campus), time of day, and the sensitivity of the resource being accessed.
o Resource Sensitivity: A student accessing their grades might have different requirements than
a researcher accessing confidential patient data.
3. Least Privilege Access:
o Role-Based Access Control (RBAC): Access is granted based on the user's role (e.g.,
"Undergraduate Student," "Physics Faculty," "HR Staff").
o Just-Enough Access (JEA): A student only gets access to academic portals, course materials,
and their personal records. They don't have access to faculty HR data.
o Just-in-Time Access (JIT): An IT support technician might only get elevated access to a
specific server for a limited time to perform maintenance.
4. Assume Breach (Micro-segmentation):
o The entire campus network is segmented into isolated zones (micro-segments).
o Examples of Segments:
▪ Student Wi-Fi (Eduroam)
▪ Faculty/Staff Network
Akhil Nautiyal E1 09
TCS 795 - Security Audit and Compliance - II
▪ Research Labs (highly isolated)
▪ Student Information System (SIS) servers
▪ Academic Department Servers
▪ Library Resources
▪ IoT Devices (HVAC, cameras)
o If an attacker breaches one segment (e.g., a student's compromised laptop on the Wi-Fi), they
are contained and cannot easily move laterally to sensitive systems like the SIS.
5. Multi-Factor Authentication (MFA) Everywhere:
o MFA is enforced for all access points, especially for critical applications and services. This
significantly reduces the risk of compromised passwords.
6. Continuous Monitoring & Analytics:
o SIEM (Security Information and Event Management): Collects and analyzes logs from all
network devices, endpoints, and applications.
o UBA (User Behavior Analytics): Detects unusual user behavior (e.g., a student trying to
access financial records, or logging in from an unusual location).
o Threat Detection: Real-time analysis for malware, intrusions, and policy violations. This
helps in rapid response to potential threats.
Key Components in the Diagram:
• Identities (Users & Devices): Represents all entities requesting access.
• Identity & Access Management (IAM): Manages user identities, roles, and device health/posture
checks. Integrates with university directories (e.g., LDAP, Active Directory).
• Multi-Factor Authentication (MFA): Adds an extra layer of security for user verification.
• Policy Decision Point (PDP) / Security Orchestrator: The "brain" of the Zero Trust model. It takes all
contextual information (user, device, resource, location, time) and decides whether to grant, deny, or
restrict access based on defined policies.
• Policy Enforcement Point (PEP): Actively enforces the decisions made by the PDP (e.g., firewalls,
micro-segmentation gateways, API gateways).
• Campus Resources: The various servers, applications, and networks that users want to access.
• Micro-segmentation: The logical division of the network into smaller, isolated security zones
around specific resources.
• Continuous Monitoring & Analytics: Constantly observing the network for anomalies, threats,
and policy violations. This feeds back into the PDP for dynamic policy adjustments.
Akhil Nautiyal E1 09
TCS 795 - Security Audit and Compliance - II
Akhil Nautiyal E1 09
TCS 795 - Security Audit and Compliance - II
2. LAN Management & Operating Systems:
a. List common LAN management tasks, with emphasis on securing resources and monitoring
performance.
Ans.
Common LAN Management Tasks :
1. User & Access Management
• User account creation & deletion
• Assigning roles and privileges (least privilege principle)
• Enforcing authentication methods (passwords, MFA, biometrics)
• Access control lists (ACLs) to secure shared folders, printers, and applications
2. Resource Security
• Configuring file/folder permissions and shared drive security
• Implementing firewalls and intrusion detection/prevention systems (IDS/IPS)
• Applying encryption (SSL/TLS, VPN) for sensitive traffic
• Regular patch management for OS and LAN devices
• Protecting network devices (routers, switches) with strong admin passwords & role-based access
3. Performance Monitoring
• Monitoring network traffic and bandwidth usage
• Using SNMP (Simple Network Management Protocol) or tools like Nagios, PRTG, SolarWinds
• Identifying bottlenecks or misconfigured devices
• Tracking uptime/downtime of LAN resources
• Monitoring QoS (Quality of Service) for VoIP, video conferencing, etc.
4. Fault Management
• Detecting, isolating, and resolving LAN faults quickly
• Maintaining logs of incidents for auditing
• Setting up alert systems for outages or suspicious activities
b. Discuss how operating system security features (user permissions, auditing, process isolation)
support LAN security.
Ans.
How OS Security Features Support LAN Security :
1. User Permissions (Access Control)
• OS manages who can access what in the LAN.
• Permissions on files, folders, printers, and applications prevent unauthorized access.
• Supports least privilege principle → users only get access to resources they need.
• Example:
o In Windows Active Directory, admins set NTFS permissions & group policies for LAN users.
o In Linux, chmod/chown ensures only authorized LAN users can access shared directories.
LAN Impact: Protects sensitive resources from insider misuse or accidental changes.
3. Process Isolation
• OS ensures each process runs in its own protected memory space.
• Prevents one compromised process (e.g., a malicious app) from interfering with others.
• Supports sandboxing for untrusted applications.
Akhil Nautiyal E1 09
TCS 795 - Security Audit and Compliance - II
• Example:
o Web browser processes are isolated, so a compromised tab cannot affect the LAN file server.
o In Linux, chroot jails/containers isolate services exposed to the LAN.
LAN Impact: Containment of threats → limits spread of malware or attacks across LAN services.
4. Case Study: A university experiences lateral movement of malware within its LAN. Use Zero
Trust and advanced LAN management controls to propose a step-by-step mitigation plan.
Ans.
Case Study: Mitigation Plan for Malware Lateral Movement :
Scenario:
• A university’s LAN has malware spreading laterally between computers, servers, and network
devices.
• Goal: Contain and prevent further spread, while securing resources.
Akhil Nautiyal E1 09
TCS 795 - Security Audit and Compliance - II
4. Deploy Advanced Security Tools
o Endpoint Detection & Response (EDR)
o Network Access Control (NAC)
o Next-gen firewalls with threat intelligence
Akhil Nautiyal E1 09
TCS 795 - Security Audit and Compliance - II
Assignment 3: Web Security, Digital Certificate, and PKI
1. Web Security:
a. Identify and explain three common web application vulnerabilities (e.g., XSS, SQL Injection,
CSRF).
Ans.
a. Common Web Application Vulnerabilities
1. Cross-Site Scripting (XSS)
• Definition: A vulnerability where an attacker injects malicious scripts into web pages viewed by
other users.
• Impact: Can steal cookies, session tokens, or perform actions on behalf of the user.
• Types:
o Stored XSS: Malicious script saved on server (e.g., forum post, database).
o Reflected XSS: Script reflected via URL or form input.
o DOM-based XSS: Script manipulated on client-side DOM.
• Example:
• <script>alert([Link])</script>
Injected into a comment field, executes when another user views it.
• Mitigation: Input validation, output encoding, Content Security Policy (CSP).
Akhil Nautiyal E1 09
TCS 795 - Security Audit and Compliance - II
• Example: Malicious link or hidden form on another site triggers a bank transfer when the user is
logged in.
• Mitigation: Use CSRF tokens, enforce same-site cookies, validate Referer headers.
b. For each, describe prevention strategies.
Ans.
Perfect! Let’s detail prevention strategies for XSS, SQL Injection, and CSRF in a clear, exam-ready
format.
Akhil Nautiyal E1 09
TCS 795 - Security Audit and Compliance - II
b. Illustrate with a diagram the process of establishing a secure SSL/TLS session between a client and
a server, including certificate validation steps.
Ans.
The TLS Handshake is a cryptographic dance between a client (like your web browser) and a server (like a
website) to securely set up an encrypted connection. It involves several steps to verify the server's identity,
agree on encryption methods, and exchange keys, ensuring that all subsequent communication is private and
secure. The core idea is: "Verify identity, agree on secrets, then talk privately."
Step-by-Step Process
Akhil Nautiyal E1 09
TCS 795 - Security Audit and Compliance - II
1. Client Hello
o Client sends a “Hello” message to the server.
o Includes: supported TLS version, cipher suites, and a random number.
2. Server Hello + Certificate
o Server responds with its chosen TLS version and cipher suite.
o Sends its digital certificate (signed by a trusted CA).
o Optionally sends server key exchange parameters if using ephemeral keys.
3. Certificate Validation by Client
o Client checks:
1. Certificate is signed by a trusted CA.
2. Certificate is valid (dates not expired).
3. Certificate matches the server domain name.
o If valid, the client proceeds; otherwise, connection is terminated.
4. Key Exchange & Session Key Generation
o Client generates a pre-master secret (or uses Diffie-Hellman ephemeral keys).
o Encrypts it with server’s public key from the certificate and sends it to the server.
o Both client and server compute the session key from this pre-master secret.
5. Finished Messages
o Both sides send “Finished” messages encrypted with the session key to confirm secure setup.
6. Secure Communication Established
o All subsequent data is encrypted using the session key.
3. Lab Task:
Using OpenSSL or an equivalent tool, generate a self signed certificate and use it to secure a
simple web server (e.g., Apache or Python HTTP server). Provide screenshots and a stepwise
command log.
Ans.
Akhil Nautiyal E1 09
TCS 795 - Security Audit and Compliance - II
Terminal output:
Serving on [Link]
4. Reflection: Discuss the importance of certificate authorities (CAs) and the risks posed by
compromised or rogue CAs.
Akhil Nautiyal E1 09
TCS 795 - Security Audit and Compliance - II
Ans.
Reflection: Importance of Certificate Authorities (CAs) and Risks of Compromise
1. Importance of Certificate Authorities (CAs)
A Certificate Authority (CA) is a trusted third party that issues digital certificates, binding public keys to
entities’ identities. They play a crucial role in Public Key Infrastructure (PKI).
Key Roles of CAs:
1. Authentication: Verify the identity of organizations, websites, or individuals before issuing
certificates.
2. Trust Establishment: Serve as a trusted anchor for HTTPS and secure communications. Clients trust
certificates signed by recognized CAs.
3. Data Integrity & Confidentiality: Enable encrypted communication (SSL/TLS) to prevent
eavesdropping and tampering.
4. Non-repudiation: Ensure actions (like signing documents) can be traced and verified to the entity
owning the certificate.
Example: Browsers trust websites with certificates signed by recognized CAs (e.g., DigiCert, Let’s Encrypt).
1. Firewalls: a. Define what a firewall is and enumerate at least three different types (e.g., packet-
filtering, stateful, application layer).
Ans.
Firewalls: Definition and Types :
1. Definition of a Firewall
A firewall is a network security device or software that monitors, filters, and controls incoming and outgoing
network traffic based on a set of predefined security rules.
• Purpose: Protect internal networks from unauthorized access, malware, and attacks while allowing
legitimate traffic.
• Acts as a barrier between trusted (internal) and untrusted (external) networks.
2. Types of Firewalls
Tracks the state of active connections and makes Corporate network firewall
Stateful Firewall decisions based on connection context (e.g., is this allowing return traffic only for
packet part of an established session?). initiated connections.
Inspects traffic at the application layer (Layer 7), Web application firewall (WAF)
Application Layer
including content, URLs, and commands. Can block protecting against SQL Injection
(Proxy) Firewall
specific applications or malicious payloads. or XSS.
Akhil Nautiyal E1 09
TCS 795 - Security Audit and Compliance - II
Type Description Example / Use Case
Circuit-Level Monitors TCP/UDP handshakes and ensures sessions Used in small VPNs or simple
Gateway are valid without inspecting packet content. proxy connections.
b. Draw a table comparing their strengths and limitations for securing an enterprise network.
Comparison of Firewall Types
Primary Detects and alerts on suspicious activity Detects and blocks/prevents suspicious activity
Function or attacks in real-time
Action on Generates alerts; does not block traffic Can block, drop, or redirect malicious traffic
Threat automatically automatically
Akhil Nautiyal E1 09
TCS 795 - Security Audit and Compliance - II
Feature IDS (Intrusion Detection System) IPS (Intrusion Prevention System)
Response Time Slower; relies on administrator action Faster; acts immediately to prevent attacks
Impact on Minimal, since it does not affect traffic Can introduce latency or disruption if
Network flow misconfigured
Use Case Monitoring, alerting, forensic analysis Real-time prevention, automated defense
Network-Based IDS/IPS
Feature Host-Based IDS/IPS (HIDS/HIPS)
(NIDS/NIPS)
Monitors network traffic, protocols, and Monitors system files, logs, processes, and
Primary Focus
packets system calls
Detection Scope Can detect attacks across multiple hosts Detects attacks specific to the host
Examples of Port scans, DoS attacks, suspicious File integrity changes, unauthorized logins,
Monitored Activity packets, protocol anomalies malware, system policy violations
Less impact on individual hosts; may Consumes host resources; may affect
Resource Usage
need dedicated appliance performance
Akhil Nautiyal E1 09
TCS 795 - Security Audit and Compliance - II
Feature Signature-Based Detection Anomaly-Based Detection
Compares network or system activity Detects activity that deviates from normal
Detection
against a database of known attack behavior (baseline of normal system/network
Method
signatures activity)
High for known attacks, low for Can detect unknown or zero-day attacks, but may
Accuracy
new/unknown attacks generate more false positives
Updates Requires constant signature updates from Requires continuous learning of normal behavior
Required vendor patterns
Snort IDS using predefined attack OSSEC HIDS detecting unusual login attempts
Example
signatures or file changes
Akhil Nautiyal E1 09
TCS 795 - Security Audit and Compliance - II
Type Description Example / Use Case
Client Requires VPN client software Can often use standard web browser;
Requirement installed on user device client software optional
Akhil Nautiyal E1 09
TCS 795 - Security Audit and Compliance - II
5. Scenario Analysis:
You are the security architect for a global company. Describe, with justification, a multi-
layered approach using firewalls, IDS/IPS, and VPNs to protect sensitive data as users connect
from branch offices and remote locations.
Ans.
Scenario: Multi-Layered Security for a Global Company
Context: Users connect from branch offices and remote locations; sensitive data must be protected
across the network.
Akhil Nautiyal E1 09