modal
Pass
Audited by Gen Agent Trust Hub on Sep 15, 2026
Risk Level: SAFECOMMAND_EXECUTIONREMOTE_CODE_EXECUTIONEXTERNAL_DOWNLOADSINDIRECT_PROMPT_INJECTIONDYNAMIC_EXECUTION
Full Analysis
- [COMMAND_EXECUTION]: The skill documentation describes and provides examples for executing shell commands and subprocesses.
references/web-endpoints.mdandreferences/gpu.mdinclude examples usingsubprocess.runandsubprocess.Popenfor training launchers and custom web servers (e.g., launchingvllmoraccelerate).references/api_reference.mdidentifies the.exec()method inmodal.Sandboxfor running commands within isolated containers.- The documentation explicitly warns users to use fixed, hardcoded argument lists and avoid constructing commands from unsanitized user input to prevent command injection.
- [REMOTE_CODE_EXECUTION]: The platform is designed to build and execute code remotely in serverless containers.
SKILL.mdandreferences/images.mddetail methods for building container images usingmodal.Image.run_commands()andmodal.Image.run_function(), which execute code during the image build process.- The skill enables remote execution of Python functions via the
@app.function()decorator and.remote()calls. - [EXTERNAL_DOWNLOADS]: The skill utilizes several mechanisms for fetching external resources.
SKILL.mdinstructs the agent to install themodalSDK usinguv pip install.- Multiple examples in
references/examples.mdandreferences/images.mdshow the installation of common Python and system packages (e.g.,torch,transformers,ffmpeg) viauv_pip_installandapt_install. - The citations section in
SKILL.mdrequires fetching scientific metadata fromarxiv.org, a well-known repository for research papers. - [INDIRECT_PROMPT_INJECTION]: The skill provides surface area for indirect prompt injection through data ingestion tools, which it mitigates with security guidance.
- Ingestion points: Data enters the agent context through web scraping utilities (
httpx.getinreferences/examples.md), persistent storage (modal.Volumeinreferences/volumes.md), and web endpoints (@modal.fastapi_endpoint). - Boundary markers: The documentation recommends using
modal.Sandboxfor running untrusted or dynamically generated code to isolate it from the host environment. - Capability inventory: The skill provides full access to file system writes, network operations, and command execution across its various storage and compute modules.
- Sanitization: Instructions emphasize validating input against allowlists and using environment variables or files instead of command arguments for user-supplied data.
- [DYNAMIC_EXECUTION]: The skill facilitates the creation and execution of dynamic code environments.
SKILL.mddescribes themodal.Sandboxclass, which programmatically creates isolated containers to run user-generated or model-generated code.references/images.mdexplainsrun_function(), which allows executing Python code during the container build process, andrun_commands()for shell execution during builds.
Audit Metadata