EVILthereum (base on trufflesuite/ganache-core) implements the attack to steal Chainlink node's vrf_key and tamper the randomenss by changing block extra data for favorable result.
yarn dev serve --chainlink-mocker-key 0x$(openssl rand -hex 32)Create ResultChecker for RandomnessHacker
- Design your victim contract in
contractsand build artifact. - Add migration of victim contract in
migration.ts. - Add victim contract's address to
contract-address.tsfor future usage. - Implement
ResultCheckerand register it as well-known victim.