Back to skill

Security audit

kdocs skill

Security checks for vulnerabilities and agentic risk

Overview

This Kdocs integration needs review because some workflows can overwrite cloud content or replace installed software without clear user approval.

Review before installing, and start with document copies. Require explicit approval for software updates, exact document overwrites, spreadsheet write-back and row removal. Prefer browser login and keep tokens out of chat. Presentation and knowledge-base workflows upload selected source files to Kdocs. Test automation filters before activation. The bundled installers and material scanner gaps were investigated; the downloaded CLI, its credential storage and server-side behavior remain unverified.

Vulnerability Patterns
  • Skill Instruction HijackingAlters the agent's session goals or safety constraints when the skill loads
  • Agent Memory PoisoningWrites attacker-controlled rules into memory that affect later sessions
  • Remote Payload Retrieval and ExecutionFetches external code whose behavior can change after review
  • Embedded Malicious CodeShips malicious scripts inside the skill and executes them locally
  • Unauthorized Access and Privilege EscalationObtains permissions beyond the task's legitimate needs
Vulnerability Patterns
  • Supply ChainUnpinned Dependencies, External Script Fetching, Obfuscated Code
  • Output HandlingUnvalidated Output Injection, Cross-Context Output, Unbounded Output
  • Tool MisuseTool Parameter Abuse, Chaining Abuse, Unsafe Defaults
  • Rogue AgentSelf-Modification, Session Persistence
  • Trigger AbuseOverly Broad Trigger, Shadow Command Trigger, Keyword Baiting Trigger
Findings (43)

Incomplete referenced artifact analysis

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

Scanner excerpt · SKILL.md (reported line 46)May include surrounding context.

md
| 安装 | `bash scripts/setup.sh` / `powershell scripts/setup.ps1` / `node scripts/setup.cjs` |

The manual authentication workflow requests a token through the agent without warning about credential exposure.

High
Category
Output Handling
Confidence
97% confidence
Finding

The fallback explicitly asks the user to disclose an authentication token to the agent, exposing it to conversation retention and potentially tool-call logs or command-line inspection. Saving it to a keychain afterward does not eliminate those earlier exposures; misuse could enable cloud-document access within the token's permissions.

Content

No source excerpt is available for this finding.

External Script Fetching

High
Category
Supply Chain
Confidence
92% confidence
Finding

The usage comment recommends executing a remotely fetched script immediately, without reviewing or independently authenticating it. This is not an automatically executed statement in the supplied file, but following the recommendation would let a compromised distribution endpoint run arbitrary commands with the user's privileges.

Content

Scanner excerpt · scripts/setup.sh (reported line 7)May include surrounding context.

sh
#
# Usage:
#   bash scripts/setup.sh
#   curl -fsSL <CDN>/setup.sh | sh
#
# Environment variables (all optional):
#   KDOCS_CLI_VERSION   — version to install (default: read from SKILL.md or "latest")

Chaining Abuse

High
Category
Tool Misuse
Confidence
90% confidence
Finding

The recommended pipeline connects network-controlled content directly to a shell interpreter, crossing the data-to-execution boundary without verification. This duplicates the external-script-fetching risk rather than demonstrating a separate malicious chaining campaign.

Content

Scanner excerpt · scripts/setup.sh (reported line 7)May include surrounding context.

sh
#
# Usage:
#   bash scripts/setup.sh
#   curl -fsSL <CDN>/setup.sh | sh
#
# Environment variables (all optional):
#   KDOCS_CLI_VERSION   — version to install (default: read from SKILL.md or "latest")

An upload can be routed into overwriting an existing complete document without a mandatory user warning.

High
Category
Output Handling
Confidence
99% confidence
Finding

A same-name search result containing a complete document is routed into the replacement workflow even when the user requested only an upload. This converts a naming collision into permission to overwrite existing cloud content, potentially destroying important document contents unrelated to the current task.

Content

No source excerpt is available for this finding.

Summary and statistics requests are required to modify the cloud spreadsheet without a user-disclosure gate.

High
Category
Output Handling
Confidence
96% confidence
Finding

The rule requires summaries and statistics to be written into the spreadsheet and explicitly forbids answering only in conversation. This converts potentially read-only analysis requests into persistent cloud-document mutations, risking overwrites or disruption of shared sheets without user authorization.

Content

No source excerpt is available for this finding.

The beautification workflow performs destructive deduplication without warning or confirmation.

High
Category
Output Handling
Confidence
98% confidence
Finding

A workflow triggered by visual beautification includes AI-selected deduplication implemented by overwriting the dataset and clearing remaining rows, without a separate authorization step. Incorrect duplicate classification or value-based reconstruction could remove legitimate records or destroy formulas and associated structure.

