Tutorial 1.3: Security Models, Principles, and Architectures

Table of Contents

Learning Objectives

Upon completion of this tutorial, you will be able to:

  1. Explain the OSI Security Architecture (X.800) and its role in classifying security services, mechanisms, and management.
  2. Analyze and apply the eight foundational security principles (defense in depth, least privilege, need-to-know, separation of duties, complete mediation, fail-safe defaults, economy of mechanism, open design) to real-world system designs.
  3. Compare trust models, security domains, the reference monitor concept, and trusted systems.
  4. Evaluate the paradigm shift from traditional perimeter security to Zero Trust architecture.
  5. Design a security architecture incorporating security zones, layered defense, and enterprise frameworks (SABSA, TOGAF).
  6. Assess the limitations and practical challenges of implementing security models in complex, distributed environments.

Overview

Tutorial 1.2 provided a deep dive into the threat landscape—actors, motivations, and attack methodologies. We examined how adversaries exploit vulnerabilities and bypass controls. Now, we shift our perspective from problem to solution: this tutorial builds the intellectual and practical framework for designing secure systems. We will explore the models, principles, and architectures that guide security practitioners in constructing resilient, trustworthy infrastructures.

We begin with the OSI Security Architecture (X.800), a foundational standard that defines security services, mechanisms, and management in a structured manner. Although developed for the OSI model, its taxonomy remains universally applicable: it provides a common language for discussing security capabilities. We will map services like authentication, access control, and nonrepudiation to specific mechanisms (encryption, digital signatures, etc.) and examine how management functions like audit and key management underpin these capabilities.

Next, we turn to the foundational security principles—timeless guidelines articulated by Saltzer and Schroeder (1975) and refined over decades. These principles are not mere theory; they are pragmatic heuristics that prevent common design flaws. We will analyze each principle in depth: defense in depth (layering controls), least privilege (restricting permissions), need-to-know (limiting data access), separation of duties (dividing responsibilities), complete mediation (checking every access), fail-safe defaults (deny by default), economy of mechanism (simplicity), and open design (relying on strong secrets, not obscurity). We will also discuss their limitations and trade-offs in practice.

We then explore security models—formal constructs that underpin policy enforcement. We cover trust models (direct, hierarchical, web-of-trust, Zero Trust), security domains (boundaries of trust), the reference monitor concept (the abstract mediator that enforces access control), and trusted systems (systems evaluated against criteria like Common Criteria). These models provide the theoretical basis for implementing controls like Mandatory Access Control (MAC) and Role-Based Access Control (RBAC).

Finally, we examine modern security architectures: the shift to Zero Trust (never trust, always verify), the strategic use of security zones (DMZ, internal, restricted), and enterprise frameworks like SABSA and TOGAF. We revisit the principle of layered defense (defense in depth) as a practical instantiation of multiple barriers. By the end, you will be equipped to evaluate and design security architectures that are robust, adaptable, and aligned with organizational risk.


5.1 OSI Security Architecture (X.800)

The ITU-T X.800 recommendation (also known as the OSI Security Architecture) provides a systematic framework for describing security aspects of open systems. It defines three key concepts: security services, security mechanisms, and security management. This taxonomy helps designers identify the necessary security capabilities and map them to technical implementations.

5.1.1 Security Services

X.800 defines five major categories of security services:

  1. Authentication: Provides assurance of the identity of a communicating entity (peer-entity authentication) or the origin of a message (data-origin authentication).
  2. Access Control: Prevents unauthorized use of resources; it enforces policies that determine who can access what.
  3. Data Confidentiality: Protects data from unauthorized disclosure; includes connection confidentiality, connectionless confidentiality, and traffic-flow confidentiality.
  4. Data Integrity: Ensures that data has not been altered or destroyed in an unauthorized manner; can be connection-oriented or connectionless.
  5. Nonrepudiation: Provides proof of origin and proof of delivery, preventing a party from denying involvement in a transaction.

