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
modalCLI and various machine learning packages (such astorchandtransformers) 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.runto execute platform-native commands likenvidia-smifor GPU hardware discovery andtorch.distributed.launchfor 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, andSandboxAPIs. This functionality is the primary and documented purpose of the skill. - [PROMPT_INJECTION]: The skill contains a
TextGeneratorclass inSKILL.mdthat ingests untrusted user input through apromptparameter. 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