funasr-transcribe
Fail
Audited by Gen Agent Trust Hub on Sep 16, 2026
Risk Level: HIGHCOMMAND_EXECUTIONDYNAMIC_EXECUTIONEXTERNAL_DOWNLOADSINDIRECT_PROMPT_INJECTION
Full Analysis
- [DYNAMIC_EXECUTION]: The skill performs runtime monkey-patching of the
funasrlibrary's internal export function. - Evidence: In
scripts/server.py, the functionpatch_funasr_onnx_exportassigns a local functioncompat_onnx_exporttoexport_utils._onnxto override the library's default behavior for ONNX exports. This dynamic modification of third-party code at runtime is a notable security risk. - [COMMAND_EXECUTION]: The skill extensively uses shell commands for environment detection, service management, and setup.
- Evidence:
scripts/init_env.pyandscripts/check_env.pyexecute system commands such aspython3,curl,ls,ps, andgrepto verify the host environment.scripts/init_env.pyspecifically runs the user's login shell (shell -l -c "echo $PATH") to capture the full environment PATH. - Evidence:
scripts/auto_transcribe.pyusessubprocess.Popento launch the local transcription server. - [EXTERNAL_DOWNLOADS]: The skill downloads large model weights and installs third-party dependencies from external registries.
- Evidence:
scripts/setup.pyandscripts/server.pyutilize themodelscopelibrary (snapshot_download) to fetch ASR, VAD, and punctuation models from Alibaba's ModelScope platform. - Evidence:
scripts/setup.pyexecutespip installto install dependencies listed inassets/requirements.txt, which includetorch,funasr, andfastapi. - [INDIRECT_PROMPT_INJECTION]: The skill creates an attack surface where instructions spoken within the audio or video files could influence the AI agent's subsequent actions during the summary phase.
- Ingestion points: Audio and video files are processed via the
file_pathparameter inscripts/server.pyandscripts/auto_transcribe.py. - Boundary markers: The prompt template in
scripts/summary.py(create_summary_prompt) includes the transcribed text after a simple header ("以下是完整文本:"), providing minimal isolation between the potentially adversarial data and the system instructions. - Capability inventory: The skill possesses capabilities for file system operations (archiving) and process execution (launching servers).
- Sanitization: There is no evidence of sanitization or filtering applied to the transcribed text before it is interpolated into the agent's summary prompt.
Recommendations
- HIGH: Downloads and executes remote code from: http://127.0.0.1:8765 - DO NOT USE without thorough review
Audit Metadata