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 (see audio/scripts/lib/bgm.mjs and audio/scripts/lib/tts.mjs). While the scripts use JSON.stringify to 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 pip if they are not already present (found in audio/scripts/lib/bgm.mjs). The dependencies include well-known libraries such as transformers, torch, soundfile, numpy, google-genai, and python-dotenv.
  • [COMMAND_EXECUTION]: The skill makes extensive use of subprocesses (spawn, execFileSync) to run CLI tools like ffmpeg, ffprobe, npx, and python. These commands often include user-supplied arguments such as file paths and text prompts.
  • [DATA_EXFILTRATION]: The skill reads sensitive credentials from environment variables, .env files, and local configuration files such as ~/.heygen/credentials (detected in audio/scripts/lib/heygen.mjs). It implements a check to ensure that POSIX file permissions are set to 0o600 for 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.mjs and audio/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
Risk Level
MEDIUM
Analyzed
Oct 23, 2026, 07:45 AM