mujoco-explainer-video

Warn

Audited by Gen Agent Trust Hub on Nov 12, 2026

Risk Level: MEDIUMDYNAMIC_EXECUTIONINDIRECT_PROMPT_INJECTIONCOMMAND_EXECUTION
Full Analysis
  • [DYNAMIC_EXECUTION]: The scripts/mjexplainer/sim.py file utilizes compile() and eval() to process mathematical expressions defined within the storyboard YAML for data plotting. Although the __builtins__ dictionary is cleared to restrict access, the inclusion of the numpy library and complex MuJoCo data structures in the execution environment provides a significant attack surface for potential sandbox escapes.
  • [DYNAMIC_EXECUTION]: The make_controller function in scripts/mjexplainer/sim.py employs importlib.util to dynamically load and execute Python modules specified in the control section of the storyboard. This allows the execution of arbitrary Python code if the storyboard is manipulated to point to a file controlled by an attacker.
  • [INDIRECT_PROMPT_INJECTION]: The skill represents a vulnerability surface for indirect prompt injection. Because an AI agent may generate the storyboard YAML based on untrusted user instructions, an attacker could inject malicious code into the physics expressions or provide paths to malicious local scripts.
  • Ingestion points: The render function in scripts/mjexplainer/pipeline.py parses the YAML storyboard provided as input.
  • Boundary markers: There are no explicit instructions or delimiters used to prevent the agent from executing instructions embedded within the physics concepts or scene descriptions.
  • Capability inventory: The skill possesses the capability to execute shell commands (ffmpeg), load and execute external Python modules, and perform dynamic evaluation of code strings.
  • Sanitization: No sanitization or safety checks are performed on the expression strings before compilation, nor is there a whitelist for allowed Python controller scripts.
  • [COMMAND_EXECUTION]: In scripts/mjexplainer/pipeline.py, the mux_audio function invokes the ffmpeg binary via subprocess.run(). The command is constructed using file paths and parameters directly from the storyboard, which could be exploited to perform unauthorized file operations or consume system resources if the input is not strictly controlled.
Audit Metadata
Risk Level
MEDIUM
Analyzed
Nov 12, 2026, 11:18 AM