Content

No source excerpt is available for this finding.

The workflow publishes a form without warning that publication prevents further modification.

High
Category
Output Handling
Confidence
97% confidence
Finding

The user is asked to confirm creation, after which the workflow creates and immediately publishes the draft. This source neither warns that publication makes the form unmodifiable nor asks for explicit publication approval, so creation confirmation can commit the user to an irreversible state.

Content

No source excerpt is available for this finding.

Skill declares no tool scope ('permissions' or 'allowed-tools') but code capabilities were detected: env, network, shell.

Medium
Category
MCP Least Privilege
Confidence
70% confidence
Finding

Without declared permissions the skill's intent is opaque and cannot be validated.

Content

No source excerpt is available for this finding.

Activation keywords include generic requests unrelated to Kdocs.

Medium
Category
Trigger Abuse
Confidence
90% confidence
Finding

Generic activation keywords such as requests to write, summarize, or translate can select this cloud-connected skill when the user has not requested Kdocs or remote processing. Its document creation and upload capabilities make such overactivation a potential privacy and authorization problem, although the stated cloud-document scope and user-initiated-operation constraint reduce the risk.

Content

No source excerpt is available for this finding.

Routine use can automatically replace installed software and skill files without a user warning.

Medium
Category
Output Handling
Confidence
97% confidence
Finding

Routine use triggers unattended CLI upgrades and can download an archive from a URL extracted from a service response, then replace the installed skill directory. The instructions specify no independent artifact authentication, download-origin restriction, or archive-path validation, creating a supply-chain path through which a compromised update source could replace executable software or trusted agent instructions.

Content

No source excerpt is available for this finding.

Skill Enumeration

Medium
Category
Agent Snooping
Confidence
80% confidence
Finding

Skill enumerates or reads other installed skills. Access to other skills' SKILL.md files or the skills directory reveals prompt instructions, capabilities, and secrets that should be invisible to peer skills.

Content

Scanner excerpt · SKILL.md (reported line 113)May include surrounding context.

md
| 读取 | 读取/提取/导出文档内容 | 正文:转交到 `kdocs-drive` 技能(工具列表 → `read_file`,`kdocs-cli help drive.read_file`);**.otl 内嵌图片** 转交到 `kdocs-ap` 技能「常用工作流 → 读取智能文档内嵌图片」;否则按「定位文件」 |
| 定位文件 | 搜索/按链接查文件标识或属性/浏览目录 | 转交到 `kdocs-drive` 技能 |
| 文件管理 | 移动/重命名/分享/标签/收藏/回收站 | 转交到 `kdocs-drive` 技能 |
| AI 生成 | AI 做PPT/生成演示文稿 | 转交到 [`kdocs-aippt`](skills/kdocs-aippt/SKILL.md) 技能 |
| 知识库 | 知识库空间、资料导入、库内目录与资料管理 | 转交到 [`kdocs-kwiki`](skills/kdocs-kwiki/SKILL.md) 技能 |
| 自动化 | 多维表格与表格:查询、读取、校验、保存、启停流程及核对运行记录 | 转交到 [`kdocs-auto-sheet`](skills/kdocs-auto-sheet/SKILL.md) 技能 |

Skill Enumeration

Medium
Category
Agent Snooping
Confidence
80% confidence
Finding

Skill enumerates or reads other installed skills. Access to other skills' SKILL.md files or the skills directory reveals prompt instructions, capabilities, and secrets that should be invisible to peer skills.

Content

Scanner excerpt · SKILL.md (reported line 114)May include surrounding context.

md
| 定位文件 | 搜索/按链接查文件标识或属性/浏览目录 | 转交到 `kdocs-drive` 技能 |
| 文件管理 | 移动/重命名/分享/标签/收藏/回收站 | 转交到 `kdocs-drive` 技能 |
| AI 生成 | AI 做PPT/生成演示文稿 | 转交到 [`kdocs-aippt`](skills/kdocs-aippt/SKILL.md) 技能 |
| 知识库 | 知识库空间、资料导入、库内目录与资料管理 | 转交到 [`kdocs-kwiki`](skills/kdocs-kwiki/SKILL.md) 技能 |
| 自动化 | 多维表格与表格:查询、读取、校验、保存、启停流程及核对运行记录 | 转交到 [`kdocs-auto-sheet`](skills/kdocs-auto-sheet/SKILL.md) 技能 |

### 云文档管理

Skill Enumeration

Medium
Category
Agent Snooping
Confidence
80% confidence
Finding

