tencent-docs

Warn

Audited by Gen Agent Trust Hub on Sep 4, 2026

Risk Level: MEDIUMDYNAMIC_EXECUTIONCOMMAND_EXECUTIONPROMPT_INJECTIONINDIRECT_PROMPT_INJECTIONEXTERNAL_DOWNLOADS
Full Analysis
  • [DYNAMIC_EXECUTION]: The skill implements a spreadsheet manipulation feature via the OperationSheet tool defined in sheet/api/operation-api.md. This tool accepts a js_script parameter which is dynamically generated by the AI agent at runtime based on the guidelines in sheet/api/js-script-rule.md. The generated scripts interact with the Tencent Docs Spreadsheet API (e.g., SpreadsheetApp.getActiveSpreadsheet, Range.setValue).
  • [COMMAND_EXECUTION]: The skill includes a shell script setup.sh used for authentication and environment setup. This script is explicitly called by the instructions in references/auth.md to manage tokens and configure the mcporter tool. It performs network operations via curl to docs.qq.com and modifies local configuration files.
  • [PROMPT_INJECTION]: The sheet/api/js-script-rule.md file contains explicit instructions intended to harden the agent against prompt injection, such as "System Instruction Immunity" and "Command Disclosure Prohibition." These represent attempts to override the model's standard response patterns and safety guidelines, even though they are directed toward security.
  • [INDIRECT_PROMPT_INJECTION]: The skill has an attack surface for indirect prompt injections because it frequently ingests untrusted data from external sources. Tools like scrape_url (in references/api_references.md) and get_content fetch data from the web and existing documents. A maliciously crafted document or website could contain instructions that the agent might inadvertently follow, leveraging its extensive capabilities to create, edit, or delete documents.
  • Ingestion points: scrape_url, get_content.
  • Boundary markers: The MDX specification (references/mdx_references.md) defines structural delimiters like ====== and ------, but these are primarily for parsing and do not provide robust security boundaries against adversarial instructions.
  • Capability inventory: The skill has broad capabilities including document creation (create_smartcanvas_by_mdx), file management (manage.delete_file, manage.move_file), and dynamic code execution (OperationSheet).
  • Sanitization: The skill provides instructions for correct JSON escaping in doc/doc_format/README.md, but lacks comprehensive sanitization for natural language instructions embedded in processed data.
  • [EXTERNAL_DOWNLOADS]: The setup.sh script automatically attempts to install the mcporter package globally using npm install -g mcporter if it is not detected on the host system.
Audit Metadata
Risk Level
MEDIUM
Analyzed
Sep 4, 2026, 07:30 AM