triton-pytorch-model-repository
Warn
Audited by Gen Agent Trust Hub on Nov 22, 2026
Risk Level: MEDIUMDYNAMIC_EXECUTIONCOMMAND_EXECUTIONINDIRECT_PROMPT_INJECTION
Full Analysis
- [DYNAMIC_EXECUTION]: The skill describes the use of the
MODEL_INIT_LIBRARYparameter within theparametersblock of a Triton configuration. As detailed inreferences/parameters.mdandreferences/torch-aoti.md, this feature allows the Triton backend to dynamically load a shared library (.sofile) from a provided path and execute its initialization and finalization hooks (triton_pytorch_model_initandtriton_pytorch_model_fini). This utilizesdlopenand allows for arbitrary binary code execution within the server process. - [COMMAND_EXECUTION]: The instructions include examples of shell commands for launching the Triton server and performing model inference using
curl. While these are standard operational procedures for the tool's intended use case, they demonstrate the agent's ability to execute commands that interact with the host network and file system. - [INDIRECT_PROMPT_INJECTION]: The skill possesses a vulnerability surface related to processing external, potentially untrusted model files (
.pt,.pt2) and configuration metadata. Malicious content within these files could potentially influence the agent's logic during model debugging or deployment tasks. - Ingestion points: Loads and analyzes PyTorch models and
config.pbtxtfiles from user-controlled directories (SKILL.md). - Boundary markers: None explicitly implemented to separate model data from instructional context.
- Capability inventory: Ability to execute shell commands (
curl,tritonserver), run Python export scripts, and load binary libraries. - Sanitization: Relies on documented validation steps and Triton's internal error handling as described in
references/errors.mdandreferences/naming.md.
Audit Metadata