Skip to content
Security
← Smart Account known risks
SA-29InfoBy designPolicies

Program-interaction policies only track SOL and token balances

Balance checks cover the smart account's lamports and the token accounts passed in. Other assets and state are not checked.

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

What a program-interaction policy permits is chosen by the smart account. Its balance checks are documented as narrow by design. What is a vulnerability
Program
Squads Smart Account
Source
Public program behavior
Code
View at 0e51082

A program-interaction policy restricts which instructions its smart account can run and, optionally, how much SOL or tokens can leave. Those checks compare the smart account’s lamports, and the balances of writable token accounts it owns that are passed in, before and after execution. Other changes, such as accounts not passed in, other asset types, and program state, are governed only by the instruction constraints.

Pre- and post-hooks call another program, signed by a single program-wide hook authority, so a hook cannot use that signature to tell which smart account invoked it. A failing hook blocks execution.

What to do

  • Constrain programs, discriminators, and accounts tightly rather than relying on balance checks.
  • Integrators: explain which assets a policy’s limits do and don’t cover.