midnight-passport

Warn

Audited by Snyk on Nov 24, 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). The skill is primarily about building and integrating a custody/identity layer (development guidance). Still, it documents a PassportAccount client with operational calls for depositing and withdrawing Night and shielded tokens (depositNight, withdrawNight, depositShielded, withdrawShielded), plus grant-based withdrawals. These are direct fund transfers, and the agent is taught to call them. The skill also documents the localnet demo funding deposits from a genesis wallet. Those flows are real transfers within the contract custody framework, not explicitly fake funds, so they stay in scope. Even if the "implement an app" framing is treated as a development exclusion, the PassportAccount API is presented as operations the agent can call.

For control, the contract authenticates withdrawals through a hash-preimage check on the device secret. The account.compact circuits are "gated by device witness", and gated operations bump a round counter against replay. The device secret is derived from a passkey with user verification required. This check is enforced by the contract (the execution layer), and the agent cannot make it accept an invalid secret. So the withdrawal route has a documented, independently enforced authorization mechanism. This is not merely an agent-followed warning or a spending limit. The skill does flag prototype weaknesses (Shamir shares in public state, hash-preimage auth only), but those concern the strength of the scheme, not the absence of access control. Direct operations with a qualifying control fall under medium.

Issues (1)

W009
MEDIUM

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

Audit Metadata
Risk Level
MEDIUM
Analyzed
Nov 24, 2026, 09:37 AM
Issues
1