T05 · Unauthorized Access and Privilege Escalation
- Location
SKILL.md:64- Finding
Unrestricted Feishu Group Access
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md, line 64
Vulnerability Type: Unrestricted group access policy
Risk Level: MediumVulnerable Configuration
json5 groupPolicy: "open",Technical Analysis
The example configuration sets the Feishu group access policy to
open. This weakens access control by allowing messages from groups without requiring an explicit group allowlist or equivalent authorization boundary.Because incoming messages are routed to an Agent, users in any group where the bot is reachable may submit attacker-controlled instructions. The effective severity depends on the tools, credentials, files, and external services available to the routed Agent.
Attack Path
- An attacker gains access to, or invites the bot into, a Feishu group accepted by the open policy.
- The attacker sends a message or mention containing instructions for the bot.
- The Gateway accepts the message because no restrictive group allowlist is configured.
- The message is routed through the configured binding to an Agent.
- The Agent processes the attacker's instructions and may invoke any capabilities available in its execution context.
Impact Assessment
An unauthorized group participant may consume Agent and model resources, submit prompt-injection content, elicit workspace-derived information, or invoke tools exposed to the Agent. The maximum scope is limited to the permissions and resources assigned to the affected Agent, Feishu bot, and Gateway environment.
- Remediation
View remediation
Remediation Suggestions
- Replace the open group policy with a restrictive policy supported by OpenClaw.
- Maintain an explicit allowlist of approved Feishu group identifiers.
- Deny access by default and require administrative approval before enabling the bot in a new group.
- Assign each Agent only the minimum tools, credentials, files, and external-service permissions required for its role.
- Separate public-facing Agents from Agents that can execute commands or access sensitive workspaces.
- Log rejected and accepted group requests, and alert on access attempts from unknown groups.
- Document the open policy only as a risk-accepted exception rather than using it in the default example.
