1. Autonomous Agent Detection
Most DeFi incidents create one of two risk patterns:- Collateral depeg: a collateral asset loses its expected value or backing. This can happen because of excessive token minting, flawed protocol design, compromised keys, or oracle issues.
- Liquidity trap: a lending market becomes impossible to exit because borrowers cannot repay debt, liquidity dries up, or the pool enters economic insolvency.
2. Human-in-the-Loop Override
Zyfai also maintains a human risk override system. When a major incident occurs, the Zyfai quants team is alerted and can manually flag a pool as not-live on the Risk Dashboard. Once a pool is flagged, the Agent stops allocating capital to it and begins moving existing user positions away from the affected pool. Response workflow:- The Zyfai team is alerted about a DeFi hack, depeg, key compromise, liquidity issue, or collateral backing concern.
- Impacted pools are identified across all supported protocols.
- Affected pools are switched from live to not-live.
- The Agent exits all positions from flagged pools.
- Capital is reallocated to safer opportunities or left unallocated when no suitable alternative is available.
3. Session Key Kill Switch
Sections 1 and 2 cover incidents in underlying DeFi protocols. If an incident instead affects the Session Key or Guarded Executor Module layer, Zyfai can halt delegated execution globally. The Zyfai 3/5 multisig owns the Guarded Executor Module and can callpause() (0x8456cb59) on the module contract. Once paused, all Session Key–driven execution through the module stops immediately: no Agent can move capital via Session Keys until the module is unpaused.
User funds remain in their Smart Accounts. Pausing only disables Agent execution via Session Keys; it does not move or seize capital.
Proven Track Record
The protocol-risk layers above have already protected Zyfai users’ capital during real DeFi incidents:
In each case, automated monitoring combined with human risk override helped move user capital away from unsafe conditions before losses reached Zyfai users.