5.1.2 Security Mechanisms

X.800 distinguishes between specific mechanisms (implemented at a particular layer) and pervasive mechanisms (applied across layers). Specific mechanisms include encipherment, digital signatures, access control, data integrity (e.g., hash functions), authentication exchange, traffic padding, routing control, and notarization. Pervasive mechanisms include trusted functionality, security labels, event detection, audit trails, and security recovery.

5.1.3 Security Management

Management encompasses the administrative and operational activities required to establish, maintain, and operate a secure system. This includes key management, policy management, and security information management (e.g., SIEM). X.800's management functions are often implemented through identity management systems and security operations centers (SOCs).

Table 3.1: Mapping Services to Mechanisms (X.800)

Security Service Primary Security Mechanisms
Authentication Authentication exchange, digital signature, encryption
Access Control Access control lists, capabilities, role-based policies
Data Confidentiality Encipherment, traffic padding, routing control
Data Integrity Digital signature, data integrity mechanisms, hash functions
Nonrepudiation Digital signature, notarization, time-stamping

5.2 Foundational Security Principles

These principles, articulated by Saltzer and Schroeder (1975) and further refined, provide design heuristics that have stood the test of time. They are not absolute laws but rather guidelines that, when applied, reduce the likelihood of security flaws.

5.2.1 Defense in Depth (Layered Defense)

No single control is perfect. Defense in depth uses multiple layers of controls (physical, network, host, application, data, and people) so that if one layer fails, others remain. This principle acknowledges the inevitability of failures and forces an attacker to overcome multiple barriers.

5.2.2 Least Privilege

Every program, user, or process should have only the minimum privileges necessary to perform its function. This reduces the potential damage from errors or compromise. In practice, this means using standard user accounts for daily work, running services with minimal permissions, and applying role-based access control.

5.2.3 Need-to-Know

Closely related to least privilege, the need-to-know principle restricts access to information only to those who require it for their duties. It is enforced through data classification and mandatory access controls (MAC).

5.2.4 Separation of Duties

Critical functions should be divided among multiple individuals to prevent fraud or error. For example, the person who approves a payment should not be the person who initiates it. This principle is a cornerstone of internal controls.

5.2.5 Complete Mediation

Every access to a resource must be checked for authorization. Caching of authorization decisions must be done with care to avoid bypassing the check. The reference monitor (discussed later) embodies this principle.

5.2.6 Fail-Safe Defaults

Access decisions should default to deny unless explicit permission is granted. This reduces the risk that a misconfiguration or error will result in unauthorized access. It is the basis for default-deny firewall policies and whitelisting.

5.2.7 Economy of Mechanism

Keep security mechanisms as simple as possible. Simple systems are easier to analyze, test, and maintain; they have fewer bugs. Complexity often leads to unintended vulnerabilities.

5.2.8 Open Design

The security of a system should not depend on the secrecy of its design (security through obscurity). Instead, security should rely on strong cryptographic keys and other secrets that can be changed. Open designs allow for public scrutiny and peer review.

Table 3.2: Summary of Security Principles

Principle Description Example Application
Defense in Depth Use multiple layers of controls Firewall + IDS + EDR + encryption
Least Privilege Grant minimum necessary permissions Users have standard accounts, not admin
Need-to-Know Access only information required for the job Data classification and MAC
Separation of Duties Divide responsibilities to reduce fraud Payment approval separated from initiation
Complete Mediation Check authorization on every access Reference monitor enforcement
Fail-Safe Defaults Default to deny unless explicitly allowed Default-deny firewall policies
Economy of Mechanism Keep security mechanisms simple Minimal code in security-critical components
Open Design Security should not rely on secrecy of design Publicly reviewed cryptographic algorithms

5.3 Security Models

Security models formalize the behavior of security policies. They provide a rigorous foundation for access control.

5.3.1 Trust Models

Trust models define how trust is established and transferred. Common models include:

