Bitcoin Agent Threat Modeling with Security Invariants
Bitcoin Agent Threat Modeling with Security Invariants
Design and trust boundary
Maintain explicit security invariants and fail closed when required evidence is missing. The checklist covers authority, network binding, budget reservation and idempotency. It is a model of a decision boundary, not proof that the underlying controls are implemented. Threats include forged approvals, duplicate execution and network confusion.
Independent reference implementation
1REQUIRED = frozenset({'authority', 'network', 'budget', 'idempotency'})
2
3def missing_controls(evidence):
4 return sorted(key for key in REQUIRED if evidence.get(key) is not True)
5
6if __name__ == '__main__':
7 assert missing_controls({}) == sorted(REQUIRED)
8 assert missing_controls(dict.fromkeys(REQUIRED, True)) == []
9 assert missing_controls(dict.fromkeys(REQUIRED, 1)) == sorted(REQUIRED)Operational boundaries
This offline research example uses synthetic data. It does not execute SEND or modify the wallet birth fee law. A production deployment requires authenticated callers, durable state, tested failure handling and independent security review.
Related research
https://thamer.org/learn/bitcoin-for-ai-agents-open-integration-guide
https://thamer.org/api
