yuque-lakebook-export
Fail
Audited by Gen Agent Trust Hub on Oct 2, 2026
Risk Level: HIGHDYNAMIC_EXECUTIONCOMMAND_EXECUTIONINDIRECT_PROMPT_INJECTION
Full Analysis
- [DYNAMIC_EXECUTION]: The script
scripts/yuque_lakebook_export/lake_setup.pyusesyaml.load()with the unsafeyaml.Loader(line 198) to process table-of-contents data extracted from user-provided.lakebookfiles. This pattern allows for arbitrary Python object instantiation and potential remote code execution if a user processes a maliciously crafted input file. - [COMMAND_EXECUTION]: The
convert_to_mdfunction inscripts/yuque_lakebook_export/lake_setup.pyexecutes shell commands viaos.system()to open the output folder (lines 354, 356, 358). The output path, which can be influenced by input file metadata or user configuration, is concatenated into the command string without proper shell escaping or quoting, enabling command injection via filenames or paths containing shell metacharacters like semicolons or backticks. - [INDIRECT_PROMPT_INJECTION]: This skill ingests and processes Yuque document content from external files, which the agent is then tasked with verifying. This creates a vulnerability where malicious instructions within a document could attempt to hijack the agent's session or influence its next actions.
- Ingestion points:
scripts/yuque_lakebook_export/lake_setup.pyandscripts/yuque_lakebook_export/lake_reader.pyread and unpack content from.lakebookarchives. - Boundary markers: No explicit delimiters or instructions are provided in
SKILL.mdto prevent the agent from obeying instructions found within the processed files. - Capability inventory: The skill has the ability to write to the file system, perform network requests to download assets (
requests.getinlake_handle.py), and execute shell commands (os.systeminlake_setup.py). - Sanitization: While basic filename sanitization is performed in
lake_handle.py, there is no validation or filtering of the document body content to prevent embedded instructions from being interpreted by the agent.
Recommendations
- AI detected serious security threats
Audit Metadata