> For the complete documentation index, see [llms.txt](https://docs.maple.finance/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.maple.finance/technical-resources/admin-functions/security-admin-actions.md).

# Security Admin

The Security Admin is the address stored as `securityAdmin` in [Maple Globals](https://docs.maple.finance/technical-resources/singletons/globals.md), appointed by the Governor with `setSecurityAdmin`. It has three jobs: pausing, upgrading instances, and containing incidents on the Allocation Strategy. It has no say over fees or impairments. On caps and capital movement, it acts only through the Allocation Strategy incident controls below.

## Globals

Shared with the Governor:

* `setProtocolPause`
* `setContractPause`
* `setFunctionUnpause`

See [Emergency Protocol Pause](https://docs.maple.finance/technical-resources/security/emergency-protocol-pause.md) for how the three switches combine.

## Upgrades

The Security Admin calls `upgrade(version, arguments)` directly on an instance. The factory then checks that the Governor has enabled the upgrade path to that version. None of these calls needs a scheduled call in Globals.

| Contract               | Other callers                        |
| ---------------------- | ------------------------------------ |
| Pool Manager           | none                                 |
| Strategy Manager       | none                                 |
| Aave V3 Strategy       | none                                 |
| Sky Strategy           | none                                 |
| Allocation Strategy    | none                                 |
| Open Term Loan         | none                                 |
| Open Term Loan Manager | Pool Delegate, with a scheduled call |
| Withdrawal Manager     | Pool Delegate, with a scheduled call |

See [Timelocked Functions](https://docs.maple.finance/technical-resources/admin-functions/timelocks.md) for the Pool Delegate path.

## Allocation Strategy incident controls

Shared with the Strategy Delegate, on each [Allocation Strategy](https://docs.maple.finance/technical-resources/strategies/allocation-strategy.md):

* `cancelYield(assets, recipient)` claws back yield a Managed Wallet reported but has not yet streamed to the Pool. Passing `type(uint256).max` cancels all unrealized yield. The recipient must be a registered `MAPLE_MANAGED_WALLET`.
* `setPermissions(accounts, canDeployAssets, canReturnAssets, canRealizeYield)` can revoke every flag on any address. Granting any flag requires the address to be a registered `MAPLE_MANAGED_WALLET`.
* `setDeploymentCaps(accounts, amounts)` can set a cap of zero on any address. A non-zero cap requires a registered `MAPLE_MANAGED_WALLET`.

Apart from these three functions and `upgrade()`, the Security Admin cannot call any strategy function, including `impair` and `recognizeLoss`. See [Managed Wallets](https://docs.maple.finance/technical-resources/strategies/allocation-strategy/managed-wallets.md).


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.maple.finance/technical-resources/admin-functions/security-admin-actions.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