5.3.2 Security Domains

A security domain is a set of resources sharing a common security policy and trust boundary. Domains can be hierarchical (e.g., corporate, R&D, HR) or partitioned by sensitivity. Domain boundaries are enforced by firewalls, gateways, or access control systems.

5.3.3 Reference Monitor Concept

The reference monitor is an abstract concept that mediates all access between subjects and objects. It must be complete (mediates every access), tamper-proof (cannot be bypassed), and verifiable (its correctness can be proven). In practice, it is implemented as the security kernel—the core of the OS responsible for security enforcement.

5.3.4 Trusted Systems

A trusted system is one that has been evaluated and certified to meet specific security requirements, often using the Common Criteria (ISO 15408). Systems are evaluated at various Evaluation Assurance Levels (EAL). While formal certification is less common in commercial products, the concept of trust remains central: organizations must assess the trustworthiness of their systems based on their security posture.

Figure 3.1: Reference Monitor Concept

+-----------------------------------------------------------+ | REFERENCE MONITOR | | | | +--------+ +------------------+ +---------+ | | | Subject | ----->| REFERENCE |-----> | Object | | | | (User/ | (1) | MONITOR | (3) | (File/ | | | | Process)| | (Mediates all | | Resource| | | +--------+ | access) | +---------+ | | +------------------+ | | | | | | (2) | | v | | +------------------+ | | | Security Policy | | | | (Rules, ACLs, | | | | Labels) | | | +------------------+ | | | | Properties: Complete, Tamper-proof, Verifiable | +-----------------------------------------------------------+

5.4 Modern Security Architecture

5.4.1 Zero Trust

Zero Trust is a paradigm that eliminates implicit trust, even within the organizational perimeter. It is based on the principle "never trust, always verify." Key tenets include: verify explicitly (using multiple data sources), least privilege access, and assume breach (design for resilience). Zero Trust is not a single product but a strategic approach implemented through identity-centric controls, micro-segmentation, and continuous monitoring.

5.4.2 Security Zones

Security zones segment the network into areas with different trust levels: Untrusted (Internet), DMZ (public-facing servers), Internal (corporate), and Restricted (high-value assets). Zones enforce traffic flow policies and limit lateral movement.

5.4.3 Enterprise Security Architecture

Frameworks like SABSA (Sherwood Applied Business Security Architecture) and TOGAF (The Open Group Architecture Framework) provide structured approaches to align security with business strategy. SABSA uses a six-layer model (Business, Information, Data, Application, Network, Physical) to ensure security is addressed holistically.

5.4.4 Layered Defense

Layered defense (defense in depth) is the practical expression of the principle. Controls are organized in concentric circles around the assets, ensuring that an attacker must breach multiple layers. Modern implementations include network segmentation, application whitelisting, and advanced endpoint detection.

Figure 3.2: Layered Defense

+-----------------------------------------------------------+ | LAYERED DEFENSE | | | | +-----------------------------------------------------+ | | | DATA LAYER | | | | Encryption, DLP, Backup | | | +-----------------------------------------------------+ | | +-------------------------------------------+ | | | APPLICATION LAYER | | | | WAF, Secure Coding, Runtime Prot. | | | +-------------------------------------------+ | | +-----------------------------------+ | | | HOST LAYER | | | | Endpoint Prot., Patching | | | +-----------------------------------+ | | +-----------------------------+ | | | NETWORK LAYER | | | | Segmentation, NAC, VPN | | | +-----------------------------+ | | +-----------------------+ | | | PERIMETER LAYER | | | | Firewalls, IDS/IPS | | | +-----------------------+ | | | | +-------------------------------------------------+ | | | PEOPLE LAYER | | | | Training, Policies, Incident Response | | | +-------------------------------------------------+ | +-----------------------------------------------------------+

Quiz: Tutorial 1.3

Test your understanding of security models, principles, and architectures. Questions range from foundational to advanced analytical levels.

Question 1 (Foundational): According to X.800, which security service provides proof of origin and proof of delivery?

Answer
c) Nonrepudiation. It prevents denial of involvement.

