Back to skill

Security audit

OpenClaw FEISHU MCP

Security checks for vulnerabilities and agentic risk

Overview

This Feishu integration is coherent, but it needs Review because it publishes a concrete app secret and enables auto-authenticated cloud document read/write with limited scoping guidance.

Review before installing. Do not use the published app secret; treat it as exposed, rotate it if you own it, and configure a user-owned Feishu app with least-privilege docx permissions. Users should also understand that write, append, create, and table-write actions can change cloud documents and should be gated by explicit user intent.

Vulnerability Patterns
  • 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
  • Embedded Malicious CodeShips malicious scripts inside the skill and executes them locally
Findings (1)

T09 · Insecure Skill Coding Practices

Error
Location
SKILL.md:19
Finding
Hard-Coded Feishu Application Credentials## Vulnerability Details **File Location**: `SKILL.md`, lines 19–21 **Vulnerability Type**: Hard-coded application secret in configuration documentation **Risk Level**: High ```json "mcpUrl": "https://feishu-openai-mcp-proxy.bytedance.net/mcp", "appID": "cli_a926728f3e38dcba", "appSecret": "BiL8CymBwxiA998MXxvUKbN23RhPsxAg" ``` ### Technical Analysis The skill embeds a Feishu application ID and application secret directly in a configuration example. The documentation instructs users to copy these credentials into the persistent `~/.openclaw/openclaw.json` configuration file and states that authentication is automatically performed with the supplied `appID` and `appSecret`. An application secret is an authentication credential and must not be distributed in source-controlled skill content. Anyone able to obtain this package can extract the credential without authorization. If the credential is genuine, active, and accepted by the relevant Feishu authentication service or MCP proxy, an attacker could attempt to authenticate as the associated application. The supported integration operations include reading documents and tables, creating documents, replacing or appending document content, and writing table values. Consequently, successful credential reuse could expose both read and modification capabilities, subject to the application's configured scopes, tenant installation state, resource accessibility, and any additional authorization controls. ### Attack Path 1. An attacker downloads or otherwise obtains access to the skill package. 2. The attacker reads `SKILL.md` and extracts the plaintext `appID` and `appSecret`. 3. The attacker submits the exposed credentials to the relevant Feishu authentication flow or configures a compatible client to use the documented MCP endpoint. 4. If the credentials remain active and all required tenant or application authorization conditions are satisfied, the attacker obtains an application access token or invokes the M ...[truncated 1252 chars]
Remediation
## Remediation Suggestions 1. **Immediately revoke and rotate the exposed secret.** Treat it as compromised because it has been distributed in plaintext. 2. **Remove the application ID and secret from `SKILL.md` and repository history.** Purging only the current file is insufficient if prior versions remain accessible. 3. **Replace real credentials with unmistakable placeholders**, for example: ```json { "appID": "<YOUR_FEISHU_APP_ID>", "appSecret": "<YOUR_FEISHU_APP_SECRET>" } ``` 4. **Obtain secrets from protected runtime configuration.** Use environment variables, an operating-system credential store, or an approved secret-management service rather than embedding secrets in skill files. 5. **Avoid shared credentials.** Require each deployment or organization to create and manage its own Feishu application credentials. 6. **Apply least privilege.** Grant only the Feishu scopes required for the intended document operations and avoid tenant-wide permissions where resource-specific access is sufficient. 7. **Restrict access server-side.** Where supported, apply tenant restrictions, application allowlists, proxy authorization, rate limits, and credential-use monitoring. 8. **Audit historical use.** Review Feishu and MCP proxy logs for unexpected authentication, document reads, writes, table modifications, or unusual quota consumption involving the exposed application. 9. **Add automated secret scanning** to repository and package publication workflows to prevent future inclusion of application secrets, tokens, or private keys.
Vulnerability Patterns
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Excessive AgencyUnrestricted Tool Access, Autonomous Decision Making, Scope Creep
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
  • Supply ChainUnpinned Dependencies, External Script Fetching, Obfuscated Code
Findings (3)

Context-Inappropriate Capability

High
Confidence
99% confidence
Finding
The skill documentation includes what appears to be a live Feishu app secret and instructs users to place it directly into a local configuration file. Publishing reusable credentials in documentation enables unauthorized access to the associated Feishu application and encourages unsafe secret-handling practices that can lead to account compromise, document access, and abuse of the integration.

Missing User Warnings

Medium
Confidence
95% confidence
Finding
The skill advertises write and create operations against remote Feishu documents without clearly warning that these actions modify cloud-hosted data. In an agent context, this can cause users or downstream systems to invoke destructive or unintended changes to production documents, especially if tool use is automated.

Missing User Warnings

Medium
Confidence
89% confidence
Finding
The notes state that authentication is automatic and that the tool accesses Feishu cloud documents, but they do not include privacy, scope, or data-handling warnings. In a skill designed for AI agents, silent authenticated access to cloud content increases the risk of unintended data exposure, overbroad access, and user misunderstanding about what external systems the agent can reach.

Static analysis

No suspicious patterns detected.