PLAIN/TEXT — ISSUE 243/456 COMPUTER SCIENCE · FOUNDATION / SECURITY DESIGN · ~4 MIN READING DATE: 2027-06-01 ARCHIVE: https://plaintext.click/newsletter/ SUBJECT: Where should an app stop trusting a message? Where should an app stop trusting a message? ============================================ / START HERE A delivery app receives addresses, payment instructions and messages from several different people. A threat model is a structured description of what a system protects, what could go wrong and how its design responds. It helps a team notice dangerous assumptions before those assumptions become working software. / WHY NOW Imagine a parcel service that accepts a customer address and passes it to a warehouse. The address is useful information, but accepting it should not give the customer permission to change warehouse instructions. / THE IDEA Start by naming an asset: something worth protecting, such as the list of paid orders. Then name the actors, meaning people or programs that interact with it. Draw where information moves and which component makes each important decision. A trust boundary is a point where information or control crosses between different levels of authority. A customer browser and a warehouse database occupy different sides. Data crossing the boundary needs checks appropriate to its new job; being valid text does not make a payment status true. The model asks what an attacker can supply, what the receiving component assumes and what happens if the assumption is false. A useful response changes the design or adds a test, rather than merely labelling the arrow dangerous. / THE FORMAL IDEA untrusted claim → independent check → permitted action - The arrow means the next decision in the workflow, not a mathematical implication. - Untrusted means the receiver cannot rely on the sender for that particular claim; it does not mean every sender is malicious. / RUN THE TINY EXAMPLE Change one thing. Predict what happens. Customer sends order 42 with paid = true. Server checks its own payment record: unpaid → do not dispatch. Change only the server record to paid → dispatch becomes eligible. Changing the customer-supplied flag alone never changes payment authority. The toy test identifies the boundary precisely. The customer can choose a delivery address, but cannot create evidence that money arrived. A separate check links dispatch to the record that actually has authority over payment. / SO WHAT? This makes review questions concrete: who can edit this field, which component trusts it, and what prevents the wrong action? Repeat the exercise when a new integration appears. A partner service may have permission to report delivery without permission to refund an order. Authority is specific, not a single trustworthy-or-untrustworthy label. / ONE CAVEAT A model is not proof that a system is safe. Missing actors, hidden dependencies and changed workflows can invalidate it; testing and updating the assumptions remain necessary. / KEEP THIS When a message crosses into greater authority, verify the claim using evidence that the sender cannot simply invent. / SOURCE TRAIL [1] OWASP — Threat Modeling https://cheatsheetseries.owasp.org/cheatsheets/Threat_Modeling_Cheat_Sheet.html [2] FreeBSD — Trust and secure design https://docs.freebsd.org/en/books/developers-handbook/secure/ NEXT: Why does a glowing gas choose particular colours? --- HARD IDEAS. PLAIN TEXT. You are receiving this because you asked for one clear computer-science or physics idea each day. Unsubscribe: https://plaintext.click/unsubscribe View in browser: https://plaintext.click/newsletter/2027/06/2027-06-01-threat-model-trust-boundary.html From: Plain/Text / Brickston Consulting · 30 N Gould St Ste N, Sheridan, WY 82801 US · knowledge@plaintext.click