hf-cloud-serving-image-selection
Pass
Audited by Gen Agent Trust Hub on Aug 15, 2026
Risk Level: SAFE
Full Analysis
- [COMMAND_EXECUTION]: The
scripts/mirror_image.pyscript executes system commands via thesubprocessmodule to interact withdockerand theawsCLI. Analysis confirms that commands are passed as argument lists (e.g.,subprocess.run([docker, 'pull', public_uri])) rather than shell strings, which effectively prevents shell injection vulnerabilities. The script also follows security best practices by passing sensitive tokens todocker loginviastdinrather than as command-line arguments. - [EXTERNAL_DOWNLOADS]: The skill references several external resources, including the AWS Deep Learning Containers catalog (
aws.github.io), GitHub API for repository metadata, and Hugging Face model configurations. All referenced domains are trusted organizations or well-known services. Themirror_image.pyscript performs image pulls frompublic.ecr.awsandghcr.io, which are standard, trusted registries for the intended infrastructure tasks. - [INDIRECT_PROMPT_INJECTION]: The skill defines a data ingestion surface by instructing the agent to fetch and parse
config.jsonfiles from Hugging Face model repositories (huggingface.co) to determine the appropriate serving architecture. - Ingestion points: Model configuration files fetched from
huggingface.coviacurl. - Boundary markers: None explicitly defined in the prompt interpolation.
- Capability inventory: The agent has access to
mirror_image.py, which can perform Docker and ECR operations. - Sanitization: The agent is directed to specifically extract the
architectureskey from the JSON structure, reducing the risk of accidental instruction following from other metadata fields. Given the narrow scope of the data being read and the trusted nature of the source platform, the risk is negligible.
Audit Metadata