Repository navigation
feat(calltx): add CALL account-access attack contract - #291
Open
LouisTsai-Csie wants to merge 3 commits into
Open
LouisTsai-Csie wants to merge 3 commits into
LouisTsai-Csie wants to merge 3 commits into
Conversation
LouisTsai-Csie
force-pushed
the
calltx-attack-contract
branch
from
September 18, 2026 10:46
b2ded78 to
91772ae
Compare
LouisTsai-Csie
marked this pull request as draft
September 18, 2026 10:47
LouisTsai-Csie
force-pushed
the
calltx-attack-contract
branch
from
September 29, 2026 09:07
71d533d to
e7932ab
Compare
LouisTsai-Csie
marked this pull request as ready for review
September 29, 2026 09:08
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds the CALL account-access attack contract: a port of the
opcode = CALL, overhead_baseline = Falsearm oftest_account_accessfromexecution-specs,
as a minimal geas contract plus a matching
callAttackfunction on the existingsolidity controller.
It targets the CREATE2 addresses deployed by the
factorydeploytxscenario andderives them on-chain, so a run carries three inputs - factory, initcode hash
and salt range - rather than a list of addresses.
contracts/ContractCallAttack.geascontracts/ContractCallAttackCtor.geascontracts/ContractReadAttackController.solcallAttack+receive(), the readable twinDesign
The memory layout is byte-for-byte the
Create2PreimageLayout(offset=0)ofexecution-specs:
The salt walk is monotonic -
startSalt,startSalt + 1, ... with nowrap-around - matching its
increment_salt_op, so keeping the walk inside thedeployed range is the caller's job. Following the upstream
Op.CALLdefaults(
kwargs_defaults={"gas": GAS}), the call isCALL(gas(), target, callValue, 0, 0, 0, 0).Both implementations share one ABI, so the same arguments drive either:
callValueselects the two arms the benchmark parametrises:0measures thecold account access alone,
1adds the value transfer.Notes
The README documents the contract with
--call-fn-sig/--call-args, whichworks on
masteras it stands. #290 adds a--targets-fileoption tocalltxthat generates the same call data from a CREATE2 receiver list and advances
startSaltper transaction; the two are independent and can land in eitherorder.