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.md explicitly shows the use of .run_commands("git clone https://github.com/modal-labs/agi") and git clone https://github.com/modal-labs/gpu-glossary to 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.md provides an example using subprocess.Popen(["python", "-m", "http.server", ...]) to launch a web server.
  • references/gpu.md demonstrates multi-GPU execution using subprocess.run(["python", "train.py"], ...).
  • SKILL.md and references/images.md utilize apt_install and run_commands to 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 the modal run CLI 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.md demonstrates reading CSV files (pd.read_csv), while references/examples.md shows processing data from S3 buckets, JSON files, and external web APIs (requests.get). references/web-endpoints.md handles 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.md demonstrate sending data to external endpoints and S3, which, when combined with the capability to import local directories (like .ssh or .aws configs via add_local_dir), enables the transmission of sensitive data to remote servers.
Recommendations
  • AI detected serious security threats
Audit Metadata
Risk Level
HIGH
Analyzed
Oct 14, 2026, 03:51 AM