ssh-dev-suite/long-task
Warn
Audited by Gen Agent Trust Hub on Oct 23, 2026
Risk Level: MEDIUMCOMMAND_EXECUTIONINDIRECT_PROMPT_INJECTION
Full Analysis
- [COMMAND_EXECUTION]: The script
scripts/checkpoint.shis vulnerable to a heredoc escape that allows remote command injection. Thewriteaction constructs a remote command using a heredoc (<< 'CHECKPOINT_EOF') but interpolates user-provided metadata into the command string. An attacker could provide a value (e.g., in the--taskor--nextparameters) containing the stringCHECKPOINT_EOFfollowed by arbitrary shell commands, which would be executed on the remote server when the heredoc is terminated prematurely. - [INDIRECT_PROMPT_INJECTION]: The skill implements a workflow where the agent reads and executes "next steps" stored in a remote file (
~/.ssh-jobs/<job_id>/checkpoint.md). This creates a vulnerability surface for indirect prompt injection. - Ingestion points: The
checkpoint.mdfile on the remote server, retrieved viabash long-task/scripts/checkpoint.sh read. - Boundary markers: None. The content is parsed as YAML and the agent is instructed to "按checkpoint中的next_steps继续:逐步执行" (continue according to next_steps in the checkpoint: execute step by step).
- Capability inventory: The skill has full shell access to the remote server via
ssh-job.shandssh-exec.sh. - Sanitization: None. There is no validation or filtering of the
next_stepscontent before the agent executes the instructions found therein.
Audit Metadata