WorksComputer Science
Slow Cleanup, Fast Extraction: Persistent Permissions and Fund Activity during Recovery from Ethereum Authorization Incidents
Abstract
Ethereum users authorize applications to transfer tokens on their behalf. These approvals can expose later deposits when application vulnerabilities are exploited. We investigate when remediation justifies ending emergency monitoring of existing approvals. We track 403 approval relationships across six incidents for 30 days after disclosure and validate the analysis on two additional protocols. Linking remediation, approval histories, and transaction order distinguishes spending under retained permissions from spending under later allowance settings. In Unibot, half the sampled approvals were explicitly cleared by approximately 5 hours and 35 minutes after disclosure. Before allowance clearing, two repurchases by one wallet were followed by repeat extractions after 60 and 84 seconds, respectively. In Multichain, incoming funds were transferred out using an existing approval within one block (a batch of transactions). The account's token balance was zero at both block boundaries. Retrospectively, verified entry-point closure evidence reduced decisions to retain approvals across four checkpoints from 1,023 to 176. With only evidence confirmed available at the decision time, the count remained 1,023. These findings support continuing, ending, or reassessing monitoring of the original incident path. Our open-source toolkit reconstructs permission histories and fund activity and reproduces monitoring decisions, helping responders identify permissions requiring attention.
Introduction
Ethereum applications typically require users to grant permission to transfer a particular token on their behalf [1]. This approval can remain valid after an individual transaction ends and support repeated transfers. If an application’s transfer logic can be abused, attackers may use retained approvals to transfer users’ assets through that application [2], [3]. Even after an account has been emptied, newly arriving funds can still be transferred through the retained approval. Recovery therefore concerns both the software issue and the transfer permissions remaining on accounts.
Project teams can patch software or disable entry points, while account holders can revoke an application’s permission to spend a token. Public response materials include service suspension announcements [4] and notices distinguishing internal repairs from user revocations [5], [6]. These measures may reach completion at different times during incident recovery. An application repaired at its original address may continue using existing approvals for normal service. An account holder may grant a new approval after revocation. Recovery analysis must therefore connect software controls, permission changes, and subsequent use.
A remediation gap remains when a measure has been implemented but the conditions enabling the original transfers still hold. Suspending a website or service does not automatically revoke on-chain approvals. If the affected call remains usable, retained permissions may still enable transfers. A zero balance means that the account currently has none of that token to transfer; later deposits may still be extracted [3]. Ending monitoring on the basis of an announcement or a current zero balance can therefore remove subsequent permission use from observation. For each approval relationship, we check whether the affected call has been blocked and whether its existing permission has been removed.
Prior research quantifies spendable amounts from allowances and balances, examines future-deposit risks, and reconstructs approval–use sequences [3]. OSPREY analyzes controllable transferFrom vulnerabilities and historically exploitable instances [2]. Other studies examine emergency pauses and rescue windows [7], phishing victims’ remedial actions [8], and repeated extraction and response timing [9]. Closeout decisions additionally require aligning these observations with remediation scope and effective time. Subsequent spending may use a pre-disclosure permission or a newly granted approval. We examine the supporting permission separately from the entry point used and the controls in effect. Distinguishing these aspects requires both cleanup measurements and transaction-level permission histories.
This paper addresses two research questions. RQ1: How do existing approval relationships and the call paths responsible for an incident change after public disclosure? RQ2: How do permissions persist or become reestablished after an incident, and which approvals support subsequent spending? RQ1 establishes changes in the affected path and permission state; RQ2 identifies the permissions supporting subsequent operations. Connecting both with returning funds supports decisions to continue emergency monitoring, exit the original incident path, or reassess after a later change.
We align public remediation records, historical allowances and balances, approval operations, and transaction execution evidence by relationship and time. The study follows 403 approval relationships across six public incidents for 30 days after disclosure and examines 170 candidate approval-related logs. We reconstruct 187 replenishment episodes, from a balance becoming positive until it returns to zero or observation ends. After freezing the analysis rules, we conduct external protocol validation on Dexible and Multichain under different remediation conditions.
In Unibot, half of 44 initially positive allowances were first explicitly set to zero about 5 hours and 35 minutes after disclosure. Before its allowance was cleared, one wallet bought tokens back twice and experienced renewed extraction after 60 seconds and 84 seconds, respectively. Neither interval contained a new positive allowance setting. We cross-check these episodes against contemporaneous public alerts [10]. One external Multichain relationship shows a deposit and use of a pre-disclosure allowance within the same block, with zero balances before and after. Its transfer remains classified as third-party-directed, with purpose unknown. Conversely, all 97 design-set relationships with positive allowances and balances on day 30 had evidence of original-path closure. Figure 1 connects these observations to relationship-level closeout decisions.
Figure 1. When emergency monitoring can end for an existing approval. A verified zero allowance or evidence that the affected entry point is closed supports exit from original-path monitoring. A new approval or a change in control calls for reassessment.
The paper makes three contributions:
Approval-specific closeout criteria. We separately verify permission removal and affected-entry-point closure to identify grounds for ending emergency monitoring. Renewed approval or changed entry-point state requires reassessment.
Fund-activity evidence for recovery decisions. We connect cleanup progress to repeated extraction, same-block spending, and continued use after repair. These histories explain why zero balances can coexist with continuing exposure and retained approvals with grounds for exit.
Recomputable monitoring decisions and an open-source toolkit. Across four checkpoints in six cases, verified retrospective closure evidence reduces retention decisions from 1,023 to 176. Using only evidence confirmed as available at the time leaves 1,023. These results motivate recovery records specifying controlled entry points, scope, and effective time. The Authorization Recovery Toolkit identifies approval operations, reconstructs fund activity, and recomputes monitoring lists with traceable decision grounds.
Background and Recovery Model
How Approvals Work
An approval permits an application to transfer tokens without depositing them into the application. The token contract separately records account balances and allowances [1]. An approval relationship comprises chain, owner, token, and spender: the network, token-holding account, token contract, and address receiving transfer permission. We call the selected approved contract the spender under study.
For relationship at block , denotes remaining allowance, denotes balance, and nominal spending capacity is [3]. An allowance of 100 tokens with a balance of 20 therefore gives capacity 20. If becomes zero while remains positive, capacity temporarily vanishes but permission persists. Later deposits may again become transferable, provided the corresponding software call is executable.
Accounts set or overwrite allowances through operations such as approve; authorized spenders request transfers through transferFrom [1]. An explicit zero setting removes transfer eligibility, while spending can also consume allowance. Allowance changes and approval-log semantics depend on the historical token implementation.
Approval Risks and Two Types of Remediation
An approval vulnerability lets an external caller bypass restrictions and cause an authorized application to make unintended transfers [2]. The original incident path comprises the entry points and call relationships verified as relevant to the incident. Control evidence applies to this scope; fund use also requires valid permission and transferable assets.
Software-side remediation patches logic or disables affected entry points; account-side remediation changes a spender’s permission for a particular owner and token. The former can control a shared entry point, whereas the latter changes an individual relationship. After repair at the same address, normal business may continue using retained approvals. Permissions no longer needed require individual cancellation. Appendix A.§ 4, Figure A2, illustrates these distinct control targets and explains proxy entry points and implementations [11, 12].

(a)

