Skip to main content

Principles and threat modeling

Start with assets, users, trust boundaries, and business requirements. Confidentiality, integrity, and availability describe different security objectives. Least privilege limits access to what is required; defense in depth combines controls so one failure does not determine the outcome.

Threat modeling is a structured conversation: draw the system, identify entry points and sensitive data, ask what can go wrong, and prioritize mitigations. Capture assumptions and revisit them when the design changes.

Practice: draw a simple web application with a browser, application server, and database. Mark where trust changes and list one threat and one control for each boundary.