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.pyfile utilizescompile()andeval()to process mathematical expressions defined within the storyboard YAML for data plotting. Although the__builtins__dictionary is cleared to restrict access, the inclusion of thenumpylibrary and complex MuJoCo data structures in the execution environment provides a significant attack surface for potential sandbox escapes. - [DYNAMIC_EXECUTION]: The
make_controllerfunction inscripts/mjexplainer/sim.pyemploysimportlib.utilto dynamically load and execute Python modules specified in thecontrolsection 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
renderfunction inscripts/mjexplainer/pipeline.pyparses 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, themux_audiofunction invokes theffmpegbinary viasubprocess.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