T05 · Unauthorized Access and Privilege Escalation
- Location
SKILL.md:87- Finding
Broad Agent Memory Access for Feishu Folder Configuration
- Content
View full analysis
- Remediation
View remediation
Security audit
Security checks for vulnerabilities and agentic risk
The skill’s meal-planning goal is legitimate, but it asks the agent to handle Feishu credentials, read general memory for a folder token, and exposes document delete/move API examples without sufficient scoping or user control.
Review this skill carefully before installing. It is not clearly malicious, but only use it if you are comfortable with it reading meal preferences, making external recipe searches, creating and editing Feishu documents, and handling Feishu credentials. Prefer moving Feishu credentials and folder tokens into a scoped connector or secret store, narrowing activation to explicit weekly-menu document requests, and removing the delete/move API examples unless they become explicit user-confirmed features.
SKILL.md:87Broad Agent Memory Access for Feishu Folder Configuration
references/feishu-doc-recipe.md:5Feishu Application Secret Passed Through a Shell Command
The reference explicitly walks through obtaining a tenant access token, which is credential use for a multi-tenant enterprise service. In the context of a meal-planning skill, this materially increases risk because the skill couples benign content generation with privileged enterprise API access that can be reused for broader actions.
Step-by-step API calls for creating a weekly menu Feishu document with images.
curl -s -X POST "https://open.feishu.cn/open-apis/auth/v3/tenant_access_token/internal" \
The trigger phrases are broad enough to activate on generic food-planning requests, which can cause the skill to run external searches, create files, and write history when the user may have only wanted a simple chat response. In this skill's context, overbroad invocation expands the chance of unnecessary data processing and external actions without sufficiently clear user intent.
The skill says it will create a user profile if one does not exist and later append menu history, but it does not require explicit notice or consent before persisting personal preference data. Because the profile includes location, household, equipment, spice tolerance, and schedule, silent creation and updating of these files creates a privacy and transparency issue.
The skill performs Xiaohongshu searches and downloads dish images from external sources without a clear privacy warning to the user. Even if the queries are recipe-related, they may still encode location, preferences, equipment, or other profile-derived attributes and disclose them to third parties without transparency.
The skill explicitly indicates that a Feishu drive token is stored in MEMORY.md, which is a poor secret-handling practice unrelated to normal meal-planning behavior. Storing reusable access tokens in general agent memory increases the chance of unintended disclosure to other skills, prompts, logs, or users, and could allow unauthorized access to Feishu documents and drive contents.
Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.
curl -s -X POST "https://open.feishu.cn/open-apis/auth/v3/tenant_access_token/internal" \
-H "Content-Type: application/json" \
-d '{"app_id":"<APP_ID>","app_secret":"<APP_SECRET>"}'
The guide instructs the agent to read Feishu app credentials from a local configuration file, which is a sensitive credential source not justified within the visible meal-planning logic. Embedding secret-access instructions in a recipe skill expands the skill from content generation into privileged account access and enables unauthorized API use if the skill is invoked broadly.
The instructions direct access to stored Feishu credentials without disclosing that secrets will be read or that external API actions will occur. This undermines informed consent and makes a seemingly harmless meal-planning skill materially more dangerous because it silently leverages persistent credentials.
Including document deletion capability is beyond the stated purpose of generating a weekly menu and introduces unnecessary destructive power. If the skill or a downstream agent follows this reference, it could delete arbitrary Feishu documents using the same token without user awareness.
A destructive delete command is presented as routine reference material with no warning, approval requirement, or guardrails. In an agent setting, undocumented destructive actions create a meaningful risk of accidental or abusive document loss.
The profile template sets country: "CN" and timezone: "Asia/Shanghai" as defaults, which imposes a specific locale on all users of the template. Under the policy criteria, locale constraints should either be optional, user-selected, or clearly documented as region-specific and justified; that is not present here.
The move-document API exceeds the minimal permissions needed for menu creation and storage, creating an unnecessary ability to reorganize or hide files. While less destructive than deletion, it still allows unintended modification of user data location and workflow state.