hf-cloud-python-env-setup
Pass
Audited by Gen Agent Trust Hub on Sep 9, 2026
Risk Level: SAFECOMMAND_EXECUTIONEXTERNAL_DOWNLOADSINDIRECT_PROMPT_INJECTION
Full Analysis
- [COMMAND_EXECUTION]: The
scripts/setup_env.pyscript usessubprocess.runto manage virtual environments and install packages. These operations are restricted to standard development tools and are necessary for the skill's stated purpose. - Evidence: Multiple calls to
subprocess.runinscripts/setup_env.pyfor executinguv,venv, andpipcommands. - [EXTERNAL_DOWNLOADS]: The skill installs necessary dependencies from standard registries. The packages are well-known libraries for interacting with AWS services.
- Evidence: The skill automates the installation of
boto3andawsclifrom the official Python Package Index (PyPI) viapip. - [INDIRECT_PROMPT_INJECTION]: The environment setup and version check scripts accept command-line arguments that could potentially be influenced by external data in an automated pipeline. The scripts include basic validation to mitigate accidental misconfiguration.
- Ingestion points:
sys.argvusage inscripts/setup_env.pyandscripts/check_versions.pyto accept directory names, version strings, and package names. - Boundary markers: Not present.
- Capability inventory: Command execution via
subprocess.runand directory removal viashutil.rmtreeinscripts/setup_env.py. - Sanitization: The
parse_versionfunction inscripts/setup_env.pyvalidates the Python version string format and enforces a supported range (3.10-3.12).
Audit Metadata