Case study 2 / Account authority · distributed state
Harbor Membership
A membership business is introducing immediate self-service cancellation while retiring a support form. Your review must reconcile identity, household relationships, money movement, and what the customer is told after partial failures.
180 minutes · Teams of 2–4 · Builds on Lumen Gift
All organizations, identifiers, incidents and implementation details here are synthetic. This is a design-review exercise, not a running vulnerable application. Evidence describes the proposed release; distinguish documented behavior, inference and unanswered questions.
Your assignment
Review the proposed launch
Harbor serves 2.4 million members. Web and mobile share an account platform, while the Membership Management System (MMS) owns membership relationships. A hosted forms platform still supports assisted cancellation. The launch is four weeks away. Region A and its deadline are fictional exercise constraints, not statements about actual law.
Business requirements
- Eligible Region A paid members enrolled through digital channel 894 can cancel immediately. A primary cancellation ends eligible dependent memberships and triggers a prorated refund to the original tender.
- A dependent can end only their own membership and receives no refund. Staff and complimentary memberships remain unchanged.
- MMS is authoritative for address, member type and relationships. Rewards already issued reduce the refund even when unused.
- The customer must receive an accurate acknowledgement without losing the original intent timestamp during dependency outages. Cancellation is not deletion: required financial records remain under a separate retention policy.
Review scope
Include public and assisted ingress, service identities, state stores, downstream effects, failure recovery and telemetry. Assess confidentiality, integrity, availability and business misuse. No source code or live system is available. Do not assume a missing statement proves a missing control.
Decision to deliver
Recommend launch, launch with conditions, or defer. Support that decision with a system model, prioritized threat scenarios, and an architecture review tied to evidence.
Packet A / system understanding
Architecture and operating model
- F1 · session / profile
- F2 · cancellation request
- F3 · member state + refund
- F4 · jobs and acknowledgements
- F5 · assisted requests
Deployment overview supplied by engineering. Supporting identity, telemetry and financial systems are described in the inventory. Derive and redraw trust boundaries yourself.
Component and data inventory
| Component / owner | Data | Responsibility and context |
|---|
| Web and mobile / digital | Session, profile snapshot, intent | Web uses Secure HttpOnly SameSite=Lax cookie; CSRF token checked for mutation. Mobile uses OAuth PKCE bearer token |
| Account BFF / identity | subject, verified flag, linked memberships | Validates session/token issuer, audience and expiry; requires verified=true |
| Cancellation API / membership | Target member, cancellation operation | Called by BFF with service identity and actor metadata |
| MMS / core systems | Primary address, relationships, status | Authoritative records; exposes cancel and relationship query |
| Refund worker / finance | Refund instruction, original tender reference | Private queue; worker identity restricted to original-tender refund API |
| Form SaaS / experience team | Prefilled member ID, name, email, reason | Embedded legacy form; integration has service token, no access to browser session |
| Support export / service desk | CSV of form entries | Daily download to restricted team folder; 30-day scheduled retention |
| Reconciler / operations | Intent, operation, completion events | Compares digital event streams every 15 minutes |
Nominal execution
- Client loads a profile snapshot through BFF and evaluates the regional feature flag.
- User confirms cancellation. BFF checks verified identity and forwards actor subject, target member, and intent timestamp.
- Cancellation API submits MMS state changes and creates refund work for primary members.
- An accepted operation produces an API response and email job; refunds and dependent changes may finish later.
- If the new feature is disabled, the UI offers the embedded legacy form. Support handles those submissions using the service desk export.
Packet B / implementation evidence
Evidence room
Open this packet after your first decomposition. These extracts come from different teams. Reconcile their meaning across components; none is an endorsed security conclusion. Evidence identifiers belong in your final analysis.
M1 · BFF contract
POST /account/cancellations
Headers: CSRF token (web), Idempotency-Key: random UUID
Body: {memberId, scenario, profileVersion, intentAt}
BFF checks: authenticated, verified=true, memberId in linkedMembershipIds
Forwarded actor: {sub, verified}; service-to-service mTLS
linkedMembershipIds includes primary and dependent memberships
scenario: PRIMARY | DEPENDENTThe account platform allows a dependent to see household membership summaries, including the primary member identifier. The BFF checks membership in the linked list; its API does not distinguish view and act relationships.
M2 · Service acceptance note
Cancellation API:
require BFF service identity and actor.verified
eligibility = profileCache[target.memberId] # TTL 24h
if scenario == PRIMARY:
cancel target; load dependents; enqueue dependents
enqueue refund(target, rewardsSnapshot)
else:
cancel target
MMS cancel endpoint checks target exists and type != STAFF/COMP
MMS audit actor = cancellation-serviceThe API trusts the BFF to constrain actor-to-target relationships. The profile cache holds region, enrollment channel and member type. A changed MMS profile is refreshed on the next TTL or nightly invalidation. The requested scenario selects orchestration; type consistency is not checked in this release.
M3 · Retry and refund design
operation cache: key = actor.sub + Idempotency-Key; TTL 10m
on duplicate key: return previous response
client: new UUID on each button confirmation or app restart
MMS cancel(active) -> 200; MMS cancel(cancelled) -> 200
refund queue: at-least-once; max delivery attempts 6
refund reference = operationId + deliveryAttempt
refund API: deduplicate by refund reference; cap per request = fee paid
MMS and the refund queue are separate systems. There is no shared transaction. A refund is enqueued after any HTTP 200 from MMS. Finance has not implemented an aggregate refunded-amount check for this integration.
M4 · Dependent and completion semantics
09:00:00 primary P17 active; dependent D31 active
09:00:01 cancel P17 -> 200 committed
09:00:02 enqueue D31 cancellation -> accepted
09:00:03 response -> 202 {status: ACCEPTED, operationId: O71}
09:00:03 UI -> "Your membership and linked accounts are cancelled"
09:00:04 email job -> "Cancellation complete; refund processed"
09:00:07 D31 worker -> MMS 503; retry in 15m
09:00:09 refund worker -> tender timeout; result unknownThis is a synthetic fault-injection trace. Dependents can use cached access claims for up to 12 hours. There is no status poll in mobile version 6.1; web can poll operation state but uses the same initial success copy.
M5 · Legacy form migration ticket
iframe origin: forms.harbor-vendor.example
prefill via URL: memberId, firstName, email, scenario
public form: noindex, unlisted; submit endpoint accepts entryId + fields
webhook authentication: HMAC over raw body; timestamp tolerance 5m
webhook duplicate check: entryId
form handler -> cancellation API using forms service identity
handler target = submitted memberId; actor = "legacy-form"
The form is reachable directly as well as in the account modal. HMAC proves a delivery came from the vendor. The vendor stores submissions before webhook delivery. Support exports all submitted fields into CSV; neutralization of formula-like values has not been specified. The legacy handler uses its own integration path and does not invoke the BFF.
M6 · Rollout and reconciliation
flag: regionA.instantCancel; frontend cache 60m
flag off -> legacy form
intent event: browser analytics (subject, memberId, clientClock)
completion event: API when MMS primary returns 200
reconciliation join: memberId + UTC date
alert: unmatched intents > 20 over 24h
MMS effective date: server date at execution
Analytics consent opt-out suppresses browser intent events. Form submissions are not in the new reconciler. Requirements ask for the original request day, but outage recovery can execute after midnight. Customer support reports only queue depth, not oldest outstanding cancellation age.
Cumulative workshop
Model first. Review second.
Stage 1 · System decomposition / 30 minutes
Use Packet A. Produce a level-one data-flow diagram and a component register. Identify external entities, processes, stores, data classifications, owners and candidate trust boundaries. Annotate every flow with identity, transport, payload and destination authority. Mark what you need to ask.
Stage 2 · Threat modeling / 65 minutes
Open Packet B. Revise your diagram before listing threats. Identify assets and security invariants. For each threat, record actor capability, entry point, boundary crossed, preconditions, sequence, impact and current controls. STRIDE can prompt coverage; include business logic and failure paths. Produce at least six scenarios and select the three that most affect the launch decision.
- Map actor, household target, service identity and financial beneficiary separately. Which systems own each fact? Extend the first case’s decomposition to durable state and asynchronous work.
- Model a legitimate dependent, a direct form submitter and a repeated delivery. Trace a full path through the state transitions rather than stopping at the first authorization check.
- Define invariants for authority, cumulative refund, dependent status, effective date and customer notification. Review each against the evidence; propose launch conditions and recovery tests.
Stage 3 · Security architecture review / 70 minutes
For each selected scenario, evaluate whether controls are in the right place and whether their identities, scopes, timing and failure behavior support the claimed protection. Write a finding with evidence, confidence, business impact and severity rationale. Propose a specific change, owning team, acceptance test and residual risk. Separate confirmed design gaps from hypotheses needing validation.
Peer challenge / 15 minutes
Exchange reviews. Ask which evidence would disprove each finding. Find one effective control and one uncertainty that should not become a vulnerability claim. Defend your launch recommendation against the strongest counterargument.
Assessment rubric / 100 points
- Decomposition (25): complete flows and stores (10), authority and ownership (10), explicit assumptions (5).
- Threat model (30): realistic actor and preconditions (10), end-to-end scenarios (10), invariants and prioritization (10).
- Architecture review (35): evidence and confidence (10), control effectiveness (10), actionable mitigation and acceptance test (10), residual risk (5).
- Decision (10): clear launch conditions, owners and treatment of uncertainty. More findings alone do not earn more points.
Your review workspace
Keep an evidence trail
Notes stay in this browser when storage is available. Export before switching devices. No notes are submitted to a server. Avoid entering real customer data.
All case studies · Lumen Gift