Portal threat model
Meet the fictional portal
Cedar Office is a fictional small business portal for reading and updating short internal order notes. Two teams, A and B, have separate records. The owner wants staff to work without exposing another team’s information. This capstone combines earlier authorization, data handling, dependency and assessment lessons. All records and actors are invented; the scope is local files and pure Python functions only, never a deployed service.
Assets and trust boundaries
Assets include order notes, membership records, audit events and the approved release. Sketch the flow: staff input → portal handler → authorization decision → record store; handler → HTML text output; handler → audit sink. Identity comes from an assumed trusted session adapter, not editable form fields. Treat submitted notes as untrusted. A build artifact crosses a separate release boundary. The OWASP Threat Modeling Cheat Sheet supports decomposing the design and reviewing mitigations.
Convert risks to requirements
The inert design findings are F1: team isolation not specified; F2: note limits and output context unspecified; F3: audit contents unspecified; F4: dependency evidence missing. Map these to R1: active same-team membership and role; R2: bounded string and HTML text encoding; R3: minimal structured audit event; R4: recorded dependency inventory and reviewed release evidence. Each requirement needs an owner and testable criterion. No finding is a claim about a real company.
Decide what is out of scope
The local model does not implement login, TLS, databases, distributed sessions or browser execution. Its tests cannot prove those protections. No scanning, credential use, web requests or other systems are authorized. Stop if unexpected real data appears. Separate design assumptions from verified facts so an executive can understand what remains unknown.
Practice: build the map
Read the fictional design in fixtures/design.json. Draw the four flows, label which component owns each decision and attach R1–R4 to the relevant boundaries. Explain one consequence of cross-team exposure and one assumption that needs production evidence. Carry this map to the next lesson.
Check Your Understanding
Solidify your learning with the interactive assessment directly below this lesson.
Concept Quiz & Questions
Portal threat model — knowledge check
Apply capstone remediation principles to fictional scenarios.
Which item is a trust boundary?
Where should identity originate?
What makes a requirement useful?
Which task is in scope?
What does an inert finding describe?