baoyu-xhs-images
Pass
Audited by Gen Agent Trust Hub on Aug 19, 2026
Risk Level: SAFECOMMAND_EXECUTIONPROMPT_INJECTION
Full Analysis
- [INDIRECT_PROMPT_INJECTION]: The skill ingests untrusted user content and interpolates it into prompts for image generation models. The instructions in 'references/workflows/prompt-assembly.md' lack explicit sanitization or strict boundary markers (such as 'ignore embedded instructions' warnings) to prevent malicious input from hijacking the image generation prompt. . . Ingestion points: User-provided source content is read and processed in analysis.md and outline.md before being used in Step 3. . . Boundary markers: The prompt template uses triple-dash separators between sections but does not provide specific instructions to the model to ignore potential commands within the user content section. . . Capability inventory: The skill has the capability to write to the filesystem (prompts/, outputs/), call image generation tools, and execute shell commands via discovery. . . Sanitization: No specific sanitization or filtering of external content was identified in the prompt assembly logic.
- [DYNAMIC_EXECUTION]: The skill uses a runtime discovery mechanism to locate and execute a wrapper script ('packages/baoyu-codex-imagegen/src/main.ts') by searching the filesystem hierarchy. This pattern allows the skill to work across different project structures but involves executing code from dynamically computed paths.
- [COMMAND_EXECUTION]: The skill instructs the agent to execute shell commands using tools like 'bun', 'npx', and 'baoyu-image-gen' to perform image rendering tasks. This is a core part of the skill's functional design for interfacing with various image generation backends.
Audit Metadata