Assets, Trust Boundaries, and Attack Surface
Learn how to inventory digital assets, trace data flows, mark trust boundaries, and identify exposed entry points with a practical example.
A practical threat model links valuable assets to the data flows, trust boundaries, and entry points around them. A task-tracker example shows how browser requests, admin actions, telemetry, and deployment credentials can affect different data and privileges. Use the map to ask specific questions, assign owners to unknowns, and update it as the system changes; it helps scope a review but cannot prove every risk was found.
Assets, Trust Boundaries, and Attack Surface
Introduction
Security work gets easier when you can say what needs protection, where information travels, and which parts of a system accept input from somewhere less trusted. These are the starting points for a threat model, whether you are reviewing a small web app or a larger service.
This guide builds a practical map from an asset inventory, through data flows and trust boundaries, to exposed entry points. The goal is useful scope: enough detail to find meaningful risks without drawing every internal function.
Trace Data Flows
A data-flow map shows how actors and components exchange information. For each important flow, note the source, destination, data type, direction, and protection or validation applied along the way.
Consider both normal and administrative flows. A browser may send a task update to an API, which writes it to a database. Separately, an operator may use a console to export records, and a deployment pipeline may receive a credential that can change the API. Those less frequent paths still matter.
A compact diagram is often enough to start. The dashed boundary below marks a change in trust: the browser is controlled by a user, while the API and database are operated by the service team. Authentication does not make browser input safe; the API still needs to validate authorization and content.
flowchart LR
U[User browser] -->|HTTPS request| A[Task API]
A -->|Authorized query| D[(Task database)]
A -->|Metrics without task text| M[Monitoring service]
O[Operator] -->|Admin console| A
subgraph Service boundary
A
D
end
A diagram is a conversation aid, not proof that the production system matches it. Check it against deployment configuration, DNS, identity policies, and the people who operate the service. Update the map when a new integration or route is introduced.
Mark Trust Boundaries
A trust boundary is a place where data, identity, or control crosses between parties with different assumptions or permissions. Common examples include:
- A public network request entering an application.
- A web service calling a third-party API.
- A regular user session entering an administrator function.
- A build runner receiving source code or release credentials.
- A workload moving between cloud accounts or tenant environments.
Boundaries are about control and permissions, not just network segments. Two services on the same private network can have different owners and privileges. Conversely, a trusted provider connection still needs careful handling if the provider can return untrusted content.
At each boundary, ask what crosses it and what the receiving side verifies. Check identity, authorization, input shape, size limits, integrity, and failure behavior as appropriate. Write down the assumptions on both sides. For example, “the API trusts the browser to send a valid user ID” is an assumption that should be challenged; the API should derive identity from the authenticated session and verify access to the requested record.
Find Exposed Entry Points
An entry point is a place an actor can use to influence the system. “Exposed” includes more than internet-facing URLs. It also includes internal APIs reachable by other workloads, file uploads, webhook handlers, support tools, remote management, identity federation, and software update paths.
Inventory entry points by actor and privilege. For each one, record:
- Who can reach it: public users, employees, partner systems, or cloud workloads.
- What it accepts: requests, files, events, commands, credentials, or configuration.
- What identity is checked and what authorization follows.
- What assets it can read, change, or make unavailable.
- Which limits or monitoring would reveal misuse.
Use a discovery process that fits your authority: review your own DNS and cloud configuration, application routes, firewall rules, identity providers, and service catalogs. Do not probe systems you do not own or have permission to assess. If the inventory is incomplete, mark uncertainty and assign an owner to resolve it rather than treating an assumed absence as fact.
For network-focused scoping, see Network Ports and Firewalls. For common web request risks at application entry points, see CSRF, CORS, SSRF, and Common Web Threats.
A Practical Scoping Method
A first pass can fit in a short review. Keep the scope tied to a system boundary, such as one application and its direct dependencies.
- Name the system and outcome. State what it does, who uses it, and which environments are in scope.
- List valuable assets. Include data, identities, services, and control paths; record owners and impact.
- Draw the major flows. Show actors, components, stores, providers, and the data crossing between them.
- Mark trust changes. Note different operators, privileges, networks, tenants, and external parties.
- Enumerate entry points. Include public and internal interfaces, operations, and delivery mechanisms.
- Choose a review focus. Prioritize paths that combine an exposed entry point, a sensitive asset, and a weak or unclear boundary.
- Record unknowns and revisit. Assign owners and update the map when architecture changes.
This method creates a useful starting point, not a certification or a promise that all threats have been found. A deeper assessment may need abuse cases, attack trees, architecture-specific analysis, or specialist review.
Worked Example: A Task Tracker
Suppose a small task-tracking app has a browser client, an API, a relational database, and a hosted monitoring provider. An operator also has an admin console.
The assets include user accounts, task titles and notes, session-signing keys, database backups, and the production deployment identity. Their impact differs: a stolen deployment identity could alter every user’s data, while a short outage of the monitoring provider may have limited direct impact.
The important flows include browser-to-API task updates, API-to-database reads and writes, API-to-monitoring telemetry, operator-to-admin-console actions, and deployment-pipeline-to-production changes. Mark the browser/API edge as a public boundary, the API/database edge as a service privilege boundary, the monitoring connection as a provider boundary, and the deployment path as a control boundary.
The entry points now become concrete: login and task routes, the admin console, the telemetry exporter, and the release pipeline. A scoped review can ask whether the API checks record ownership on every task operation, whether logs avoid sending task notes, whether the console requires a separate privileged identity, and whether release credentials are limited to the intended environment.
This example does not claim those controls are present. It shows how the map helps reviewers ask testable questions and find owners for the answers.
When to Use This
Use this method when starting a threat model, onboarding a system, planning a security review, or assessing the effect of a new integration. It also helps teams find forgotten operational paths such as backup access or deployment credentials.
When Not to Use This
A high-level inventory is not a substitute for incident response, a penetration test, formal risk assessment, or detailed protocol analysis. Do not treat a diagram as a vulnerability scan, and do not use it to authorize testing outside the scope you control. For an active incident, follow the incident response process first.
Production Failure Scenarios
- A forgotten public endpoint: A legacy upload route is absent from the diagram. It accepts files and writes them to storage with broader permissions than the main API. Keep route discovery tied to deployed configuration, not only source code.
- A trusted integration returns hostile data: A partner webhook is marked “internal” and its payload is rendered without validation. Document provider boundaries and validate data at the receiver.
- A sensitive flow is hidden in telemetry: Task text is attached to error events and shipped to a monitoring vendor. Record data fields per flow and review telemetry schemas for sensitive content.
- A privileged path is missing: A CI runner can assume a production role, but the model only shows runtime services. Treat build and deployment identities as assets and entry points.
- Ownership drifts: A diagram names a team that no longer runs the service. Assign owners to inventory entries and revisit them after organizational or architecture changes.
Trade-Off Table
| Choice | Benefit | Cost or limitation |
|---|---|---|
| One-page system map | Fast to review and maintain | Hides detailed protocols and edge cases |
| Separate flow and asset records | Easier to search and assign owners | Requires keeping references in sync |
| Include every dependency | Reduces blind spots | Can make the first review too broad |
| Scope to one service and direct dependencies | Produces actionable questions quickly | May miss shared identity or platform risks |
| Mark unknowns explicitly | Makes gaps visible | Leaves follow-up work that needs an owner |
Start with a bounded scope, but include shared identities and control paths when they can reach the assets in scope.
Observability Checklist
- Can the team detect unusual login, administrative, and deployment activity?
- Are access decisions and important changes logged with a useful actor and resource identifier?
- Do logs avoid storing passwords, session tokens, and sensitive task content?
- Are alerts routed to a team that owns the affected asset or boundary?
- Can responders connect an entry point to the services and data it can reach?
- Are missing telemetry and provider outages visible, with clear retention and access rules?
Observability supports detection and investigation; it does not replace access control or validation.
Security and Compliance Notes
Inventory only the details needed for the review and store the result where system diagrams and asset owners can be maintained safely. Avoid recording credentials, personal data samples, or exploitable configuration details in a broadly shared document. Mark data classifications and applicable handling requirements with the responsible privacy or compliance team; requirements vary by data, location, contract, and organization.
A diagram can help show where regulated data flows, but it does not establish compliance by itself. Keep evidence such as access reviews, retention settings, and approved data-processing arrangements in the appropriate control records.
Common Pitfalls / Anti-Patterns
- Listing only hardware while ignoring identities, data, pipelines, and vendors.
- Calling a boundary “trusted” without naming who controls it and what is checked.
- Treating authentication as authorization for every record or operation.
- Drawing every component before agreeing on the system scope.
- Assuming an internal network makes an endpoint safe from hostile input.
- Marking a flow absent because nobody remembers it; verify deployment and operational configuration.
- Publishing secrets or sensitive infrastructure details in the inventory.
Quick Recap Checklist
- Name the system, its users, and the review scope.
- Inventory data, services, identities, and control paths with owners.
- Trace important information and administrative flows.
- Mark changes in trust, control, and privilege.
- List public and internal entry points and the assets they can affect.
- Turn unknowns into owned follow-up actions.
- Update the map as routes, providers, and responsibilities change.
Interview Questions
Further Reading
- Cloud Security for controls around cloud accounts and hosted services.
- Network Security for network-level protections and common design concerns.
- Network Ports and Firewalls for reviewing reachable network services.
- OWASP Threat Modeling Cheat Sheet for a structured system-modeling and threat-identification workflow.
- OWASP Attack Surface Analysis Cheat Sheet for reviewing entry and exit points as a system changes.
Conclusion
A useful security map connects what matters to how it moves and who can influence it. Start with a small asset inventory, trace the important flows, mark where control or privilege changes, and list every meaningful way into the system. Then use the map to ask focused questions, assign unknowns, and revisit the scope when the system changes.
Category
Related Posts
Threat Modeling Basics: Find Risks Before They Ship
Learn a practical threat modeling workflow: scope a system, map data flows and trust boundaries, prioritize risks, and choose defenses before release.
Threats, Vulnerabilities, and Risk: A Security Primer
Learn how assets, threats, vulnerabilities, likelihood, impact, and controls fit together through a practical risk assessment for a small donation website.
Access Control Models and Least Privilege
Learn how DAC, MAC, RBAC, and ABAC control access, how least privilege limits damage, and how to review human and service permissions safely.