Contract Upgrade Timelock Bypass Detector-and-Alert
Free to download on every platform. Comes pre-installed on BotFone, BotPad and BotFlip — with extra free apps included.
About this app
WHAT IT DOES
Contract Upgrade Timelock Bypass Detector-and-Alert monitors proxy contracts for upgrades that were executed without being properly scheduled through the designated timelock controller. The tool reads the proxy contract's implementation address history and compares upgrade events (such as Upgraded(address) or ImplementationChanged events) against scheduled operations in the timelock controller. If it finds an upgrade that was not preceded by a corresponding timelock schedule operation, it flags it as a potential bypass—a security red flag that may indicate admin key compromise, governance failure, or malicious intent.
This tool is essential for security researchers, DAO members, and protocol users who need to verify that upgrades to critical contracts are following the intended governance process. It provides an automated, transparent way to detect irregular upgrades that could signal a security incident.
HOW TO USE
1. Connect your EVM wallet to the network where the proxy and timelock are deployed.
2. Enter the proxy contract address (the contract being upgraded).
3. Enter the timelock controller address (the contract that should govern upgrades).
4. Optionally set the block range to scan (default 10,000 blocks).
5. Click "Detect Bypass" to scan historical upgrade events and compare them against timelock schedule records.
6. The tool displays the number of upgrade events found, how many were properly scheduled, and how many bypassed the timelock.
7. Review the event list showing transaction hashes, timestamps, and status labels (BYPASS or Scheduled).
TECHNICAL MECHANISM
The tool scans historical logs using eth_getLogs for upgrade events on the proxy contract—typically the Upgraded(address) event from EIP-1967 or ImplementationChanged from transparent proxies. It also queries the timelock controller for executed operations via events such as ExecuteTransaction or Executed. For each upgrade event found, the tool checks if a corresponding timelock schedule operation exists with the same target contract, function signature, and execution timestamp within a reasonable window. If no matching schedule is found, the upgrade is flagged as a bypass. To handle RPC limitations, the tool walks backwards in block ranges and halves the chunk size on failure (per PLAYBOOK-C §5.1). The tool is read-only and requires no transaction signing.
WHAT IT CANNOT SEE
This tool cannot detect upgrades that occur through legitimate administrative channels that intentionally bypass the timelock—for example, if the protocol has an emergency pause mechanism that allows immediate upgrades. It cannot prevent upgrades from being executed; it only reports what has already happened. It cannot detect off-chain coordination or governance manipulation that may have led to a bypass. It cannot verify whether a detected bypass was authorized through another mechanism (e.g., a secondary governance contract). It cannot detect timelock bypasses on non-EVM chains. It cannot prove malicious intent versus administrative error—the tool flags potential bypasses, but the root cause requires human investigation. The tool relies on correct event schemas; custom proxy implementations may use non-standard events.
PLEASE NOTE
EVM chains only. This tool requires that the proxy contract emits upgrade events and the timelock controller emits execution events with sufficient detail to match operations. Not all proxy patterns use the same event signatures. The tool makes a best-effort comparison; false positives may occur if the timelock uses a different scheduling mechanism. Always verify flagged bypasses through additional on-chain and off-chain investigation.