modal
Fail
Audited by Gen Agent Trust Hub on Oct 14, 2026
Risk Level: HIGHCREDENTIALS_UNSAFEEXTERNAL_DOWNLOADSREMOTE_CODE_EXECUTIONCOMMAND_EXECUTIONDATA_EXFILTRATIONINDIRECT_PROMPT_INJECTIONDYNAMIC_EXECUTION
Full Analysis
- [CREDENTIALS_UNSAFE]: The skill provides specific examples of accessing and importing highly sensitive credential directories from the local machine into remote cloud environments.
- Evidence: In
references/images.md, the documentation demonstrates how to add the local AWS credentials directory to a container image using.add_local_dir("/user/erikbern/.aws", remote_path="/root/.aws"). This practice exposes sensitive long-term authentication tokens to the serverless execution context. - [EXTERNAL_DOWNLOADS]: The skill instructions include patterns for downloading and incorporating code from external repositories during the image construction phase.
- Evidence:
references/images.mdexplicitly shows the use of.run_commands("git clone https://github.com/modal-labs/agi")andgit clone https://github.com/modal-labs/gpu-glossaryto fetch remote source code into the build environment. - [COMMAND_EXECUTION]: The documentation encourages the execution of arbitrary system commands and shell operations across multiple contexts.
- Evidence:
references/web-endpoints.mdprovides an example usingsubprocess.Popen(["python", "-m", "http.server", ...])to launch a web server.references/gpu.mddemonstrates multi-GPU execution usingsubprocess.run(["python", "train.py"], ...).SKILL.mdandreferences/images.mdutilizeapt_installandrun_commandsto perform system-level operations within containers.- [DYNAMIC_EXECUTION]: The fundamental capability of the skill is the dynamic packaging and execution of local Python code on a remote serverless platform.
- Evidence: The skill is built around the
@app.function()decorator and themodal runCLI tool, which are designed to execute arbitrary code in remote, autoscaled containers. - [INDIRECT_PROMPT_INJECTION]: The skill establishes a significant attack surface by ingesting untrusted data into environments with high-privilege capabilities.
- Ingestion points:
SKILL.mddemonstrates reading CSV files (pd.read_csv), whilereferences/examples.mdshows processing data from S3 buckets, JSON files, and external web APIs (requests.get).references/web-endpoints.mdhandles untrusted HTTP POST bodies and query parameters. - Boundary markers: Absent. The instructions do not specify any delimiters or warnings to ignore embedded instructions in the processed data.
- Capability inventory: The skill possesses extensive capabilities including network access, persistent file writing (
modal.Volume), shell command execution (subprocess), and access to high-performance GPU hardware. - Sanitization: Absent. The provided examples show direct processing and interpolation of external data into application logic without validation or filtering.
- [DATA_EXFILTRATION]: The skill combines sensitive local file access with network communication capabilities, forming a potential exfiltration chain.
- Evidence: Patterns in
references/examples.mddemonstrate sending data to external endpoints and S3, which, when combined with the capability to import local directories (like.sshor.awsconfigs viaadd_local_dir), enables the transmission of sensitive data to remote servers.
Recommendations
- AI detected serious security threats
Audit Metadata