Question 2 (Foundational): The principle that every program and user should have only the minimum privileges necessary is known as:

Answer
b) Least Privilege.

Question 3 (Intermediate): Which of the following is a pervasive security mechanism in X.800?

Answer
c) Security Audit Trail. Pervasive mechanisms apply across layers.

Question 4 (Intermediate): The reference monitor must be: (select all that apply)

Answer
a) Complete, b) Tamper-proof, c) Verifiable. Speed is desirable but not a formal requirement.

Question 5 (Intermediate): In the context of security zones, which zone typically hosts public-facing web servers?

Answer
b) DMZ (Demilitarized Zone).

Question 6 (Advanced): Which statement best describes a limitation of the "open design" principle?

Answer
a) It encourages attackers to study the system for vulnerabilities, but this is actually a strength: it forces the system to be robust against scrutiny. The correct limitation is that it requires strong secrets (keys) to be protected, not the design.

Question 7 (Advanced): A Zero Trust architecture fundamentally challenges which traditional security assumption?

Answer
b) That the internal network is inherently trusted. Zero Trust eliminates implicit trust.

Question 8 (Theoretical): Explain the concept of "separation of duties" and describe a scenario where its absence could lead to a security incident.

Answer
Separation of duties divides critical functions among multiple individuals to prevent fraud or error. Example: In financial systems, if the same person can both create and approve vendor invoices, they could issue fraudulent payments without oversight. Splitting these roles ensures collusion is required.

Question 9 (Advanced Scenario): An organization implements a default-deny firewall, enforces MFA for all remote access, and segments its network into micro-perimeters. Which security principles are being applied? (Select the most comprehensive answer.)

Answer
b) Defense in Depth (layered controls), Least Privilege (MFA and micro-segmentation), and Fail-Safe Defaults (default-deny firewall).

Question 10 (Advanced): In the SABSA framework, which layer is responsible for translating business requirements into security requirements?

Answer
a) Business Layer. SABSA starts with business drivers to derive security architecture.

Question 11 (Theoretical): Why is the principle of "economy of mechanism" considered important for security? Provide an example.

Answer
Economy of mechanism states that security mechanisms should be simple. Complex systems have more bugs, and bugs often lead to vulnerabilities. Example: A firewall with a simple rule set is less prone to misconfiguration than a complex one with many exceptions, reducing the risk of accidental openings.

Question 12 (Scenario): A company deploys a new authentication system that caches authorization decisions for 5 minutes to improve performance. An attacker exploits this by gaining access immediately after a legitimate user logs out. Which principle was violated?

Answer
b) Complete Mediation. The system failed to check authorization on every access, relying on a cached decision.

Exercises

Apply your knowledge through these practical and analytical exercises.

Exercise 1 (Intermediate): Applying Security Principles
A university's IT department is designing a new system for storing student grades and research data. The system must enforce strict need-to-know and separation of duties. Design an access control strategy that incorporates: (a) RBAC with at least three roles; (b) data classification levels; and (c) a separation of duties mechanism for grade changes. Justify your design using the principles from this tutorial.

Sample Solution

Roles: Student (read-only own grades), Instructor (read/write for their courses), Registrar (read/write all records), Researcher (read anonymized data only).

Data classification: Public (course catalogs), Internal (research data), Confidential (grades), Restricted (financial aid).

Separation of duties: Grade changes require instructor initiation and registrar approval; logs are maintained for accountability.

Principles applied: Least privilege (minimal permissions), Need-to-know (data access based on role), Separation of duties (dual control), Complete mediation (every access checked), Fail-safe defaults (default-deny).

