How to Identify and Review Trust Boundaries in Web Systems
A trust boundary is a connection where one component must decide how much to rely on another component’s identity, permissions, data, or operating controls. Do not draw boundaries only around firewalls or VPCs. For every connection, ask who trusts whom, based on what evidence, and for which action. Trust is specific to a request and resource, not a permanent property of a network zone.
How to Identify and Review Trust Boundaries in Web Systems
A trust boundary is a connection where one component must decide how much to rely on another component’s identity, permissions, data, or operating controls. Do not draw boundaries only around firewalls or VPCs. For every connection, ask who trusts whom, based on what evidence, and for which action. Trust is specific to a request and resource, not a permanent property of a network zone.
Network boundaries are not the whole picture
Network boundaries limit communication through routing, firewalls, or subnets. Trust boundaries concern the identity, authority, data, and assumptions a component accepts. They may overlap, but they are not interchangeable. An API and backend can share a cloud network while using different service identities and permissions; the backend still needs to authenticate and authorize calls. Browser input remains untrusted until the application validates it, even if the device belongs to an employee. OWASP advises against granting access solely because a component is internal or owned by the same organization.
Review whether a separate boundary or validation point is needed when the caller or identity issuer changes; the permitted actions or data scope changes; a tenant, service, or privilege level changes; operational responsibility changes; data provenance, integrity, or sensitivity changes; or a compromise could affect a different set of resources.
Hypothetical example: document upload and scanning
The following is a hypothetical B2B document service, not an observed product or a security test. A user uploads a file to an API, which queues a scan. A worker checks the isolated object, an external signing provider sends a webhook, and an administrator manages tenant settings.
| Connection | What changes | Questions and evidence to check |
|---|---|---|
| Browser → upload API | User device and service have different operators | Is the session valid? Can this user upload to this tenant? Does the server limit file size, type, and destination? |
| API → job queue | A synchronous request becomes asynchronous work | Which workload identity can publish? Does the consumer recheck tenant and object references? Are retries and duplicate messages safe? |
| Worker → object storage | Worker permissions reach stored content | Are permissions limited to the quarantine store and required operations? Is a user-controlled object name validated? |
| Signing provider → webhook receiver | An external party sends an Internet request | Are signature, timestamp, replay, and duplicate events checked before state changes? |
| Admin console → tenant settings | Higher operational privileges apply | Are admin actions separately authorized and audited? Can this path bypass customer API checks? |
This example is illustrative. A separate component does not automatically need an expensive independent control stack, but internal calls are not all equally trustworthy. Choose controls according to data sensitivity, privilege differences, compromise impact, and operating cost; record the rationale.
A practical review sequence
**List components and important data.** Include APIs, stores, queues, external integrations, admin paths, tokens, tenant IDs, webhook events, and logs. OWASP’s microservices guidance recommends inventories of services, infrastructure, stores, queues, and synchronous or asynchronous communication.
**Record identity and operator.** Note who builds, deploys, and operates each component, how users authenticate, and which workload identity calls another service. A shared cloud subscription does not prove shared operational control. Microsoft documents a Discovery-specific example where managed and customer-managed resources can share a subscription and tenant but have different operators; this is not a rule for every cloud service.
**Mark crossings and justify them.** In a DFD or equivalent model, record endpoint identities, where authentication and authorization are enforced, transit protection, and assumptions. Check deployed configuration and runtime behavior, not just the diagram.
**Define crossing decisions.** Who is calling? May that identity perform this action on this object and tenant? Are format, size, origin, signature, and version checked? Can a retry or replay change state twice? Are privileges limited to what the caller needs? Are allow and deny decisions logged without secrets? What happens safely when a check or dependency fails?
**Test bypass and failure paths.** Examine direct service calls, alternate APIs, admin routes, webhook retries, queue redelivery, and recovery. A gateway may authenticate a request while a service still needs to authorize it using resource and business context. Check allowed and denied cases, such as another tenant’s document ID, an invalid webhook signature, an unauthorized queue publisher, and a direct call that bypasses a gateway. These are example test ideas, not tests performed for this article.
Authentication answers who the caller is; authorization answers what that caller may do in this request. A valid session or service identity does not grant arbitrary operations or access to another tenant’s data.
Common design mistakes
Treating an internal network as proof of trust: segmentation helps, but does not replace identity and action checks.
Confusing authentication with authorization: an authenticated identity still needs permission for the requested action, object, and tenant.
Checking only at a gateway: confirm alternate routes cannot bypass necessary service-level authorization.
Inferring the operator from subscription ownership: credentials, patching, and day-to-day control may belong to different parties.
Documenting a boundary without checking enforcement in deployed policy and runtime behavior.
Creating a separate boundary for every tiny connection: excessive segmentation increases latency, complexity, and operating burden. Keep distinctions that matter to data, authority, and compromise impact.
Ask: “Who uses which identity and permission to perform what action on which data, and where is that decision enforced?” The answer connects threat analysis to controls that can be inspected and tested.
Sources
OWASP, [Secure Cloud Architecture Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/Secure_Cloud_Architecture_Cheat_Sheet.html) — trust decisions between components, access beyond network or ownership, and risk/cost trade-offs.
OWASP, [Microservices-based Security Architecture Documentation Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/Microservices_based_Security_Arch_Doc_Cheat_Sheet.html) — inventories, justified boundaries, identity, authentication, authorization, transit protection, and verification against deployment behavior.
OWASP, [Threat Modeling Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/Threat_Modeling_Cheat_Sheet.html) — connecting system models to threat identification, responses, and review.
Microsoft Learn, [Data flows and threat model for Microsoft Discovery](https://learn.microsoft.com/en-au/azure/microsoft-discovery/concept-data-flows-threat-model) — a documented service-specific example of boundaries based on hosting and operating responsibility; deployments vary.
Microsoft Learn, [Create a threat model using data-flow diagram elements](https://learn.microsoft.com/mt-mt/training/modules/tm-create-a-threat-model-using-foundational-data-flow-diagram-elements/) — a trust boundary as a DFD trust-zone change element.