detect-task
Pass
Audited by Gen Agent Trust Hub on Aug 31, 2026
Risk Level: SAFECOMMAND_EXECUTIONEXTERNAL_DOWNLOADSDYNAMIC_EXECUTIONINDIRECT_PROMPT_INJECTION
Full Analysis
- [COMMAND_EXECUTION]: The skill relies on executing external commands via
child_process.spawnin multiple scripts (scripts/gen.mjs,scripts/run_loop.mjs, andscripts/lib/providers.mjs). It wraps thedlazyCLI tool and local Python scripts to perform tasks like image generation, quality detection, and compliance checking. - [EXTERNAL_DOWNLOADS]: The
scripts/lib/providers.mjsscript facilitates communication with various AI service providers, including OpenAI, Google Gemini, Fal, Replicate, and ByteDance Ark, by sending prompts and images and receiving generated content. - [DYNAMIC_EXECUTION]: The workflow involves assembling and executing shell commands dynamically based on user-provided task parameters and prompts. While the script implements basic argument escaping, this mechanism is a core part of the skill's design for managing complex AI workflows.
- [INDIRECT_PROMPT_INJECTION]: The skill implements a feedback loop in
scripts/run_loop.mjswhere the output of a quality check (thedetect-tasktool) is parsed, and suggested 'fixes' are automatically appended to the generation prompt for subsequent rounds. This creates a surface where malicious or adversarial content detected in an image (e.g., via OCR) could be extracted and injected into the AI's instruction context in the next iteration. - Ingestion points: The
parseReportfunction inscripts/run_loop.mjsextracts suggested fixes from the text output of thedetect-taskquality checker. - Boundary markers: No explicit boundary markers or 'ignore embedded instructions' warnings are added when the extracted fixes are appended to the generation prompt.
- Capability inventory: The skill uses
child_process.spawnfor command execution andfetchfor network operations across its scripts. - Sanitization: The script does not sanitize the extracted 'fix' strings before interpolating them into the next prompt, relying on the quality check model's output accuracy.
Audit Metadata