Course contentsShow
← Security
Lesson 2646 of 3,05250. Secure Architecture and DesignFree lesson

Identifying Trust Boundaries in Systems

Techniques for discovering and documenting trust boundaries in existing systems, including data flow diagrams and architectural reviews.

Identifying Trust Boundaries in Systems

What you'll learn: Practical techniques for discovering and documenting where trust changes in existing systems, so you can properly defend those critical crossing points.

The Challenge of Hidden Boundaries

You already understand what trust boundaries are—now you need to find them in real systems. Unlike greenfield architecture, existing systems rarely document their trust boundaries clearly. Components evolve, integrations multiply, and implicit trust assumptions get buried in code. Your job is to make the invisible visible.

Core Discovery Techniques

Data Flow Diagramming

Start by mapping how information moves through your system. Draw boxes for components and arrows for data flows. Mark where data crosses:

  • Network boundaries (internal ↔ DMZ ↔ internet)
  • Privilege levels (user ↔ admin ↔ system)
  • Organizational boundaries (your company ↔ vendor ↔ customer)
  • Trust zones (authenticated ↔ unauthenticated)

Each crossing is a potential trust boundary requiring validation.

Architectural Review Walkthrough

Interview developers and review architecture docs asking:

  • "Who can call this service?"
  • "What assumptions does this component make about input?"
  • "Where do we verify credentials or permissions?"
  • "Which data requires special handling?"

Privilege Change Points

Look for authentication checks, authorization gates, encryption/decryption operations, and input validation—these often mark trust boundaries.

Execution Context Shifts

Identify where code runs as different users (web app → database, user process → privileged daemon, client-side → server-side).

Think Like a Pen Tester

Ask: "If I compromised this component, what could I now access?" The answer reveals whether a trust boundary exists between them.

Key Takeaway: Trust boundaries hide in plain sight—use data flow diagrams, architectural reviews, and privilege analysis to systematically uncover where your system changes trust assumptions and requires security controls.