Bachelors Program in Computer Science Engineering
Cybersecurity Basics
•
Bachelor
Security Architecture and Trust Models
Introduction
Security architecture is the organized design of people, processes, technologies, and physical controls used to protect information systems. It translates security objectives—confidentiality, integrity, availability, authenticity, accountability, and privacy—into enforceable structures. A secure architecture does not depend on a single product or a single defensive boundary. Instead, it distributes protection across identities, applications, networks, hosts, data, facilities, and operating procedures.
Security architecture is especially important because modern systems are interconnected, software is frequently updated, users work from many locations, and attackers may exploit suppliers, credentials, applications, or physical facilities. The traditional assumption that an internal network is trustworthy is therefore unsafe. Contemporary architectures combine established ideas such as reference monitors and defense in depth with newer approaches such as zero trust and cloud-based segmentation.
This chapter explains how security domains, trusted computing, reference monitors, segmentation, secure-by-design principles, zero trust, defense in depth, and physical safeguards contribute to secure system design. It also examines limitations, governance responsibilities, and a practical application to a university environment.
Learning Objectives
After studying this chapter, students should be able to:
Explain the purpose of security architecture and trust models.
Distinguish security domains, trust boundaries, and protection boundaries.
Describe the reference monitor and the requirements of a trusted computing base.
Design basic network and system segmentation.
Apply secure-by-design and zero-trust principles.
Explain how defense in depth combines complementary controls.
Select appropriate physical and environmental safeguards.
Analyze architectural trade-offs, governance issues, and failure modes.
1. Foundations of Security Architecture
A security architecture is a reasoned arrangement of controls that protects assets against identified threats while supporting legitimate business or institutional functions. Architecture differs from a product configuration: a firewall rule is a control, whereas the architecture explains how firewalls, identity services, endpoint controls, applications, monitoring, and recovery processes work together.
A useful design begins with five questions:
What assets require protection?
Who or what may access them?
Under which conditions is access permitted?
What happens if a control fails?
How will misuse or compromise be detected and corrected?
Security architecture commonly uses the following principles:
Principle
Meaning
Typical architectural consequence
Least privilege
Give only the permissions necessary for an approved task
Separate administrator, operator, and user roles
Complete mediation
Check every relevant access request
Central authorization and consistent enforcement
Fail-safe defaults
Deny access unless it is explicitly allowed
Default-deny network and application policies
Separation of duties
Divide sensitive activities among people or systems
Independent approval and execution
Economy of mechanism
Keep protection mechanisms small and understandable
Reduce unnecessary components and complexity
Open design
Do not depend on secrecy of the design
Protect keys and credentials, not architectural details
Psychological acceptability
Security should be usable enough to be followed
Simple authentication and understandable warnings
Least common mechanism
Minimize shared mechanisms among users or domains
Reduce shared accounts and shared administrative paths
These principles are not absolute rules. For example, strict separation may improve security but increase cost and operational complexity. Architecture is therefore a process of risk-informed design rather than the pursuit of perfect isolation.
2. Security Domains and Trust Boundaries
A security domain is a collection of subjects, objects, and operations governed by a common security policy. A subject is an active entity, such as a user, process, service, or device. An object is a resource, such as a file, database record, device, or API. A domain may be defined by identity, function, data sensitivity, administrative authority, or physical location.
Examples include:
A student domain containing student identities and learning records.
An administrative domain containing payroll and human-resources systems.
A public-services domain containing externally accessible web servers.
A management domain containing privileged administration interfaces.
A safety-critical domain containing industrial control components.
A trust boundary is a point at which assumptions about identity, authority, data quality, or system behavior change. Crossing a boundary should trigger authentication, authorization, validation, filtering, logging, or some combination of these controls. Trust is not binary: a system may be trusted to perform one operation but not another, or trusted only for a limited time and context.
A protection boundary is the technical mechanism that separates domains. Examples include operating-system privilege levels, virtual machines, containers, access-control lists, firewalls, network access-control devices, and physically locked rooms. A trust boundary can exist without a strong protection boundary, which is dangerous. For example, two applications may be managed by different teams but share an unrestricted database account.
The protection state
A system’s protection state consists of the current subjects, objects, permissions, and active security conditions. An access-control model can be represented conceptually as a matrix in which rows are subjects and columns are objects. Each cell contains permitted operations such as read, write, execute, or administer. Real systems rarely store a complete matrix because it can be large; they implement equivalent policies using access-control lists, capability lists, role-based access control, or attribute-based access control.
Role-based access control assigns permissions to roles and roles to users. Attribute-based access control evaluates attributes such as department, device posture, location, resource classification, and time. Attribute-based decisions are more expressive but require reliable, current attributes and careful policy management.
3. Reference Monitors and Trusted Computing Bases
The reference monitor is an abstract security mechanism that mediates every access by a subject to an object. It decides whether the requested operation is allowed according to policy. A reference monitor must satisfy three classic properties:
Complete mediation: every access is checked.
Tamper resistance: the mechanism cannot be modified by unauthorized subjects.
Verifiability: the mechanism is sufficiently small and structured to permit meaningful analysis or testing.
Operating-system kernels, hypervisors, database authorization layers, and policy-enforcement points can implement parts of this idea. In practice, complete mediation is difficult. Direct memory access, cached credentials, emergency accounts, undocumented administrative interfaces, and inconsistent microservices can create paths around the intended monitor.
The trusted computing base (TCB) is the set of hardware, firmware, software, and configuration components that are necessary to enforce the security policy. If a component can undermine the policy, it belongs logically within the TCB, even if it is not called a security product. A smaller TCB is generally easier to review and protect, but reducing it may require more sophisticated interfaces and stronger isolation.
The distinction between trusted and trustworthy is important. A trusted component is relied upon by the security design. Trustworthiness is an assessment of whether that reliance is justified, based on evidence such as secure development practices, testing, formal analysis, configuration control, vulnerability response, and operational history.
Trusted computing technologies
Trusted computing may include:
Secure boot: verifies that approved boot components are loaded.
Hardware security modules and platform security modules: protect cryptographic keys and perform sensitive operations.
Measured boot: records component measurements for later verification.
Remote attestation: allows a verifier to assess reported platform state before granting access.
Virtualization isolation: separates workloads through a hypervisor.
Memory protection: prevents a process from accessing unauthorized memory.
These technologies provide useful evidence and barriers, but they do not prove that an application is free of vulnerabilities or that an authorized administrator will act correctly. They must be integrated with identity, patching, monitoring, recovery, and governance.
4. Segmentation and Secure Architectural Zones
Segmentation divides an environment into areas with different access requirements. Its objectives are to limit attack movement, reduce the scope of compromise, protect sensitive assets, and make monitoring more meaningful.
Common zones include:
Internet or untrusted zone: external networks and unknown clients.
Demilitarized zone (DMZ): public-facing services that require controlled exposure.
Application zone: business logic and service components.
Data zone: databases and storage systems containing valuable information.
Management zone: administrative interfaces and privileged tools.
User zone: workstations, mobile devices, and ordinary endpoints.
Backup and recovery zone: protected copies and restoration infrastructure.
Segmentation can be physical, virtual, logical, or identity-based. A physical network separation may provide strong independence but cost more. Virtual local-area networks, software-defined networking, security groups, host firewalls, service meshes, and application authorization provide flexible alternatives. Segmentation is effective only when traffic between segments is explicitly controlled and monitored. Merely creating subnets without policy enforcement does not establish meaningful security.
A basic layered architecture might place a public web service in a DMZ, permit only necessary traffic from the DMZ to an application service, and permit the application service to query specific database functions rather than granting unrestricted database access. Administrative access should use a separate management path with multifactor authentication, privileged access management, and detailed logging.
Segmented architecture showing users, a DMZ, application services, data services, and management access
Figure: Segmented architecture showing users, a DMZ, application services, data services, and management access
Figure: A basic segmented architecture with controlled east–west access and a separate management path.
Segmentation also limits blast radius. If a public web server is compromised, the attacker should not automatically obtain database credentials, reach backup systems, or access administrative interfaces. However, segmentation can fail through overly broad firewall rules, shared credentials, insecure routing, misconfigured cloud security groups, or management channels that bypass the intended controls.
5. Secure-by-Design Principles
Secure-by-design means that security is built into requirements, architecture, implementation, deployment, and maintenance rather than added after an incident. It is closely related to privacy by design and safety engineering.
A secure development process should:
Identify assets, users, trust boundaries, abuse cases, and legal obligations.
Define security requirements that are testable.
Model threats using data-flow diagrams and techniques such as STRIDE.
Choose secure defaults and minimize attack surface.
Validate all input and encode output according to context.
Protect secrets through managed key and secret storage.
Use dependency inventories and software composition analysis.
Test authentication, authorization, error handling, logging, and recovery.
Deploy with hardened configuration and controlled change management.
Monitor, patch, and retire the system safely.
Security requirements should be specific. “The system must be secure” is not testable. “Administrative actions must require phishing-resistant multifactor authentication and produce tamper-evident audit records” is more useful.
Secure defaults include denying unnecessary network exposure, disabling unused services, requiring encryption for sensitive communications, and preventing debug interfaces in production. Failures should be handled safely: an authorization-service outage may deny a high-risk operation rather than silently grant it. At the same time, availability and safety requirements may require carefully designed emergency procedures.
6. Zero Trust Architecture
Zero trust is an architectural approach in which no user, device, application, network location, or service is automatically trusted. Access is granted dynamically according to verified identity, device or workload condition, requested resource, action, risk, and policy. The central idea is “verify explicitly, use least privilege, and assume breach.”
Zero trust does not mean that every packet must be manually approved, nor does it eliminate networks, firewalls, or segmentation. It shifts the focus from perimeter location to resource-specific policy enforcement.
Policy decision: evaluates whether access should be allowed, denied, or made conditional.
Policy enforcement: permits, limits, or blocks the session and records the decision.
Examples of controls include phishing-resistant multifactor authentication, continuous session evaluation, endpoint health checks, short-lived credentials, workload identity, microsegmentation, just-in-time administration, and strong application authorization.
Zero trust has limitations. Continuous verification can create privacy concerns, operational overhead, false positives, and dependency on identity infrastructure. Poorly designed policies may interrupt legitimate work. A zero-trust program must therefore define recovery methods, service accounts, offline operation, accessibility requirements, and exceptions under formal governance.
7. Defense in Depth
Defense in depth uses multiple independent or partially independent controls so that failure of one control does not immediately expose an asset. Layers may include governance, physical security, identity, network controls, endpoint protection, application security, data protection, monitoring, incident response, and recovery.
The layers should be complementary rather than merely duplicative. For example, encrypting a database, restricting database access, monitoring queries, and maintaining tested backups address different failure modes. Two tools that depend on the same misconfigured identity directory do not provide truly independent protection.
A useful analysis asks:
What attack path could reach the asset?
Which controls interrupt each step?
Which controls detect rather than prevent?
What common dependency could cause simultaneous failure?
How quickly can the organization contain and recover?
Defense in depth is not a guarantee. More controls can increase complexity, create conflicting policies, and generate alert fatigue. Each layer should have an owner, a defined purpose, measurable operation, and a tested response when it fails.
8. Physical and Environmental Safeguards
Cybersecurity architecture depends on the physical world. An attacker who can access a server console, remove a storage device, disable power, or manipulate network cabling may bypass logical controls.
Physical safeguards include perimeter controls, visitor management, badges, guards, cameras, locked server racks, secure media storage, tamper evidence, and controlled loading areas. Environmental safeguards include fire detection and suppression, temperature and humidity control, water-leak detection, redundant power, surge protection, uninterruptible power supplies, generators, grounding, and electromagnetic considerations where relevant.
Controls should be matched to risk. A small office may need locked equipment cabinets, smoke detection, surge protection, and secure disposal. A data center may require multiple power feeds, access mantraps, biometric or badge controls, environmental monitoring, and geographically separate recovery facilities.
Physical controls must also preserve safety, accessibility, and privacy. Cameras should have defined purposes, retention periods, access restrictions, and lawful notices. Biometric systems require careful handling because biometric characteristics cannot be changed like passwords. Emergency procedures must allow evacuation and life safety without creating uncontrolled access.
9. Worked Architectural Example
Consider a university examination platform that stores examination papers, student submissions, grades, and identity information.
Assets and threats. Confidential examination papers could be leaked; submissions could be altered; an account could be hijacked; and a denial-of-service attack could disrupt examinations. Insider misuse and cloud-provider failure are also relevant.
Domains. The design separates public web access, examination application services, grading services, student records, administrative management, and backups. Examination content is classified as highly sensitive until release.
Controls. Students authenticate through institutional identity services with multifactor authentication where appropriate. The web layer is exposed through a protected gateway. Application services use service identities rather than shared administrator credentials. Grading services can read submissions but cannot alter identity records. Database access is restricted to required functions. Administrative access uses a separate management path, approval, short-lived privilege, and session logging.
Trust decisions. A user’s campus location does not automatically establish trust. Access depends on identity, enrollment, examination schedule, device condition, and the particular resource. A student may submit to an assigned examination but cannot retrieve another student’s submission.
Resilience. Encrypted backups are isolated from ordinary administrative credentials and restoration is tested. Rate limiting and capacity planning reduce denial-of-service impact. If the identity service is unavailable, a controlled contingency process is used rather than an undocumented bypass.
Outcome. The architecture reduces exposure, limits lateral movement, creates evidence for investigation, and supports recovery. It does not eliminate risk: compromised endpoints, malicious insiders, software defects, and availability failures remain possible and require monitoring and response.
10. Case Study: Illustrative University Research Network
Background
A university research network supports students, faculty, laboratory instruments, visiting researchers, and public information services. Over time, the network grew through local projects. Several laboratories share administrative credentials, instruments run unsupported operating systems, and a flat network permits broad communication.
Problem
A compromised student laptop could scan laboratory devices, reach file servers, and potentially access research data. The university also lacks a reliable inventory and cannot determine which systems are exposed. Researchers resist controls that interrupt experiments.
Analysis
The principal architectural weakness is not merely the absence of a firewall. It is the lack of meaningful security domains and trustworthy identity information. Research data, laboratory technology, student devices, and administrative services have different risk profiles but share infrastructure and credentials. Unsupported instruments may be impossible to patch, so compensating controls are needed.
Approach
The university first inventories assets and assigns owners. It establishes separate zones for student access, laboratory instruments, research data, administrative systems, public services, and management. Laboratory devices communicate only with approved data-collection services. Researchers receive individual accounts, while instrument service accounts are narrowly scoped and rotated. Administrative access uses a privileged access gateway. Endpoint posture and multifactor authentication influence access decisions. Where instruments cannot support modern agents, network isolation, allow-listed communication, physical controls, and close monitoring compensate.
The university introduces a change advisory process, vulnerability exception records, backup testing, and incident exercises. Researchers participate in design reviews so that security controls support experimental availability rather than merely impose restrictions.
Outcome
The architecture reduces unnecessary communication paths and makes unusual behavior visible. A compromised student device can no longer directly reach laboratory control networks. The university still accepts residual risk for legacy instruments, but that risk is documented, owned, monitored, and reviewed.
Learning points
Segmentation is most effective when based on assets and workflows, not arbitrary subnet labels.
Identity and ownership are prerequisites for meaningful authorization.
Legacy systems require compensating controls and explicit risk acceptance.
Availability and research continuity must be considered alongside confidentiality.
Architecture is an ongoing governance activity, not a one-time diagram.
11. Governance, Ethics, and Professional Practice
Security architecture affects people, institutional power, and privacy. Monitoring should be proportionate to a legitimate purpose, limited in scope, protected against misuse, and communicated clearly. Access decisions should avoid unjustified discrimination based on location, device type, disability, or employment status. Security exceptions should be documented and approved rather than hidden in informal practices.
Organizations should align architecture with applicable privacy, cybersecurity, records-management, accessibility, and sector-specific requirements. Standards and frameworks such as ISO/IEC 27001, the NIST Cybersecurity Framework, NIST zero-trust guidance, and the CIS Controls can support governance, but no framework replaces local risk analysis.
Professionals must preserve confidentiality, report vulnerabilities responsibly, avoid unauthorized testing, and maintain accurate records. Security controls should not be used to conceal misconduct, suppress legitimate research, or collect excessive personal information.
12. Contemporary Developments and Limitations
Cloud computing has moved architectural boundaries from physical networks toward identities, APIs, workloads, and data services. Containers and orchestration platforms require workload identity, image provenance, admission controls, runtime monitoring, and protection of orchestration interfaces. Software supply-chain security increasingly uses signed artifacts, dependency inventories, reproducible or controlled builds, and provenance evidence.
Artificial intelligence can help classify events, identify anomalous behavior, summarize alerts, and prioritize vulnerabilities. It can also produce false positives, amplify biased assumptions, expose sensitive data, or be manipulated by adversarial inputs. AI-assisted security decisions should have defined authority, human oversight for consequential actions, auditability, and safe failure modes.
Architectures also face unavoidable trade-offs. Strong isolation may reduce usability and availability. Continuous monitoring may increase privacy risk. More components create more configuration errors. A mature design therefore measures outcomes such as unauthorized-access reduction, patch exposure, recovery performance, logging coverage, and control failures—not simply the number of security products deployed.
Best-Practice Checklist
Identify assets, owners, classifications, and trust boundaries.
Use least privilege, default deny, complete mediation, and separation of duties.
Keep the TCB and administrative pathways as small as practical.
Segment public, user, application, data, backup, and management functions.
Design for identity-aware, resource-specific authorization.
Build security requirements and threat modeling into development.
Protect keys, secrets, logs, backups, and administrative sessions.
Apply layered preventive, detective, responsive, and recovery controls.
Secure facilities, power, environmental conditions, and media disposal.
Test assumptions through configuration review, exercises, and restoration tests.
Document exceptions, residual risks, owners, and review dates.
Assess privacy, accessibility, safety, and legal obligations.
Chapter Summary
Security architecture organizes controls across systems, networks, applications, data, people, and facilities. Security domains group subjects and objects under a common policy, while trust and protection boundaries identify where assumptions change and where enforcement is required. The reference monitor expresses the need to mediate every access through a tamper-resistant and verifiable mechanism; the trusted computing base contains all components on which that enforcement depends.
Segmentation limits exposure and lateral movement when zones are separated by effective policies. Secure-by-design incorporates security from requirements through retirement. Zero trust replaces implicit perimeter trust with explicit, contextual, least-privilege decisions. Defense in depth combines complementary controls and emphasizes detection, response, and recovery as well as prevention. Physical and environmental safeguards protect the foundations on which logical security depends.
Effective architecture is not simply a collection of tools. It is a governed, tested, risk-informed design that balances confidentiality, integrity, availability, privacy, safety, usability, and cost. Its quality depends on clear ownership, reliable identity, controlled change, evidence-based assurance, and continuous improvement.
Key Terms
Security architecture: A structured design of controls, processes, and responsibilities that protects systems and information.
Security domain: A set of subjects, objects, and operations governed by a common security policy.
Trust boundary: A point where assumptions about identity, authority, or system behavior change.
Protection boundary: A technical or physical mechanism separating security domains.
Subject: An active entity that requests access, such as a user or process.
Object: A resource to which access is requested.
Reference monitor: A mechanism that mediates subject access to objects.
Trusted computing base: Components relied upon to enforce a security policy.
Complete mediation: Checking every relevant access request.
Least privilege: Granting only the permissions necessary for an authorized task.
Segmentation: Dividing systems or networks into controlled security zones.
DMZ: A controlled zone for services requiring limited public exposure.
Zero trust: An approach that grants no implicit trust and verifies access explicitly.
Defense in depth: Use of multiple complementary security layers.
Secure by design: Integrating security throughout the system lifecycle.
Multifactor authentication: Authentication using two or more different factor types.
Microsegmentation: Fine-grained separation of workloads or services.
Remote attestation: Evidence-based reporting of a platform’s measured state.
Compensating control: An alternative safeguard used when a preferred control is impractical.
Residual risk: Risk remaining after controls are applied.
Review Questions
Short Answer Questions
What are the three essential properties of a reference monitor?
Explain the difference between a trust boundary and a protection boundary.
Why does segmentation reduce the impact of a compromised system?
What is meant by “assume breach” in zero-trust architecture?
Give two examples of environmental safeguards.
Long Answer Questions
Explain how the trusted computing base relates to the reference monitor. Discuss why minimizing the TCB can improve assurance.
Compare role-based access control and attribute-based access control, including advantages and limitations of each.
Describe a layered architecture for a public web application that stores sensitive customer data.
Explain how secure-by-design principles influence requirements, development, deployment, and maintenance.
Discuss the benefits and limitations of defense in depth in a modern cloud environment.
Analytical / Application Questions
A hospital has public web services, clinical applications, medical devices, administrative systems, and backups on a largely flat network. Propose security domains, trust boundaries, and access controls, and justify your design.
An organization wants continuous device monitoring for zero-trust decisions but operates in a jurisdiction with strict employee-privacy requirements. Analyze the governance and technical controls needed to balance security and privacy.
A laboratory instrument cannot be patched or equipped with endpoint security software. Design compensating controls and explain how you would verify that the residual risk is acceptable.
Multiple Choice Questions with Answers
Question 1
Which property requires a reference monitor to check every relevant access request?
A. Complete mediation
B. Open design
C. Psychological acceptability
D. Separation of duties
Correct Answer: A. Complete mediation
Question 2
Which component belongs in the trusted computing base?
A. Any component displayed in an asset inventory
B. Any component that can undermine enforcement of the security policy
C. Only the organization’s firewall
D. Only user-facing applications
Correct Answer: B. Any component that can undermine enforcement of the security policy
Question 3
What is the primary purpose of network segmentation?
A. To eliminate the need for authentication
B. To guarantee that no system can be compromised
C. To limit exposure and lateral movement
D. To increase the number of shared credentials
Correct Answer: C. To limit exposure and lateral movement
Question 4
Which statement best describes zero trust?
A. Internal network traffic is trusted automatically
B. Access is granted based only on physical location
C. No entity receives implicit trust; access is explicitly evaluated
D. All access is permanently denied
Correct Answer: C. No entity receives implicit trust; access is explicitly evaluated
Question 5
Which zone commonly hosts a public-facing web service with controlled exposure?
A. Backup zone
B. Demilitarized zone
C. Management-only zone
D. Offline archive zone
Correct Answer: B. Demilitarized zone
Question 6
Which principle means that permissions should be limited to those necessary for an approved task?
A. Least privilege
B. Open design
C. Economy of mechanism
D. Complete mediation
Correct Answer: A. Least privilege
Question 7
A separate administrative network with multifactor authentication primarily protects which architectural function?
A. Public advertising
B. Privileged management access
C. Anonymous browsing
D. Unrestricted file sharing
Correct Answer: B. Privileged management access
Question 8
Which is an environmental safeguard?
A. Input validation
B. Role assignment
C. Uninterruptible power supply
D. API authorization
Correct Answer: C. Uninterruptible power supply
Question 9
Why are two controls that depend on the same misconfigured identity service not fully independent layers?
A. They may fail simultaneously through a common dependency
B. They always provide excessive availability
C. They cannot generate audit logs
D. They necessarily use physical isolation
Correct Answer: A. They may fail simultaneously through a common dependency
Question 10
Which practice most directly supports secure by design?
A. Adding security testing only after deployment
B. Disabling all monitoring to improve usability
C. Modeling threats and defining testable security requirements early
D. Relying on secrecy of the architecture
Correct Answer: C. Modeling threats and defining testable security requirements early