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--stepswithincontract-preflight.ts. - Boundary markers: The skill implements defensive constraints, including a
MAX_EXPRESSION_LENGTHof 2,000 characters and aMAX_STEPS_PER_SESSIONof 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 tohttps://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
commanderlibrary to facilitate the execution of shell-based commands (doctor,run) via thebunruntime. These commands take user-supplied input to drive the transaction simulation flow.
Audit Metadata