Description:
When a token contract address is submitted without public source code on Etherscan or similar block explorers, standard AST parsing fails. We need an automated EVM disassembler and bytecode decompiler module in Rust to extract opcodes and detect hidden malicious logic (e.g., restricted transfer functions, hidden mints, or self-destruct routines).
Acceptance Criteria:
- Integrate an EVM disassembler crate to parse raw contract bytecode into control flow graphs (CFGs).
- Implement opcode pattern matching for dangerous instructions (
SELFDESTRUCT, DELEGATECALL to non-standard implementations, and custom SSTORE access controls).
- Generate a partial pseudo-Solidity signature output when source verification is missing.
Description:
When a token contract address is submitted without public source code on Etherscan or similar block explorers, standard AST parsing fails. We need an automated EVM disassembler and bytecode decompiler module in Rust to extract opcodes and detect hidden malicious logic (e.g., restricted transfer functions, hidden mints, or self-destruct routines).
Acceptance Criteria:
SELFDESTRUCT,DELEGATECALLto non-standard implementations, and customSSTOREaccess controls).