OSI Security Architecture Overview
OSI Security Architecture Overview
OSI Security
OSI (Open Systems Interconnection) security refers to a set of protocols, standards, and
techniques used to ensure the security of data and communications in a network environment
based on the OSI model. The International Organisation for Standardisation (ISO) established
this model to provide a conceptual framework for understanding how different networking
protocols interact within a layered architecture.
The OSI (Open Systems Interconnection) Security Architecture defines a systematic approach
to providing security at each layer. It defines security services and security mechanisms that
can be used at each of the seven layers of the OSI model to provide security for data transmitted
over a network. These security services and mechanisms help to ensure the confidentiality,
integrity, and availability of the data. OSI architecture is internationally acceptable as it lays
the flow of providing safety in an organization. OSI Security Architecture focuses on these
concepts:
1. Security Attack
2. Security mechanism
3. Security Service
1. Security Attacks
(1.1) Passive Attack: Attacks in which a third-party intruder tries to access the message/
content/ data being shared by the sender and receiver by keeping a close watch on the
transmission or eave-dropping the transmission is called Passive Attacks. These types of
attacks involve the attacker observing or monitoring system, network, or device activity
without actively disrupting or altering it. Passive attacks are typically focused on gathering
information or intelligence, rather than causing damage or disruption. Here, both the sender
and receiver have no clue that their message/ data is accessible to some third-party intruder.
The message/ data transmitted remains in its usual form without any deviation from its usual
behavior. This makes passive attacks very risky as there is no information provided about the
attack happening in the communication process. Passive attacks are further divided into two
parts based on their behavior:
(1.1.2)Traffic analysis: This involves the attacker analyzing network traffic patterns and
metadata to gather information about the system, network, or device. Here the intruder can't
read the message but only understand the pattern and length of encryption. Traffic analysis can
be performed using a variety of techniques, such as network flow analysis, or protocol analysis.
(1.2)Active Attacks: Active attacks refer to types of attacks that involve the attacker actively
disrupting or altering system, network or device activity. Active attacks are typically focused
on causing damage or disruption rather than gathering information or intelligence. Here, both
the sender and receiver have no clue that their message/ data is modified by some third-party
intruder. The message/ data transmitted doesn't remain in its usual form and shows deviation
from its usual behavior. This makes active attacks dangerous as there is no information
provided of the attack happening in the communication process and the receiver is not aware
that the data/ message received is not from the sender. Active attacks are further divided into
four parts based on their behavior:
(1.2.1)Masquerade: Masquerade is a type of attack in which the attacker pretends to be an
authentic sender in order to gain unauthorized access to a system. This type of attack can
involve the attacker using stolen or forged credentials, or manipulating authentication or
authorization controls in some other way.
(1.2.2)Replay: Replay is a type of active attack in which the attacker intercepts a transmitted
message through a passive channel and then maliciously or fraudulently replays or delays it at
a later time.
(1.2.4)Denial of service (DoS): Denial of Service attacks involve the attacker sending a large
volume of traffic to a system, network, or device in an attempt to overwhelm it and make it
unavailable to users.
2. Security Mechanism
The mechanism that is built to identify any breach of security or attack on the organization, is
called a security mechanism. Security Mechanisms are also responsible for protecting a system,
network, or device against unauthorized access, tampering, or other security threats.
Encipherment (Encryption): Encryption involves the use of algorithms to transform data into
a form that can only be read by someone with the appropriate decryption key. Encryption can
be used to protect data it is transmitted over a network, or to protect data when it is stored on a
device.
Digital signature: Digital Signature is a security mechanism that involves the use of
cryptographic techniques to create a unique, verifiable identifier for a digital document or
message, which can be used to ensure the authenticity and integrity of the document or
message.
Traffic padding: Traffic Padding is a technique used to add extra data to a network traffic
stream in an attempt to obscure the true content of the traffic and make it more difficult to
analyze.
Routing control: Routing Control allows the selection of specific physically secure routes for
specific data transmission and enables routing changes particularly when a gap in security is
suspected.
3. Security Services
Security services refer to the different services available for maintaining the security and safety
of an organization. They help in preventing any potential risks to security. Security services
are divided into 5 types:
Access control: Access Control involves the use of policies and procedures to determine who
is allowed to access specific resources within a system.
Data integrity: Data Integrity is a security mechanism that involves the use of techniques to
ensure that data has not been tampered with or altered in any way during transmission or
storage.
Non- repudiation: Non-repudiation involves the use of techniques to create a verifiable record
of the origin and transmission of a message which can be used to prevent the sender from
denying that they sent the message.
Introduction
• Proposed by David F.C. Brewer and Michael J. Nash in 1989.
• Designed for organizations like financial institutions, law firms, and consulting
companies where employees often handle sensitive data from competing clients.
• The model focuses on avoiding conflicts of interest while still allowing access
to necessary information.
Main Objective
• Prevent conflict of interest (COI) when a person accesses data from multiple
competing organizations.
• Ensure that confidentiality of sensitive information is not breached due to
insider knowledge.
Core Concepts
1. Company Dataset (CD)
• A set of all confidential data belonging to a single company.
• Example: All records, files, and documents of Bank A.
2. Conflict of Interest Class (COI Class)
• A group of companies that are in competition.
• Example: Bank A, Bank B, Bank C → all in the Banking COI Class.
• If a user accesses one company’s dataset within a COI class, they are restricted
from accessing competitors in the same class.
3. Access Rules
There are two key rules:
a) Simple Security Rule (No-Read Rule)
• A subject (user) can access a dataset only if:
1. They have not previously accessed data from another company within
the same COI class.
2. Or, the data belongs to the same company they already accessed.
✔ Example:
• If a consultant accesses Bank A’s data, they cannot later access Bank B’s data
(since both are in the same COI class).
b) *-Property (No-Write Rule)
• A subject can write data only if they can read it under the Simple Security Rule,
and no conflict of interest occurs.
• Prevents a subject from writing information from one company into another
company’s dataset (avoiding “information leakage”).
✔ Example:
• A consultant who worked with Bank A cannot write data into Bank B’s files.
Comparison with Bell-LaPadula
• Bell-LaPadula: Protects confidentiality using "no read up, no write down".
• Chinese Wall: Protects against conflicts of interest (insider misuse) using "no
conflicting access".
Real-Life Example
Imagine a consultant in a firm:
• They advise Bank A on financial strategies.
• Because of Chinese Wall rules, they cannot access Bank B’s confidential data
since Bank B is a competitor.
• However, they may still access Airline Company X’s data, since that’s a
different COI class (banking ≠ airline).
Advantages
• Prevents misuse of insider knowledge.
• Practical for commercial consulting, legal, and auditing firms.
• Dynamically adjusts access rules based on a user’s past activity.
Limitations
• Over-restriction: Once a user accesses one dataset, they may be permanently
blocked from others in that COI class.
• Complexity: Requires careful classification of companies into COI classes.
• Dynamic policy changes are harder to manage in large organizations.
Introduction
• Proposed by David D. Clark and David R. Wilson in 1987.
• Focuses on data integrity rather than confidentiality.
• Widely applied in banking, accounting, and commercial environments where
it is essential that transactions are performed correctly and without fraud.
Main Objective
• Ensure that data in a system remains accurate, consistent, and trustworthy.
• Prevent unauthorized modification, fraudulent activity, or accidental
corruption of data.
Core Concepts
1. Constrained Data Items (CDIs)
• Sensitive data items that require strict integrity controls.
• Example: A bank account balance.
2. Unconstrained Data Items (UDIs)
• Data that is not directly protected by integrity controls but may become CDIs
after validation.
• Example: Customer input entered in an online form (not trusted yet).
3. Transformation Procedures (TPs)
• Trusted programs that can manipulate CDIs in a controlled manner.
• Example: Deposit/withdrawal transaction program in a bank.
• Only TPs can change CDIs; users cannot directly manipulate data.
4. Integrity Verification Procedures (IVPs)
• Programs that verify CDIs are in a valid state.
• Example: A program that checks whether the total credits = total debits in
accounting records.
Core Principles (Rules)
The Clark–Wilson model defines rules for integrity enforcement:
A) Certification Rules (C-Rules)
• Ensure the system is correctly set up.
• Examples:
o C1: IVPs must ensure that CDIs are in a valid state.
o C2: Each TP must ensure CDIs are transformed from one valid state to
another.
o C3: Separation of duties: No single user should have authority to certify
their own work.
B) Enforcement Rules (E-Rules)
• Ensure the system enforces the rules at runtime.
• Examples:
o E1: System must maintain and enforce allowed relations between
subjects (users), TPs, and CDIs.
o E2: Users can only access CDIs through certified TPs.
Example in Banking
Imagine a bank transaction system:
1. CDIs: Customer’s account balances.
2. UDIs: Deposit request from a customer form.
3. TPs: Bank’s deposit/withdrawal programs.
o A withdrawal TP ensures the account has enough balance.
o A deposit TP ensures the amount is correctly added.
4. IVPs: Auditing program checks total credits = total debits.
5. Separation of Duties:
o One clerk enters a transaction request.
o Another clerk verifies/authorizes it.
This prevents fraud (e.g., one clerk cannot both create and approve their own fake
transaction).
Advantages
• Strong protection of integrity, especially for financial systems.
• Supports auditing and accountability.
• Enforces separation of duties to reduce insider fraud.
Limitations
• Focuses only on integrity, not confidentiality or availability.
• Requires careful design of TPs and IVPs.
• Can be expensive to implement in complex environments.
Bell–LaPadula Model (BLP)
Introduction
• Proposed by David Bell and Leonard LaPadula in 1973.
• Developed for the U.S. Department of Defense (DoD).
• One of the earliest and most influential Mandatory Access Control (MAC)
models.
• Main focus: Confidentiality of data, i.e., keeping secrets secret.
Main Objective
• Prevent unauthorized disclosure of information.
• Protect classified data by restricting how information flows between security
levels.
Core Concepts
1. Subjects
• Active entities (e.g., users, processes) that request access to objects.
2. Objects
• Passive entities (e.g., files, databases) that contain information.
3. Security Levels (Lattice Structure)
• Data is classified into security levels such as:
o Top Secret (TS)
o Secret (S)
o Confidential (C)
o Unclassified (U)
Each subject and object is assigned a clearance level.
Access Control Rules
The BLP model defines three rules:
1. Simple Security Property ("No Read Up")
• A subject cannot read data at a higher classification level.
• Prevents unauthorized access to sensitive information.
✔ Example:
• A user with Secret clearance cannot read Top Secret documents.
Example in Military
Let’s say we have three users:
• Alice → Top Secret clearance.
• Bob → Secret clearance.
• Carol → Confidential clearance.
And three files:
• File A → Top Secret.
• File B → Secret.
• File C → Confidential.
According to BLP:
• Alice (Top Secret) can read A, B, C (she has higher clearance).
• Bob (Secret) cannot read File A (No Read Up), but can read B and C.
• Carol (Confidential) cannot read A or B, can read C.
• Alice cannot write Top Secret info into File C (No Write Down).
Advantages
• Strong protection of confidentiality.
• Prevents information leakage between levels.
• Suitable for government/military where secrecy is critical.
Limitations
• Focuses only on confidentiality, not integrity or availability.
• Too rigid for commercial/business use (where integrity is often more important).
• Doesn’t prevent internal misuse (e.g., if a Top Secret user intentionally leaks
data).
Non-Interference Model
Introduction
• Proposed by Joseph Goguen and José Meseguer in 1982.
• Unlike Bell–LaPadula (confidentiality) or Clark–Wilson (integrity), the Non-
Interference Model focuses on information flow security.
• Key idea: Activities of high-level users (sensitive operations) must not interfere
with what low-level users can observe.
In other words:
“A low-level user should not be able to infer anything about high-level operations from
system behavior.”
Main Objective
• Prevent indirect leakage of information through covert channels (timing,
resource usage, system responses).
• Ensure complete isolation of high-level and low-level activities.
Core Concepts
1. High-Level Subjects (H)
• Users/processes with access to classified or sensitive data.
• Example: Military commander, admin process.
2. Low-Level Subjects (L)
• Users/processes with lower clearance.
• Example: Normal soldiers, ordinary users.
3. Non-Interference Principle
• Actions of H must not alter what L can observe.
• There should be no causal link between H’s activities and L’s view of the
system.
Example Scenarios
1. Military Example
• H: Commander runs secret operations (launching missiles).
• L: Regular soldier using the same system.
• If system performance slows when H runs a secret program, L might infer
something is happening.
• Non-Interference prevents this — L’s experience must remain unchanged.
2. Banking Example
• H: Bank manager checks VIP account balances.
• L: Normal clerk accessing the system.
• If clerk notices system response times change when manager queries VIP
accounts, they may infer sensitive activity.
• Non-Interference ensures clerk cannot observe such side effects.
Advantages
• Prevents covert channel attacks (timing, resource usage).
• Provides strong confidentiality guarantees.
• Useful in military, defense, critical systems.
Limitations
• Difficult to implement fully — modern systems often leak information
indirectly.
• Performance impact — making systems completely non-interfering requires
heavy isolation.
• Practicality issue — sometimes too strict for real-world commercial systems.
Introduction
• Follows the Principle of Least Privilege: Users only get the access they need to
perform their job.
Main Objective
Core Concepts
1. Users
2. Roles
3. Permissions
• Example: Read patient records, Update employee salary, Access server logs.
4. Sessions
Rules of RBAC
1. Role Assignment
• A user can only perform operations if they have been assigned a role.
2. Role Authorization
• Users can activate only the roles they are authorized for.
3. Permission Authorization
• Users can execute operations only if their role has the required permissions.
Types of RBAC
1. Flat RBAC
2. Hierarchical RBAC
o Example:
3. Constrained RBAC
o Example:
Example in a Hospital
• Roles:
Limitations
• If too many roles exist, it may cause role explosion (hard to manage).
In network security, "intruders" are unauthorized individuals or entities who want to obtain
access to a network or system to breach its security. Intruders can range from inexperienced
hackers to professional and organized cyber criminals.
Intruders are often referred to as hackers and are the most harmful factors contributing to
security vulnerability. They have immense knowledge and an in-depth understanding of
technology and security. Intruders breach the privacy of users and aim to steal the confidential
information of the users. The stolen information is then sold to third parties, aiming to misuse
it for personal or professional gains.
Types of Intruders
● Masquerader: The category of individuals that are not authorized to use the system
but still exploit users' privacy and confidential information by possessing
techniques that give them control over the system, such category of intruders is
referred to as Masquerader. Masqueraders are outsiders and hence they don't have
direct access to the system, they aim to attack unethically to steal data.
● Misfeasor: The category of individuals that are authorized to use the system, but
misuse the granted access and privilege. These are individuals that take undue
advantage of the permissions and access given to them, such category of intruders
is referred to as Misfeasor. Misfeasors are insiders and they have direct access to
the system, which they aim to attack unethically for stealing data/ information.
● Clandestine User: The category of individuals who have
supervision/administrative control over the system and misuse the authoritative
power given to them. The misconduct of power is often done by superlative
authorities for financial gains, such a category of intruders is referred to as
Clandestine Users. A Clandestine User can be any of the two, insiders or outsiders,
and accordingly, they can have direct/ indirect access to the system, which they aim
to attack unethically by stealing data/ information.
Intrusion Detection System (IDS) observes network traffic for malicious transactions and sends
immediate alerts when it is observed. It is software that checks a network or system for
malicious activities or policy violations. Each illegal activity or violation is often recorded
either centrally using an SIEM system or notified to an administration. IDS monitors a network
or system for malicious activity and protects a computer network from unauthorized access
from users, including perhaps insiders. The intrusion detector learning task is to build a
predictive model (i.e. a classifier) capable of distinguishing between ‘bad connections’
(intrusion/attacks) and ‘good (normal) connections’.
Passwords are the most common authentication mechanism. Weak password practices make
systems vulnerable to intruders.
Threats to Passwords:
• Keyloggers
1. Strong Passwords
o Change passwords periodically (but not too frequently to avoid weak choices).
6. Password Managers
A firewall is a network security device, either hardware or software-based, which monitors all
incoming and outgoing traffic and, based on a defined set of security rules, accepts, rejects, or
drops that specific traffic. It acts like a security guard that helps keep your digital world safe
from unwanted visitors and potential threats.
Imagine your house door is always open. Anyone passing by could walk in and take your
things. A firewall is like a locked door with a guard, letting only trusted people in and keeping
strangers out.
Think of your email inbox. Without a spam filter, you’d get flooded with scam and spam
messages. A firewall works like that spam filter it blocks harmful data before it reaches you.
It’s like keeping your bank PIN in a safe instead of leaving it on the table where anyone can
see it. A firewall ensures your personal and business data stays hidden from cyber criminals.
If you leave your car unlocked in a parking lot, thieves can steal it. A firewall locks your
network so attackers can’t hijack it.
Just like parents set parental controls so kids can’t visit unsafe websites, firewalls control where
your computers are allowed to connect.
Working
A firewall works like a security guard for your network, standing between your internal
systems, such as computers, servers, and devices and the outside world, like the internet or
other networks. It carefully inspects all data entering or leaving to ensure only safe traffic is
allowed through.
• When data tries to enter or leave your network, it passes through the firewall first.
• The firewall examines the data packets (small chunks of information) using predefined
rules.
• Rules can be defined on the firewall based on the necessity and security policies of the
organization.
• Firewall allows decision making, such as: Allow → If the packet matches safe rules, or
Block → If the packet is suspicious, from a blacklisted source, or contains malicious
code.
• The firewall records blocked or unusual traffic for security teams to review.
Characteristics
1. Traffic Filtering: Examines packets entering or leaving the network. Decides whether
to allow or block traffic based on rules (IP, port, protocol, etc.).
2. Policy Enforcement: Enforces the organization’s security policy (e.g., “block social
media sites” or “allow only HTTPS traffic”).
3. Access Control: Controls which users, devices, or applications can access certain
resources.
4. Types of Inspection
5. Logging and Auditing: Records details of allowed and blocked traffic. Useful for
troubleshooting and forensic analysis.
6. Network Segmentation: Divides networks into zones (e.g., internal, external, DMZ).
Limits the spread of attacks between segments.
9. VPN Support: Many firewalls allow secure remote access using Virtual Private
Networks.
10. Scalability and Performance: Should handle high volumes of traffic without
becoming a bottleneck.
11. Default-Deny Rule: Most firewalls operate on a principle: “That which is not
explicitly allowed is denied.”
Types of Firewalls
1. Packet-Filtering Firewall
o Source IP
o Destination IP
o Source Port
o Destination Port
o Protocol (TCP/UDP/ICMP)
• Advantages: More secure than simple packet filtering, protects against spoofing.
• Can cache web pages, filter content, and prevent direct connections.
o Malware filtering
5. Circuit-Level Gateway
• Monitors TCP handshakes and session rules to ensure connections are valid.
7. Software Firewalls
8. Hardware Firewalls
Firewall Basing
Firewall basing refers to where the firewall software or hardware is implemented or installed.
1. Bastion Host
2. Router-Based Firewalls
Firewall Location
Firewall location depends on the network architecture and what needs protection.
Common Locations:
2. At Network Perimeter
o A firewall separates internal network from servers that are accessible to external
users (web servers, mail servers).
Firewall Configurations
A) Packet-Filtering Configuration
• Strongest setup.
• Public servers (web, mail, DNS) live in DMZ, while internal network stays protected.