Skill enumerates or reads other installed skills. Access to other skills' SKILL.md files or the skills directory reveals prompt instructions, capabilities, and secrets that should be invisible to peer skills.

Content

Scanner excerpt · SKILL.md (reported line 115)May include surrounding context.

md
| 文件管理 | 移动/重命名/分享/标签/收藏/回收站 | 转交到 `kdocs-drive` 技能 |
| AI 生成 | AI 做PPT/生成演示文稿 | 转交到 [`kdocs-aippt`](skills/kdocs-aippt/SKILL.md) 技能 |
| 知识库 | 知识库空间、资料导入、库内目录与资料管理 | 转交到 [`kdocs-kwiki`](skills/kdocs-kwiki/SKILL.md) 技能 |
| 自动化 | 多维表格与表格:查询、读取、校验、保存、启停流程及核对运行记录 | 转交到 [`kdocs-auto-sheet`](skills/kdocs-auto-sheet/SKILL.md) 技能 |

### 云文档管理

Skill Enumeration

Medium
Category
Agent Snooping
Confidence
80% confidence
Finding

Skill enumerates or reads other installed skills. Access to other skills' SKILL.md files or the skills directory reveals prompt instructions, capabilities, and secrets that should be invisible to peer skills.

Content

Scanner excerpt · SKILL.md (reported line 121)May include surrounding context.

md
| 能力 | 说明 | 子 Skill |
|------|------|----------|
| 云文档管理 | 搜索定位、创建上传、读取下载、分享移动、标签收藏、回收站等 | [`kdocs-drive`](skills/kdocs-drive/SKILL.md)「云文档管理」 |

### 支持的文档类型

Skill Enumeration

Medium
Category
Agent Snooping
Confidence
80% confidence
Finding

Skill enumerates or reads other installed skills. Access to other skills' SKILL.md files or the skills directory reveals prompt instructions, capabilities, and secrets that should be invisible to peer skills.

Content

Scanner excerpt · SKILL.md (reported line 128)May include surrounding context.

md
| 类型 | 别名 | 后缀 | 说明 | 子 Skill |
|------|------|------|------|----------|
| **智能文档** 首选 | ap | .otl | 排版美观,支持丰富组件 | [`kdocs-ap`](skills/kdocs-ap/SKILL.md) |
| 在线 Markdown | md | .md | 源码 Markdown,图片为 kdocsmd:// 协议 | [`kdocs-drive`](skills/kdocs-drive/SKILL.md) |
| 表格 | et / Excel | .xlsx | 数据表格专用 | [`kdocs-et`](skills/kdocs-et/SKILL.md) |
| PDF文档 | pdf | .pdf | PDF 文档专用 | [`kdocs-pdf`](skills/kdocs-pdf/SKILL.md) |
| 文字文档 | wps / Word | .docx | 传统格式 | [`kdocs-wps`](skills/kdocs-wps/SKILL.md) |

Skill Enumeration

Medium
Category
Agent Snooping
Confidence
80% confidence
Finding

Skill enumerates or reads other installed skills. Access to other skills' SKILL.md files or the skills directory reveals prompt instructions, capabilities, and secrets that should be invisible to peer skills.

Content

Scanner excerpt · SKILL.md (reported line 127)May include surrounding context.

md
| 类型 | 别名 | 后缀 | 说明 | 子 Skill |
|------|------|------|------|----------|
| **智能文档** 首选 | ap | .otl | 排版美观,支持丰富组件 | [`kdocs-ap`](skills/kdocs-ap/SKILL.md) |
| 在线 Markdown | md | .md | 源码 Markdown,图片为 kdocsmd:// 协议 | [`kdocs-drive`](skills/kdocs-drive/SKILL.md) |
| 表格 | et / Excel | .xlsx | 数据表格专用 | [`kdocs-et`](skills/kdocs-et/SKILL.md) |
| PDF文档 | pdf | .pdf | PDF 文档专用 | [`kdocs-pdf`](skills/kdocs-pdf/SKILL.md) |

Skill Enumeration

Medium
Category
Agent Snooping
Confidence
80% confidence
Finding

Skill enumerates or reads other installed skills. Access to other skills' SKILL.md files or the skills directory reveals prompt instructions, capabilities, and secrets that should be invisible to peer skills.

Content

Scanner excerpt · SKILL.md (reported line 129)May include surrounding context.

