A Threat Model Follows the Request Past the Login Screen
A threat model is a structured picture of a system, the harm that could affect it and the protections meant to address that harm. Threat modeling is the work of building and examining that picture. It makes the design's assumptions explicit so people can question them.
Imagine a file-sharing service. A user signs in, sees a list of their files and clicks one to download it. The page looks simple. Behind that click, the browser sends a request to a server, a program that responds to requests. The server retrieves a stored file and sends it back.
That movement is a data flow. Following it reveals a question the visible page doesn't answer: how does the server decide that this user may read this particular file?
What Is Threat Modeling, and Why Bother?
The browser sends a request, not a permission slip
Suppose the download request contains the file's number. The browser might ask for file 42 because that's the one the page offered. The model should consider what happens if a user supplies a different number.
Showing only permitted files in the page doesn't establish that the server checks every requested file. The page's behavior and the server's permission check are different parts of the design.
The point where the server receives information supplied by the user is a trust boundary in this example. A trust boundary marks a change in what the system can assume about the information or party it is dealing with. Here, the server can't assume the requested file number is permitted simply because it arrived from a signed-in user's browser.
The model might assume that the server checks the user's permission for every requested file. The team can then ask what would happen if that check were missing. A user could request someone else's file, and a server that retrieves it without checking permission could expose its contents.
The Open Worldwide Application Security Project's threat-modeling guidance uses data flows, stores, processes and trust boundaries to help examine possible attack points. The diagram shows which part handles the request and where a protection could be missing.
Turn the concern into something to verify
In the file service, a proposed protection is to enforce access control: checking and applying the rules about which user may read which file. The server would need that decision before returning the contents.
- Learn to ask what could go wrong before a single line of code ships.
- Use a repeatable method instead of guessing where the risks are.
- Catch expensive security mistakes while they are still cheap to fix.
The model connects the concern to the protection. It doesn't prove the finished software has the check in the right place. A test could use two accounts, give each access to a different file and see whether one account can obtain the other's file by changing the request.
The model gives the test an expected rule and a way to challenge it. A passing result would provide evidence about the tested behavior; the rest of the system still has its own flows and assumptions to examine.
The project's overview of threat modeling includes description, assumptions, threats, proposed protections and validation. A list of attack names alone leaves much of that work undone.
Later, suppose the service adds a preview button that shows a file in the browser. The model now needs to follow that request too. Does it use the same permission check, or reach the stored file another way? A small change on the page has created a new design question behind it.
Systems Security Architecture: Follow the Document Request

Access Control: Why One Login Doesn't Open Every Door

Test and Evaluation: What Does a Passing Result Establish?

QUOTE:
"Amateurs hack systems, professionals hack people."
