Works with the AI Agents you already use

    Spl Token 2022 Security

    by BanditXBT

    1

    Token and Token-2022 extension risks, mint/freeze authority checks, and a listing/collateral risk screen.

    Free

    2 usesSecurity scanned

    About this skill

    If your program accepts arbitrary mints, you are accepting arbitrary behavior. Allowlist, or code for the worst case.

    Two token programs exist (legacy SPL Token and Token-2022). A token account/mint is owned by one of them. Never hardcode only the legacy program; accept the correct one by validating the mint's owner. In Anchor use token_interface (InterfaceAccount<Mint>, InterfaceAccount<TokenAccount>, Interface<TokenInterface>) and CPI through the passed and validated token program (use transfer_checked, which verifies mint and decimals).

    ExtensionRisk
    Transfer feeReceived amount < sent amount; accounting by amount overcredits. Compute net via the mint's fee config or measure balance delta.
    Transfer hookArbitrary program runs on every transfer: extra required accounts, reentrancy-like behavior, compute use, and ability to block transfers (DoS/freeze-like).
    Permanent delegateA delegate can transfer/burn from any holder's account, including your vault. Reject for custody/collateral.
    Non-transferableCannot move: deposits can't be withdrawn.
    Default account state / freezeNew accounts may start frozen; issuer can freeze your vault.
    Mint close authorityMint can be closed (if supply 0) and re-created.
    Interest-bearing / scaled UI amountDisplayed amount ≠ raw amount; use raw amounts for accounting, UI conversion only in clients.
    Confidential transferBalances not visible on-chain; incompatible with most accounting.
    CPI guard, memo-requiredTransfers via CPI may be refused; memo required.
    Pausable / metadata / group pointersPausable halts transfers; metadata is untrusted text.

    The extension set keeps growing (newer additions include scaled UI amounts and pausable mints): read the current Token-2022 docs for the live list instead of trusting this table as complete. Policy: maintain an extension allowlist; on init, read the mint's extension list and reject unsupported ones. Re-check where extensions can be changed post-hoc (authorities can add some extensions later: guard with authority checks).

    How to use

    1. 1

      Connect your agent to the Agensi MCP

      Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup

    2. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 3

      Ask for what you need

      Your agent loads this skill and uses it on your task. It always asks before buying a skill.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill goes through the trust checks below.

    Security scanned

    Checked by our 8-point scan before listing

    2 uses

    Times used to date

    Free to use

    No account required to browse

    Trust & safety

    Security scan

    Security scan passed 13 days ago

    • Free with an Agensi account

    Requires

    Nothing to install.

    Permissions

    No special permissions declared or detected

    Listed13 days ago

    What's inside

    Frequently Asked Questions

    Token and Token-2022 extension risks, mint/freeze authority checks, and a listing/collateral risk screen.

    This skill uses the open SKILL.md standard. Use it through an MCP-compatible agent connected to Agensi, and check the compatibility information on this page for confirmed agents and required capabilities.

    Connect your AI agent to Agensi through MCP, then ask it to use spl-token-2022-security on your task. Your agent loads the latest approved version each time. Paid skills require a purchase or active subscription. Skill files are not available for download; your licence does not allow you to save, copy or export any part of a skill.

    New in Security

    Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Security.

    Free