Back to skill

Security audit

feishu-team-manager

Security checks for vulnerabilities and agentic risk

Overview

This skill appears aimed at real Feishu/Discord agent management, but it asks for powerful local and bot access with weak safeguards around credentials, global configuration changes, and persistent agent authority.

Review this skill carefully before installing. Use it only in a test or tightly controlled OpenClaw environment, do not paste real App Secrets or bot tokens into chat, restrict bot senders before enabling routing, back up ~/.openclaw manually before running it, and avoid running the bundled test or binding scripts against production configuration until the unsafe shell calls, plaintext secret storage, open-DM defaults, and confirmation gaps are fixed.

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
  • 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
  • Remote Payload Retrieval and ExecutionFetches external code whose behavior can change after review
Findings (6)

T09 · Insecure Skill Coding Practices

Error
Location
index.js:112
Finding

Shell Command Injection Through Unquoted Workspace Paths

Content
View full analysis
{ const src = path.join(skillSourcePath, 'assets/templates', `hr_${t}.md`); const dst = path.join(hrWorkspace, `${t.toUpperCase()}.md`); if (fs.existsSync(src)) { execSync(`cp ${src} ${dst}`); } }); const targetSkillPath = path.join(hrWorkspace, 'skills/feishu-team-manager'); execSync(`rm -rf ${targetSkillPath}`); execSync(`mkdir -p ${targetSkillPath}`); execSync(`cp -r ${skillSourcePath}/* ${targetSkillPath}/`); execSync(`openclaw agents add hr_recruiter --workspace ${hrWorkspace}`); ``` The same unsafe pattern occurs during synchronization: ```javascript const hrWorkspace = hrAgent.workspace; if (hrWorkspace && fs.existsSync(hrWorkspace)) { const targetSkillPath = path.join(hrWorkspace, 'skills/feishu-team-manager'); execSync(`cp -r ${skillSourcePath}/* ${targetSkillPath}/`); console.log("Skill files synchronized to the HR workspace."); } ``` ### Technical Analysis The code constructs shell command strings by directly interpolating paths derived from: - The `HOME` environment variable. - The Skill installation path. - The `workspace` property in `openclaw.json`. No shell quoting, escaping, canonicalization, or trust-boundary validation is applied. Node.js `execSync()` invokes a shell, so metacharacters embedded in one of these values are interpreted as shell syntax rather than as part of a filesystem path. The synchronization branch is particularly dangerous because ...[truncated 1293 chars]
Remediation
View remediation

T02 · Agent Memory Poisoning

Error
Location
scripts/recruit_agent.py:5
Finding

Persistent Agent Instruction Injection and Path Traversal Through Recruitment Inputs

Content
View full analysis
Remediation
View remediation

T01 · Skill Instruction Hijacking

Error
Location
assets/templates/hr_identity.md:10
Finding

Persistent HR Templates Grant Excessive and Exclusive Agent Authority

Content
View full analysis
Remediation
View remediation

T09 · Insecure Skill Coding Practices

Error
Location
scripts/bind_bot.py:43
Finding

Bot Credentials Are Collected and Stored Through Insecure Plaintext Channels

Content
View full analysis
3: print(bind_bot(sys.argv[1], sys.argv[2], sys.argv[3])) ``` Discord configuration supports direct plaintext token embedding: ```python if use_env_ref: discord_config["token"] = { "source": "env", "provider": "default", "id": "DISCORD_BOT_TOKEN" } else: discord_config["token"] = token ``` The direct-token mode is exposed through the CLI: ```python parser.add_argument('--token', help='Discord bot token') parser.add_argument('--direct-token', action='store_false', dest='env_ref', help='Embed token directly') ``` The resulting Discord configuration is printed before writing: ```python print(json.dumps(config_data['channels']['discord'], indent=2, ensure_ascii=False)) ``` ### Technical Analysis Feishu App Secrets are collected through a normal chat/card workflow, where they may be retained in conversation history or platform logs. They are then passed through command-line arguments and stored as plaintext JSON values. Command-line secrets may be exp ...[truncated 1521 chars]
Remediation
View remediation

T05 · Unauthorized Access and Privilege Escalation

Error
Location
scripts/bind_bot.py:16
Finding

Global Configuration Is Mutated and the Gateway Is Restarted Without Confirmation

Content
View full analysis
Remediation
View remediation

T05 · Unauthorized Access and Privilege Escalation

Error
Location
scripts/add_discord_config.py:70
Finding

New Feishu and Discord Bots Permit Unrestricted Direct Messages by Default

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
  • Trigger AbuseOverly Broad Trigger, Shadow Command Trigger, Keyword Baiting Trigger
  • MCP Least PrivilegeUnderdeclared Capability, Wildcard Permission, Missing Permission Declaration
  • MCP Tool PoisoningHidden Instructions, Unicode Deception, Parameter Description Injection
