douyin-batch-download
Pass
Audited by Gen Agent Trust Hub on Sep 25, 2026
Risk Level: SAFECOMMAND_EXECUTIONEXTERNAL_DOWNLOADSCREDENTIALS_UNSAFEDYNAMIC_EXECUTIONINDIRECT_PROMPT_INJECTION
Full Analysis
- [COMMAND_EXECUTION]: The skill makes extensive use of the
subprocessmodule to orchestrate its workflow. It callsffmpegandffprobefor video analysis and compression,pipto verify dependencies, and thef2CLI for core downloading tasks. It also launches its own sub-scripts (e.g.,download-v2.py,sync-following.py) to handle specialized logic. These executions are scoped to local tools and internal scripts required for the skill's functionality. - [EXTERNAL_DOWNLOADS]: The skill communicates with Douyin's official domains to fetch video files, covers, and metadata. These external calls are performed via the
f2framework andhttpx, which are standard for this type of utility. - [CREDENTIALS_UNSAFE]: The
login.pyscript facilitates the acquisition of Douyin session cookies. It opens a Chromium browser for the user to scan a QR code, extracts the resulting cookies, prints them to the console, and saves them inconfig/config.yaml. While cookies are sensitive, they are handled locally to maintain user sessions and are not sent to any untrusted remote servers. - [DYNAMIC_EXECUTION]: Browser automation scripts (
login.py,manage-following.py) use Playwright'spage.evaluate()method to run JavaScript in the context of the Douyin website. This is used to detect login states and extract user profile information from the DOM. - [INDIRECT_PROMPT_INJECTION]: The skill ingests untrusted content from Douyin, such as video descriptions and nicknames, to generate a local Web UI. The
generate-data.pyscript usesjson.dumpto serialize this data intodata.js, which effectively escapes characters and mitigates the risk of XSS or other injection attacks when the data is rendered in the staticindex.htmlviewer.
Audit Metadata