← Explore all skills

SECURITY / trailofbits

Token Integration Review

Review token implementations and protocol integrations for non-standard transfer and approval behavior.

“Token integration and implementation analyzer based on Trail of Bits' token integration checklist. Analyzes token implementations for ERC20/ERC721 conformity, checks for 20+ weird token patterns, assesses contract composition and owner privileges, performs on-chain scarcity analysis, and evaluates how protocols handle non-standard tokens. Use when integrating or accepting arbitrary ERC20/ERC721 tokens, auditing a token implementation for standards conformity, or assessing risk from weird tokens such as fee-on-transfer, rebasing, missing return values, or blocklists.”

01 / THE REASONING

Why this made the selection.

  • The checklist separates missing return values, transfer fees, rebasing, hooks and owner-controlled changes, and asks whether the protocol handles those behaviors rather than relying on token reputation.
  • Check whether deposit accounting credits actual received balances when a token charges transfer fees.

02 / THE REVIEW RECORD

What we actually inspected.

Source review has boundaries.
A clear record is more useful than a “safe” badge.

Material inspected

  • plugins/building-secure-contracts/skills/token-integration-analyzer/SKILL.md
  • plugins/building-secure-contracts/skills/token-integration-analyzer/resources/ASSESSMENT_CATEGORIES.md
  • LICENSE
  • README.md

Our findings

  • The checklist separates missing return values, transfer fees, rebasing, hooks and owner-controlled changes, and asks whether the protocol handles those behaviors rather than relying on token reputation.

Not established by this review

  • Third-party instructions and helpers were not executed; service access, host compatibility and outcomes remain untested.

The review applies to the material and revision named here. A newer upstream release can change its behavior.

03 / PUT IT TO WORK

Add a skill to your workflow.

Upstream setup instructions ↗

DOCUMENTED COMMAND

npx skills add trailofbits/skills/plugins/building-secure-contracts/skills/token-integration-analyzer

Run in your terminal to choose your AI tools, project or global scope, and installation method. This short command follows the current upstream version; the review covers the revision shown above.

Optional: install the reviewed revision

Keeps the original source and installer version where recorded, while leaving your AI tools and installation scope for you to choose.

npx skills add https://github.com/trailofbits/skills/tree/0f44fe01dcb00bd6929b4ba82a257d305de04554/plugins/building-secure-contracts/skills/token-integration-analyzer
  1. Install the pinned directory interactively and retain its referenced files; inspect the source before granting tool access.
  2. Identify chain, address, implementation and block context; inspect transfer/approval behavior and test relevant non-standard cases before drawing integration conclusions.

Before you start

  • Contract sources, compatible Solidity tooling and optional authorized RPC/indexer access for deployed-state queries

04 / FOLLOW THE EVIDENCE

The source trail.

Our notes are separate from the original resource.
Check upstream before adopting a new version.

  1. https://github.com/trailofbits/skills/blob/0f44fe01dcb00bd6929b4ba82a257d305de04554/plugins/building-secure-contracts/skills/token-integration-analyzer/SKILL.md

    Supports: summary, review, install, access, limitations

  2. https://github.com/trailofbits/skills/blob/0f44fe01dcb00bd6929b4ba82a257d305de04554/plugins/building-secure-contracts/skills/token-integration-analyzer/resources/ASSESSMENT_CATEGORIES.md

    Supports: summary, review, install, access, limitations

  3. Pinned LICENSE ↗Checked

    https://github.com/trailofbits/skills/blob/0f44fe01dcb00bd6929b4ba82a257d305de04554/LICENSE

    Supports: license

  4. Pinned README.md ↗Checked

    https://github.com/trailofbits/skills/blob/0f44fe01dcb00bd6929b4ba82a257d305de04554/README.md

    Supports: summary, review, install, access, limitations

Evidence & Ask