Exercise 2 (Advanced): Zero Trust Design
A manufacturing company is migrating to a hybrid cloud environment. They need to protect sensitive design data. Design a Zero Trust architecture for this environment, covering: (a) identity and access management; (b) network micro-segmentation; (c) data protection; (d) monitoring and logging. Include specific technologies and policies.

Sample Solution

(a) IAM: Unified IdP with MFA, conditional access policies based on risk score and device health, least privilege using JWT and OAuth.

(b) Micro-segmentation: Use VPCs and service-defined perimeters; enforce policies at the workload level with firewalls and security groups; implement ZTNA for remote access.

(c) Data protection: Encrypt at rest (customer-managed keys) and in transit (TLS 1.3); implement DLP to monitor data movement.

(d) Monitoring: Centralized SIEM with UEBA; continuous monitoring of access logs; integrate with SOAR for automated response.

Exercise 3 (Advanced): Analyzing a Breach through Principles
The Equifax breach (2017) was caused by an unpatched vulnerability in Apache Struts. Using the security principles from this tutorial, identify which principles were violated and propose specific controls that could have prevented or mitigated the breach.

Sample Solution

Violated principles: Least Privilege (the vulnerable web app had excessive network access), Defense in Depth (lack of network segmentation and monitoring), Complete Mediation (failure to patch, i.e., not checking the vulnerability), Fail-Safe Defaults (no default-deny for network access).

Controls: Patch management program (automated) would close the vulnerability. Network segmentation would isolate the web app from the sensitive data database. Monitoring could detect exploitation. Least privilege would limit the web app's access.

Exercise 4 (Advanced): Trust Model Evaluation
A global e-commerce platform uses a PKI-based trust model for securing transactions. (a) Explain the hierarchy of trust in a PKI. (b) Discuss the risks associated with a compromised Certificate Authority. (c) How could a web-of-trust model address some of these risks? (d) What are the practical challenges of implementing a web-of-trust at this scale?

Sample Solution

(a) In PKI, a root CA is trusted; it issues subordinate CAs; they issue end-entity certificates. Trust is hierarchical.

(b) A compromised CA could issue fraudulent certificates, enabling man-in-the-middle attacks. Revocation is difficult.

(c) Web-of-trust distributes trust across peers, reducing the single point of failure. However, scaling to millions of users is problematic.

(d) Challenges: managing keyrings, verifying identities, and the lack of a global root authority; it's not practical for e-commerce.

Exercise 5 (Advanced Research): SABSA Framework Application
Research the SABSA framework. Then, for a financial services firm, describe how SABSA's six layers would be applied to design a secure online banking system. Provide specific artifacts for each layer (e.g., business risk profiles, data classification, network architecture).

Sample Solution

Business Layer: Define business drivers (24/7 availability, regulatory compliance).

Information Layer: Classify data (confidential transaction data).

Data Layer: Specify encryption standards and retention policies.

Application Layer: Define application security controls (input validation, authentication).

Network Layer: Design network zones (DMZ for web servers, internal for app servers).

Physical Layer: Secure data centers and hardware.


Homework

These assignments require deep research and synthesis.

Homework 1: SABSA vs. TOGAF
Research and compare the SABSA and TOGAF enterprise architecture frameworks. Write a 700-word report covering: (a) the scope and purpose of each framework; (b) how each addresses security; (c) how they can be integrated; and (d) which is more suitable for an organization starting its security journey and why.

Sample Answer (Abridged)

SABSA is business-driven, focusing on security architecture across six layers. TOGAF is a general enterprise architecture framework with security as a cross-cutting concern. Integration: Use TOGAF for overall architecture and SABSA for security-specific design. For a new organization, NIST CSF is more approachable than TOGAF; SABSA requires significant maturity.

Homework 2: Open Design vs. Security through Obscurity
Write a 500-word critical essay that addresses: (a) the open design principle; (b) the criticisms of security through obscurity; (c) scenarios where obscurity can be a valuable complementary measure; and (d) a balanced recommendation for practitioners.

Sample Answer (Abridged)

