media-use
Warn
Audited by Gen Agent Trust Hub on Oct 23, 2026
Risk Level: MEDIUMCOMMAND_EXECUTIONEXTERNAL_DOWNLOADSDYNAMIC_EXECUTIONDATA_EXFILTRATIONINDIRECT_PROMPT_INJECTION
Full Analysis
- [DYNAMIC_EXECUTION]: The skill dynamically generates Python scripts at runtime for BGM generation (MusicGen) and TTS (ElevenLabs). These scripts are executed via
python -c(seeaudio/scripts/lib/bgm.mjsandaudio/scripts/lib/tts.mjs). While the scripts useJSON.stringifyto escape user-provided prompt strings, the practice of assembling and executing code from templates is a security risk. - [EXTERNAL_DOWNLOADS]: The skill automatically installs Python packages from PyPI using
pipif they are not already present (found inaudio/scripts/lib/bgm.mjs). The dependencies include well-known libraries such astransformers,torch,soundfile,numpy,google-genai, andpython-dotenv. - [COMMAND_EXECUTION]: The skill makes extensive use of subprocesses (
spawn,execFileSync) to run CLI tools likeffmpeg,ffprobe,npx, andpython. These commands often include user-supplied arguments such as file paths and text prompts. - [DATA_EXFILTRATION]: The skill reads sensitive credentials from environment variables,
.envfiles, and local configuration files such as~/.heygen/credentials(detected inaudio/scripts/lib/heygen.mjs). It implements a check to ensure that POSIX file permissions are set to0o600for the HeyGen credentials file to prevent unauthorized access by other local users. While implementation is defensive, the risk of credential exposure to the agent context remains high. - [INDIRECT_PROMPT_INJECTION]: The skill ingests untrusted data in the form of transcription results and user-supplied prompts for media generation (e.g., in
scripts/transcript-cut.mjsandaudio/scripts/audio.mjs). While it uses this data for structural operations (like timing video cuts), the ingestion surface exists without explicit boundary markers or instructions to the AI to ignore embedded commands, creating a surface for indirect injection.
Audit Metadata