contract-preflight

Pass

Audited by Gen Agent Trust Hub on Nov 11, 2026

Risk Level: SAFEINDIRECT_PROMPT_INJECTIONCOMMAND_EXECUTION
Full Analysis
  • [INDIRECT_PROMPT_INJECTION]: The skill has an attack surface for indirect prompt injection as it ingests untrusted data that flows into network operations and agent decision-making logic.
  • Ingestion points: Untrusted data enters the skill via CLI arguments --expression, --contract, and --steps within contract-preflight.ts.
  • Boundary markers: The skill implements defensive constraints, including a MAX_EXPRESSION_LENGTH of 2,000 characters and a MAX_STEPS_PER_SESSION of 20, to mitigate large-scale injection or resource exhaustion.
  • Capability inventory: The skill possesses network capabilities via fetch(), which is used to transmit the ingested data to https://api.stxer.xyz. It also generates recommendations (e.g., "Safe to broadcast") that influence downstream agent behavior.
  • Sanitization: The skill performs JSON structure validation for batch operations and length checks, but it does not perform deep sanitization or escaping of the Clarity code expressions before they are sent to the simulation engine.
  • [COMMAND_EXECUTION]: The skill utilizes the commander library to facilitate the execution of shell-based commands (doctor, run) via the bun runtime. These commands take user-supplied input to drive the transaction simulation flow.
Audit Metadata
Risk Level
SAFE
Analyzed
Nov 11, 2026, 02:49 AM