Open design states that security should not rely on design secrecy. Obscurity is often criticized, but it can be a "nuisance layer" (e.g., hiding internal IPs). However, it must never be the primary defense. Practitioners should use open designs for core mechanisms and obscurity as a low-cost addition.

Homework 3: Zero Trust Implementation Roadmap
Design a phased Zero Trust implementation roadmap for a large healthcare organization. Your roadmap must include: (a) assessment and discovery phase; (b) identity and access management enhancements; (c) network segmentation and micro-segmentation; (d) data protection and encryption; (e) continuous monitoring and analytics; and (f) key performance indicators for success.

Sample Answer (Abridged)

Phase 1: Assess current state, identify assets and data flows. Phase 2: Deploy MFA and identity governance. Phase 3: Implement ZTNA and micro-segmentation. Phase 4: Encrypt data at rest and in transit. Phase 5: Deploy SIEM and UEBA. KPIs: MFA adoption rate, reduction in lateral movement incidents, mean time to detect.

Homework 4: Trusted Systems and Common Criteria
Research the Common Criteria (ISO 15408). Write a 600-word analysis that covers: (a) the purpose of Common Criteria; (b) the Evaluation Assurance Levels (EALs); (c) the benefits and criticisms of the certification process; (d) why commercial vendors often avoid high EAL certification; and (e) the relevance of Common Criteria in today's cloud-native world.

Sample Answer (Abridged)

Common Criteria provides a standardized way to evaluate security features. EAL levels range from 1 (basic) to 7 (formally verified). Benefits: independent validation. Criticisms: expensive, time-consuming, may not reflect real-world threats. Vendors avoid high EAL due to cost. In cloud-native environments, continuous security practices are replacing traditional certification.

Homework 5: Security Architecture Case Study
Select a major data breach (e.g., SolarWinds, Equifax, Target). Write a 700-word analysis that: (a) describes the breach and the security failures; (b) maps the failures to the security principles (identify which were violated); (c) proposes a security architecture redesign incorporating Zero Trust and defense-in-depth principles; and (d) discusses the practical challenges of implementing this architecture in the affected organization's context.

Sample Answer (Abridged)

SolarWinds: Supply-chain compromise. Violated: defense in depth (single point of failure), least privilege (compromised build system), open design (no integrity checks). Proposed architecture: enforce code signing, SBOM, network segmentation, and vendor risk management. Challenges: legacy systems, cost, and complexity of implementation.


Summary

This tutorial has built a comprehensive framework for understanding and designing secure systems. We began with the OSI Security Architecture (X.800), which provides a universal taxonomy of security services, mechanisms, and management. This framework remains invaluable for architects to map business requirements to technical capabilities.

We then explored the eight foundational security principles—defense in depth, least privilege, need-to-know, separation of duties, complete mediation, fail-safe defaults, economy of mechanism, and open design. These are not abstract ideals; they are practical, time-tested heuristics that prevent common design errors. We discussed their trade-offs and the importance of balancing them.

We delved into security models, including trust models, security domains, the reference monitor concept, and trusted systems. The reference monitor, with its completeness, tamper-proofness, and verifiability, remains the theoretical gold standard for access control enforcement. We also examined the role of Common Criteria in evaluating trusted systems.

Finally, we embraced modern security architecture, focusing on the paradigm shift to Zero Trust—a strategic approach that eliminates implicit trust and emphasizes continuous verification. We discussed security zones and enterprise frameworks like SABSA and TOGAF, and we revisited layered defense as the practical embodiment of defense in depth. The integration of these principles into a cohesive architecture enables organizations to defend against sophisticated, persistent threats.

As we move to Tutorial 1.4: Malicious Software Fundamentals, we will apply these architectural concepts to understand and counter malware—the very threats that our models and principles are designed to mitigate.

COMP400 — Computer and Network Security (Revision 3) • School of Computing and Information Systems, TrustOpen University