md
|------|------|------|------|----------|
| **智能文档** 首选 | ap | .otl | 排版美观,支持丰富组件 | [`kdocs-ap`](skills/kdocs-ap/SKILL.md) |
| 在线 Markdown | md | .md | 源码 Markdown,图片为 kdocsmd:// 协议 | [`kdocs-drive`](skills/kdocs-drive/SKILL.md) |
| 表格 | et / Excel | .xlsx | 数据表格专用 | [`kdocs-et`](skills/kdocs-et/SKILL.md) |
| PDF文档 | pdf | .pdf | PDF 文档专用 | [`kdocs-pdf`](skills/kdocs-pdf/SKILL.md) |
| 文字文档 | wps / Word | .docx | 传统格式 | [`kdocs-wps`](skills/kdocs-wps/SKILL.md) |
| 演示文稿 | wpp | .pptx | PPT 文档专用 | [`kdocs-wpp`](skills/kdocs-wpp/SKILL.md) |

Skill Enumeration

Medium
Category
Agent Snooping
Confidence
80% confidence
Finding

Skill enumerates or reads other installed skills. Access to other skills' SKILL.md files or the skills directory reveals prompt instructions, capabilities, and secrets that should be invisible to peer skills.

Content

Scanner excerpt · SKILL.md (reported line 133)May include surrounding context.

md
| PDF文档 | pdf | .pdf | PDF 文档专用 | [`kdocs-pdf`](skills/kdocs-pdf/SKILL.md) |
| 文字文档 | wps / Word | .docx | 传统格式 | [`kdocs-wps`](skills/kdocs-wps/SKILL.md) |
| 演示文稿 | wpp | .pptx | PPT 文档专用 | [`kdocs-wpp`](skills/kdocs-wpp/SKILL.md) |
| 智能表格 | as | .ksheet | 结构化表格,支持多视图、字段管理 | [`kdocs-et`](skills/kdocs-et/SKILL.md) |
| 多维表格 | db / dbsheet | .dbt | 多数据表、丰富字段类型与视图(表格/看板/甘特等) | [`kdocs-db`](skills/kdocs-db/SKILL.md) |
| 智能表单 | form | .form | 轻量表单草稿创建、题目配置、发布与查询 | [`kdocs-form`](skills/kdocs-form/SKILL.md) |

Skill Enumeration

Medium
Category
Agent Snooping
Confidence
80% confidence
Finding

Skill enumerates or reads other installed skills. Access to other skills' SKILL.md files or the skills directory reveals prompt instructions, capabilities, and secrets that should be invisible to peer skills.

Content

Scanner excerpt · SKILL.md (reported line 130)May include surrounding context.

md
| **智能文档** 首选 | ap | .otl | 排版美观,支持丰富组件 | [`kdocs-ap`](skills/kdocs-ap/SKILL.md) |
| 在线 Markdown | md | .md | 源码 Markdown,图片为 kdocsmd:// 协议 | [`kdocs-drive`](skills/kdocs-drive/SKILL.md) |
| 表格 | et / Excel | .xlsx | 数据表格专用 | [`kdocs-et`](skills/kdocs-et/SKILL.md) |
| PDF文档 | pdf | .pdf | PDF 文档专用 | [`kdocs-pdf`](skills/kdocs-pdf/SKILL.md) |
| 文字文档 | wps / Word | .docx | 传统格式 | [`kdocs-wps`](skills/kdocs-wps/SKILL.md) |
| 演示文稿 | wpp | .pptx | PPT 文档专用 | [`kdocs-wpp`](skills/kdocs-wpp/SKILL.md) |
| 智能表格 | as | .ksheet | 结构化表格,支持多视图、字段管理 | [`kdocs-et`](skills/kdocs-et/SKILL.md) |

Skill Enumeration

Medium
Category
Agent Snooping
Confidence
80% confidence
Finding

Skill enumerates or reads other installed skills. Access to other skills' SKILL.md files or the skills directory reveals prompt instructions, capabilities, and secrets that should be invisible to peer skills.

Content

Scanner excerpt · SKILL.md (reported line 131)May include surrounding context.

md
| 在线 Markdown | md | .md | 源码 Markdown,图片为 kdocsmd:// 协议 | [`kdocs-drive`](skills/kdocs-drive/SKILL.md) |
| 表格 | et / Excel | .xlsx | 数据表格专用 | [`kdocs-et`](skills/kdocs-et/SKILL.md) |
| PDF文档 | pdf | .pdf | PDF 文档专用 | [`kdocs-pdf`](skills/kdocs-pdf/SKILL.md) |
| 文字文档 | wps / Word | .docx | 传统格式 | [`kdocs-wps`](skills/kdocs-wps/SKILL.md) |
| 演示文稿 | wpp | .pptx | PPT 文档专用 | [`kdocs-wpp`](skills/kdocs-wpp/SKILL.md) |
| 智能表格 | as | .ksheet | 结构化表格,支持多视图、字段管理 | [`kdocs-et`](skills/kdocs-et/SKILL.md) |
| 多维表格 | db / dbsheet | .dbt | 多数据表、丰富字段类型与视图(表格/看板/甘特等) | [`kdocs-db`](skills/kdocs-db/SKILL.md) |

