Independent learning for product cybersecurity professionals
SearchCommentary
Learning library / Engineering secure systemsCSL-202 · Engineering secure systems

System boundaries, data flows and trust boundaries

Turn security thinking into requirements, architecture and implementation.

A system diagram helps you see where information travels and where the level of trust changes.

What you will learn

  • Model components, data stores, actors and communication flows.
  • Identify changes in trust, identity and authority.
  • Use the system model to define analysis and testing scope.

Start with components and flows

SensorGatewayCloud serviceOperator app

For each connection, record its direction, protocol, data, identities and expected timing. Include administration, updates, logging and third-party services as well as the main measurement flow.

Mark trust boundaries

A trust boundary is a point where data or actions move between different security contexts. Examples include a device joining a network, a user signing into a service, or an external service sending data into your application.

At each boundary ask: how is identity established, what is authorised, how is input checked and what happens if the other side is compromised?

Define the scope honestly

Supplier ownership does not remove a dependency from the security analysis. Document what you control, what another party controls and what evidence or operating assumptions you rely on.

Choose a useful level of detail

A system context view shows the product and its external actors or dependencies. A more detailed data-flow view shows processes, stores and exchanges that support particular functions. Begin with a reading, enrolment or update journey and add enough detail to answer security questions. Drawing every internal function can obscure the important boundaries.

Label flows with their purpose and information, not just a transport name. “Sensor reading with device identity and freshness information” tells a reviewer more than “wireless”. Record credentials and configuration flows as well as measurement data. Include backup, support and administrative paths because these may carry more authority than the ordinary user interface.

Trust boundaries are assumptions to examine

A boundary appears where control, ownership, identity or privilege changes. The gateway-to-cloud connection crosses an environment boundary; a cloud request can also cross a customer boundary even while staying within the same infrastructure. A signed-in user moving from viewing readings to changing enrolment crosses an authority boundary.

For each crossing, ask how the source is identified, what information is accepted, which permissions apply and how failure is handled. Physical proximity or an internal network label does not establish trustworthy input. A compromised gateway should be treated as capable of sending unexpected messages, even if it normally belongs to a known customer.

Keep the model aligned with deployment

Document the model’s scope, baseline, assumptions and owner. Different deployments may use different identity services, network arrangements or update procedures. A simplified diagram that is accurate for a demonstration can be misleading for the production product if those differences are invisible.

Use the model as an index into requirements, threat records and test scope. Review it when a supplier, cloud service, support tool or interface changes. Record an exclusion together with the alternative assurance evidence or residual assumption. A third-party component outside direct test authorisation can remain a relevant dependency; ownership boundaries should not erase consequences from the analysis.

Apply the ideas

Draw four flows for the teaching system: readings, account login, device enrolment and firmware update. Mark one customer boundary and one administrator boundary. Identify the path most likely to be missed if the diagram only shows measurement traffic.

Compare your approach

The update-signing and technician-transfer path may be absent from a measurement-only view, despite carrying authority to change executable code. Enrolment also establishes which device belongs to which customer. Mark the cloud’s customer association and the role check for enrolment or configuration changes. Add the identity and update dependencies with their ownership and trust assumptions, then link each sensitive crossing to a verification question.

Review your work

  • Are support, enrolment, update and recovery flows included?
  • Are customer boundaries distinct from network boundaries?
  • Does the diagram describe the actual release configuration?

Keep this output: A context diagram and annotated data-flow view with assumptions and owners.

Continue learning