DEV Community

Earlene Feil
Earlene Feil

Posted on

How to Audit Token Approvals Across Company Wallets: Audit Log

Audit token approvals across company wallets by inventorying every wallet and chain, recording its current approvals, comparing each spender with an approved list, revoking unwanted access, and logging the result. Repeat the review on a fixed schedule. Approvals can accumulate quietly, and each active approval gives a smart contract standing access to a token.

Prepare the Wallet Inventory and Approved-Spender List

The wallet inventory defines the scope of the audit. Start a sheet with each treasury and ops wallet address, its owner, the chains it uses, and its Safe signers where applicable. DeBank can help identify chains associated with an address; confirm the list with the people who operate the wallets. Token approvals are specific to a wallet, chain, and token, so an Ethereum review cannot stand in for a review of that address elsewhere.

The approved-spender list must be ready before anyone decides what to keep. For each permitted contract, record its full address, chain, token, business purpose, allowed amount, and the person responsible for it. Confirm that reviewers can reach the required Safe signers. The audit is ready to begin when every inventory row has a chain to inspect and every approval has a policy against which it can be judged.

Review, Revoke, and Verify Each Wallet’s Approvals

Use the same steps for every wallet and chain, and retain a dated snapshot from each run.

  1. Open one inventory row at a time. Say the treasury Safe uses Ethereum and an ops wallet uses another chain: create a separate review row for each wallet and chain. Mark who is reviewing it and the date, so neither address disappears between teams or reporting periods.
  2. Capture the active approvals for that row, including token, spender address, and allowance. A token approval management tool such as revokecash helps with the lookup: paste in the wallet address, select its chain, and copy the results into the audit sheet. On Ethereum, the Etherscan Token Approval Checker offers another way to inspect an address. The snapshot is now the review’s starting state.
  3. Compare each spender address with the approved-spender list. Flag addresses absent from it, Unlimited allowances, and dapps the company no longer uses. Ask the responsible team whether a flagged approval is still needed; record the decision and any permitted amount. The resulting keep-or-revoke list gives signers a specific decision to review.
  4. For a Safe, prepare the revokes for that Safe and chain as one batch in Transaction Builder. Add each token contract call, then inspect the spender address and new allowance in every call before submitting the batch. An ERC-20 revoke sets that spender’s allowance to zero. Safe signers can confirm the batch once rather than confirm each revoke separately. Prepare another batch for a different Safe or chain.
  5. Collect the Safe’s required signer confirmations and execute the batch. A Safe transaction executes only after its signer threshold confirms. Record the executed transaction hash and date beside every affected approval, along with the wallet, chain, spender, and action. The log now ties each decision to an on-chain change.
  6. Re-scan every reviewed wallet and chain. Compare the active approvals with the keep list and investigate any unwanted spender still present. Mark the review complete only when the scan shows the approved spenders and the audit log contains the actions and transaction hashes.

Keep full contract addresses in the log. A familiar dapp name can refer to more than one spender, and matching names alone can preserve the wrong approval.

Put the Audit Into Ongoing Operations

Can token approval monitoring be automated with alerts?

Token approval monitoring can alert the wallet owner when a new spender or increased allowance appears. Compare those changes with the approved-spender list and assign someone to review each alert. Keep the scheduled full scan as well: it establishes the current approval set and catches items left unresolved in the alert queue.

Who should sign approval changes in a company Safe?

Safe owners who meet the wallet’s existing threshold should confirm approval changes. Have the preparer attach the flagged approval, policy decision, and proposed contract calls so signers can check what they are authorizing. Give at least one signer independent responsibility for checking spender addresses and amounts before the batch executes.

Related Questions

How often should a company review token approvals?

Set a recurring review date based on wallet activity and the value exposed to approvals. An actively used ops wallet may need a shorter interval than a rarely used treasury wallet. Also review after adopting a new dapp or ending one, rather than waiting for the next scheduled run.

What belongs in a token approval policy?

A token approval policy should identify permitted spender addresses by chain and token, the business reason for each permission, acceptable allowance limits, and who can approve exceptions. Give each exception an owner and a review date so it does not become permanent by default.

How do multisig wallets handle approvals?

A multisig wallet such as Safe grants or revokes a token approval through a transaction confirmed by its required signers. Transaction Builder can group several revokes for the same Safe and chain into one transaction. Record both the individual approval decisions and the shared execution hash in the audit log.

Top comments (0)