ankr-midnight

Fail

Audited by Snyk on Nov 24, 2026

Risk Level: CRITICAL
Full Analysis

CRITICAL E004: Prompt injection detected in skill instructions.

  • Potential prompt injection detected (medium risk: 0.30). The skill is a legitimate Ankr RPC integration guide that keeps API keys in env vars and uses the official-looking rpc.ankr.com endpoints, but its mainnet config silently routes proof generation, which involves private witness data, to a third-party proof server (api.1am.xyz) without a warning.

MEDIUM W011: Third-party content exposure detected (indirect prompt injection risk).

  • Third-party content exposure detected (low risk: 0.10). The required workflow calls Ankr Midnight JSON-RPC methods (for example midnight_jsonContractState, chain_getBlock, and system_*), so on-chain contract state and block JSON, which anyone can influence by submitting transactions, enter the agent's context, but the agent must choose a specific contract address or block hash rather than consuming a continuous outsider-writable feed.

MEDIUM W013: Attempt to modify system services in skill instructions.

  • Attempt to modify system services in skill instructions detected (low risk: 0.10). The skill lists offchain_localStorageSet as a remote node write operation, which can establish a state change, but it gives no irreversible operational loss evidence, so the tier stays at low.

Issues (3)

E004
CRITICAL

Prompt injection detected in skill instructions.

W011
MEDIUM

Third-party content exposure detected (indirect prompt injection risk).

W013
MEDIUM

Attempt to modify system services in skill instructions.

Audit Metadata
Risk Level
CRITICAL
Analyzed
Nov 24, 2026, 09:37 AM
Issues
3