Security Architecture and Threat Modeling
In this illustrative scenario, a retailer’s annual security review produces a clean report. Multi-factor authentication on the identity provider: present. Encryption at rest and in transit: present. Network segmentation between the payment environment and everything else: present. Centralized logging: present. Vulnerability scanning on a weekly schedule: present. Every control in the list passed.
Four months later an attacker exports the customer table. The path was not exotic. A contractor’s account had a long-lived API credential, issued during a migration two years earlier, with permissions nobody had revisited. The credential worked from the internet, skipped the identity provider entirely because it was not an interactive login, and read the database through a service that was inside the segmented network. The logs recorded every request, correctly, and nobody was looking at that log because it had never produced anything interesting.
Each control did what it was specified to do. None of them was responsible for noticing that a single credential opened the whole path, because no control in the list is written in terms of paths. The review measured presence; the attacker used reachability.
Security architecture is the discipline that closes that gap, and it does so mostly by fixing the order of the questions. Not which controls do we have, but: what would hurt if it were compromised, who is allowed to reach it, by what routes, and what does each control assume in order to work.
Two definitions, and why the difference is practical
Information security and cybersecurity overlap. NIST’s glossary collects definitions from several publications, whose purposes and scope matter when applying them.
The information-security definition sourced to FIPS 200 concerns protecting information and information systems against unauthorized access, use, disclosure, disruption, modification, or destruction to preserve confidentiality, integrity, and availability. An asset inventory can therefore include a printout as well as a database, with controls for the people and processes handling both.
The cybersecurity definition sourced to CNSSI 4009-2022 covers protection and restoration of computers and electronic communications, including the information they contain. It also names authentication and nonrepudiation alongside confidentiality, integrity, and availability. Another definition, sourced to NISTIR 8170, describes defending the use of cyberspace against cyberattacks. These formulations have different contexts; none makes an electronic spreadsheet automatically fall outside cybersecurity.
An incident can expose gaps between an organization’s actual responsibilities, regardless of the program’s name. A supplier-held file may have unclear ownership, contractual safeguards, or escalation routes even when everyone considers it part of cybersecurity. State which assets and activities the program covers, what applicable obligations require, and who owns the remaining responsibilities. The existence of several glossary definitions does not remove those obligations.
Start from what would hurt
The reason the retailer’s review failed is that it started from the control list. Reverse it: the first question is what you are protecting, and the honest form of that question is what a compromise would cost.
An inventory should include the means of access and the evidence needed to investigate misuse, as well as the business data itself.
- Credentials and keys are assets in their own right. They support protective mechanisms but also need protection: compromise may grant access within their authority or expose encrypted data. Listing a customer database without the credential that reads it leaves an important dependency unexplained.
- Evidence is an asset. An audit log helps establish what happened. If an attacker can alter or delete it, the investigation loses evidence, although independent logs or other records may still establish part of the scope. Protecting the evidence trail requires explicit access, integrity, and retention decisions alongside protection of the business data.
Name each asset’s protection goals before choosing mechanisms. Additional replicas can improve recovery or availability while adding locations where confidentiality must be enforced; neither goal is defined by a copy count. NIST’s integrity definition concerns improper modification or destruction, so authorized updates and deletion can preserve integrity. Immutable records may help protect evidence, but retention and deletion requirements must be designed together. An accountable owner should resolve such choices using the vocabulary in security assets and the CIA triad.
For each relevant asset, record what would be lost, which protection goals matter, and who is accountable. Use an overview linked to detailed inventories when the system requires it. The inventory’s value depends on coverage and usability, not whether it fits on one page.
Boundaries, then paths
A trust boundary is where the assumptions change: what the receiving side is willing to accept, and what it is willing to do on the strength of it. The useful discipline is counting boundaries rather than machines, because the interesting ones are often inside a single service.
Look for changes in control over input, identity authority, and execution. Data arriving from outside your control crosses an input boundary. An identity acting through another authority crosses a permission boundary, and a component interpreting input as instructions may cross into execution. A request handler that fetches by a user-supplied identifier therefore crosses a boundary that a network diagram alone may not show.
With boundaries named, paths become countable. A path is a sequence of boundary crossings that ends at an asset, and the exercise is to enumerate them for each asset rather than to admire the diagram. The retailer’s path was short: internet, credential, service, database. The attack surface is the collection of such entry points, and the reason it is bigger than the list of public endpoints is that inputs arrive indirectly โ a document an assistant reads, a dependency an update pulls in, an administrative console reachable from a laptop.
A control can block a particular attack route while allowing legitimate communication. As OWASP’s network-segmentation guidance illustrates, an application tier can reach a database while direct access from another tier remains blocked. The retailer’s service was an allowed route, and its credential retained excessive read permission; segmentation alone did not prevent that misuse. For each route, identify the enforced restriction and its assumptions, then check authorization on allowed paths. A failed assumption can undermine a control, but the existence of a permitted connection does not erase the restrictions on other connections.
It also pays to separate the weakness from the scenario. A threat is a potential harmful action while a vulnerability is a weakness that enables it, and conflating them produces a list where attacker steals data sits next to library is out of date as though they were the same kind of item. They get fixed by different people on different timelines.
What a threat model is, and what it is not
A threat model connects assets, possible attacks, and defenses. NIST describes threat modeling as a form of risk assessment covering both attack and defense aspects of an entity such as data, an application, a host, or an environment. The result should support prioritized judgments within a stated scope. Listing threats without decisions about their treatment leaves the assessment unfinished.
OWASPโs guidance, drawing on the Threat Modeling Manifesto, organizes the work around defining the system, identifying possible failures or attacks, choosing how to address them, and assessing whether the resulting work is sufficient.
Assessing sufficiency covers both the model’s coverage and the quality of its response to threats. Compare modeled paths with relevant incidents and examine the system from different attacker positions. Also check whether agreed mitigations were implemented and reduce risk as intended, using appropriate evidence and tests. Incident comparisons can reveal omissions; they do not by themselves establish that a mitigation works.
OWASP treats threat modeling as part of normal development and calls for the model to be maintained as the system changes. A previous model can remain useful within unchanged scope. The risk is treating invalidated assumptions or unexamined changes as current evidence. Record the version, review date, covered system state, and unresolved changes so readers can distinguish supported conclusions from what needs reassessment.
Structured prompts help identify threats. STRIDE asks about spoofing, tampering, repudiation, information disclosure, denial of service, and elevation of privilege. Those categories can reveal insider misuse or business-logic abuse, for example through unauthorized disclosure or changes to data. They do not guarantee completeness. Examine legitimate permissions and harmful sequences of otherwise allowed actions as well as conventional technical attacks.
Assess prevention, detection, response, and recovery
A security control is a safeguard or countermeasure for an information system or organization that serves defined security requirements, as NIST’s glossary explains. Make the requirement explicit so an assessment can distinguish presence, correct implementation, and effectiveness. An undocumented requirement may be recoverable from policy or design evidence; its absence from an inventory is a reason to clarify the objective, not proof that the mechanism provides no protection.
Controls serve different purposes. NIST CSF 2.0 organizes cybersecurity outcomes under Govern, Identify, Protect, Detect, Respond, and Recover without prescribing a particular implementation. Use those functions to look for gaps in the program. The table below gives practical assessment examples for preventive, detective, responsive, and recovery mechanisms; it is not a complete control taxonomy.
| What it does | Example | How you know it works |
|---|---|---|
| Prevents | Authorization check, network rule, signed artifact requirement | Inspect the rule and attempt the forbidden action from relevant attacker positions. Record test coverage; an untested rule has uncertain effectiveness, not proven ineffectiveness |
| Detects | Alert on anomalous export volume, integrity check on the log | Inject the condition and verify detection, analysis, and alert delivery. Measure those delays separately from the time until human or automated response |
| Responds | Credential revocation, session termination, isolation of a host | Exercise it. How long to revoke every credential a compromised identity holds โ and is the list of them knowable? |
| Recovers | Restore from a copy the attacker could not reach | Restore it and check the result, on a schedule. Proving this is a different exercise from proving backups exist |
Assessment methods should fit the control and the decision. NIST SP 800-53A combines examination, interviews, and testing; an exercise can reveal behavior that a configuration review misses, while a review can establish scope, authority, or operating evidence an isolated test cannot. In the retailer scenario, logging captured requests but no detection rule or response path covered this export. Lack of prior testing left that gap undiscovered; lack of testing alone would not prove a control failed.
NIST defines a compensating control by the equivalent or comparable protection it provides in place of a recommended control. A sign-off recorded only in a ticket does not enforce a permission boundary if execution can bypass it. An approval bound to a specific transaction and enforced on every server-side execution path can be a protective mechanism, as OWASP’s transaction-authorization guidance explains. Whether it qualifies as compensation depends on the original requirement, threats, bypass resistance, residual risk, and acceptance process. The existence of an approval step is insufficient evidence either way.
Evaluate shared failure causes
Defense in depth combines barriers across a system so that failure or bypass of one need not expose the asset. NIST’s definition integrates people, technology, and operational capabilities across multiple layers. The design question is which protection remains in a specified failure scenario, not whether every individual control can be declared nonessential.
Three rules using one policy engine and identity claim may all be defeated by compromise of that engine or a forged claim they all accept. They can still restrict different actions under other conditions. The retailer’s case illustrates a different gap: the non-interactive credential bypassed the interactive identity provider, then passed the service’s authorization check under an overly broad grant. That does not show that every downstream control inherited an identity-provider decision.
For each path, ask which shared identity source, secret store, operator, clock, or trust premise could defeat multiple barriers, and under what conditions. Record the barriers that remain effective in each scenario. Shared dependencies can correlate failures without making controls identical or yielding a universal layer count. This resembles analysis of failure domains: blast radius asks how far a particular compromise can reach, while the layered design asks what limits it.
Additional layers also add configuration and operating work, which can introduce mistakes. Evaluate the protection gained against the complexity the team can maintain. Depth around a database does not establish protection of a separate analytics copy; assess that copy’s own paths and controls. That is why isolation and least privilege belong in the same design discussion.
An order that produces decisions
Define scope and assets before tracing paths, then assess the controls on those paths and maintain the resulting decisions as the system changes. That dependency gives the following work its order.
- Write down the scope, including responsibilities for excluded assets or activities. Resolving ownership before an incident can reduce delays during response.
- List the assets that would hurt, with the primary protection goal and an accountable owner for each. Include credentials and the evidence trail.
- Name the trust boundaries, including the ones inside services, and then enumerate the paths from an attacker’s position to each asset.
- For each path, identify its controls and their assumptions. Check credential scope, lifetime, and alternate authentication routes. This creates an opportunity to find the contractor’s excessive grant; it does not guarantee complete discovery.
- Assess controls using methods appropriate to their purpose and risk. Review evidence and interview responsible people where useful; exercise forbidden actions, detection, revocation, and restoration where those tests are suitable. A sample of one control per kind can begin an assessment but does not establish coverage of the system.
- Keep the model current within its stated scope. Review relevant changes, compare modeled paths with incidents, and reassess mitigation effectiveness. Mark unexamined changes and remaining uncertainty.
For a named asset, the team should be able to explain who may reach it, by which routes, what restricts or detects misuse, and what those mechanisms assume. The exercise can expose excessive credentials and missing response paths that a presence-only inventory overlooks. Record its evidence and limits rather than treating a completed model as assurance that all paths were found.
The retailer’s authorization logic received the credential’s requests and correctly enforced an overly permissive policy. Reaching a check, implementing its policy correctly, and having an appropriate policy are separate claims. The corrective work includes revisiting the grant and the non-interactive credential lifecycle, as well as checking detection and response for misuse of permitted access.
References
- NIST CSRC Glossary โ information security
- NIST CSRC Glossary โ cybersecurity
- NIST CSRC Glossary โ threat modeling
- NIST CSRC Glossary โ security control
- NIST CSRC Glossary โ compensating security control
- NIST CSRC Glossary โ defense in depth
- OWASP Cheat Sheet Series, Threat Modeling
- NIST, The NIST Cybersecurity Framework (CSF) 2.0
- NIST CSRC Glossary โ Integrity
- OWASP โ Network Segmentation Cheat Sheet
- NIST SP 800-53A Rev. 5 โ Assessing Security and Privacy Controls
- OWASP โ Transaction Authorization Cheat Sheet
Discover more from Insightful Data Lab
Subscribe to get the latest posts sent to your email.
