Security

How to Revoke a Bot’s Access to Your Safe With One Signature

Revoking a bot session is one wallet signature from the app, or one removeSession call from any Safe tool if the app is gone. What the signature does on-chain, how to confirm the sessions are really off, and what cannot be revoked because it was never granted.

2026-11-27 8 min readBy DCA Bot Research
The bot’s only access to your Safe is a set of ERC-7579 Smart Sessions stored in the Safe’s own contract. Smart Account page → Revoke builds one operation that calls removeSession for every active session and asks your wallet for one signature. After it confirms, the session key can do nothing. If the app is gone, the same call can be made from Safe{Wallet} or any Safe tool, because your wallet owns the Safe and its validator. You can confirm the result on Verify a Safe.

A permission you cannot take back is not a permission, it is a transfer. This article is about taking it back: what the bot actually holds on your Safe, what the one-signature revoke does, how to do it with no help from the app, how to check it worked, and what there is no need to revoke because the bot never had it.

What “Access” Means Here

DCA Bot never holds a key to your Safe. Your wallet is the Safe’s sole owner and, after the handover that runs right after deployment, the sole owner of its OwnableValidator. What the bot holds is a session key, kept encrypted on its server, whose permissions are written into the SmartSession module installed on your Safe: one session per swap direction of each pair you allowed. Each session may approve the Uniswap V3 router for the token it sells, call exactInputSingle with that exact input token, output token and your Safe as the recipient, and transfer the platform fee to the fee wallet. Revoking means removing those sessions from the module’s storage. Once they are gone, a UserOperation signed by the session key fails validation and never executes.

Revoking From the App: One Signature

  1. Open the Smart Account page and find the Safe.
  2. Press Revoke. The server looks up every session it created for that Safe, checks on-chain which are still enabled, and builds one unsigned ERC-4337 UserOperation that calls removeSession(permissionId) on the SmartSession contract for each of them.
  3. Your wallet shows one signature request for that operation’s hash.
  4. The signed operation is submitted through a bundler and pays gas from the Safe’s ETH. When it confirms, the app marks the bot inactive on that Safe and shows “Session revoked — the bot can no longer trade on this Safe.”

Strategies on that Safe stop: the app marks the bot inactive there, and even if it did not, a swap signed by the session key would be rejected by the chain. If you want the bot back later, allowing a pair creates fresh sessions with one more signature.

What That Signature Does On-Chain

The operation is validated by the OwnableValidator, which checks that the signature comes from the validator’s owner, your wallet. The Safe then executes a batch of calls to the SmartSession contract, each one removeSession with a permission id. The contract deletes the session’s policies and emits an event; from then on isPermissionEnabled for that id returns false. There is no server-side flag involved in enforcement. The server’s database is updated so the app shows the right state, but if it were not, the chain would still refuse the session key.

Revoking Without the App

If dcabot.app is unreachable, you need three things: the Safe’s address and network, the SmartSession contract address (listed on the security page, the same on Arbitrum and Base), and the permission ids of the active sessions. The Verify page lists them while it exists; without it, the SmartSession contract’s getPermissionIDs(account) returns them, and SessionCreated(permissionId, account) events on your Safe show every session ever enabled.

  1. Load the Safe in Safe{Wallet} (app.safe.global) on the right network and connect the owner wallet.
  2. Open the transaction builder, enter the SmartSession address, and pick removeSession(bytes32 permissionId).
  3. Add one call per active permission id, in one batch.
  4. Sign and execute. The threshold is one, so your signature alone executes it; gas comes from the Safe’s ETH.

This route uses the Safe’s ordinary owner path rather than the validator, which is why it needs no bundler and no server. A script using the Safe SDK or a command-line Safe tool does the same thing.

Confirming the Sessions Are Really Off

  • Verify page. Paste the Safe address. Under sessions it should say the SmartSession module is installed but no session is enabled, and list the removed ones as no longer able to act.
  • Block explorer. On the SmartSession contract’s read tab, isPermissionEnabled(permissionId, yourSafe) returns false for each id you removed.
  • Open-source verifier. A read-only command-line tool that performs the same checks from your own machine is planned; the security page will link it once it is published. Until then the Verify page and the block explorer are the two independent checks.
Revoking does not uninstall the SmartSession module itself. An installed module with no sessions can do nothing; leaving it in place means re-allowing a pair later is one signature instead of a reinstall.

What Cannot Be Revoked, Because It Was Never Granted

Part of the value of a scoped permission is the list of things that are not in it. The bot’s session never had the right to transfer tokens to any address but the fee wallet, to send ETH, to swap into a token outside the pinned pair, to swap to a recipient other than your Safe, to add or remove owners, or to install or remove modules. There is nothing to revoke there and nothing to check afterwards; those calls fail validation on a session key today exactly as they will after the revoke.

What a session can do until revoked is also worth stating: swap your allowed pairs inside your Safe, at a minimum output computed by the server, and send the fee transfer whose amount is not capped on-chain yet. Those are the residual risks in the threat model, and the revoke is the answer to both.

Compared With Deleting an API Key

Exchange API keySafe session
Who enforces the revocationThe exchange’s serversThe Safe contract
Needs the bot platformNo, but needs the exchangeNo; works from any Safe tool
Can be verified from outsideNoYes, by reading the contract
Copies of the credential elsewhereStay valid until the exchange deletes the keyUseless the moment the session is removed
Funds during revocationOn the exchangeIn your Safe

The difference that matters is the last column but one. A leaked API key is dangerous until the exchange processes the deletion; a leaked session key is only ever as dangerous as its on-chain permission, and after the revoke that permission is gone wherever the key is. Is it safe to give a bot your API keys goes through why.

After Revoking

Your funds are where they were, in a Safe your wallet owns. You can leave them, withdraw them with the app’s Withdraw button, or move them out with Safe{Wallet} as described in withdrawing without the app. If you revoked to test the mechanism rather than to leave, re-allowing the default pair from the Smart Account page is one signature. It is a reasonable thing to do once with a small balance, early: a revoke you have performed is worth more than one you have read about, and it is the kind of check the bot security checklist asks you to make before trusting any automation with more.

Frequently Asked Questions

Does revoking need the bot’s server to cooperate?

From the app, the server builds the unsigned operation and submits it after you sign; it cannot alter what you signed, because the signature covers the operation’s hash. Without the app, you call removeSession on the SmartSession contract from your Safe yourself, and the server is not involved at all.

Does revoking move my funds?

No. It removes the bot’s permissions and nothing else. Your tokens stay in the Safe; withdrawing is a separate transaction, covered in the article on withdrawing without the app.

Can I revoke one pair and keep another?

The app’s Revoke button removes every bot session on the Safe. To remove a single direction, call removeSession with only that session’s permission id from a Safe tool. The Verify page lists each session with its id.

I have an older Safe and the app shows “Upgrade security”. Do I revoke first?

Safes created before the October 2026 permission upgrade carry an older, broader session. The upgrade replaces it with pinned per-pair sessions in one signature; a revoke on such a Safe removes the old session too. Either path ends with the server unable to trade; the upgrade is the one to take if you intend to keep using the bot.

Ready to automate your crypto trading?

Set up DCA, grid, or limit-order strategies on Uniswap V3 for Arbitrum and Base — from your own Safe, with a free demo to start.

Back to Blog