diffusers-cli
Pass
Audited by Gen Agent Trust Hub on Oct 3, 2026
Risk Level: SAFECOMMAND_EXECUTIONREMOTE_CODE_EXECUTIONINDIRECT_PROMPT_INJECTIONEXTERNAL_DOWNLOADSDYNAMIC_EXECUTION
Full Analysis
- Remote Execution and Sandbox Management: The skill enables the execution of workloads on remote hardware through the
--remoteflag. This involves creating isolated Hugging Face Sandboxes, where the tool installs necessary dependencies and executes the requested pipeline. This capability provides the agent with access to cloud-based compute resources to perform intensive tasks. - Credential and Token Forwarding: The tool facilitates the transfer of Hugging Face authentication tokens (
HF_TOKEN) to remote execution environments. This allows the sandbox to access private models and services on behalf of the user. Users should ensure they trust the environment where these tokens are being utilized. - Dynamic Code and Dependency Installation: The skill supports the installation of additional Python packages via the
--dependenciesflag and the execution of custom repository code when the--trust-remote-codeflag is enabled. These features allow for runtime customization of the execution environment and the loading of modular pipeline components from the Hugging Face Hub. - Indirect Prompt Injection Surface: The skill processes external data, including textual prompts and media URLs (images, videos, audio) provided through the
--pipeline-kwargsparameter. This represents an attack surface where untrusted data is ingested into the agent's processing pipeline. - Ingestion points: Data enters the system via the
--pipeline-kwargsJSON object inrun.md. - Boundary markers: No specific delimiters or safety instructions are defined to separate user-provided content from system instructions within the generated prompts.
- Capability inventory: The tool possesses significant capabilities, including file writing (local output handling), network operations (bucket uploads via
--push-to), and shell command execution. - Sanitization: Input values are passed directly to the underlying diffusion pipelines and media loading utilities without explicit sanitization or filtering at the skill layer.
Audit Metadata