modal-serverless-gpu

Pass

Audited by Gen Agent Trust Hub on Apr 7, 2026

Risk Level: SAFEEXTERNAL_DOWNLOADSCOMMAND_EXECUTIONREMOTE_CODE_EXECUTIONPROMPT_INJECTION
Full Analysis
  • [EXTERNAL_DOWNLOADS]: The skill fetches the modal CLI and various machine learning packages (such as torch and transformers) from official package registries. It also provides an example of installing code from the official HuggingFace GitHub repository, which is a trusted and well-known service in the machine learning ecosystem.
  • [COMMAND_EXECUTION]: The skill utilizes subprocess.run to execute platform-native commands like nvidia-smi for GPU hardware discovery and torch.distributed.launch for parallel training tasks. These are standard operations for the intended use case of GPU infrastructure management.
  • [REMOTE_CODE_EXECUTION]: The skill enables the remote execution of Python code and shell tasks on Modal's serverless infrastructure via the modal run, modal deploy, and Sandbox APIs. This functionality is the primary and documented purpose of the skill.
  • [PROMPT_INJECTION]: The skill contains a TextGenerator class in SKILL.md that ingests untrusted user input through a prompt parameter. While it lacks explicit boundary markers or sanitization, the skill's capabilities are scoped to machine learning inference and orchestrating the Modal platform, posing no risk to the agent's core safety guidelines.
  • [CREDENTIALS_UNSAFE]: The skill demonstrates the correct use of Modal's secret management system (modal.Secret) to handle sensitive API tokens and cloud credentials. No hardcoded secrets were detected in the source code.
Audit Metadata
Risk Level
SAFE
Analyzed
Apr 7, 2026, 11:12 AM