cketh
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 (medium risk: 0.30). Direct operation: the skill documents
withdraw_ethandwithdraw_erc20, which send real ETH or ERC-20 to a recipient address, and deposit flows that convert and mint assets. Withdrawals are direct financial transfers, so the control test applies. Qualifying control: the minter and ledgers enforce access on the caller's authenticated IC principal. In the non-custodial model,withdraw_*andicrc2_approveare called by the user's own identity, and the minter debits onlycaller + subaccountthrough an ICRC-2 allowance the ledger enforces. The doc states that the anonymous principal traps, so the service rejects unauthenticated callers. This is service-enforced authorization, not only agent-followed instructions. The custodial model is weaker, since the canister authenticates as one principal and per-user checks are left to the developer's code, but the non-custodial route alone establishes medium. Deposits are not treated as independent operations under the control test. Scope is established and access control is documented, so the answer is medium rather than high.
Issues (1)
W009
MEDIUMDirect money access capability detected (payment gateways, crypto, banking).
Audit Metadata