Threat Modeling and Attack Surface Analysis Questions
Systematically identifying how a system can be attacked and where its exposure lies. Covers structured methodologies (STRIDE, PASTA, DREAD, OCTAVE, attack trees), enumerating and reducing attack surface, mapping trust boundaries and data flows via DFDs, profiling likely threat actors, and prioritizing identified threats by likelihood and impact during design. Includes applying this methodology to specific architectural substrates (cloud-native and serverless, microservices, ML/AI systems, IoT, CI/CD pipelines, cryptographic subsystems) and operationalizing it as a recurring program (SDLC integration, governance, tooling, KPIs). The proactive 'think like an attacker before you build' discipline: distinct from live penetration testing (the adversarial validation of a built system), from runtime detection/monitoring (recognizing an attack already in progress), and from implementing the resulting security controls (a separate design-and-build discipline).
During an architecture review you discover several chained weaknesses that together enable privilege escalation: an exposed admin endpoint (high exposure), a weak auth policy (medium), and an outdated library with a remote code execution bug (low). Discuss how you would prioritize mitigations, propose immediate and medium-term actions, and explain what residual risk (if any) you would accept and why.
Sample Answer
Direct answer
The individual severity ratings given, high exposure on the admin endpoint, medium on the weak authentication policy, low on the outdated library, are each true in isolation but misleading as a prioritization guide, because chained together they form a single privilege-escalation path: an attacker reaches the admin endpoint (exposure), gets past its authentication with comparatively little effort (weak policy), and once inside uses the outdated library's remote code execution (RCE) bug to escalate from application-level admin access to full code execution. The chain's severity is not the average or the maximum of the three individual ratings, it is closer to the severity of the worst outcome the chain enables, full remote code execution reachable by anyone who can find the admin endpoint. Immediate action should break the chain at its cheapest, fastest link (restricting exposure and hardening authentication), while the medium-term action retires the actual root cause (the vulnerable library), and any residual risk accepted should be scoped narrowly and time-boxed, not a blanket acceptance of the finding.
Structured elaboration
Why chaining changes prioritization
A chain of weaknesses is only as strong as an attacker's ability to link them, and here the linkage is straightforward: exposure gets an attacker to the door, weak authentication gets them through it, and the outdated library is what they use once inside. Treating these as three independent low/medium/high findings, each triaged on its own severity, misses that fixing any one link breaks the whole chain, which means the actual prioritization question is not "which finding is individually most severe" but "which link is cheapest to break, and which link removes the underlying cause."
- The exposed admin endpoint (high exposure) is the entry condition. Reducing its exposure, for instance restricting it to an internal network or a VPN, does not fix the authentication weakness or the library bug, but it removes the attacker's ability to reach either one from the open internet, which is the highest-leverage single action available.
- The weak authentication policy (medium) is the actual gate an attacker has to get through. Its "medium" rating in isolation undersells its role in the chain: it is the difference between "an attacker with network access can log in" and "an attacker with network access still cannot get past authentication."
- The outdated library with a remote code execution bug (low) is rated low individually, plausibly because it is hard to reach from outside without first getting past the admin endpoint and its authentication. That "low" rating is exactly the assumption the chain invalidates: once the first two links are crossed, the library's bug is directly reachable, and RCE is about as severe an outcome as this kind of finding gets.
Prioritizing mitigations
The right order is the one that breaks the chain fastest and cheapest first, then removes the deepest root cause:
- Restrict exposure of the admin endpoint (network-level access control, a VPN or an allowlist), because this is typically a configuration change, not a code change, and it removes the attacker's ability to reach either downstream weakness at all.
- Harden the authentication policy (enforce multi-factor authentication, remove weak or default credentials, add account lockout on repeated failures), because even with reduced exposure, defense-in-depth means the second link should not be trivially crossable either.
- Patch or replace the outdated library, because this is the true root cause: even after the first two mitigations reduce likelihood of reaching it, the vulnerability itself still exists, and a future exposure or authentication regression would reopen the whole chain.
Immediate actions (hours to days)
- Apply a network-level access restriction on the admin endpoint (firewall rule, VPN requirement, IP allowlist) as an emergency configuration change, since this typically does not require a code deployment and can often be done same-day.
- Force a password reset and enable account lockout on the admin authentication path as an interim hardening step, buying time before the fuller authentication overhaul below.
- If the outdated library's specific RCE bug has a known, narrow trigger condition, apply a targeted mitigation (a web application firewall rule, disabling the specific vulnerable code path if it is not load-bearing) as a stopgap, explicitly not a replacement for the real fix.
Medium-term actions (weeks)
- Implement proper multi-factor authentication and role-based access control on the admin interface, replacing the interim password-reset-and-lockout measure with a durable fix.
- Upgrade or replace the outdated library to a version without the RCE bug, including regression testing, since a rushed library upgrade that breaks functionality creates its own incident.
- Add monitoring and alerting on the admin endpoint specifically (unusual access patterns, repeated authentication failures, requests hitting the previously vulnerable library code path), so a future attempt to exploit any remaining weakness in this chain is caught quickly rather than silently.
Residual risk: what to accept, and why
After the immediate and medium-term actions above, most of the chain's severity is retired: exposure is restricted, authentication is hardened, and the library is patched. A defensible residual risk to accept, time-boxed and narrow, might be: the interim network restriction relies on VPN configuration correctness, and a misconfiguration there would reopen exposure; this is accepted for the short window between the immediate fix and a planned network-segmentation review, with an explicit expiration date and an owner who re-verifies the VPN configuration before that date. What should not be accepted is the underlying RCE-capable library staying unpatched indefinitely on the theory that exposure and authentication now protect it: that is accepting the deepest, highest-severity link in the chain based on the continued correctness of the two shallower mitigations, which inverts the actual risk logic, since exposure and authentication protections can themselves regress (a misconfigured firewall rule, a credential leak) in ways a patched library does not.
Worked example
Trace the chain end to end as an attacker would: (1) the attacker scans and finds the admin endpoint publicly reachable, the high-exposure finding realized; (2) the attacker attempts the weak authentication policy, for example a default or easily guessed administrative credential, and gets in, the medium finding realized; (3) once authenticated as admin, the attacker discovers the application uses the outdated library and triggers its known remote-code-execution bug to get a shell on the underlying host, the low finding realized as the actual payload. Compare this to the same three findings without chaining: if the admin endpoint had never been exposed, steps 2 and 3 are simply unreachable from outside, and the "low" rating on the library finding would have been an accurate reflection of real-world risk. The exposure finding is what converts two lower-likelihood findings into a realized full-compromise chain, which is exactly why breaking that first link is the highest-leverage immediate action.
Trade-offs and pitfalls
- The classic wrong turn is triaging each finding purely by its individual severity label and working the "high" one first in isolation, missing that the "low" library finding is actually the most damaging outcome once the chain is considered as a whole.
- Fixing only the library bug and leaving the endpoint exposed and weakly authenticated removes today's specific chain but leaves the door open and weakly guarded for the next vulnerability discovered in any other component reachable from that same admin interface; the exposure and authentication weaknesses are reusable attack primitives, not specific to this one library bug.
- Accepting broad, open-ended residual risk on the grounds that "we fixed the two easy ones" is a common failure mode; the residual-risk decision above is deliberately narrow (one specific dependency, one specific expiration date, one specific owner) rather than a general acceptance of "some risk remains," because an unscoped acceptance cannot be tracked, re-evaluated, or expired.
- A senior answer explicitly reasons about the chain's combined severity rather than defaulting to whichever individual finding carries the "high" label, since that is the entire point a chained-weakness scenario is testing.
Construct an attack tree for a payment authorization endpoint in an e-commerce system. Include branches for credential compromise, API abuse, man-in-the-middle, database tampering, and supply-chain compromise. For each major branch provide at least two leaf nodes describing specific attack steps and propose mitigations targeted at the highest-probability leaf nodes.
Sample Answer
Direct answer
An attack tree for the payment authorization endpoint has one root goal, force an unauthorized or fraudulent authorization to succeed, and five named branches, each of which needs at least two concrete leaf nodes before it's actionable. Ranking the leaves by how easy and cheap they are for an attacker to pull off, not just by how severe a successful attack would be, is what determines which mitigations to build first: the highest-probability leaves here are credential-based, not the more dramatic-sounding database tampering or man-in-the-middle paths.
Structured elaboration
Root: unauthorized payment authorization
Branch 1: credential compromise
- Leaf 1a: phished or stolen customer credentials used to authorize a payment as the legitimate user.
- Leaf 1b: a leaked or over-privileged service-account credential (used by a backend integration) reused directly against the endpoint.
Relative probability: high. Credential phishing at internet scale is cheap and automatable, and password reuse across services means a breach anywhere can supply working credentials here.
Branch 2: application programming interface (API) abuse
- Leaf 2a: credential stuffing, automated testing of breached username/password pairs against the login step ahead of authorization.
- Leaf 2b: business-logic abuse, such as replaying or racing authorization requests to exploit a missing idempotency check and get a single payment authorized (or refunded) multiple times.
Relative probability: high. Both are automatable and don't require compromising any single account first; they attack the endpoint's own logic and rate limits.
Branch 3: man-in-the-middle (MITM)
- Leaf 3a: Transport Layer Security (TLS) downgrade or interception on an insecure network path (public Wi-Fi, a compromised proxy).
- Leaf 3b: a rogue or mis-issued certificate trusted by the client, letting an attacker terminate and re-originate the connection.
Relative probability: low to medium. Modern TLS defaults and certificate transparency monitoring make this harder to pull off at scale than the credential- and API-based branches, though it remains realistic against a single targeted victim on a compromised network.
Branch 4: database tampering
- Leaf 4a: privilege escalation by a compromised backend service account, used to directly modify a transaction's status or amount after authorization.
- Leaf 4b: an insider (or an attacker who has already achieved elevated access through another branch) with direct database write access alters records to hide fraudulent activity or fabricate refunds.
Relative probability: low, but high impact and typically a second-stage action after another branch has already succeeded, rather than a standalone entry point.
Branch 5: supply-chain compromise
- Leaf 5a: a malicious or compromised third-party dependency in the payment service's code introduces a backdoor or exfiltrates authorization data.
- Leaf 5b: leaked or overly broad continuous integration and continuous delivery (CI/CD) pipeline credentials let an attacker push a modified build directly to production.
Relative probability: low to medium; less common than credential or API abuse, but a single successful instance affects every transaction the compromised build processes, not just one victim.
Worked example
Applying "target mitigations at the highest-probability leaves" concretely: branches 1 and 2 above are rated high probability, so they get the first mitigation investment, ahead of the more severe-sounding branch 4. For branch 1 (credential compromise): require multi-factor authentication (MFA) on the account before authorization, not just at login, since a session established earlier in the day shouldn't be sufficient on its own to authorize a new high-value payment (step-up authentication); rotate and scope service-account credentials narrowly so a leaked integration key can't authorize arbitrary payments. For branch 2 (API abuse): enforce per-account and per-IP rate limiting ahead of the authorization logic; make the authorization endpoint idempotent using a client-supplied idempotency key, so a replayed or raced request cannot double-authorize the same intent. These two branches are prioritized first specifically because they require the least attacker effort and the least prior access, which is the definition of "highest-probability" used here, not the size of the potential loss if they succeed.
Trade-offs and pitfalls
The most common mistake is prioritizing branch 4 (database tampering) first because it sounds the most severe; in practice it is usually reached only after another branch (most often credential or supply-chain compromise) has already succeeded, so hardening it in isolation without also closing branches 1, 2, and 5 leaves the actual entry points open. Step-up authentication for high-value payments (branch 1's mitigation) adds friction to legitimate transactions, so it should be applied selectively (above a value or risk threshold) rather than universally, or conversion drops for no security benefit on low-risk transactions. Idempotency keys (branch 2's mitigation) are necessary but not sufficient on their own: they stop accidental or naive replay but a sophisticated attacker who controls the client can simply generate a new idempotency key per attempt, so rate limiting and anomaly detection still need to sit alongside them rather than being replaced by them.
Define likelihood, impact, and risk velocity in the context of threat modeling and risk assessment. Provide a realistic example (one paragraph) that illustrates how risk velocity can change remediation prioritization compared to static likelihood × impact scoring.
Sample Answer
Direct answer
Likelihood is the probability that a given threat is actually realized in a given time window. Impact is the magnitude of harm if it is realized, spanning financial, operational, regulatory, and reputational dimensions. Risk velocity is a third, independent axis: how fast the window between "this threat becomes exploitable" and "this threat is likely exploited" actually is. Static likelihood times impact scoring answers "how bad is this risk," while risk velocity answers "how much time do I have to act on it," and a remediation queue that ignores the second question will routinely work on the wrong item first.
Structured elaboration
Likelihood and impact are usually scored on a small ordinal scale (for example 1 to 5) and multiplied to produce a single risk score, a widely used shorthand:
Risk=Likelihood×Impact
This score is a snapshot: it says nothing about time. Risk velocity captures the missing dimension by asking how quickly the likelihood of exploitation is changing, in practice driven by signals like whether a working exploit has been published, whether it has been added to a common exploitation framework, and whether the vulnerable asset is internet-facing. A vulnerability can have modest static likelihood today and extremely high risk velocity the moment a proof-of-concept goes public, because the population of people capable of exploiting it just expanded from a handful of specialists to anyone who can run a script.
The practical effect on prioritization is that a lower-scored, high-velocity item can legitimately need to be worked before a higher-scored, low-velocity item, because the organization's actual window to act on the high-velocity item is closing fast while the low-velocity item's window is not.
Worked example
Consider two findings in the same remediation backlog, scored on a 1 to 3 scale for likelihood and impact:
- Vulnerability A: likelihood 2 (medium, no known exploit, requires an unusual configuration to reach), impact 3 (high, full database read access). Static score: 2×3=6. No public exploit exists yet and the vendor patch is complex to test, so the realistic window before exploitation is roughly 180 days.
- Vulnerability B: likelihood 1 (low, was assessed as a minor issue when first triaged), impact 2 (medium, limited to one internal admin function). Static score: 1×2=2. But a working exploit was published today and added to a popular exploitation framework used by opportunistic attackers scanning the internet, compressing the realistic window before exploitation to roughly 2 days.
Under static likelihood times impact scoring, A (6) outranks B (2), and a queue sorted purely by that score works A first. Introducing risk velocity as a divisor against the exploitation window in days reorders the queue:
Priority=Likelihood×Impact×Risk Velocity (days)1
PriorityA=1806≈0.033PriorityB=22=1.0
B's priority score is roughly 30 times higher than A's, despite scoring three times lower on the static risk score, because the organization has two days rather than six months to act on it before exploitation is likely.
Trade-offs and pitfalls
The scale (1 to 3, days as the velocity unit) used above is illustrative, chosen to keep the arithmetic traceable, not a claim about an industry-standard scoring convention; a real program calibrates its own scales against its own historical incident data. The main pitfall is treating risk velocity as replacing likelihood and impact rather than multiplying against them: a low-impact finding with extremely high velocity (say, a typo in a public marketing page that gets embarrassing fast) still should not outrank a catastrophic-impact finding with only moderately high velocity, so velocity should compress a queue's ordering within a similar impact tier more than it should override impact entirely. A second pitfall is stale velocity: unlike likelihood and impact, which change slowly, velocity can shift from low to critical within hours of a public disclosure, so a velocity-aware queue needs to be re-scored on a cadence that matches how fast the underlying signals actually move, not on the same quarterly cycle as the rest of the risk register.
Perform a focused threat model on key management for a SaaS product that uses HSMs to sign tokens and encrypt customer data at rest. Identify threats to key confidentiality, integrity, and availability; propose operational controls (rotation, backup, split knowledge, access controls), HSM deployment patterns (single-region vs multi-region, cloud HSM vs on-prem), and discuss trade-offs between latency, cost, and security.
Sample Answer
Direct answer
A focused threat model on hardware security module (HSM) based key management has to score threats separately against each leg of the confidentiality, integrity, availability (CIA) triad, because the controls that protect one leg often do little for another: encrypting key backups protects confidentiality but does nothing for availability if the only HSM holding the live key fails, and dual control protects integrity of key operations but does not by itself protect the key from ever being extracted. The strongest architectures combine operational controls (rotation, backup, split knowledge, access control) with a deployment pattern (single-region vs multi-region, cloud HSM vs on-premises) chosen deliberately for the latency, cost, and security trade-offs the business actually needs, not a default.
Structured elaboration
Threats by CIA leg.
- Confidentiality: the key material itself is extracted or exported in usable form. The main threats are a compromised HSM administrator abusing legitimate export/backup functionality, a firmware or supply-chain compromise of the HSM itself, and side-channel attacks against key operations (timing, power analysis) on lower-assurance hardware.
- Integrity: the key is used to sign or encrypt something it should not, without the key itself being stolen. The main threats are an attacker who compromises the application or service account authorized to call the HSM (so they get to use the key, not steal it), and insufficient authorization checks inside the HSM's policy layer letting a valid credential perform an operation it should not be allowed to perform (for example, a service account scoped for encryption also being able to sign).
- Availability: the key becomes unusable when needed, whether through HSM hardware failure, network partition between the application and a remote HSM, accidental key deletion, or an expired/misrotated key with no valid predecessor still trusted by relying parties.
Operational controls.
- Rotation: define a rotation interval per key class based on how much data or how many operations a compromise would expose, and, critically, plan the overlap window where both the old and new key are valid so in-flight signed tokens or previously encrypted data are not orphaned. Rotation without a tested rollover procedure is a common way availability incidents get created by the rotation itself.
- Backup: key backups must be encrypted under a separate backup key (never stored as extractable plaintext, even "for disaster recovery"), stored in a physically or logically separate location from the primary HSM, and restore-tested on a schedule, not just written and assumed good.
- Split knowledge (and dual control): no single individual should hold enough key-share or credential material alone to reconstruct or use a key outside the HSM's policy engine. This is usually implemented via HSM-native multi-person authorization (an m-of-n quorum of key custodians required to perform sensitive operations like key export or policy change), which protects against both a single malicious insider and a single compromised credential.
- Access control: application-layer access to HSM operations should be scoped per service and per operation (a service that only needs to verify signatures should not hold a credential that can also sign), logged with non-repudiation (the HSM's own audit log, not just the calling application's), and reviewed on the same cadence as any other privileged-access control.
HSM deployment patterns.
- Single-region vs multi-region: single-region minimizes latency and operational complexity but makes the HSM (and, by extension, everything that depends on that key) a regional single point of failure; multi-region replication or clustering trades added complexity and, for some HSM architectures, higher latency on writes or key-state synchronization, for regional failover. Cost moves differently here than it does for stateless compute, and it belongs in the decision explicitly: an HSM is a dedicated appliance or a dedicated cloud instance that is paid for whether or not it is signing anything, so an active-active two-region cluster is roughly double the standing key-management spend of a single region before any cross-region networking, and it does not get cheaper when traffic is low. That is why multi-region is worth justifying per key class rather than adopting as a blanket posture.
- Cloud HSM vs on-premises: a cloud provider's managed HSM service shifts hardware lifecycle, patching, and physical security to the provider (commonly validated to FIPS 140-2 or the newer FIPS 140-3 standard at Level 2 or Level 3, depending on the offering) and typically integrates natively with that provider's identity and access management, at the cost of some loss of physical control and, for the highest-assurance use cases, a trust dependency on the provider's own operational security. On-premises HSMs give full physical control and can meet stricter regulatory or contractual requirements that mandate customer-controlled hardware, at the cost of the organization owning the full operational burden (physical security, firmware patching, spares, staffing 24/7 coverage). The two options also differ in the SHAPE of their cost, not only its size, which matters more than the headline number: cloud HSM is operating expenditure billed per instance-hour with no capital outlay and the option to add or remove capacity, while on-premises is a capital purchase of appliances plus spares, amortized over years, whose recurring cost sits mostly in staffing rather than in the hardware. On-premises can genuinely be cheaper at sustained high call volume and is usually more expensive at low or spiky volume, which is the reverse of the common intuition that owning the hardware must be the cheaper option.
Worked example
Trace a single scenario through both axes: a SaaS product needs an HSM-backed key to sign customer-facing authentication tokens, where a token-signing outage directly blocks every customer login. Availability is the dominant concern for this specific key, more than for a key used only for periodic batch encryption, because the blast radius of unavailability is immediate and customer-visible. That pushes the deployment choice toward multi-region cloud HSM over a single on-premises unit: a single on-premises HSM, even a well-managed one, represents a hardware single point of failure that a token-signing service cannot tolerate, while a multi-region cloud HSM cluster trades a modest latency increase on the signing call (an extra network hop to the HSM endpoint, and potentially cross-region key-state synchronization overhead) for regional failover. The cost side of that choice deserves to be said out loud rather than waved through: multi-region roughly doubles the standing HSM spend, and the honest justification is not that the money is negligible, it is that what the money buys is the removal of a single hardware failure that would take every customer login offline. Framed that way it is a comparison the business can actually make and sign off on, rather than a security-team assertion that redundancy is simply required.
Layer the operational controls onto that choice: rotate the signing key on a defined interval with an overlap window so tokens signed just before rotation remain verifiable until they naturally expire, require dual control (a two-person HSM-native quorum) for any operation that would export or delete the key, encrypt backups under a separate backup key stored in a different logical boundary than the primary key material, and scope access so the token-issuing service can only sign, while a separate, more restricted credential is the only one authorized to rotate or delete keys. This combination directly maps back to the CIA threats above: dual control and scoped access address the integrity threat (a compromised token-issuing service account still cannot rotate or export the key), encrypted, tested backups plus multi-region deployment address the availability threat, and restricting who can invoke export operations at all, combined with the HSM's own non-exportable-by-design key storage, addresses the confidentiality threat.
Trade-offs and pitfalls
The most common mistake is optimizing purely for confidentiality (extraction resistance) while quietly under-investing in availability, because "the key was stolen" is a more dramatic incident to imagine than "the key became unusable," even though an unavailable signing key can take down an entire authentication path just as effectively as a stolen one, and faster. A second pitfall is treating cloud HSM and on-premises HSM as a purely technical decision when it is often a regulatory or contractual one; some data-residency or key-custody requirements mandate customer-controlled hardware regardless of the latency or cost case for a managed service, so the deployment pattern needs to be checked against compliance obligations before the engineering trade-off is even relevant. A third is implementing split knowledge only on paper (a documented policy that two people are supposed to be present) rather than enforced by the HSM's own multi-person authorization quorum; a policy that depends on human process discipline rather than the hardware's own access-control mechanism is not actually split knowledge, it is a procedure that can be, and eventually will be, skipped under operational pressure. Finally, multi-region deployment for availability can quietly weaken the confidentiality story if key material or key-derivation secrets are replicated across regions with different physical security postures; the deployment pattern chosen for availability needs to be re-evaluated against the confidentiality threat model, not assumed to be free.
How do you reconcile STRIDE findings with regulatory requirements such as GDPR or HIPAA? Provide examples where STRIDE categories map to legal obligations, recommend controls that both mitigate technical threats and help meet compliance (e.g., data minimization, encryption, audit trails), and discuss trade-offs between privacy, data utility, and operational burden.
Sample Answer
Direct answer
Every Spoofing, Tampering, Repudiation, Information Disclosure, Denial of Service, Elevation of Privilege (STRIDE) category has a direct counterpart obligation in both the General Data Protection Regulation (GDPR) and the Health Insurance Portability and Accountability Act (HIPAA) Security Rule, because both regulations are, underneath the legal language, asking for the same properties STRIDE enumerates: confirm who someone is, keep data unaltered, keep an accountable record of who did what, keep data confidential, keep systems available, and keep access minimal. The reconciliation work is mapping each STRIDE finding to the specific clause it satisfies, then picking controls that solve the technical threat and the compliance obligation in the same move rather than as two separate exercises.
Structured elaboration
This is not "legal advice" mapping, it is engineering-level control mapping that an information security program would still validate with counsel; the goal is naming the right control category, not drafting a legal opinion.
| STRIDE category | GDPR obligation | HIPAA Security Rule obligation | Control that serves both |
|---|---|---|---|
| Spoofing | Article 32's requirement that only authorized parties access personal data | Person or Entity Authentication, 45 CFR 164.312(d), verifying the identity of whoever accesses electronic Protected Health Information (ePHI) | Strong, phishing-resistant multi-factor authentication |
| Tampering | Article 5(1)(f)'s integrity principle, named explicitly alongside confidentiality | Integrity, 45 CFR 164.312(c)(1), mechanisms to corroborate ePHI has not been improperly altered or destroyed | Cryptographic integrity checks and write-path audit logging |
| Repudiation | Article 5(2)'s accountability principle, requiring the controller to be able to demonstrate compliance, not just assert it | Audit Controls, 45 CFR 164.312(b), hardware, software, or procedural mechanisms that record and examine activity | Tamper-evident, append-only audit trails |
| Information Disclosure | Article 5(1)(f) confidentiality, plus the breach-notification duties in Articles 33 and 34 that trigger directly on unauthorized disclosure | The core purpose of both the Privacy Rule and the Security Rule's confidentiality objective | Encryption, minimum-necessary access, and data minimization |
| Denial of Service | Article 32(1)(b)'s explicit requirement for "ongoing confidentiality, integrity, availability, and resilience of processing systems" | Contingency Plan, 45 CFR 164.308(a)(7), requiring a plan to ensure ePHI availability during an emergency | Redundancy, rate limiting, and a tested disaster-recovery plan |
| Elevation of Privilege | Article 5(1)(b) and (c), purpose limitation and data minimization, constraining who can access what for what purpose | Access Control, 45 CFR 164.312(a)(1), requiring unique user identification and access restricted to the minimum necessary | Least privilege, role-based access control (RBAC), and periodic access review |
Working this table in the other direction, from regulation to STRIDE, is the same exercise from the compliance side: a GDPR Data Protection Impact Assessment (DPIA) or a HIPAA risk analysis is effectively asking the organization to run STRIDE against the personal-data or ePHI flows and document the result, so a well-run threat model can double as most of the substance of that regulatory artifact rather than being a second, disconnected document.
Worked example
Take an Information Disclosure finding against a healthcare scheduling API: an authenticated user can change a numeric patient identifier in the request path and read another patient's appointment history (a broken-object-level-authorization pattern). Under STRIDE this is both Information Disclosure and, because the access-control check itself failed, Elevation of Privilege. Mapped to obligations: it is a HIPAA Access Control (164.312(a)(1)) failure because access was not restricted to the minimum necessary, and it is a GDPR Article 5(1)(f) confidentiality failure with a live Article 33 breach-notification clock started the moment it is confirmed personal data was actually accessed by an unauthorized party. The control that closes the technical threat, object-level authorization checks validating that the requester owns the requested patient record, is the same control that closes both regulatory gaps: no separate "compliance control" is needed on top of the security fix.
Trade-offs and pitfalls
The real tension is not privacy versus compliance, both regulations want the same outcome, it is privacy and compliance versus operational burden and data utility. Data minimization mitigates Information Disclosure and satisfies Article 5(1)(c), but it also reduces the data available for legitimate analytics or care-coordination use cases, a genuine utility cost, not a free lunch. Every additional layer of encryption, audit logging, and access control added to satisfy Tampering, Repudiation, and Elevation of Privilege findings adds key-management overhead, latency, and more moving parts to keep available, which works against the very availability-and-resilience obligation that answers the Denial of Service row. Over-restrictive access controls are a specific, well-known failure mode here: HIPAA's own Access Control standard includes a required Emergency Access Procedure precisely because organizations have locked down access so hard in the name of Elevation-of-Privilege mitigation that legitimate emergency clinical access became impossible, which is itself a compliance failure. A senior answer treats the STRIDE-to-regulation mapping as a starting point for control selection, then explicitly checks whether the chosen control creates a new failure mode against a different STRIDE category before calling it done.
Unlock Full Question Bank
Get access to all Threat Modeling and Attack Surface Analysis interview questions and detailed answers.
Sign in to ContinueJoin thousands of developers preparing for their dream job.