bggg-tiktok-downloader
Warn
Audited by Gen Agent Trust Hub on Jun 14, 2026
Risk Level: MEDIUMREMOTE_CODE_EXECUTIONCOMMAND_EXECUTIONEXTERNAL_DOWNLOADSPROMPT_INJECTION
Full Analysis
- [REMOTE_CODE_EXECUTION]: The script
scripts/download_tiktok.pyperforms dynamic code loading by modifyingsys.pathto include a directory provided via theTIKTOKDOWNLOADER_ROOTenvironment variable or the--tiktokdownloader-rootargument. It then imports a module (src.link.extractor) from that path. This allows execution of arbitrary Python code from a computed or user-provided directory. - [COMMAND_EXECUTION]: The skill executes the external utility
yt-dlpusingsubprocess.runto handle video downloads and metadata extraction. - [EXTERNAL_DOWNLOADS]: The skill fetches data from
tikwm.com(an unofficial TikTok API) and downloads media content from various TikTok-related domains usingurllib.request. - [PROMPT_INJECTION]: The skill is susceptible to indirect prompt injection because it ingests untrusted metadata (titles, descriptions, and tags) from TikTok videos and stores them in
download_manifest.jsonwithout sanitization. - Ingestion points:
scripts/download_tiktok.py(viarequest_jsonfromtikwm.comandread_jsonfromyt-dlpsidecar files). - Boundary markers: None. Untrusted strings are placed directly into the JSON manifest.
- Capability inventory: Subprocess execution (
yt-dlp), network access (urllib), and file system writes. - Sanitization: Filenames are sanitized via regex, but the textual content of titles and descriptions is not filtered for embedded instructions.
Audit Metadata