(b)
Figure A2. Approval relationships and the targets of the two types of remediation. Software-side controls apply to the original incident path; allowance changes apply to individual approval relationships.
Basic Units of Observation during Recovery
We link public disclosure, software controls, permission changes, and fund operations through the same relationship, retaining each observation’s time and target. A block contains sequential transactions; its final state records only their combined outcome. Transaction and log indices establish the order within a block.
The first explicit zero setting is a cleanup operation; a current may instead result from consumption. We record each verified positive allowance-setting operation separately in the permission history. We attribute spending to a pre-disclosure allowance only when that allowance was positive before disclosure and no positive allowance-setting operation intervened. Allowance reductions caused by spending remain consumption of the existing permission. Spending supported by later settings is recorded separately, distinguishing repeated calls to one contract from continued use of one permission.
A replenishment episode begins when changes from zero to positive after a transaction and ends when a later transaction returns to zero. If the balance remains positive at the end of observation, the episode is unfinished, or statistically right-censored. Deposit-to-spending intervals are calculated separately from the duration of an episode. An entire episode can occur between adjacent transactions within one block, leaving no positive end-of-block balance. Relationships, episodes, transactions, and logs are counted separately because one relationship can contain multiple episodes and one transaction can produce multiple logs.
Study Design and Evidence Reconstruction
We track permission and fund changes through 403 fixed approval relationships and separately sample 170 candidate post-incident positive-allowance logs. The event sample estimates the composition and timing of approval operations. The 187 replenishment episodes derive from complete fixed-relationship histories. These samples retain separate denominators, as do the external cases. Evidence is linked by chain, owner, token, and spender, with states bound to exact blocks and hashes and operations ordered by transaction and log indices.
Cases, Samples, and Observation Windows
The six-case design set covers shared-path closure, repair at the original address, service suspension, and relationship-level cleanup. Pilot research and eligibility screening verified each spender, selected token, and historical evidence before sampling. After establishing and freezing the analytical rules, we selected Dexible/TRU and Multichain/WETH for external validation (Table 1). Results concern each case’s selected token and spender.
| Study group | Case | Token | Remediation target | Relationships | Log candidates |
| Design set | Socket | USDC | Disable the old route | 9,298 / 100 | 1,754 / 50 |
| LiFi | USDC | Remove the selector | 51,250 / 100 | 8,323 / 50 | |
| Maestro | MOG | Upgrade the proxy | 47 / 47 | 59 / 50 | |
| Unibot | UNIBOT | Suspend the service and clean up individual relationships | 44 / 44 | 20 / 20 | |
| Dolomite | USDC | Remove entry-point eligibility and pause the proxy | 2,977 / 100 | 0 / 0 | |
| Sushi RP2 | WETH | Interface remediation and revocation notice | 12 / 12 | 0 / 0 | |
| External validation | Dexible | TRU | Pause the old entry point | 1 / 1 | — |
| Multichain | WETH | Repair the pool and issue an old-router revocation notice | 4,573 / 20 | — |
Table 1. Cases and sampling frames.
The relationship frame contains positive-allowance Approval logs from spender deployment to disclosure, deduplicated by relationship key. Relationships whose last positive log falls within the preceding 90 days form the recent stratum; the rest form the historical stratum. For tokens emitting Approval during spending, recency denotes log activity. The selected list remains fixed throughout observation.
RQ2 uses a separately constructed 30-day positive-log frame because post-incident operations can involve accounts outside that list. Candidates are stratified into 0–1, 1–7, and 7–30 days. Zero settings are reconstructed separately from complete fixed-relationship histories. Each design case includes at most 100 relationships and 50 candidates; external cases include at most 20 relationships. Small frames are included fully and larger frames use stratified quotas. A prespecified seed and hash ordering determine all lists, which are frozen before outcome queries. Appendix C.1 gives quotas, the seed, and weights.
Researchers had prior exposure to both external protocols through literature prescreening. The sole Dexible relationship uses the account queried during technical eligibility tests; none of the 20 Multichain relationships overlaps those test accounts. Protocol exposure, account exposure, and sample freezing are recorded separately.
For time-based checkpoints, we read A and B at the latest block at or before the target timestamp, retaining adjacent blocks and hashes for verification. We observe pre-disclosure, disclosure, first identifiable remediation, D1, D7, and D30 states. Repeated same-block records are deduplicated, with their checkpoint labels, block numbers, and relative times preserved. Sushi has no remediation checkpoint because its interface-remediation time is unknown. Unibit uses a block near the time of its suspension announcement. Actual on-chain control blocks are recorded separately.
The design set uses the lower bound of each disclosure timestamp’s second- or millisecond-resolution unit. Its preN: complete frame; n: frozen sample. External cases use fixed relationship histories, without separate population event sampling (shown as a dash).
disclosure state is taken from the block immediately preceding the block corresponding to that bound. External cases use the disclosure upper bound. Dexible has 1-millisecond precision; Multichain’s interval spans 74 hours, from 2022-01-16 10:00 to 2022-01-19 12:00 UTC. Multichain’s main analysis starts at the upper bound, reports within-interval activity separately, and includes a 30-day sensitivity analysis from the lower bound. External initial positive-allowance groups use frozen states before the lower bound. Multichain retains all 19 initially positive relationships in its denominator, including the two cleared before the upper bound. At that bound, 17 relationships still have positive allowances. Appendix A records time precision and anchors.
Reconstructing Permissions and Fund Activity
Token storage, interfaces, and events can disagree [13], so approval logs require implementation-specific interpretation. UNIBOT and TRU can emit Approval for allowance remaining after spending. We check each candidate’s successful receipt, log, and call arguments, and identify the token implementation active at the relevant block. We classify it as a positive setting, consumption of an existing allowance, or unknown; explicit zero settings are separate cleanup operations.
Reconstruction begins with each relationship’s initial state and complete event window, applies effects in execution order, and checks historical state anchors. This connects individual operations to the observed allowance and balance at each checkpoint. Allowances that cannot be reconstructed at transaction boundaries remain UNKNOWN, while verified state anchors are retained separately. Appendix § 9.§ 1 preserves the TRU, USDC, WETH, and MOG reconstruction rules.
For complex transactions, we identify the actual token caller from the complete execution trace after excluding reverted calls and all their descendants. A pre-disclosure allowance supports spending only if it was positive before disclosure and no subsequent positive allowance-setting operation preceded that spending. A positive setting after zero supports a subsequent permission; explicitly resetting a positive allowance also constitutes a new setting. Consumption continues the existing permission, and same-block changes follow execution order.
Increases, repeated settings, reductions, and reapproval after zero require sufficiently established prior states.
Initiators and destinations distinguish account-initiated from third-party-directed activity. Normal business, attacks, and rescues require separate purpose evidence, so confirmed calls, permission sources, and undetermined purposes remain distinguishable.
Remediation Evidence, Measures, and Verification
We map incident-time implementations, configuration changes, and historical block states to affected entry points. This establishes each control’s scope, effective time, and covered approval relationships. Entry points are classified as verified closed, still in their original configuration, or undetermined. Undetermined means that available evidence cannot establish whether the entry point is open or closed. Configuration and actual spending remain separate observations. Where event records fully cover the relevant changes, we check them through D30; otherwise, we report only verified points. We distinguish the suspension announcement, effective on-chain closure, and availability of sufficient closure evidence. These times are recorded separately, and unavailable times remain explicitly unknown. Scoped closure evidence supports exit from the corresponding original path.
For RQ1, the initial positive-allowance group remains fixed while we measure the weighted cumulative proportion receiving a first explicit zero setting. The times reaching 50% and 90% are and , indicating when half and nine-tenths of these permissions have been explicitly cleared. Failure to reach a threshold differs from an undetermined zero-setting time. We separately report consumption to zero, current allowance, first explicit zero setting, balance, and affected-path state.
For RQ2, we compare positive settings, consumption, and unknown operations across the three event-sampling periods. Fixed-relationship zero settings and subsequent settings remain separate history-based observations. For each replenishment episode, we record arrival-time allowance and path state, subsequent application spending, its permission source, and deposit-to-spending order and interval. Relationship and episode counts remain separate because funds can return repeatedly.
Sampling-fraction weights determine how many frame objects each sampled item represents. We retain observed counts alongside estimated counts, proportions, and uncertainty intervals. UNKNOWN records remain in their original denominators and contribute to interval calculations. Appendix § 10.§ 1 specifies weighting, interval assumptions, and both Multichain timing conventions; Appendix § 10.§ 2 specifies allowance storage, conversion, and magnitude thresholds.
Each state record pair contains the allowance and balance of one approval relationship read at the same historical block. All 2,406 pairs in the design set are complete; 470 pairs were checked against independent sources. Appendix A supplies external-case execution evidence, transition checks, raw responses, and source locations for item-by-item review.
Implementation and Validation
The open-source Authorization Recovery Toolkit reconstructs permission and fund activity and aggregates reviewed records into cleanup measures, end states, episode groups, and monitoring lists. Its transaction component identifies allowance settings and spending, reconstructs states, and checks whether the authorized application actually used the account’s permission. Its study-summary component computes results from these reviewed records under the specified monitoring rules. Historical token rules, remediation scope, and transfer purposes are verified inputs; outputs retain their sources. Appendix § 11.§ 1 details the two components and their input requirements.
Validation separates consistency with the research implementation from historical-state recovery. All 170 candidate classifications match the results of the original program. This comparison checks whether packaging the analysis as a toolkit preserved the original decisions. Separately, reconstructed allowances and balances are compared with saved historical on-chain query values. Validation inputs are fixed before execution, with expected results stored separately.
Five historical scenario sets reproduce renewed extraction, permission resetting, path closure, same-block spending, and controls. The corresponding states, calls, and decisions under five monitoring rules are reproduced. In these windows, all 21 balance checks after the initial state and all 9 recoverable allowance checks matched historical query values. Appendix § 11.§ 2 and Table D1 retain operation counts, complex-call checks, and individual comparisons. The toolkit runs offline using the Python standard library once local inputs are prepared, without API keys. Selected case materials, synthetic examples, tests, and reproduction instructions are documented in Appendix § 11.§ 3.
| Validation task | Inputs and comparison reference | Result |
| Operation classification | 170 positive allowance log candidates; results fixed in advance from the research program | 170 matches: 152 settings and 18 consumption events |
| Transaction-to-evidence mapping | 170 sets of transactions and receipts from two sources; call traces for 20 complex candidates (9 transactions) | All mapping checks for transaction identities, complete logs, and call traces passed |
| State reconstruction | Historical observation windows for 5 relationship groups; on-chain historical state query values | Post-start balances matched in 21/21 cases; recoverable allowances matched in 9/9 cases |
| Identification of the application that actually transferred funds | Successful execution call records and verified results for 5 selected transactions | Callers, amounts, and spending results matched for all 5 |
| Supplementary operation checks | Logs for Socket’s subsequent positive allowance setting and Dexible’s allowance consumption to zero | 2 matches; consumption to zero classified as consumption |
| Monitoring rules | 5 sets of verified states and remediation scopes, each evaluated under 5 rules | 25 matching decisions |
| Recomputation of specified results | 403 design-set relationships and 21 external relationships, with corresponding operations and fund-flow episodes | Zero-setting, state, episode-grouping, and rule summaries all matched |
Table D1. Toolkit Analysis Tasks, Validation References, and Results
Recovery Processes and Fund Activity After Approval Incidents
We examine how existing permissions were handled and which permissions supported spending after funds returned. The six-case design set contains 403 fixed relationships and 187 replenishment episodes; a separate sample contains 170 post-incident log candidates. The fixed relationships track changes in permissions and funds, whereas the separately drawn event sample identifies the operations represented by post-incident approval logs. External validation comprises one Dexible relationship and 20 Multichain relationships, reported separately. Each relationship links an account, token, and approved application. Spending by the application under study means that this application actually used the account’s approval to transfer tokens.
Remediation Measures and Permission Cleanup Progress
Entry-point control and account permission cleanup progressed at different rates. The former changes the affected application function; explicitly setting an allowance to zero removes the account’s transfer permission. We therefore verified when controls took effect separately from when account cleanup was completed. Socket and LiFi controlled their affected entry points within minutes of disclosure; Maestro and Dolomite did so before disclosure. Appendix A gives exact control times and components. Unibot announced a service suspension [4], while Sushi issued interface remediation and revocation notices [14, 15]. On-chain closure remains unverified for Unibot’s affected entry point, and Sushi’s interface-remediation time remains undetermined. Announcements and observed controls are therefore recorded separately. Account-side cleanup is counted from the allowance-zeroing operations actually observed.
Dexible paused its entry point before the public alert [16], as its team later recounted [17]. Code, state, and control events support continued closure through day 30. Multichain’s materials distinguish pool-system repairs from legacy-contract approval revocation [5, 6, 18]. Closure evidence remains unavailable for the legacy contract studied here; Appendix E documents both external cases.
Cleanup objectives also differ. Applications patched at their original addresses may retain approvals for other functions; deprecated contracts require checking each relevant approval for revocation. We measure the first explicit zero setting against the fixed group with initially positive allowances, separately from consumption to zero or current zero states.
All 44 initially positive Unibot relationships eventually underwent explicit zero settings. Weighted cleanup reached half at 5 hours 34 minutes 56 seconds after disclosure and nine-tenths at 9 hours 36 minutes 44 seconds. The last setting occurred at 20 hours 43 minutes 32 seconds. Figure 2a shows the complete trajectory: preexisting permissions remained during hours of account-by-account cleanup. Appendix A gives the first-setting time and first-to-last interval. Figure A3 in Appendix A.§ 4 preserves the complete cross-case cleanup comparison, including cases that did not reach the specified proportions.

Figure 2. Allowance clearance and day-30 states. (a) Weighted share of Unibot’s 44 initially positive allowances explicitly set to zero at least once. (b) Bars show within-case proportions; labels give counts and denominators. External cases are shown separately.

(a) Unibot: all events in the first explicit-clearing curve. Initial : , . ; . D30: 44/44 (100%). Time from disclosure lower bound (h). Weighted cumulative proportion (%).