Findings (84)

Tp4

High
Category
MCP Tool Poisoning
Confidence
93% confidence
Finding

Undeclared installation actions, environment checks, script execution, network fetches, and verification of external links extend the trust boundary beyond the stated team-management task. In a skill that already handles credentials and local configuration, hidden install/test/network behavior increases the chance of unintended code execution, disclosure, or policy bypass.

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
98% confidence
Finding

Undeclared installation actions, environment checks, script execution, network fetches, and verification of external links extend the trust boundary beyond the stated team-management task. In a skill that already handles credentials and local configuration, hidden install/test/network behavior increases the chance of unintended code execution, disclosure, or policy bypass.

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
95% confidence
Finding

Undeclared installation actions, environment checks, script execution, network fetches, and verification of external links extend the trust boundary beyond the stated team-management task. In a skill that already handles credentials and local configuration, hidden install/test/network behavior increases the chance of unintended code execution, disclosure, or policy bypass.

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
94% confidence
Finding

Undeclared installation actions, environment checks, script execution, network fetches, and verification of external links extend the trust boundary beyond the stated team-management task. In a skill that already handles credentials and local configuration, hidden install/test/network behavior increases the chance of unintended code execution, disclosure, or policy bypass.

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
98% confidence
Finding

Undeclared installation actions, environment checks, script execution, network fetches, and verification of external links extend the trust boundary beyond the stated team-management task. In a skill that already handles credentials and local configuration, hidden install/test/network behavior increases the chance of unintended code execution, disclosure, or policy bypass.

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
99% confidence
Finding

Undeclared installation actions, environment checks, script execution, network fetches, and verification of external links extend the trust boundary beyond the stated team-management task. In a skill that already handles credentials and local configuration, hidden install/test/network behavior increases the chance of unintended code execution, disclosure, or policy bypass.

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
95% confidence
Finding

Undeclared installation actions, environment checks, script execution, network fetches, and verification of external links extend the trust boundary beyond the stated team-management task. In a skill that already handles credentials and local configuration, hidden install/test/network behavior increases the chance of unintended code execution, disclosure, or policy bypass.

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
97% confidence
Finding

Undeclared installation actions, environment checks, script execution, network fetches, and verification of external links extend the trust boundary beyond the stated team-management task. In a skill that already handles credentials and local configuration, hidden install/test/network behavior increases the chance of unintended code execution, disclosure, or policy bypass.

Content

No source excerpt is available for this finding.

Ae1

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
当此 Skill 首次运行时,`index.js` 会:

Description-Behavior Mismatch

High
Category
Not specified by scanner
Confidence
97% confidence
Finding

The skill’s declared purpose is Feishu/Discord bot setup and routing refactor, but the implementation instead provisions a new OpenClaw agent workspace, injects identity files, copies the entire skill tree, and alters agent registration. This mismatch is dangerous because users may grant trust based on the manifest while the code performs privileged local persistence and cross-workspace modification unrelated to the stated function.

Content

No source excerpt is available for this finding.

Missing User Warnings

High
Category
Not specified by scanner
Confidence
99% confidence
Finding

The example instructs the user to send App ID and especially Secret in a conversational message to the HR agent, effectively modeling secret disclosure through chat. This is dangerous because chat transcripts, logs, prompt history, or other agents may capture the credential, enabling bot takeover or broader compromise of connected Feishu integrations.

Content

No source excerpt is available for this finding.

File System Enumeration

Medium
Category
Data Exfiltration
Confidence
60% confidence
Finding

Code scans file system directories looking for sensitive files. This could be reconnaissance for credential theft.

Content

Scanner excerpt · INSTALLATION_TEST.md (reported line 27)May include surrounding context.

步骤2: 验证技能文件结构

bash
# 检查技能目录
ls -la ~/.openclaw/workspace/skills/feishu-team-manager/

# 检查核心文件
ls -la ~/.openclaw/workspace/skills/feishu-team-manager/scripts/

File System Enumeration

Medium
Category
Data Exfiltration
Confidence
60% confidence
Finding

Code scans file system directories looking for sensitive files. This could be reconnaissance for credential theft.

Content

Scanner excerpt · INSTALLATION_TEST.md (reported line 30)May include surrounding context.

步骤2: 验证技能文件结构

bash
# 检查技能目录
ls -la ~/.openclaw/workspace/skills/feishu-team-manager/

# 检查核心文件
ls -la ~/.openclaw/workspace/skills/feishu-team-manager/scripts/

File System Enumeration

Medium
Category
Data Exfiltration
Confidence
60% confidence
Finding