Skill Enumeration

Medium
Category
Agent Snooping
Confidence
80% confidence
Finding

Skill enumerates or reads other installed skills. Access to other skills' SKILL.md files or the skills directory reveals prompt instructions, capabilities, and secrets that should be invisible to peer skills.

Content

Scanner excerpt · SKILL.md (reported line 132)May include surrounding context.

md
| 表格 | et / Excel | .xlsx | 数据表格专用 | [`kdocs-et`](skills/kdocs-et/SKILL.md) |
| PDF文档 | pdf | .pdf | PDF 文档专用 | [`kdocs-pdf`](skills/kdocs-pdf/SKILL.md) |
| 文字文档 | wps / Word | .docx | 传统格式 | [`kdocs-wps`](skills/kdocs-wps/SKILL.md) |
| 演示文稿 | wpp | .pptx | PPT 文档专用 | [`kdocs-wpp`](skills/kdocs-wpp/SKILL.md) |
| 智能表格 | as | .ksheet | 结构化表格,支持多视图、字段管理 | [`kdocs-et`](skills/kdocs-et/SKILL.md) |
| 多维表格 | db / dbsheet | .dbt | 多数据表、丰富字段类型与视图(表格/看板/甘特等) | [`kdocs-db`](skills/kdocs-db/SKILL.md) |
| 智能表单 | form | .form | 轻量表单草稿创建、题目配置、发布与查询 | [`kdocs-form`](skills/kdocs-form/SKILL.md) |

Skill Enumeration

Medium
Category
Agent Snooping
Confidence
80% confidence
Finding

Skill enumerates or reads other installed skills. Access to other skills' SKILL.md files or the skills directory reveals prompt instructions, capabilities, and secrets that should be invisible to peer skills.

Content

Scanner excerpt · SKILL.md (reported line 134)May include surrounding context.

md
| 文字文档 | wps / Word | .docx | 传统格式 | [`kdocs-wps`](skills/kdocs-wps/SKILL.md) |
| 演示文稿 | wpp | .pptx | PPT 文档专用 | [`kdocs-wpp`](skills/kdocs-wpp/SKILL.md) |
| 智能表格 | as | .ksheet | 结构化表格,支持多视图、字段管理 | [`kdocs-et`](skills/kdocs-et/SKILL.md) |
| 多维表格 | db / dbsheet | .dbt | 多数据表、丰富字段类型与视图(表格/看板/甘特等) | [`kdocs-db`](skills/kdocs-db/SKILL.md) |
| 智能表单 | form | .form | 轻量表单草稿创建、题目配置、发布与查询 | [`kdocs-form`](skills/kdocs-form/SKILL.md) |

---

Skill Enumeration

Medium
Category
Agent Snooping
Confidence
80% confidence
Finding

Skill enumerates or reads other installed skills. Access to other skills' SKILL.md files or the skills directory reveals prompt instructions, capabilities, and secrets that should be invisible to peer skills.

Content

Scanner excerpt · SKILL.md (reported line 135)May include surrounding context.

md
| 演示文稿 | wpp | .pptx | PPT 文档专用 | [`kdocs-wpp`](skills/kdocs-wpp/SKILL.md) |
| 智能表格 | as | .ksheet | 结构化表格,支持多视图、字段管理 | [`kdocs-et`](skills/kdocs-et/SKILL.md) |
| 多维表格 | db / dbsheet | .dbt | 多数据表、丰富字段类型与视图(表格/看板/甘特等) | [`kdocs-db`](skills/kdocs-db/SKILL.md) |
| 智能表单 | form | .form | 轻量表单草稿创建、题目配置、发布与查询 | [`kdocs-form`](skills/kdocs-form/SKILL.md) |

---

Session Persistence

Medium
Category
Rogue Agent
Confidence
90% confidence
Finding

Skill establishes unauthorized persistence across sessions via cron jobs, startup scripts, or state files. Session persistence allows an attacker to maintain access beyond the current interaction.

Content

Scanner excerpt · scripts/setup.cjs (reported line 200)May include surrounding context.

js
if (osName === 'windows') {
        say(`  Run: [Environment]::SetEnvironmentVariable("PATH", "${installDir};$env:PATH", "User")`);
      } else {
        say(`  Add to ~/.bashrc or ~/.zshrc:`);
        say(`    export PATH="${installDir}:$PATH"`);
      }
    }