Crypto & DeFi Security Recipes
This catalog groups reusable prompts for crypto payments and DeFi blockchain security. The recipes are tool-agnostic and are intended for bounded, auditable workflows with human approval.
Crypto payment recipes
- Hot-wallet transaction policy enforcement
- Crypto payment address integrity checks
- Seed phrase and key-material purge
DeFi blockchain recipes
- Smart-contract upgrade diff risk review
- DeFi oracle manipulation guardrails
- Bridge & multisig emergency response
- DeFi reentrancy and callback hardening
- DeFi admin-key and role blast-radius review
- ERC-4626 vault inflation and rounding guardrails
- Permit and meta-transaction replay guardrails
- Cross-chain message authenticity guardrails
- DEX slippage and MEV guardrails
Hot-wallet transaction policy enforcement
developmentUse this prompt to harden a hot-wallet signing pipeline so unsafe transactions are blocked before they can be signed.
Crypto payment address integrity checks
developmentUse this prompt to prevent destination-address substitution and address-poisoning mistakes in crypto payment systems.
Seed phrase and key-material purge
developmentUse this prompt to locate and remove exposed wallet seed phrases, private keys, and signing credentials from code and operational systems.
Smart-contract upgrade diff risk review
developmentUse this prompt to review upgrade diffs and enforce invariant checks before smart-contract changes are approved.
DeFi oracle manipulation guardrails
developmentUse this prompt to add and verify protections against oracle-based price manipulation in DeFi execution paths.
Bridge and multisig emergency response
developmentUse this prompt to codify emergency response for bridge and multisig incidents where rapid containment is required.
DeFi reentrancy and callback hardening
developmentUse this prompt to harden DeFi contracts that make external calls, transfer tokens, or rely on callback-capable standards.
DeFi admin-key and role blast-radius review
developmentUse this prompt to reduce the damage a compromised admin key, overbroad role, or rushed governance action can cause in a DeFi protocol.
ERC-4626 vault inflation and rounding guardrails
developmentUse this prompt to harden ERC-4626 vaults and vault-like share systems against first-depositor inflation, donation attacks, and unsafe rounding.
Permit and meta-transaction replay guardrails
developmentUse this prompt to prevent signature replay across chains, contracts, forks, functions, and repeated permit or meta-transaction execution.
Cross-chain message authenticity guardrails
developmentUse this prompt to harden cross-chain message handlers against forged payloads, chain replay, untrusted relayers, and missing proof checks.
DEX slippage and MEV guardrails
developmentUse this prompt to harden swaps, liquidations, rebalances, and routing flows against missing slippage checks and predictable-ordering risk.