sleepwell-loop
Fail
Audited by Gen Agent Trust Hub on Aug 25, 2026
Risk Level: HIGHCOMMAND_EXECUTIONPROMPT_INJECTION
Full Analysis
- [COMMAND_EXECUTION]: The skill implements a high-risk shell execution pattern in its finalization logic where it pipes the output of a helper tool directly into a shell:
sleepwell-helper ci-mirror | bash. - [COMMAND_EXECUTION]: During the verification phase (Step 5), the skill dynamically detects and executes commands defined in the project's manifest files, such as
package.json(npm scripts),pyproject.toml(ruff/pytest), andCargo.toml(cargo test). This allows a repository with malicious configuration files to execute arbitrary commands when the skill attempts to verify the code. - [PROMPT_INJECTION]: The skill is vulnerable to indirect prompt injection due to the way it constructs its iteration prompts in Step 3. It interpolates multiple sources of untrusted data without using security boundaries or sanitization.
- Ingestion points: Data is ingested from the user-provided
intentand local files including.sleepwell/notes.md,.sleepwell/voice-profile.md, and.sleepwell/calibration.md(SKILL.md, Step 3). - Boundary markers: Absent; the skill builds the prompt by concatenating strings and file contents directly into the instruction block.
- Capability inventory: The agent is granted capabilities to perform file system modifications (
Edit/Write) and arbitrary shell execution (Bash) in Step 4. - Sanitization: No escaping or validation is performed on the data before it is interpolated into the prompt context.
- [COMMAND_EXECUTION]: The skill uses the
ScheduleWakeupmechanism to create an autonomous, self-perpetuating loop. While this is the primary intent of the skill, it allows for persistent, automated execution of the agent's logic without continuous user oversight.
Recommendations
- AI detected serious security threats
Audit Metadata