modal
Pass
Audited by Gen Agent Trust Hub on Oct 2, 2026
Risk Level: SAFECOMMAND_EXECUTIONDYNAMIC_EXECUTIONINDIRECT_PROMPT_INJECTIONEXTERNAL_DOWNLOADS
Full Analysis
- [COMMAND_EXECUTION]: The skill uses
subprocess.runandsubprocess.Popenin several examples to launch external tools such astorchrun,accelerate, and thevLLMserver. These are documented with clear security warnings advising the use of hardcoded argument lists to prevent command injection. - [DYNAMIC_EXECUTION]: The skill facilitates the execution of dynamically generated or untrusted code using
modal.Sandbox, which is designed for isolated execution. It also supports running Python functions during the container image build process viaImage.run_functionand supports dynamic loading of local modules viaadd_local_python_source. - [INDIRECT_PROMPT_INJECTION]: The skill presents vulnerability surfaces where the agent might process untrusted data.
- Ingestion points: Data is fetched from arbitrary URLs in the web scraping example (
references/examples.md) and accepted via JSON request bodies in web endpoint examples (references/web-endpoints.md). - Boundary markers: The provided examples do not explicitly demonstrate the use of delimiters or prompt instructions to ignore embedded commands in the fetched content.
- Capability inventory: The skill provides access to powerful capabilities including
subprocess.runfor shell execution,modal.Sandboxfor running arbitrary code,modal.Volumefor persistent file system access, andmodal.Secretfor managing credentials. - Sanitization: The skill provides security guidance, recommending the use of
modal.Sandboxfor untrusted code execution and using fixed argument lists for subprocess calls. It also includes an example of validating input identifiers (e.g.,doc_id) using character allowlists. - [EXTERNAL_DOWNLOADS]: The skill downloads the
modalSDK and various machine learning libraries (e.g.,torch,transformers,vllm) from standard package registries. It also fetches pre-trained models from Hugging Face Hub, which is a well-known service. All downloads target trusted organizations or well-known services.
Audit Metadata