Menu

How I Approach the First 20 Minutes of a Smart Contract Audit
πŸ“°

How I Approach the First 20 Minutes of a Smart Contract Audit

#hackernoon#technology#contract#minute#state
Long article (1634 words) β€” no AI summary yet.
Reading 0:00
15s threshold

Most "smart contract audit checklist" posts are a list of vulnerabilities someone else already found. They are useless in the first twenty minutes of a review, because you are not looking for vulnerabilities yet β€” you are trying to build a map of where the money is and who is allowed to move it.

This is the sequence I run when a contract lands in front of me and I have twenty minutes before I have to decide whether it deserves a week. It is ordered by yield per minute, not by taxonomy. Two of the steps below are the ones that paid for themselves: the state-key inventory and the deployed-artifact check.

Minute 0–3: Verify you are reading the code that is actually deployed

Before a single line of logic: is the source in front of me the bytecode on chain?

# 1. What is at the address? cast code $ADDR --rpc-url $RPC | head -c 200

# 2. Is it a proxy? EIP-1967 implementation slot cast storage $ADDR 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc --rpc-url $RPC

# 3.…

Continue reading β€” create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.