Code scans file system directories looking for sensitive files. This could be reconnaissance for credential theft.

Content

Scanner excerpt · promotion/FEISHU_ANNOUNCEMENT.md (reported line 134)May include surrounding context.

步骤2: 验证技能文件结构

bash
# 检查技能目录
ls -la ~/.openclaw/workspace/skills/feishu-team-manager/

# 检查核心文件
ls -la ~/.openclaw/workspace/skills/feishu-team-manager/scripts/

Vague Triggers

Medium
Category
Not specified by scanner
Confidence
91% confidence
Finding

The activation guidance says the skill can be triggered by merely mentioning keywords in conversation, but does not define boundaries, confirmation prompts, or safe activation conditions. In a team-management skill that can recruit agents and configure bots, ambiguous triggers increase the chance of accidental invocation and unintended operational changes.

Content

No source excerpt is available for this finding.

Intent-Code Divergence

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

The documentation labels the command as a simulation, but the shown invocation has no explicit dry-run or test-only safeguard. If users trust the documentation, they may execute the real recruitment workflow and unintentionally create agents, modify routing, or trigger downstream bot/account provisioning in production environments.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

Medium
Category
Not specified by scanner
Confidence
88% confidence
Finding

The documentation describes external API integration and automated deployment behavior that exceeds the narrow expectations of a recruitment/bot-routing skill. Capability creep increases attack surface and creates a mismatch between user expectations and actual privileged operations, making social engineering and unsafe approval more likely.

Content

No source excerpt is available for this finding.

Context-Inappropriate Capability

Medium
Category
Not specified by scanner
Confidence
92% confidence
Finding

The quick-start explicitly normalizes security warnings and states the skill performs configuration modification, system command execution, and deployment automation. Even in documentation, encouraging force-installation of a package with those capabilities broadens trust requirements and can lead users to approve powerful behavior without validation. In the context of a team-management skill, this is more dangerous because the advertised capabilities imply host-level changes beyond simple recruiting and bot routing.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
98% confidence
Finding

The guide instructs users to paste Feishu App ID and Secret directly into chat, without any warning about retention, logging, redaction, or safer secret-entry mechanisms. Secrets entered in conversational channels may be stored in transcripts, exposed to other agents/tools, or leaked through debugging and monitoring systems.

Content

No source excerpt is available for this finding.

Ssd 3

Medium
Category
Not specified by scanner
Confidence
99% confidence
Finding

This section directly teaches users to supply bot credentials in conversational prompts, which is an unsafe secret-handling pattern. In an agent ecosystem, chat content may be logged, forwarded, used for context in later tasks, or accessed by plugins, turning a documentation pattern into a real credential exposure risk.

Content

No source excerpt is available for this finding.

Ssd 3

Medium
Category
Not specified by scanner
Confidence
99% confidence
Finding

The repeated examples normalize verbatim inclusion of App IDs and Secrets in agent conversations, reinforcing insecure operator behavior. Repetition matters here because it trains users to treat sensitive values as ordinary prompt content, increasing the probability of accidental disclosure and long-term transcript leakage.

Content

No source excerpt is available for this finding.

Undeclared Tool Scope

Medium
Category
MCP Least Privilege
Confidence
83% confidence
Finding

The skill declares powerful capabilities through metadata and documented behavior—environment access, local file modification, shell execution, and likely network use—but does not define an explicit tool/permission scope. This weakens least-privilege controls and makes it harder for a host or reviewer to constrain dangerous operations such as rewriting OpenClaw configuration, restarting services, or handling bot credentials.

Content

No source excerpt is available for this finding.

Vague Triggers

Medium
Category
Not specified by scanner
Confidence
89% confidence
Finding

Broad natural-language trigger phrases with no activation constraints make accidental or socially engineered invocation more likely, especially for a skill that can create workspaces, modify config, and restart services. In this context, an innocuous chat message containing phrases like 'recruit' or 'bind bot' could trigger sensitive actions without sufficiently clear scoping.

Content

No source excerpt is available for this finding.

Vague Triggers

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

The form explicitly asks a user to enter an App Secret, which is a sensitive credential, but provides no scope limitation, justification, handling notice, or indication of a secure collection flow. In the context of a skill that provisions bots and multi-account routing, collecting raw secrets through a generic form materially increases the risk of credential theft, overbroad access, or accidental disclosure in logs, cards, or downstream systems.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
94% confidence
Finding

The workflow instructs creation of local workspaces, agent provisioning, and collection/binding of Feishu bot credentials without any warning, confirmation, or safe-handling guidance. In a high-privilege HR/team-management skill, this can lead to unintended filesystem modification, unsafe secret handling, and users providing credentials to an automation flow without understanding the security implications.

Content

No source excerpt is available for this finding.