Skip to content
Security
← Smart Account known risks
SA-03LowAcceptedSigning & execution

Called programs and policy hooks can be upgraded after approval

A transaction or policy names programs by address. If those programs are upgradeable, their behavior can change after signers approve.

Why this is a risk, not a vulnerability · Documented behavior

The program executes exactly what was approved. Changes to other programs are outside its control and are an upstream trust assumption. What is a vulnerability
Program
Squads Smart Account
Source
Neodyme ND-SQD1-L2 (Squads V4); public program behavior
Code
View at 0e51082

Instructions in a stored transaction reference programs by address only. If a called program is upgradeable, its upgrade authority can change what it does between approval and execution.

Policies extend the window. A program-interaction policy binds instruction constraints and pre/post hooks to program addresses, and stays in force until it expires or is removed. An upgradeable target or hook program can change behavior long after the policy was approved.

What to do

  • Check whether every program a transaction or policy calls is upgradeable, and who holds its upgrade authority.
  • Prefer immutable programs as policy targets and hooks; give policies an expiration.
  • Integrators: flag upgradeable programs in transaction and policy review.