(b) Other cases: first explicit clearing by 30 days. Weighted cumulative proportion (%). ; Weight sum . Socket 24.3% 37 530053/154. LiFi 2.5% 81 415239/10. Maestro 0.0% 45 45. Dolomite 1.2% 85 50609/20. Sushi 60.0% 5 5. Dexible N/A (empty group) 0 0. Multichain · main 35.2% 19 17277/4. Multichain · lower bound 47.0% 19 17277/4. : initial-positive approval relationships; : sum of original sampling weights. Each case has its own denominator; no pooled estimate. Multichain main / lower-bound windows include 6 / 8 first explicit zero-allowance writes. First explicit clearing differs from a current state. All Unibot event steps retained; other endpoints use the complete observation windows. No smoothing or downsampling.
Figure A3. First explicit setting of allowances to zero among relationships with initially positive allowances. The curves and endpoint proportions use stratified weights to measure cumulative progress in explicitly setting allowances to zero. Allowances consumed to zero and current zero allowances () are recorded separately. For Multichain, allowances in 6 relationships were explicitly set to zero after the primary observation start; another 2 were within the disclosure interval. Dexible’s initially positive allowance group is empty, so times to specified cleanup proportions do not apply.
The evidence places Multichain’s disclosure time within a 74-hour interval. Its fixed initial group contains 19 relationships with positive allowances before the lower bound; 17 still have positive allowances at the upper-bound start. Subsequent explicit zero settings cleared 6 of these allowances, yielding approximately 35.2% weighted cleanup. Including 2 settings within the disclosure interval raises this to approximately 47.0%, using the same initial denominator and weights.
Events within the disclosure interval remain in the sample rather than being dropped when the observation start changes. Neither calculation reached the half or nine-tenths cleanup threshold within 30 days. By day 30, 11 relationships retained allowances but had zero balances; nominal spending capacity was zero for all 20 relationships. These accounts temporarily held no funds, while the legacy application retained permission to transfer them. Appendix E gives the time alignment. Dexible’s initially positive group is empty, so cleanup quantiles do not apply. Table 2 summarizes the case-specific outcomes.
| Case | Relationships | Initially positive allowance | First explicit zero setting | Day-30 positive allowance | Replenishment episodes |
| Design set | |||||
| Socket | 100 | 37 | 9 | 28 | 41 |
| LiFi | 100 | 81 | 2 | 78 | 39 |
| Maestro | 47 | 45 | 0 | 47 | 13 |
| Unibot | 44 | 44 | 44 | 0 | 76 |
| Dolomite | 100 | 85 | 1 | 84 | 6 |
| Sushi RP2 | 12 | 5 | 3 | 2 | 12 |
| External validation | |||||
| Dexible | 1 | 0 | 0 | 0 | 0 |
| Multichain | 20 | 19 | 11 | 3 |
Table 2. Allowance clearance and subsequent fund activity.
End-of-Window Permission States and Approval Operations
Figure 2b separates remaining allowances from current spending capacity. Of the 403 design-set relationships, 97 retained both allowances and balances on day 30, all in four cases with verified affected-entry-point closure. Closure covered specific functions, while account permissions could remain available to other functions.
Among these 97 relationships, 96 had pre-disclosure allowances with no subsequent positive setting or explicit zero setting through the end of observation. They represent continuation of preexisting permissions. The remaining Maestro relationship began with zero allowance and received a later positive setting. Thus, identical month-end states can represent continued or newly established permissions. Appendix § 10.§ 2 reports allowance magnitudes and residual USDC capacity.
The separate RQ2 event sample yielded 152 positive allowance settings and 18 consumption records among 170 candidates; none remained unclassified. For Unibot, only 2 of 20 candidates were settings. The other 18 spanned 7 transactions: the UNIBOT contract emitted an Approval log containing the remaining allowance after spending. These records primarily document use of existing permissions, rather than renewed approvals. All sampled Socket, LiFi, and Maestro candidates were settings. Table 3 retains their bounded event populations and estimates, separately from the fixed relationships.
| Case | Positive settings | Consumption | Unknown | Setting estimate (95% interval) | ||
| Socket | 1,754 | 50 | 50 | 0 | 0 | 1,754 (1,450–1,754) |
| LiFi | 8,323 | 50 | 50 | 0 | 0 | 8,323 (6,932–8,323) |
| Maestro | 59 | 50 | 50 | 0 | 0 | 59 (55–59) |
| Unibot | 20 | 20 | 2 | 18 | 0 | 2 (2–2) |
| Dolomite | 0 | 0 | — | — | — | 0 (empty frame) |
| Sushi RP2 | 0 | 0 | — | — | — | 0 (empty frame) |
Table 3. Positive-allowance logs: settings versus consumption.
Dolomite and Sushi had no candidates within their specified token, application, and window. Sushi’s WETH can be spent through an approval without emitting a consumption-related Approval log. Actual spending therefore requires call-record checks even when the candidate frame is empty. The absence of positive-allowance logs and the absence of application spending are separate observations because the token determines which operations produce these records.
Accounts continued to set positive allowances for appli-
Closeout requires approval-level evidence
Finding. Entry-point control and account permission cleanup progressed at different rates. Of 403 relationships, 97 retained allowances and balances at day 30 despite verified closure of their affected entry points.
Implication. Responders should distinguish cleared allowances, approvals covered by verified entry-point closure, and relationships still lacking exit grounds. With evidence available at the decision time, monitors can end emergency tracking of the original issue for eligible relationships. Further checks and revocation reminders can then focus on those still requiring action.
First zero settings use the initially positive group and exclude consumption. Multichain’s two within-interval settings (†) remain in the initial denominator. Episodes may repeat per relationship.
: candidate frame; : audited sample. Estimates and 95% intervals are case-specific. Dashes indicate inapplicable classifications in empty frames; external histories are excluded.
settings after remediation at their original addresses. All 50 sampled Socket settings and all 50 Maestro settings followed remediation; LiFi had 48 afterward and 2 beforehand. Unibot’s 2 settings preceded its suspension announcement, the reference time for this case; subsequent candidates recorded consumption. Across the 21 external relationships, no positive overwrites occurred during the primary window. Multichain had only the explicit zero settings reported above, and Dexible had no Approval logs. These relationship histories retain a different denominator from the 170 event candidates.
Permission Use After Funds Return
After funds return, application spending may rely on a permission retained from before disclosure or one established through a later positive setting. Among the 403 fixed relationships, 85 experienced zero-to-positive balance transitions, producing 187 replenishment episodes. Of these, 40 involved subsequent spending by the application under study, including 19 confirmed uses of pre-disclosure allowances. We confirmed spending from actual calls, traced the supporting permission history, and checked the affected entry point’s control state. Figure 3 groups episodes by their conditions at inflow; one relationship can contribute several episodes.
Figure 3. Which approval supported spending after funds returned? Six design cases. Each count represents an episode, not an account. State when funds arrived | Episodes | Later spending | Old approval used. Zero allowance | 133 | 6 | 0. Positive allowance, path closed | 31 | 12 | 11. Positive allowance, closure unknown | 9 | 8 | 8. Allowance unknown | 14 | 14 | Unknown. All episodes | 187 | 40 | 19. All 6 uses after a zero allowance followed a new allowance setting. Bars show the share with later spending in each row. The last column counts confirmed pre-disclosure use. Fig. 3. Permission sources across 187 replenishment episodes. Bars show the share of episodes in each row with later spending by the original spender. The final column counts confirmed uses of pre-disclosure approvals; unknown sources remain separate.
All 6 spending episodes that began with zero allowances involved positive settings after inflow and before spending. These episodes, drawn from 133 zero-allowance episodes, involved 3 relationships. Permissions were reestablished before use.
Of the 31 episodes beginning with positive allowances and verified closure, 12 involved subsequent spending; 11 used pre-disclosure permissions. Patching a specific entry point left approvals available to other functions. Checking both calls and permission history separates continued use of a preexisting approval from continued use of the affected entry point. Another 9 episodes began with positive allowances but unknown closure status; 8 involved spending, all under pre-disclosure allowances. Together, these groups account for the 19 confirmed uses: 11 with closed paths and 8 with unknown closure. Permission source alone does not establish whether a transfer was account-initiated or third-party-directed, nor does it determine the transfer’s purpose. Activity and purpose labels are assessed separately using transaction evidence in § 4.4 and Appendix § 9.
The 14 unknown-allowance episodes all came from one LiFi relationship. Actual calls establish spending, but the allowance at inflow could not be reconstructed precisely. Their spending observations remain in the results even though the permission state at the start of each episode is unresolved. These episodes retain unknown status; Appendix § 9 explains the technical reason. Unsupported entry-point states and purposes likewise remain unknown.
Of the 187 episodes, 147 had no subsequent application spending. In 42, balances remained positive at the end of observation. These categories can overlap: the first concerns spending, whereas the second concerns whether the balance episode ended.
By day 30, nominal spending capacity was zero in 75 of the 85 relationships with replenishment. Across all 403 relationships, 49 involved application spending during the full window; 31 of these had zero day-30 capacity. These 49 are relationships with spending anywhere in the 30-day window, without requiring replenishment. The 40 spending episodes instead belong to the 187 replenishment episodes. Month-end states therefore cannot replace transaction histories when determining whether permissions were used during the month.
Key Fund Episodes and External Protocol Validation
Unibot: extraction before permission cleanup. One wallet repurchased UNIBOT twice and experienced repeated extraction 60 and 84 seconds later, respectively. Neither interval contained a positive allowance setting; both transfers used the preexisting permission. The contemporaneous PeckShield alert matches the address, amounts, and sequence [10]. The allowance was explicitly set to zero afterward, connecting hours-long cleanup to fund consequences within minutes.
These records, U2 and U3, belong to Unibot’s 76 replenishment episodes. Of 5 episodes beginning with positive allowances and unknown closure status, 4 involved pre-disclosure allowance use, including U2 and U3. The other 71 began with zero allowances and had no application spending during their respective episodes. Among the observed Unibot episodes, pre-disclosure allowance use occurred only in episodes that began with positive allowances. Appendix B preserves complete times, amounts, transaction references, and the other illustrative episodes.
Multichain: spending between zero-balance observations. In one external relationship, 1.4 WETH entered and left through two adjacent transactions in the same block. The legacy contract spent it under a pre-disclosure allowance. Both boundary balances were zero, concealing the intervening inflow and use from endpoint observations. Figure 4 reconstructs the transaction order.
Figure 4. Balance and allowance for one Multichain relationship. Adjacent transactions brought in and spent 1.4 WETH, leaving zero balances at both block boundaries. The pre-disclosure allowance remained at its maximum until it was set to zero 335 seconds later. The transfer was third-party-directed; its purpose remains unknown.
The spending occurred more than 13 days after the disclosure interval ended, with no intervening positive allowance setting. Execution records identify the legacy contract and the same entry point as the reference incident. WETH does not decrement this maximum allowance on use, so permission remained after the funds left. The transfer retains its third-party-directed label, with purpose unknown. Appendix E provides the state, call, and timing evidence.
Multichain contributed 3 episodes from 2 relationships. One was the pre-disclosure use described above; the other relationship began with zero allowance and contributed 2 inflows without application spending. Their different permission histories distinguish their outcomes.
Dexible: outflows without application spending. Its sole TRU relationship had two balance outflows but no spending by the application under study during the formal window. Allowance was already zero before disclosure; the reference incident transaction also records allowance consumption to zero. The entry point had verified closure, and no new Approval logs or replenishment episodes occurred. Post-incident outflows therefore require two checks: whether the application under study spent the funds, and which approval supported that spending.
Later spending must be traced to its supporting approval
Finding. Of 40 spending episodes after funds returned, 19 were confirmed to use pre-disclosure approvals. All six spending episodes that began with zero allowance involved a later setting before spending.
Implication. Old permissions without verified exit grounds should remain under monitoring even while accounts temporarily hold no funds. After emergency monitoring ends, retain approval and control-change records and reassess when new approvals or relevant control changes appear. Investigators should first establish whether the application spent the funds, then identify the supporting approval to distinguish retained permissions from later settings.
Criteria for Incident Closeout and Practical Recommendations
After a project team implements remediation, monitors must determine how that response applies to the approvals they are tracking. This leaves a relationship-level decision: which approvals still require monitoring for the original issue, and which have grounds for exit? Current funds, remaining permissions, and entry-point controls answer different questions. We compare their decision criteria on identical historical records.
Monitoring Rules and Comparison Conditions
Under each information condition, all rules read the same allowance, balance, and control evidence, but apply different grounds for retaining a specific approval. The balance rule asks whether the account currently holds funds and exits when balance is confirmed zero. The spendable-amount rule (capacity rule) asks how much the application can currently transfer, jointly considering balance and allowance. It exits when either is confirmed zero. The approval rule (R0) asks whether transfer permission remains and exits when allowance is confirmed zero; temporary absence of funds does not affect retention. The approval-and-remediation rule (R1) additionally exits when admissible evidence confirms closure of the relationship’s affected entry point.
A full-evidence review (F) checks whether the materials support further retention or exit reasons beyond R1. We use its decisions to check whether R1’s simpler conditions capture every retention or exit action supported by the available evidence. Unknown states follow each rule’s predefined conditions in Appendix § 10.§ 5.
Four checks, at disclosure and days 1, 7, and 30, produce 1,612 relationship–checkpoint decisions for 403 relationships. A relationship retained throughout contributes four decisions, not four accounts. The 21 external relationships contribute 84 decisions, reported separately. Episode comparisons use verified end-of-block states; pre-spending decisions use the latest observation strictly before the spending block.
Retrospective interpretation (H) uses control interpretations verified in the retrospective analysis. Contemporaneously available evidence (O) admits only evidence confirmed to have been available at the decision time. The first asks what grounds for a decision can be established in hindsight. The second asks what evidence was verifiably available when a decision was needed. Additional scenarios assume hypothetical evidence-formation delays of 0, 1, and 24 hours. Table 4 reports all scenarios; Appendix § 10.§ 5 specifies evidence-use and update rules.
| Information condition | Balance | Capacity | Approval (R0) | Approval + closure (R1) | Full review (F) |
| Design set | 1,612 relationship–checkpoints | ||||
| H: retrospective evidence | 592 | 412 | 1,023 | 176 | 176 |
| O: contemporaneously available evidence | 592 | 412 | 1,023 | 1,023 | 1,023 |
| Hypothetical 0-hour delay | 592 | 412 | 1,023 | 176 | 176 |
| Hypothetical 1-hour delay | 592 | 412 | 1,023 | 306 | 306 |
| Hypothetical 24-hour delay | 592 | 412 | 1,023 | 416 | 416 |
| External validation | 84 relationship–checkpoints | ||||
| Identical decisions in all five scenarios | 10 | 2 | 59 | 59 | 59 |
Table 4. Monitoring decisions under matched information conditions.
Entries count retained relationship–checkpoints. H uses retrospective evidence; O uses evidence confirmed available at the time. Evidence-availability delays are hypothetical.
Differences Produced by the Decision Criteria
An empty account can retain relevant permission. Before Multichain’s same-block spending, the balance and capacity rules had no positive-balance observation and did not retain the relationship. R0, R1, and F retained it because permission remained. For Unibot’s cross-block U2/U3 episodes, all four rules and F retained the relationship before spending. R0/R1/F did so continuously; the fund-based rules included or reincluded it when funds arrived. Under the study’s block-level updates, the difference turns on whether a positive balance is observable between inflow and spending. At Multichain’s day-30 checkpoint, capacity retained none of 20 relationships, whereas R0 retained 11: current spendable amounts and unremoved permissions support different decisions.
Applicable closure evidence provides exit grounds. The 97 day-30 relationships with both allowances and balances had verified closure of their affected entry points. Mapping control scope to each relationship allows exit from monitoring the original issue despite retained permissions. Under H, adding this evidence changes R0’s 1,023 retained items to R1’s 176. The 847 changes are retain-to-exit decisions measured in relationship–checkpoints across four checks of 403 relationships, not counts of unique accounts. Verifiable control evidence thus identifies relationships that can leave the emergency list, focusing attention on those still lacking exit grounds. Across all five design-set scenarios, the balance and capacity rules retain 592 and 412 decisions, respectively. Their fund-based criteria do not use the closure interpretations whose availability changes between scenarios.
R1 and F each retain 176 items because the full review supplies no additional retention or exit reasons. In this dataset, two checks capture the supported actions: whether the allowance is zero or applicable closure evidence is available. Either condition provides exit grounds; otherwise, the relationship remains under monitoring. Reliable permission records and control verification remain necessary inputs. In the external group, R0/R1/F each retain 59 of 84 decisions under all five scenarios, for different reasons. Dexible’s allowance was already zero, so closure adds no exit opportunity. Multichain lacks applicable closure evidence, so no additional path-based exit is justified.
Evidence availability determines when exit is justified. Under O, R0/R1/F all retain 1,023 decisions. Retrospective evidence identifies when the original incident path was closed. A contemporaneous exit decision requires closure evidence that was available at that time. Hypothetical delays of 0, 1, and 24 hours yield 176, 306, and 416 retained decisions for both R1 and F. Later availability leaves more decisions in the retained state. Table 4 reports these results, and Figure A5 in Appendix § 10.§ 5 preserves the complete graphical comparison. Remediation records must distinguish the measure’s effective time from the time its evidence became verifiable, while identifying the covered entry point and relationships.
Figure A5. Dependence of monitoring outcomes on evidence conditions. Across six cases, R1 and F retain 176 items under retrospectively approved interpretations (H). They retain 1,023 when using only evidence confirmed to have been available at the time (O). Hypothetical interpretation delays of 1 hour and 24 hours yield 306 and 416 retained items, respectively. For the two external cases, R0, R1, and F each retain 59 items in all five scenarios. The two groups have denominators of 1,612 and 84 relationship–checkpoints, respectively. D0, D1, and D24 in the figure denote interpretation delays of 0, 1, and 24 hours, respectively.
Specific Measures for Incident Response and Approval Monitoring
Emergency monitoring lists should be managed separately from event records retained for reassessment. The list identifies relationships needing continued attention; the event records preserve the materials needed to reconsider decisions after permission or control changes. Wallet-side work addresses allowance recommendations and signing-time warnings [19]; the measures here concern post-disclosure response and investigation.
Remediation teams should specify coverage. Reports should identify patched or closed functions, versions, covered approval relationships, effective times, and accounts still requiring revocation. They should record when control changes and interpretations became verifiable. Multichain’s pool-system repair and legacy-contract revocation requirements concern different targets, whereas Dexible has verifiable entry-point closure evidence. Separating these targets lets monitors determine whether a reported measure actually covers the approval being assessed.
Monitors should record reasons for retention and exit. Monitoring of the legacy path ends when allowance is confirmed zero or applicable closure evidence available at the time supports exit. Positive or unknown allowances without applicable closure evidence remain retained. Each decision should preserve the relationship, observation time, and supporting evidence so its grounds can be checked.
Permission or control changes should trigger reassessment. The six initially zero-allowance episodes with later spending all had subsequent positive settings. Monitors should distinguish settings from consumption and continue recording relevant control changes. A confirmed positive setting calls for checking current permission and path states before deciding whether to include the relationship. Changes to a shared entry point require reassessing all affected relationships together. Initial inclusion and reinclusion after exit should be recorded separately, with updated decisions and reasons.
Investigators should reconstruct transaction order. Records should link inflows, actual transfers on behalf of accounts, allowance changes, and their sequence, including activity between zero-balance observations. Each transfer should be linked to its supporting permission and transaction-specific purpose evidence. Investigators can then determine whether it used a pre-disclosure approval and whether it passed through the affected entry point.
The Authorization Recovery Toolkit identifies operations, reconstructs episodes from saved transaction records, and recomputes monitoring decisions from reviewed materials, providing reusable steps for these checks.
Robustness and Scope of the Conclusions
Moving Multichain’s start to the disclosure interval’s beginning changes early states and episode counts, but retains day-30 allowances and the same-block pre-disclosure use. Neither anchor reaches weighted cleanup or ; Table E2 details the counts and coverage.
| Observation start | Positive allowance at D | Positive allowance at day 1 | Positive allowance at day 7 | Positive allowance at day 30 | Episodes of returning funds | Of these, use of a pre-disclosure allowance |
| Interval end: main analysis | 17 | 17 | 14 | 11 | 3 | 1 |
| Interval start: sensitivity analysis | 19 | 19 | 16 | 11 | 2 | 1 |
Table E2. Multichain results with two observation starts. D denotes the selected disclosure start, and positive A means that the allowance remains greater than zero. States are counted by relationship and returning funds by episode.
Prior exposure means relationships previously examined or used for preliminary technical reads. Removing 25 such Unibot relationships reduces relationships with third-party spending after replenishment from 3 to 0, concentrating that observation in the prior-exposure group. Both external protocols had prior literature prescreening. Dexible’s sole relationship overlaps a technical-read account; none of Multichain’s 20 relationships does. Sections C.3 and C.4 of the supplementary material report design-set sensitivity to time anchors, residual-value thresholds, and protocol composition, including weighted results.
The Unibot comparison (4/5 versus 0/71) uses episodes from a single case. A relationship can contribute multiple episodes. Multichain’s same-block use comes from one newly sampled relationship. Findings apply to selected protocols, tokens, and bounded frames; historical decision counts are not converted to labor hours, costs, or prevented losses.
We distinguish account-initiated activity from third-party-directed activity and assess transfer purposes separately. Specific business, attack, or rescue labels require transaction-specific evidence; unresolved purposes remain unknown. Analyses use historical records without broadcasting transactions, replaying attacks, or inferring natural-person identities. Appendix materials preserve UNKNOWN bounds and transaction-source indexes.
Related Work
Approval-incident recovery requires connecting project repairs to verifiable exit grounds for individual permissions. Four research areas provide the basis for this relationship-level analysis.
Token Approvals, Permission Exposure, and User Interaction
Wang et al. quantify nominal spending capacity from allowances and balances, examining unlimited approvals, future-inflow risks, and approval–execution sequences [3]. OSPREY identifies controllable transferFrom vulnerabilities in approved applications and evaluates historical approvals and exploitable instances [2]. Together, these studies establish how persistent permissions expose funds and how application flaws enable their abuse.
TxPhishScope visits suspicious websites and triggers and simulates transactions to identify transaction-based phishing [20]. Chen et al. examine payloads that abuse legitimate contracts or invoke phishing contracts [8]. Adamczyk studies approval-based investment fraud and wallet presentation and verification of approval information [21]. Guan et al. compare allowance-limit recommendations, spender reminders, and delayed confirmation through user experiments [19]. These studies connect dangerous permissions to transaction semantics and signing decisions. Our analysis extends approval-exposure assessment to recovery decisions by matching permission histories to remediation scope and subsequent fund use.
Actual Execution, Token Semantics, and Fund Forensics
Securify checks contract security properties [22], while teEther generates executable exploit witnesses [23]. Perez and Livshits investigate actual historical exploitation of flagged contracts [24], and Chaliasos et al. evaluate security tools on real attack samples [25]. These studies distinguish property checks, exploitability, and observed attacks as separate evidence levels.
TXSPECTOR extracts control and data dependencies through transaction replay for forensic rules [26]. EthScope organizes fine-grained historical states for replay and attack investigation [27]. Horus combines execution analysis with fund-flow tracing, including exchanges, returns, and recovery accounts [28]. TokenScope checks consistency among balance storage, interfaces, and transfer events [13]. SODA separates runtime information collection from detection applications for extensible online analysis [29]. These capabilities establish execution facts and token semantics needed to reconstruct transfers. We connect those facts to complete permission histories and entry-point controls, distinguishing continued calls to one contract from use of the original incident path.
Upgrades, Migration, Patching, and Scope of Control
Salehi et al. compare upgrade mechanisms and administrative authority, including how migration and proxies handle states and entry points [30]. Proxy Hunting examines proxy-upgrade design, implementation, and policy, including delayed emergency patching [31]. EVMPatch repairs selected defects using bytecode rewriting and proxies [32]. SmartUpdater studies logic and state maintenance in stateful contracts [33], while Sereum uses runtime checks to protect existing contracts against reentrancy [34]. These methods change different programs, states, or execution conditions, making control scope central to remediation analysis.
Li et al. document continued use of old addresses after migration from explicitly deprecated contract versions [35]. Qasse et al. relate upgrade histories, code changes, and contract activity [36]. These findings show that version changes and user activity follow different trajectories. We separately verify project-level repair and account-level cleanup, interpreting subsequent spending through its actual entry point and permission source.
Incident Response, Victim Trajectories, and Recovery Processes
DeFi systematization organizes application components and technical and economic risks [37]. Carpentier-Desjardins et al. categorize crime incidents by project role and technical layer [38]. Zhou et al. measure emergency-pause timing [7]. They distinguish the rescue window, from attack-contract deployment to first harm, from the incident window between first and last harm. Blockchain Imitation Game studies transaction imitation for preemptive rescue [39]. Parhizkari et al. identify potentially affected addresses between deployment and attack execution [40].
Chen et al. classify phishing victims’ responses as approval revocation, asset movement, or no action [8]. Seo and Ahn characterize replenishment, repeated extraction, and victim trajectories, estimating delay-related loss bounds under idealized instantaneous blocking [9]. Liu et al. use interviews and questionnaires to examine users’ risk perceptions, responses, and post-incident behavior [41]. We connect project repairs to approval-specific closeout by recording the controlled components, scope, and effective time of each control. We also record when the supporting evidence became available, retaining unknown times where necessary. These records support decisions to continue monitoring, end monitoring, or reassess a relationship.
Conclusion
Recovery requires verifiable closeout grounds for each preexisting approval, connecting project remediation to permission changes and fund activity. Project remediation and account permission cleanup progressed on different timelines. This pattern was observed across 403 fixed relationships in six cases over 30 days, with external verification in Dexible and Multichain. Repeated extraction during cleanup and same-block spending between zero-balance observations show why monitoring can remain necessary even when observed balances are zero. Conversely, scoped entry-point closure can support exit despite retained approvals.
Post-incident spending used both pre-disclosure permissions and permissions established through subsequent settings. Positive settings and allowance consumption represent different operations, and the same application can continue transferring funds under approvals established at different times. These histories connect subsequent fund use to its supporting permissions and the controls in effect.
Emergency monitoring of the original incident path ends when the current allowance is verified zero or applicable closure evidence is available at the decision time. New permission settings or control changes require the relationship to be reassessed. The historical comparison shows how evidence availability changes closeout decisions. Under the same information conditions, the simple conditions produced the same decisions as the full-evidence review. Project reports should specify controlled components, scope, effective time, and evidence availability. Monitors should preserve decision grounds; forensic and research teams can use the Authorization Recovery Toolkit to reconstruct activity and recompute decisions offline.
Case Scope, Incident Timing, and Remediation Evidence
Public Disclosure and Actual Remediation
This study separately records when each incident became public, what measures the project took, and when those measures took effect. Public notices establish the observation start, while contract configurations and execution records establish the actual scope of control. All cases are on Ethereum mainnet, with chain ID 1.
Table A1 lists public disclosure times and control evidence for the six-case design set. Public records for Socket, LiFi, Maestro, and Unibot have second-level resolution, while those for Dolomite and Sushi have millisecond-level resolution. Each listed time is the lower bound of the corresponding record interval; the upper bound is the start of the next second or millisecond. The study uses this temporal resolution to locate observation boundaries. All times are in UTC.
| Case | Disclosure lower bound, UTC | Remediation action | Technical location and evidence status |
| Socket | 2024-01-16 19:19:49.000 | Disabled the affected route | Block 19021526; query results for route 406 agree with configuration-change events |
| LiFi | 2024-07-16 12:28:53.000 | Removed the affected function | Block 20319191; the implementation address query (facetAddress) for function selector 0x3d86ea87 agrees with configuration-change events |
| Maestro | 2023-10-25 00:07:47.000 | Upgraded the proxy contract’s execution logic | Block 18423429; the implementation address storage location and call dispatch logic confirm that the old function 0x9239127f was disabled |
| Unibot | 2023-10-31 05:18:39.000 | Publicly announced a service pause at 06:25:39 [4] | Block 18468310 near the announcement; on-chain closure of the affected entry point is unknown |
| Dolomite | 2024-03-20 17:14:00.251 | Revoked call eligibility for the old entry point, then paused delegated execution | Eligibility revoked at block 19477294; delegate execution paused at block 19479508; the two controls are located separately |
| Sushi RP2 | 2023-04-09 03:36:53.830 | Interface remediation and revocation notices [14], [15] | The UTC time of interface remediation is unknown; the public postmortem documents the response context |
Table A1. Public disclosure times, remediation actions, and verification evidence
The control actions for Socket and LiFi occurred 5 minutes 58 seconds and 23 minutes 30 seconds after public disclosure, respectively. Maestro’s upgrade preceded disclosure by 31 minutes 48 seconds; Dolomite’s revocation of eligibility for the old entry point preceded disclosure by 6 minutes 37.251 seconds. Dolomite’s two actions were 7 hours 26 minutes 12 seconds apart and separately controlled entry-point eligibility and delegated execution.
A project-affiliated Unibot account posted a retrospective statement at 07:01:04 on 2023-10-31 that revocations had been completed [42]. The batch of accounts covered by this statement is recorded as unknown. We determine cleanup progress from the actual operation that set each sampled relationship’s allowance to zero. Among the 44 relationships with initially positive allowances, zero-setting operations began 21 minutes 20 seconds after disclosure. The first and last operations were 20 hours 22 minutes 12 seconds apart, with the last occurring 20 hours 43 minutes 32 seconds after disclosure.
Contract Identities and Amount Units
Each approval relationship involves a token and an application authorized to transfer it. Table A2 provides the complete contract addresses for the six cases to identify the study objects when reviewing transactions and historical states.
| Case | Token contract address (token) | Approved application address (spender) |
| Socket | 0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48 | 0x3a23f943181408eac424116af7b7790c94cb97a5 |
| LiFi | 0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48 | 0x1231deb6f5749e6ce6943a275a1d3e7486f4eae |
| Maestro | 0xaaee1a9723aadb7afa2810263653a34ba2c21c7a | 0x80a64c6d7f12c47b7c66c5b4e20e72bc1fcd5d9e |
| Unibot | 0xf819d9cb1c2a819fd991781a822de3ca8607c3c9 | 0x126c9fbab3a2fca24edfd17322e71a5e36e91865 |
| Dolomite | 0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48 | 0xe2466deb9536a69bf8131ecd0c267ee41d1d1cda0 |
| Sushi RP2 | 0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2 | 0x044b75f554b886a065b9567891e45c79542d7357 |
Table A2. Tokens and approved applications used in the study
USDC amounts are converted using 6 decimal places; MOG, UNIBOT, and WETH use 18 decimal places. The historical TRU implementation used in external validation has 8 decimal places. Calculations retain raw integers, while displayed amounts use the corresponding token’s decimal places.
Historical control records support the entry-point closure findings for Socket, LiFi, Maestro, and Dolomite. For Maestro, post-upgrade call dispatch evidence confirms that the old entry point was disabled. Unibot uses the public pause time as the remediation reference, while Sushi’s interface remediation time is recorded as unknown. Complete block hashes and source mappings for each case are included in the case evidence index in Appendix § 11.§ 3.
Scope of Historical Data Cross-Checks
Allowance and balance are obtained from the same historical block and together form a state record. All 2,406 applicable state records in the six-case design set are complete, including 470 cross-checked against an independent source. A total of 537 transaction evidence packages support review of operation execution and fund destinations.
External validation obtained 106 main-analysis state records and 80 disclosure-lower-bound sensitivity records, with 11 and 8 records sampled for cross-checking, respectively. Another 32 records at major state-transition boundaries were also cross-checked. Reproduction materials preserve query ranges, deduplication results, raw responses, and file checksums so that aggregate results can be traced to their sources. Figure A1 shows the evidence links from state queries to execution verification in the design set.
Figure A1. Evidence Links in the Design Set. The 2,406 allowance–balance records describe historical states; 470 independently checked records provide cross-checks; and 537 transaction evidence packages explain actual operations. States and episodes from external validation are reported separately.
Additional Views of Control Scope and Allowance Cleanup
Applications may use proxy contracts to separate an entry point from the logic actually executed. Proxies can support upgrades and functions such as code sharing [11], [12]. We identify software-side control scope from the historical entry point and implementation, recording address changes separately. Figure A2 shows the distinct targets of program controls and account-level allowance changes.
Figure A3 retains the full clearance trajectory and case-level weighted endpoints. Each case uses its own initially positive allowance group, including an empty group for Dexible.
Verification of Approval Operations and Selected Fund-Flow Episodes
Identifying Operations and Transfer Purposes
Approval-related logs are classified as setting a positive allowance, spending against an existing allowance, or undetermined. When the exact allowance before an operation can be recovered, we further distinguish increases, repeated settings, reductions, and reapproval after the allowance was set to zero. This links permission changes recorded in logs to the operations that actually occurred.
The call that executed a transfer, the source of its permission, and its purpose are verified separately. The transaction initiator and fund destination determine whether a transfer is recorded as account-initiated or third-party-directed. Specific purposes, such as normal business activity, attack, or rescue, are determined using corresponding execution evidence and public materials.
Eight selected episodes link incoming funds and subsequent spending by the application under study to the same approval relationship. U2 and U3 also have support from a contemporaneous public alert [10].
Token-specific reconstruction follows the historical implementations. TRU’s post-spending allowance is recovered directly from logs, without subtracting Transfer amounts again; USDC allowance consumption must be linked to actual calls. WETH balances also require Deposit and Withdrawal events, and WETH’s exact maximum allowance does not decrease during spending. MOG uses a specifically verified balance model.
Transaction Mapping for Eight Fund-Flow Episodes
Table B1 lists eight episodes across three Unibot relationships and two Sushi relationships. Each episode connects an incoming transaction to a subsequent spending transaction, checking intervening allowance settings and execution order. Multiple episodes can occur in the same wallet, so the eight records represent five distinct relationships.
| Episode | Incoming block#index | Spending block#index | Interval | Transaction records |
| U1 | 18469019#79 | 18469020#0 | 12 seconds | Incoming / Spending |
| U2★ | 18468914#15 | 18468918#29 | 60 seconds | Incoming / Spending |
| U3★ | 18468922#38 | 18468929#0 | 84 seconds | Incoming / Spending |
| U4 | 18468798#21 | 18468809#13 | 132 seconds | Incoming / Spending |
| S1 | 17010646#140 | 17010648#14 | 24 seconds | Incoming / Spending |
| S2 | 17013640#0 | 17013640#1 | Same block, ordered by index | Incoming / Spending |
| S3 | 17014353#1 | 17014353#2 | Same block, ordered by index | Incoming / Spending |
| S4 | 17081172#117 | 17081173#10 | 12 seconds | Incoming / Spending |
Table B1. Selected Fund-Flow Episodes and Transaction Locations. “Block Number#Index” identifies a transaction’s block and its position within that block; same-block episodes are ordered by index. A star indicates support from a contemporaneous alert.
U2 and U3 occurred in the same wallet. At 08:26:59 on 2023-10-31, the wallet bought back UNIBOT; approximately 29.9169 UNIBOT was extracted 60 seconds later. It bought back UNIBOT again at 08:28:47, and approximately 11.0842 UNIBOT was extracted 84 seconds later. Both spending events used permissions retained from before the buybacks, with zero intervening positive allowance rewrites between each buyback and extraction. The allowance for this relationship was explicitly set to zero at 10:52:59. The addresses, amounts, and sequence in the contemporaneous PeckShield alert match both records [10].
S1, S2, and S3 also occurred in the same wallet. Sushi’s public response materials describe ongoing rescue efforts for future incoming funds [14], [15], providing context for interpreting subsequent activity in this case. Each episode’s purpose is labeled according to its transaction evidence. The links in Table B1 contain complete transaction identifiers. The selected-episode transaction list in Appendix D.3 also provides accounts, tokens, applications, block hashes, UTC times, and raw integer amounts.
Episodes with Incompletely Recovered Allowances
The 14 episodes with unknown allowances at replenishment in Section 4.3 are concentrated in one LiFi relationship. Its permission history alternates between allowance settings and consumption. Available operation records do not fully cover the exact allowances before some transactions, so the allowances at all 14 replenishments are recorded as unknown. Actual spending by the application under study and historical state points verified through queries each have supporting evidence.
Evidence status is recorded separately for allowances, entry-point closure, and transfer purposes. The statistics retain these 14 episodes and their unknown allowances, while verified calls describe subsequent fund activity.
Sampling, Statistical Calculations, and Robustness Analysis
Sample Selection and Calculation of Counts and Intervals
Stratification and sampling. To cover both older approvals and recently active approvals, fixed relationships are grouped by the last occurrence of a relevant positive allowance log. Those with such logs within the last 90 days enter the recently active stratum (recent); the others enter the earlier-activity stratum (historical). Each case includes at most 100 relationships, with all relationships included when the sampling frame is below this limit. Larger frames receive proportional allocations, with each nonempty stratum guaranteed at least relationships, where is the total number of objects in that stratum.
Post-incident positive allowance log candidates are grouped into 0–1, 1–7, and 7–30 days after disclosure, with at most 50 selected per case. Each nonempty stratum first receives places; remaining places are allocated according to each stratum’s remaining capacity. External validation follows the same relationship-sampling method, with a cap of 20 per case and a minimum of for each nonempty stratum.
Figure A4. Eight Fund-Flow Episodes in the Design Set. Cross-block episodes show elapsed times, while same-block episodes show transaction order; episodes belonging to the same relationship share an identifier. U2 and U3 have support from a contemporaneous alert. The design set and external validation are reported separately, with purpose labels retained for each episode.
Sample lists are fixed before formal queries for balances, allowances, and subsequent outcomes. The design set uses the seed formal-v3-20261026, and external validation uses external-B-v1-20261103. Canonical relationship or event identifiers are concatenated with the seed, and selection follows the order of their SHA-256 values. Dexible’s frame contains 1 relationship, which is included in full. Multichain selects 20 of 4,573 relationships: 4 of 513 in the earlier-activity stratum and 16 of 4060 in the recently active stratum.
Weighted estimation. Sampling fractions differ across strata, so each sampled object represents a different number of objects in the frame. For stratum , let denote its total size, its sample size, and the number of sampled objects meeting the condition being counted. Each sampled object then has weight , and the estimated count is . Summing these estimates across strata gives the count estimate for the corresponding sampling frame. Dividing by the corresponding denominator for the sampling frame or prespecified subgroup gives the proportion estimate. Weights for empty strata are recorded as not applicable.
| Case | RQ1 earlier-activity stratum | RQ1 recently active stratum | RQ2 0–1 days | RQ2 1–7 days | RQ2 7–30 days |
| Socket | 5196/56 | 4102/44 | 24/5 | 309/11 | 1421/34 |
| LiFi | 25435/50 | 25815/50 | 48/5 | 1225/10 | 7050/35 |
| Maestro | 0/0 | 47/47 | 7/7 | 20/17 | 32/26 |
| Unibot | 0/0 | 44/44 | 20/20 | 0/0 | 0/0 |
| Dolomite | 2977/100 | 0/0 | 0/0 | 0/0 | 0/0 |
| Sushi RP2 | 0/0 | 12/12 | 0/0 | 0/0 | 0/0 |
Table C1. Stratum sizes and selected counts. Each cell reports “total objects N / sample size N”; 0/0 denotes an empty stratum. RQ1 concerns fixed relationships, and RQ2 concerns post-incident candidate events.
Observed counts and weighted estimates are reported together. Zero-setting curves use descriptive weighted proportions calculated under each case’s original sampling design. For Multichain, zero-setting within the main window and cumulative zero-setting including disclosure-interval events share the same denominator. This denominator is the initially positive allowance group established before the disclosure lower bound.
Estimation uncertainty. Interval calculations approximate the prespecified hash-based selection as equal-probability sampling without replacement within each stratum. Count intervals use . With denoting the number of strata requiring sampling, each stratum receives an error allocation of , with in each tail. Equal-tailed hypergeometric inversion yields a population count interval compatible with the observed count in each stratum.
Fully enumerated strata use their observed counts and ranges compatible with unknown records directly, with zero sampling error. When all strata are fully enumerated, their counts and compatible ranges are summed directly. Summing stratum lower bounds and upper bounds gives the two endpoints of the overall count interval. Dividing by the known sampling-frame size gives the corresponding proportion interval.
Unknown records always remain in their original denominators. For the compatible lower bound, all unknown records are treated as not meeting the condition; for the compatible upper bound, all are treated as meeting it. This presents both confirmed counts and the range permitted by the available evidence.
For prespecified subgroup proportions whose denominators are also estimated from the sample, the numerator and denominator each receive . Count intervals are then constructed using the stratum allocation rules above. The proportion’s lower bound is the numerator’s lower bound divided by the denominator’s upper bound. When the denominator’s lower bound is positive, the proportion’s upper bound is the numerator’s upper bound divided by the denominator’s lower bound, capped at 1. If the denominator’s lower bound is zero and its upper bound is positive, the proportion’s upper bound depends on the numerator’s upper bound. It is 0 when the numerator’s upper bound is zero and 1 otherwise. If the denominator’s upper bound is zero, the proportion is recorded as not applicable. Calculations preserve the constraints that the numerator cannot exceed the denominator and that a valid proportion requires a positive denominator.
These intervals cover individual named metrics and their strata, with separate calculations for protocols, time points, and outcome categories. Original fractional weights and sampling configurations are listed in the accompanying evidence index in Appendix § 11.§ 3.
Allowance Units and Sources of Permission at Day 30
An allowance represents an application’s retained permission to transfer tokens. Raw allowances and balances are stored as integers and converted using the token’s decimal places only for display. We label as a “near-unlimited allowance” and an allowance exactly equal to as the maximum value (MAX). Whether each use reduces the allowance is determined from the token’s code at that time.
Table C2 links relationships with both positive allowances and positive balances at day 30 to their earlier permission records. It checks whether these permissions were retained from before disclosure or set afterward.
| Case | at day 30 | before disclosure | Positive allowance set after disclosure | Allowance explicitly set to zero after disclosure |
| Socket | 9 | 9 | 0 | 0 |
| LiFi | 46 | 46 | 0 | 0 |
| Maestro | 33 | 32 | 1 | 0 |
| Unibot | 0 | 0 | 0 | 0 |
| Dolomite | 9 | 9 | 0 | 0 |
| Sushi RP2 | 0 | 0 | 0 | 0 |
| Total | 97 | 96 | 1 | 0 |
Table C2. Relationships with Positive Allowances and Balances at Day 30 and Their Permission Histories. A denotes the transfer allowance; means that both allowance and balance are positive. All counts in the table are approval relationships.
We use the checkpoints mapped to the disclosure lower bounds in the six design cases. At these checkpoints, 269 of the 297 relationships with positive allowances met the near-unlimited threshold. Of these, 141 were exactly at the maximum allowance. At day 30, 90 of the 97 relationships with both positive allowances and balances still met that threshold. Residual nominal spending capacity across the three USDC cases totaled 2,559.405124 USDC at that time. This total sums the smaller of allowance and balance for each relationship.
Of the 97 relationships, 96 had positive allowances before disclosure that persisted through the end of the window. No positive allowance-setting or explicit zero-setting operations occurred during this period. The other relationship had a zero allowance before disclosure and received a positive setting later. We observed no allowance-setting operations in the corresponding disclosure-boundary block. No sequence of explicitly setting the allowance to zero and then setting a positive allowance occurred within the window.
The transaction-level state before this positive allowance setting is recorded as unknown, and the event is reported as a permission setting within the observation window. Complete relationship identifiers, log coverage, and event sources are included in the day-30 permission history list.
Effects of Very Small Amounts and Prior Exposure
Amount thresholds. To check whether fund activity mainly involved very small amounts, we filter post-inflow balances at thresholds of 1, 10, and 100 tokens. This filtering applies to the original episodes in which balances changed from zero to positive. For spending by the application under study, we also filter the amount of each call. Each case uses its token’s native units, and episode start and end definitions follow the original zero-to-positive records.
| Case | Sample size | Original replenishment relationships | Replenishment relationships at thresholds 1/10/100 | Original application-spending relationships | Spending relationships at thresholds 1/10/100 |
| Socket | 100 | 17 | 17/17/16 | 5 | 5/5/5 |
| LiFi | 100 | 12 | 12/12/10 | 6 | 6/6/5 |
| Maestro | 47 | 12 | 12/12/12 | 20 | 20/20/20 |
| Unibot | 44 | 34 | 28/19/10 | 15 | 4/3/1 |
| Dolomite | 100 | 5 | 5/5/4 | 0 | 0/0/0 |
| Sushi RP2 | 12 | 5 | 0/0/0 | 3 | 0/0/0 |
Table C3. Relationship counts after amount filtering. “Replenishment” means that an account balance changed from zero to positive. “Spending” means that the application under study actually exercised the transfer permission for that relationship. Counts at the three thresholds are listed in order.
For Sushi, the number of replenishment relationships meeting the filter is 0 from the 1 WETH threshold onward. For Unibot, the number of relationships with use of an existing allowance after replenishment is 0 at the 100 UNIBOT threshold. These changes show that activity counts vary with the token amount range of interest.
Prior exposure. Relationships investigated or used for technical test reads earlier in the research are labeled as having “prior exposure.” We exclude these relationships from the original fixed sample and apply the same definitions to the remaining relationships. This checks how much the results depend on objects encountered in the earlier work.
After excluding 25 prior-exposure relationships from Unibot, replenishment relationships decrease from 34 to 12, and application-spending relationships decrease from 15 to 2. Relationships with third-party spending after replenishment decrease from 3 to 0. The latter observation is therefore concentrated in the prior-exposure group.
Table C4 reports observed relationship counts. Post-exclusion frame proportions retain the original weights and are estimated within the subgroup of remaining relationships. Complete numerators, denominators, and 95% intervals are provided in the accompanying sensitivity estimates table.
| Case | Original sample size | Sample size after exclusion | Replenishment relationships | Application-spending relationships | Relationships with spending after replenishment |
| Socket | 100 | 100 | 17 | 5 | 2 |
| LiFi | 100 | 100 | 12 | 6 | 4 |
| Maestro | 47 | 26 | 7 | 12 | 5 |
| Unibot | 44 | 19 | 12 | 2 | 0 |
| Dolomite | 100 | 100 | 5 | 0 | 0 |
| Sushi RP2 | 12 | 11 | 5 | 3 | 2 |
Table C4. Observed counts after excluding prior-exposure relationships
Choice of disclosure time. Sushi is also checked using an alternative notification time of 2023-04-09 at 04:05:22.724 UTC. Among the same 12 relationships, 5 still show returning funds, 3 show use of an existing allowance, and 2 show such use after funds return. Individual state records at the disclosure and day-30 boundaries are preserved in the time-boundary and sensitivity counts table.
Dependence of Results on Case Composition
We remove one protocol at a time to examine changes in the average results for the remaining protocols. Proportions are first calculated within each case using the original weights, then averaged with equal weight across included protocols. The full result includes 6 cases, and each leave-one-out result includes 5. This comparison describes the sensitivity of aggregate values to case composition.
| Excluded case | Positive allowance at day 30 | Positive capacity at day 30 | Replenishment | Application spending | Spending after replenishment |
| All retained (6 cases) | 51.12 | 22.37 | 29.75 | 18.78 | 8.11 |
| Socket | 55.74 | 25.05 | 32.30 | 21.54 | 9.33 |
| LiFi | 45.74 | 17.64 | 33.29 | 21.33 | 8.93 |
| Maestro | 41.34 | 12.81 | 30.59 | 14.03 | 5.90 |
| Unibot | 61.34 | 26.85 | 20.24 | 15.72 | 8.37 |
| Dolomite | 44.54 | 25.05 | 34.70 | 22.54 | 9.73 |
| Sushi RP2 | 58.01 | 26.85 | 27.36 | 17.54 | 6.40 |
Table C5. Protocol-average proportions with all cases and with each case removed (%)
The columns examine permissions and spending capacity at the end of the window, and fund activity during the month. The descriptive leave-one-out proportions show how each metric varies with case composition. Detailed numerators and denominators are provided in the protocol-composition sensitivity table.
Monitoring Rules, Evidence Timing, and State Updates
Comparison targets and decision conditions. Monitoring targets are specific approval relationships and their corresponding original incident paths. Under the same information scenario, all rules read the same state and control evidence to decide whether a relationship remains on the emergency monitoring list.
The balance rule retains a relationship when balance is positive or unknown; the capacity rule retains it when nominal spending capacity is positive or undetermined. If either allowance or balance is confirmed to be zero, is determined to be zero, and the capacity rule exits on that basis. The allowance rule R0 retains a relationship when is positive or unknown and exits when is confirmed to be zero.
The allowance-and-remediation rule R1 accepts two grounds for exit: the allowance is already zero, or evidence establishes closure of the original affected entry point. This closure evidence must be available at the decision time and applicable to the relationship. The full evidence review F examines whether available materials support reasons to retain or exit beyond those used by R1. Positive allowance settings and verified control changes trigger reassessment; initial inclusion, continued retention, and reentry after exit are recorded separately.
Observation times. The main comparison uses four common checkpoints: the disclosure boundary and days 1, 7, and 30 after disclosure. Fund-flow episode analysis also uses preserved, verifiable state updates. The decision before spending uses the latest record from a block strictly earlier than the spending block. A relationship retained at all four checkpoints contributes four “relationship–checkpoint” retention decisions. The evaluation metric is the change in the list at these checkpoints and block-state updates.
When evidence becomes available. The retrospective interpretation scenario H uses control interpretations verified as of now and associates each measure with its historical effective time. The contemporaneously available evidence scenario O determines which interpretations can be used from verifiable records of contemporaneous availability. The availability status of other interpretations is recorded as unknown. The two scenarios separately represent historical control facts and the materials on which a monitor could have based decisions at the time.
Additional hypothetical scenarios assume delays of 0, 1, and 24 hours in producing an interpretation. Delay starts at the end of the actual control block. Once the specified time has elapsed, the decision is updated at the first available block record that meets the timing condition. Each decision uses the state and control evidence permitted by its information scenario; subsequent purpose interpretations are used to verify results.
Retention period and reentry. The monitoring retention period runs from a relationship’s entry onto the monitoring list until grounds for its exit become available. Path controls, allowance consumption to zero, and the availability of closure evidence can each determine its endpoint. Durations are reported for intervals with continuous evidence; verified time points or transition-time ranges are reported for intervals with discrete evidence. Main tables consistently count relationship–checkpoints. In the design set’s retrospective interpretation scenario, R0 has 3 reentries after exit, all from 1 relationship. Relationships absent from the initial list that enter later for the first time are counted separately. These changes document how permission and evidence updates alter monitoring decisions.
Tracing results to evidence. Remediation records include the controlled address, function entry point, applicable version, effective block, evidence source, and actions still required of accounts. They separately preserve the times when measures took effect and when interpretations became available. Monitoring decisions link specific relationships, observation blocks, and the evidence used. Fund-flow episodes link the transaction order of incoming funds and spending, the application that actually transferred funds, and the source of permission. Purpose evidence is linked to specific transactions.
Analysis Toolkit and Reproduction Validation
Analysis Tasks and Inputs
The Authorization Recovery Toolkit organizes preserved on-chain records into verifiable approval histories and fund-flow episodes and recomputes the study summaries reported in this paper. The toolkit consists of two connected components.
The first component processes transactions, execution receipts, call records, and token events to identify allowance settings and consumption. It reconstructs balances and allowances in transaction order and identifies the application that actually exercised the permission. Previously checked materials provide the token’s operating rules at the time, code version, scope of remediation, and reviewed purpose labels. Thus, automatically processed execution facts and manually reviewed semantic interpretations each have identified sources in the inputs.
The second component reads reviewed relationships, checkpoints, and fund-flow episodes to calculate progress toward first zero-setting, day-30 states, episode groups, and monitoring decisions. Aggregate results retain source mappings so that table counts can be traced to individual records. Raw evidence, analysis inputs, and expected results are stored separately. Operation identification uses transaction execution evidence, while expected results are used for output comparisons.
Validation Design and Results
Validation separately checks implementation consistency and historical episode reconstruction. Operation classifications are compared with existing results generated by the research version using the same decision rules. This checks whether organizing the analysis into a toolkit preserves its outputs. Reconstructed allowances and balances are compared with historical query values to check state recovery. Actual spending is compared with verified execution records to check callers, amounts, and permission use.
Table D1 summarizes validation results for 170 candidates and 5 historical scenarios. Validation inputs were fixed before execution, and the 5 scenarios were selected from existing research records. Counts refer to candidate events, relationship windows, transactions, or rule decisions, as applicable.
The 5 scenarios include Unibot U2, a positive allowance setting after a zero allowance in Socket, and a retained allowance after Socket’s old entry-point closure. They also include Multichain’s same-block inflow and spending, and the Dexible control comparison. The first four reconstruct documented fund-flow episodes. For Dexible, checks separately examine allowance consumption in the reference incident transaction and balance changes within the formal observation window. Coverage of the complete account operation history at the reference block is recorded as unknown.
Allowance recovery follows each token’s historical implementation. UNIBOT and TRU consumption records allow recovery of the corresponding allowance changes. Changes in USDC and WETH without direct allowance records remain unknown, while exact historical query values provide verified state points. Validation accordingly checks states that can actually be reconstructed, along with the corresponding calls and rule execution results.
Transaction identities, complete receipt logs, and necessary call traces are matched for each transaction, with failed and unknown records retained in their original denominators. Validation with real inputs and recomputation of study summaries were completed on Windows in an isolated CPython 3.13.7 virtual environment. Of 140 tests, 135 passed and 5 were skipped because of local symbolic-link permission restrictions. All 39 additional targeted tests passed.
Code Version, Supporting Evidence, and Reproduction Procedure
The toolkit is version v0.1.0, released under the MIT license, and supports Python 3.10 and later, with only Python standard-library runtime dependencies. The core code and selected validation inputs used in this paper are available at fixed code version 30e9e2f. This version provides a consistent code and input starting point for reproduction.
Reproduction has three steps. First, validation with real inputs compares operation, state, and call results individually. Second, reviewed records are read to regenerate study summaries. Third, those summaries are compared with separately stored expected results. Outputs include individual results, sources, unknown records, and reasons for differences. The repository’s Chinese and English instructions provide installation procedures, commands, and input formats; execution takes place locally and offline.
The public toolkit includes code, selected transaction evidence, examples labeled as synthetic data, and materials for recomputing specified study results. Accompanying research evidence is organized by the topics in Table D2 and preserves complete relationship identifiers, transaction locations, weights, and source mappings. Complete historical code reviews, interval estimates, and figure source data are included in the research evidence materials.
| Verification topic | Material | Main contents |
| Cases and remediation | Case evidence index | Contract identities, times, historical blocks, and source mappings |
| Selected fund-flow episodes | Selected-episode transaction list | Complete relationship identifiers, transaction and block hashes, UTC times, and raw amounts |
| Sampling and weighting | Sampling configurations and weights | Strata, sample sizes, weights, and related fields |
| Sources of permission at the end of the window | Day-30 permission history list | Relationship states, permission operations, and coverage |
| Unknown records and subgroup estimates | Sensitivity estimates table | Numerators, denominators, weighted estimates, and 95% intervals |
| Time boundaries and filtering conditions | Time-boundary and sensitivity counts table | Alternative time anchors and individual counts under each condition |
| Case composition | Protocol-composition sensitivity table | Descriptive results with all cases and with each case removed |
Table D2. Index of Research Evidence Maintained Separately from the Preprint Source
Remediation Scope and Timing Analysis for External Cases
Study Objects and Actual Scope of Control
External validation examines whether the frozen analysis rules apply to other protocols. Dexible is studied with TRU and Multichain with WETH, both on Ethereum mainnet. Dexible’s frame contains 1 relationship, which is included in full. Multichain includes 20 selected relationships, with weights of 513/4 for the earlier-activity stratum and 4060/16 for the recently active stratum.
The TRU token contract address is 0x4c19596f5aaff459fa38b0f7ed92f11ae6543784; the WETH address is the same as in the Sushi case in Table A2.
Dexible paused the original affected entry point at 04:59:23 UTC on 2023-02-17, before the fixed public alert [16]. The project later also reported the pause retrospectively [17]. The pause check in historical code, the recorded pause-state change from 0 to 1, and complete control events jointly support continued closure through day 30. The pause state and contract implementation remained unchanged throughout the observation window. The reference incident transaction contains an approval log recording allowance consumption to zero; there were zero new approval logs within the formal window.
| Case | Token | Approved application address | Disclosure interval, UTC | Observation start and remediation |
| Dexible | TRU | 0xde62e1b0edaa55aac5ffbe21984d321706418024 | [2023-02-17 08:05:30.567, 08:05:30.568) | Interval upper bound; the original affected entry point was paused at 04:59:23 |
| Multichain | WETH | 0x6b7a87899490ece95443e979ca9485cbe7e71522 | [2022-01-16 10:00, 2022-01-19 12:00) | Upper bound for the main analysis, lower bound for sensitivity analysis; closure of the old entry point is unknown |
Table E1. Study objects and disclosure times for external cases. Disclosure intervals are left-closed and right-open; the main analysis starts at the interval’s upper bound.
Multichain’s pool-system fix and its request for users to revoke approvals granted to old contracts address different objects [5, 6, 18]. This study tracks an old contract whose permissions still require account-level cleanup; closure of its original affected entry point is recorded as unknown. This distinction determines which control evidence informs monitoring of each approval relationship.
How Results Change When Disclosure Timing Is Uncertain
Multichain’s disclosure time is bounded by an interval. The main analysis starts at the interval’s end, while the sensitivity analysis observes 30 days from its start. Both analyses use the same 20 relationships, with each time point mapped to the exact historical block.
Before the disclosure interval began, the fixed initial group contained 19 relationships with positive allowances. Of these, 2 had their allowances set to zero within the interval, leaving 17 positive allowances at the main-analysis start. These 2 remain in the denominator of the original 19 relationships. In total, 8 relationships in the initial group had allowances explicitly set to zero: 6 within the main window and 2 within the disclosure interval.
Both zero-setting calculations use the same weights. The initially positive allowance group’s weights sum to 17277/4; those of the 6 relationships set to zero within the main window sum to 3045/2. Including the 2 relationships set to zero within the interval raises the zero-setting weight sum to 2030. Thus, the main-window zero-setting proportion is approximately 35.2%, and the cumulative proportion including interval events is approximately 47.0%. Under both timing definitions, zero-setting progress remains below 50% and 90% through day 30, so and are recorded as “not reached within the window.”
Starting at the interval’s beginning also moves the end of the 30-day window earlier. One inflow to a relationship with a zero allowance occurs after that window ends, reducing episodes of returning funds from 3 in the main analysis to 2. Same-block use of a pre-disclosure allowance falls within both observation windows, and 11 relationships retain allowances at day 30 under either starting point.
Transaction Order for Same-Block Inflow and Use of a Pre-Disclosure Allowance
Table E3 details a Multichain episode in which 1.4 WETH entered an account and was immediately transferred out using its pre-disclosure allowance. The inflow and spending occurred in adjacent transactions within the same block, with a zero account balance both before and after block execution. Expanding the transaction sequence reveals the intervening inflow and permission use.
| Stage | Block and transaction position | Balance (WETH) | Raw integer balance | Allowance | Verification evidence |
| Before inflow | End of 14121705 | 0 | 0 | MAX | States agree across two independent sources |
| Incoming funds | 14121706 #0 | 1.4 | 1400000000000000000 | MAX | Incoming transaction |
| Use of a pre-disclosure allowance | 14121706 #1 | 0 | 0 | MAX | Spending transaction |
| Allowance explicitly set to zero | 14121735 | 0 | 0 | 0 | Zero-setting transaction |
Table E3. States and Transaction Order in the Selected Multichain Episode. WETH Uses 18 Decimal Places, So the Raw Integer 1400000000000000000 Corresponds to 1.4 WETH; MAX Denotes the Maximum Allowance. “#” After a Block Number Indicates the Transaction Index.
The account address for this relationship is 0xf94b11be5fb9fcbcf905043131f1cb8a3075d22. The block containing the inflow and spending is timestamped 2022-02-01 at 18:26:15 UTC. The allowance was set to zero at 18:31:50, an interval of 335 seconds.
Execution records confirm that the old contract in this case actually called the token contract to transfer funds. The call passed through the same affected entry point as the reference incident. No positive allowance-setting operation occurred between disclosure and this spending, so the spending used the pre-disclosure allowance. WETH retains the allowance when MAX is used; this permission therefore persisted after the funds left, until the later zero-setting operation.
Historical code, calls, and before-and-after states from independent sources jointly support this episode. Its exact sequence can be reviewed through the transactions in Table E3. The transfer direction is labeled third-party-directed, and its specific purpose is recorded as unknown.
References
- [1]F. Vogelsteller, V. Buterin. ERC-20: Token Standard. Ethereum Improvement Proposals, 2015.
- [2]N. Ruaro, F. Gritti, D. Meng, R. McLaughlin, I. Grishchenko, C. Kruegel, G. Vigna. Approve Once, Regret Forever: On the Exploitation of Ethereum’s Approve-TransferFrom Ecosystem. USENIX Security, 2025, pp. 1281–1298.DOI
- [3]D. Wang, H. Feng, S. Wu, Y. Zhou, L. Wu, X. Yuan, Penny Wise and Pound Foolish: Quantifying the Risk of Unlimited Approval of ERC20 Tokens on Ethereum. RAID, 2022, pp. 99–114.DOI
- [4]TeamUnibot. Announcement of the service pause and subsequent arrangements. 2023-10-31 06:25:39 UTC, Original post by the project’s official account.
- [5]Multichain. Action Required: Critical Vulnerability for Six Tokens. 2022-01, Official notice.
- [6]Multichain. Multichain Contract Vulnerability Post Mortem. 2022-02-19, Official post-mortem.
- [7]L. Zhou, X. Xiong, J. Ernstberger, S. Chaliasos, Z. Wang, Y. Wang, K. Qin, R. Wattenhofer, D. Song, A. Gervais. SoK: Decentralized Finance (DeFi) Attacks. IEEE S&P, 2023, pp. 2444–2461.arxiv.org/abs/2208.13035
- [8]Z. Chen, Y. Hu, B. He, D. Luo, L. Wu, Y. Zhou. Dissecting Payload-based Transaction Phishing on Ethereum. NDSS, 2025.arxiv.org/abs/2409.02386
- [9]W. Seo, J.-H. Ahn. Behavioral trajectories of phishing victims on Ethereum: Evidence of escalation and adaptive scam strategies. Decision Support Systems, 207, 114686, 2026.DOI
- [10]PeckShieldAlert. Contemporaneous alert on renewed draining after a Unibot-related wallet repurchased tokens. 2023-10-31 08:42:41 UTC, Original post and accompanying image.
- [11]M. Zhang, P. Shukla, W. Zhang, Z. Zhang, P. Agrawal, Z. Lin, X. Zhang, X. Zhang. An Empirical Study of Proxy Contracts at the Ethereum Ecosystem Scale. ICSE, 2025, pp. 2996–3008.DOI
- [12]A. M. Ebrahimi, B. Adams, G. A. Oliva, A. E. Hassan. A large-scale exploratory study on the proxy pattern in Ethereum. Empirical Software Engineering, 29(4), Article 81, 2024.DOI
- [13]T. Chen, Y. Zhang, Z. Li, X. Luo, T. Wang, R. Cao, X. Xiao, X. Zhang. TokenScope: Automatically Detecting Inconsistent Behaviors of Cryptocurrency Tokens in Ethereum. ACM CCS, 2019, pp. 1503–1520.DOI
- [14]Sushi. RouteProcessor2 Post-Mortem. 2023, Official project post-mortem.
- [15]HYDN. How HYDN Rescued $600k Worth of User Funds For SushiSwap. 2023, Response team’s post-mortem.
- [16]PeckShield. Dexible incident alert and recommendation to revoke approvals. 2023-02-17 08:05:30.567 UTC, Original post whose full text was obtained within the fixed source set.
- [17]Dexible. Official statement on the pause and incident. 2023-02-17, Original official post; the public statement and actual control block are recorded separately.
- [18]Dedaub. Phantom Functions and the Billion-Dollar No-op. 2022-01-24, Original disclosure report.
- [19]M. Y. Guan, X. Yu, Y. Mao, W. Tong, X. Zhou, K. Y. Wang. Designing Wallet-Based User Intervention for Approval Phishing Mitigation. USENIX Security, 2026, pp. 5513–5532.DOI
- [20]B. He, Y. Chen, Z. Chen, X. Hu, Y. Hu, L. Wu, R. Chang, H. Wang, Y. Zhou. TxPhishScope: Towards Detecting and Understanding Transaction-based Phishing on Ethereum. ACM CCS, 2023, pp. 120–134.arxiv.org/abs/2409.02386
- [21]B. Adamczyk. Dissection of an Approval-Based Trusted-Token Fraud Scheme Used Across Multiple Blockchain Systems. IEEE Access, 13, 2025, pp. 34467–34482.DOI
- [22]P. Tsankov, A. Dan, D. Drachsler-Cohen, A. Gervais, F. Bühzli, M. Vechlev. Securify: Practical Security Analysis of Smart Contracts. ACM CCS, 2018, pp. 67–82.
- [23]J. Krupp, C. Rossow. etEther: Gnawing at Ethereum to Automatically Exploit Smart Contracts. USENIX Security, 2018, pp. 1317–1333.DOI
- [24]D. Perez, B. Livshits. Smart Contract Vulnerabilities: Vulnerable Does Not Imply Exploited. USENIX Security, 2021, pp. 1325–1341.
- [25]S. Chaliasos, M. A. Charalambous, L. Zhou, R. Galanopoulou, A. Gervais, D. Mitropoulos, B. Livshits. Smart Contract and DeFi Security Tools: Do They Meet the Needs of Practitioners? ICSE, 2024, pp. 1–13.DOI
- [26]M. Zhang, X. Zhang, Y. Zhang, Z. Lin. TXSPECTOR: Uncovering Attacks in Ethereum from Transactions. USENIX Security, 2020, pp. 2775–2792.
- [27]S. Wu, L. Wu, Y. Zhou, R. Li, Z. Wang, X. Luo, C. Wang, K. Ren. Time-travel Investigation: Toward Building a Scalable Attack Detection Framework on Ethereum. ACM Transactions on Software Engineering and Methodology, 31(3), Article 54, 2022, pp. 1–33.DOI
- [28]C. Ferreira Torres, A. K. Iannillo, A. Gervais, R. State. The Eye of Horus: Spotting and Analyzing Attacks on Ethereum Smart Contracts. Financial Cryptography and Data Security (FC), LNCS 12674, 2021, pp. 33–52.
- [29]T. Chen, R. Cao, T. Li, X. Luo, G. Gu, Y. Zhang, Z. Liao, H. Zhu, G. Chen, Z. He, Y. Tang, X. Lin, X. Zhang. SODA: A Generic Online Detection Framework for Smart Contracts. NDSS, 2020.DOI
- [30]M. Salehi, J. Clark, M. Mannan. Not so Immutable: Upgradeability of Smart Contracts on Ethereum. Financial Cryptography and Data Security. FC 2022 International Workshops, LNCS 13412, 2023, pp. 539–554.arxiv.org/abs/2206.00716
- [31]W. E. Bodell III, S. Meisami, Y. Duan. Proxy Hunting: Understanding and Characterizing Proxy-based Upgradeable Smart Contracts in Blockchains. USENIX Security, 2023, pp. 1829–1846.
- [32]M. Rodler, W. Li, G. O. Karame, L. Davi. EVMPatch: Timely and Automated Patching of Ethereum Smart Contracts. USENIX Security, 2021, pp. 1289–1306.arxiv.org/abs/2010.00341
- [33]X. Zhang, Y. Song, Y. Du, C. Cai, H. Cheng, K. Xu, Q. Li. SmartUpdater: Enabling Transparent, Automated, and Secure Maintenance of Stateful Smart Contracts. IEEE Transactions on Software Engineering, 51(4), 2025, pp. 1266–1283.DOI
- [34]M. Rodler, W. Li, G. O. Karame, L. Davi. Sereum: Protecting Existing Smart Contracts Against Re-Entrancy Attacks. NDSS, 2019.arxiv.org/abs/1812.05934
- [35]X. Li, J. Yang, J. Chen, Y. Tang, X. Gao. Characterizing Ethereum Upgradable Smart Contracts and Their Security Implications. WWW, 2024, pp. 1847–1858.arxiv.org/abs/2403.01290
- [36]I. Qasse, M. Hamada, B. Þ. Jónsson. Immutable in principle, upgradeable by design: exploratory study of smart contract upgradeability. Empirical Software Engineering, 31(2), Article 39, 2026.arxiv.org/abs/2407.01493
- [37]S. Werner, D. Perez, L. Gudgeon, A. Klages-Mundt, D. Harz, W. J. Knottenbelt. SoK: Decentralized Finance (DeFi). AFT, 2022, pp. 30–46.arxiv.org/abs/2101.08778
- [38]C. Carpentier-Desjardins, M. Paquet-Clouston, S. Kitzler, B. Hasholfer. Mapping the DeFi crime landscape: an evidence-based picture. Journal of Cybersecurity, 11(1), Article tyae029, 2025.
- [39]K. Qin, S. Chaliasos, L. Zhou, B. Livshits, D. Song, A. Gervais. The Blockchain Imitation Game. USENIX Security, 2023, pp. 3961–3978.DOI
- [40]B. Parhizkari, A. K. Iannillo, C. Ferreira Torres, S. Banescu, J. Xu, R. State. Timely Identification of Victim Addresses in DeFi Attacks. Computer Security. ESORICS 2023 International Workshops, LNCS 14398, 2024, pp. 394–410.DOI
- [41]M. Liu, J. H. Huh, H. Han, J. Lee, J. Ahn, F. Li, H. Kim, T. Kim. I Experienced More than 10 DeFi Scams: On DeFi Users’ Perception of Security Breaches and Countermeasures. USENIX Security, 2024, pp. 6039–6055.arxiv.org/abs/2406.15709
- [42]Reethmos. Reply concerning the pause and completion of approval revocation. 2023-10-31 07:01:04 UTC, Original post by an account associated with the project.





