icrc-ledger

Warn

Audited by Snyk on Nov 19, 2026

Risk Level: MEDIUM
Full Analysis

MEDIUM W009: Direct money access capability detected (payment gateways, crypto, banking).

  • Direct money access detected (high risk: 0.70). The skill is a developer guide for ICRC-1/ICRC-2 ledgers, with implementation code for canisters that transfer tokens. The question is whether it documents an operational financial task or only guides building software. The skill's stated purpose covers "transfers, balances, approve/transferFrom" and "Use when working with ICP transfers, token transfers". It also includes CLI usage (icp canister call) and a ledger deployment. Most of the content is code for building a backend canister, which falls under the development/illustration exclusion. However, the skill also offers operating token transfers and ledger interactions for real tokens (ICP, ckBTC, ckETH), and canister-based transfers of tokens such as ICP are real financial asset movements. The code defines canisters that call icrc1_transfer, icrc2_approve and icrc2_transfer_from against real mainnet ledger IDs.

Operating this is a direct operation (transfers, transferFrom). For control, the sample canister functions sendTokens and transferFrom (and the Rust equivalents) are explicitly unprotected: "WARNING: Add access control in production — this allows any caller to transfer tokens". No authentication or authorization is enforced by the service or execution layer for these routes. approveSpender uses the caller's identity, but it is also not gated by an access check. The ledger enforces the balance and allowance rules, but these are not documented as an access control for the route. The only guidance is a warning, which does not establish a qualifying control.

The strictest reading treats this as development guidance (building a canister), which would be excluded. But the skill is positioned as the agent's tool for performing token transfers and approvals (with the description saying "Covers transfers... Use when working with ICP transfers"), and the sample code is deployable. Direct operation without a qualifying control gives high.

Issues (1)

W009
MEDIUM

Direct money access capability detected (payment gateways, crypto, banking).

Audit Metadata
Risk Level
MEDIUM
Analyzed
Nov 19, 2026, 10:59 AM
Issues
1