generate-image
Pass
Audited by Gen Agent Trust Hub on Oct 27, 2026
Risk Level: SAFEREMOTE_CODE_EXECUTIONDYNAMIC_EXECUTIONCOMMAND_EXECUTIONEXTERNAL_DOWNLOADSINDIRECT_PROMPT_INJECTION
Full Analysis
- [REMOTE_CODE_EXECUTION]: The environment check script
doctor.pyfacilitates the installation of theuvpackage manager by downloading its official installer fromastral.shand piping it directly to the shell. This is a standard and recommended installation method for this well-known tool. - [DYNAMIC_EXECUTION]: The
generate.pyscript performs runtime dependency management to enable local image generation. If themfluxlibrary is not found, the script usesos.execvto re-execute itself through theuvtool, dynamically injecting themfluxpackage from the Python Package Index (PyPI) for the duration of the run. - [COMMAND_EXECUTION]: The skill integrates with several local system utilities to function:
- It invokes the
codexCLI viasubprocess.runto perform image generation tasks. - It utilizes the macOS
securitycommand-line tool inkeychain.pyto securely store and retrieve user API keys from the system's encrypted keychain, which is a security best practice. - It uses
sysctlto verify available system RAM and theopencommand to display generated assets to the user on macOS. - [EXTERNAL_DOWNLOADS]: The
backends.pyscript makes network requests to well-known cloud services including Replicate, OpenAI, and Google Gemini to generate and download image assets. These operations are performed over secure connections to official service endpoints. - [INDIRECT_PROMPT_INJECTION]: The skill possesses an indirect prompt injection surface as it ingests user-supplied prompts in
generate.pyand interpolates them into the multi-line instructions sent to thecodextool. While no explicit sanitization is performed on the prompt text itself, the downstream execution environment in thecodextool is restricted by a read-only sandbox. - Ingestion points:
generate.py(prompt argument) - Boundary markers: Absent
- Capability inventory:
subprocess.run(tocodexCLI), network access, file system writes - Sanitization: Absent
Audit Metadata