A smart contract threat model is a practical explanation of what must be protected and how that protection could fail. It should help a team make design decisions before code makes them expensive. Begin with the complete product, including administrators, websites and external services. A small contract can sit inside a large trust system, and users experience failures across that whole system rather than only within one source file.

Identify assets and promised properties

List the resources and states that matter: balances, claim eligibility, ownership, administrative authority and availability of essential actions. For each, write the property the product promises to preserve. A claim might be usable once, a withdrawal might remain possible and a supply limit might never be exceeded. Distinguish confidentiality from integrity; public contract state is not a suitable place for secrets. These properties make the review concrete and provide a bridge from product requirements to the checks engineers and independent reviewers will later perform.

Draw the trust boundaries

Identify users, privileged operators, external contracts, data providers and off-chain services. Record which inputs each can influence and which assumptions the design makes about their behaviour. Do not label an entire partner trusted without specifying the responsibility involved. A provider may supply data correctly while still being temporarily unavailable. Include the deployment process and upgrade authority, because they can change the code or configuration users rely on. The resulting map should reveal where a decision crosses from one accountable system into another.

Write realistic failure stories

Choose scenarios that challenge the promised properties: an operator uses the wrong address, an external call behaves unexpectedly, a signature is reused or a dependency stops responding. Describe the sequence and the resulting harm without turning the exercise into an implementation recipe for abuse. Include accidental misuse alongside deliberate adversarial behaviour. Rank scenarios by consequence and plausibility rather than by how impressive they sound. A simple misconfiguration affecting every user may deserve attention before an elaborate theoretical path that requires several unlikely conditions simultaneously.

Connect each scenario to a decision

For a significant risk, identify a design change, preventive control, detection method or explicit residual assumption. Name the owner and the evidence needed to consider the issue addressed. Avoid writing mitigated beside a risk merely because a library is present. The relevant question is whether the chosen mechanism covers the actual path in this system. Some scenarios may justify reducing scope, limiting exposure or removing a dependency. A threat model earns its place when it changes a decision rather than becoming a document produced after the architecture is already fixed.

Keep the model attached to change

Review the model when adding a privileged function, external integration or new asset type. Use it to prepare tests, monitoring and the independent review brief. Preserve unresolved assumptions in the launch decision so they are not lost between teams. The final deliverable is a concise account of what the system protects, where it depends on others and how the important failures are handled. That shared understanding improves both technical review and product communication without pretending that a completed checklist proves the absence of every possible defect.

TAKE IT FORWARD

The key decisions.

  • Choose scenarios that challenge the promised properties: an operator uses the wrong address, an external call behaves unexpectedly, a signature is reused or a dependency stops responding.
  • For a significant risk, identify a design change, preventive control, detection method or explicit residual assumption.
  • Review the model when adding a privileged function, external integration or new asset type.

Sources & further reading

Primary references for the concepts discussed. Check the applicable documentation when planning implementation.

  1. Ethereum smart contract security