Back to skill

Security audit

Feishu Send Files

Security checks for vulnerabilities and agentic risk

Overview

This skill is a real Feishu file-sending tool, but it can upload local files with broad chat triggers and too little confirmation or path restriction.

Review this before installing in any shared or production OpenClaw environment. Only use it where chat participants are trusted, Feishu recipients are verified, and the process has access only to files that are safe to send. The publisher should restrict sends to an approved directory, require confirmation showing path, size, and recipient, remove contains triggers, enforce file size/type checks, and replace 777 log permissions with owner-only permissions.

Vulnerability Patterns
  • Unauthorized Access and Privilege EscalationObtains permissions beyond the task's legitimate needs
  • Insecure Skill Coding PracticesFinds exploitable flaws such as hardcoded secrets or command injection
  • 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
Findings (3)

T05 · Unauthorized Access and Privilege Escalation

Error
Location
index.js:273
Finding

Arbitrary Local File Disclosure Through Unrestricted Absolute Paths

Content
View full analysis
Remediation
View remediation

T09 · Insecure Skill Coding Practices

Warning
Location
index.js:143
Finding

Denial of Service Through Unbounded Synchronous File Loading

Content
View full analysis
{ const fileData = fs.readFileSync(filePath) const boundary = `----feishu-upload-${Date.now()}` const bodyArr = [ Buffer.from(`--${boundary}\r\nContent-Disposition: form-data; name="file_type"\r\n\r\nstream\r\n`), Buffer.from(`--${boundary}\r\nContent-Disposition: form-data; name="file_name"\r\n\r\n${fileName}\r\n`), Buffer.from(`--${boundary}\r\nContent-Disposition: form-data; name="file"; filename="${fileName}"\r\nContent-Type: application/octet-stream\r\n\r\n`), fileData, Buffer.from(`\r\n--${boundary}--\r\n`) ] const formData = Buffer.concat(bodyArr) ``` ### Technical Analysis `uploadFile()` loads the complete requested file into memory with `fs.readFileSync()`. It then creates additional buffers and combines them with `Buffer.concat()`, causing memory usage to exceed the original file size. No size check is performed before reading the file. Although the documentation mentions a 30 MB Feishu limit, that limit is not enforced by the implementation. The synchronous read also blocks Node.js's event loop until the operation completes. Because the Skill accepts absolute paths and command-line file paths, an attacker or operator can select a very large readable file. Concurrent or repeated requests can amplify resource usage. The absence of a regular-file check also means the function may be invoked on unsuitable filesystem objects. ### Attack Path 1. An attacker identifies a very large file readable by the OpenClaw process or places a large file in an accessible location. 2. The attacker asks the bot to send that file, or an untrusted local caller supplies it through `--file`. 3. `uploadFile()` synchrono ...[truncated 896 chars]
Remediation
View remediation

T09 · Insecure Skill Coding Practices

Note
Location
index.js:68
Finding

World-Writable Log Directory and Unsafe Permission Guidance

Content
View full analysis
Remediation
View remediation
Vulnerability Patterns
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Excessive AgencyUnrestricted Tool Access, Autonomous Decision Making, Scope Creep
  • Tool MisuseTool Parameter Abuse, Chaining Abuse, Unsafe Defaults
  • Trigger AbuseOverly Broad Trigger, Shadow Command Trigger, Keyword Baiting Trigger
  • MCP Tool PoisoningHidden Instructions, Unicode Deception, Parameter Description Injection
Findings (16)

Tp4

High
Category
MCP Tool Poisoning
Confidence
92% confidence
Finding

The skill is presented as a simple file-sending utility, but the documentation reveals materially broader capabilities: recursive local file search, reading arbitrary user-specified paths, creating logs/config files, and making outbound API calls. That mismatch weakens informed consent and makes it easier for a user or calling agent to trigger sensitive file discovery and exfiltration behavior without clearly understanding the scope.

Content

No source excerpt is available for this finding.

Vague Triggers

High
Category
Not specified by scanner
Confidence
97% confidence
Finding

The documented trigger phrases include broad natural-language patterns such as common requests to 'send' or '发一下', which overlap with ordinary conversation. In a chat-integrated skill that can search local files and send them externally, unintended activation materially increases the risk of accidental file disclosure.

Content

No source excerpt is available for this finding.

Vague Triggers

High
Category
Not specified by scanner
Confidence
98% confidence
Finding

The trigger rule set uses ambiguous prefix_match and especially contains rules for phrases like '发文件' and '发送文件', making activation possible from incidental text. Given the skill can recursively search the workspace and transmit files, this broad matching meaningfully raises the chance of unintended execution and data exfiltration.

Content

No source excerpt is available for this finding.

Tool Parameter Abuse

High
Category
Tool Misuse
Confidence
98% confidence
Finding

Recommending chmod -R 777 logs instructs users to make the log directory world-readable and world-writable. If logs contain filenames, recipient identifiers, tokens, errors, or other operational details, this can enable local tampering, unauthorized reading, or destruction of forensic evidence by other users/processes on the system.

Content

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

md
|------|----------|
| **文件发错地方(发到个人而不是群里)** | 机器人触发时自动识别;命令行调用必须加 `--to "chat:群聊 ID"` |
| 文件名异常 | 使用最终版 index.js |
| 无日志 | 赋权 logs 目录:`chmod -R 777 logs` |
| 机器人无响应 | 重启 OpenClaw,检查文件路径 |
| 发送失败 | 检查飞书权限与 appId/appSecret 配置 |
| token 获取失败 | 检查 appId/appSecret 是否正确 |

Vague Triggers

High
Category
Not specified by scanner
Confidence
96% confidence
Finding

The prefix triggers like '帮我发', '发一下', and '把文件' are so generic that the skill can activate during ordinary conversation rather than an explicit file-send request. In a messaging/file-transfer skill, accidental activation is dangerous because it may cause unintended file delivery, recipient auto-selection, or leakage of sensitive local files through natural-language ambiguity.

Content

No source excerpt is available for this finding.

Vague Triggers

High
Category
Not specified by scanner
Confidence
96% confidence
Finding

Contains-match triggers for common phrases like '发文件' and '发送文件' can fire when those words appear anywhere in a message, including discussion about sending files rather than a request to do so. Because this skill performs outbound file transmission, unintended activation can directly lead to privacy breaches, misdelivery, or unauthorized actions with minimal user awareness.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
92% confidence
Finding

The README explicitly promotes sending arbitrary local files to Feishu, but it does not clearly warn users that file contents will leave the local machine and be transmitted to an external service. In an agent/automation context, this increases the risk of unintended exfiltration of sensitive documents, keys, or internal data if users or upstream prompts provide broad paths or ambiguous search terms.

Content

No source excerpt is available for this finding.

Intent-Code Divergence

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

The documentation says the recipient parameter is required, but also states the tool will default to sending to a personal recipient if it is omitted. This inconsistency can cause accidental delivery of sensitive files to the wrong destination, especially in CLI or automated contexts where operators assume omission will fail safely.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
92% confidence
Finding

The skill silently creates a recipient configuration file in the user's home workspace based on global configuration, without explicit consent. Unexpected persistence of messaging targets can alter future behavior, leak recipient metadata to disk, and make later file transmission happen to an unintended default target.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

In robot mode, the skill extracts file paths or searches the workspace from free-form user input and then uploads matching local files to Feishu. Because it does not clearly warn that local file contents will be transmitted externally or require an explicit confirmation step, users can unintentionally exfiltrate sensitive local data, especially in chat-driven workflows where intent may be ambiguous.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
96% confidence
Finding

The batch-selection flow supports sending multiple matched files or all matches with a simple reply, but it provides no explicit safety warning about transmitting those files to an external service. This amplifies the risk of accidental bulk exfiltration from the workspace, particularly because matching is based on broad search results and the user may not inspect every selected file carefully.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
83% confidence
Finding

The natural-language description is written as a Chinese-only interaction model and states support for commands and natural language without indicating that users may choose another language. Under the policy, language constraints should be optional or explicitly justified when the skill enforces a locale.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Low
Category
Not specified by scanner
Confidence
95% confidence
Finding

The note text is written only in Chinese ("示例配置 - 请替换为你的用户 Open ID"), which imposes a specific language in a user-facing configuration comment. The file does not provide an alternative language, opt-in, or any indication that the skill is intentionally region-specific.

Content

No source excerpt is available for this finding.

Context-Inappropriate Capability

Low
Category
Not specified by scanner
Confidence
76% confidence
Finding

The stated purpose is a Feishu bulk file sending skill, but this function additionally reads from and auto-writes recipient configuration under the user's home directory. Persisting local recipient defaults is a convenience feature rather than an obvious requirement of file delivery itself, so it adds capability beyond the manifest's narrow stated purpose.

Content

No source excerpt is available for this finding.

Context-Inappropriate Capability

Low
Category
Not specified by scanner
Confidence
84% confidence
Finding

The manifest describes a file sending skill, but the code also creates a logs directory and continuously appends operational data to disk. Local logging is not an obvious user-facing requirement of bulk file sending, especially when the description emphasizes simplicity and zero dependency rather than filesystem side effects.

Content

No source excerpt is available for this finding.

Vague Triggers

Low
Category
Not specified by scanner
Confidence
82% confidence
Finding

This manifest only provides a brief description of the skill as a Feishu bulk file sending skill, but does not specify how or when it should be invoked. For manifest files, missing specificity around trigger scope or constraints can lead to unintended or overly broad activation behavior.

Content

No source excerpt is available for this finding.