Back to skill

Security audit

meego-skill

Security checks for vulnerabilities and agentic risk

Overview

The skill is a Meego project-management helper, but it repeatedly tells users to reveal OAuth credential files to an AI assistant and uses privileged, unpinned npm installation patterns.

Review carefully before installing. Do not paste OAuth credentials or credentials.json into any AI chat. Use a dedicated service account, least-privilege OAuth scopes, an unprivileged runtime user, pinned package versions, and a secret manager or direct secure file transfer with restrictive permissions.

Vulnerability Patterns
  • Unauthorized Access and Privilege EscalationObtains permissions beyond the task's legitimate needs
  • Insecure DependenciesIntroduces malicious components through unsafe dependency sources
  • 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
Findings (4)

T09 · Insecure Skill Coding Practices

Error
Location
SKILL.md:131
Finding

OAuth Credentials Are Exposed Through AI Conversation Content

Content
View full analysis
Remediation
View remediation

T05 · Unauthorized Access and Privilege Escalation

Error
Location
SKILL.md:145
Finding

OAuth Credentials Are Stored Through a Root-Privileged Agent Workflow

Content
View full analysis
Remediation
View remediation

T08 · Insecure Dependencies

Error
Location
SKILL.md:65
Finding

Unpinned npm Packages Are Installed and Executed with Elevated Privileges

Content
View full analysis
Remediation
View remediation

T09 · Insecure Skill Coding Practices

Warning
Location
meego-config.example.json:1
Finding

Example Configuration Encourages Plaintext Storage of Long-Lived Secrets

Content
View full analysis
Remediation
View remediation
Vulnerability Patterns
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
  • Excessive AgencyUnrestricted Tool Access, Autonomous Decision Making, Scope Creep
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Supply ChainUnpinned Dependencies, External Script Fetching, Obfuscated Code
Findings (52)

Credential Access

High
Category
Privilege Escalation
Confidence
70% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

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

  1. 自动打开浏览器跳转发书授权页面
  2. 用户在飞书点击"授权"后,callback 收到 code
  3. 自动用 code 换取 access_token + refresh_token
  4. 自动保存到 ~/.mcporter/credentials.json(本地电脑)

预期输出:

text

Credential Access

High
Category
Privilege Escalation
Confidence
70% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

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

  1. 自动打开浏览器跳转发书授权页面
  2. 用户在飞书点击"授权"后,callback 收到 code
  3. 自动用 code 换取 access_token + refresh_token
  4. 自动保存到 ~/.mcporter/credentials.json(本地电脑)

预期输出:

text

Credential Access

High
Category
Privilege Escalation
Confidence
70% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

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

  1. 自动打开浏览器跳转发书授权页面
  2. 用户在飞书点击"授权"后,callback 收到 code
  3. 自动用 code 换取 access_token + refresh_token
  4. 自动保存到 ~/.mcporter/credentials.json(本地电脑)

预期输出:

text

Credential Access

High
Category
Privilege Escalation
Confidence
70% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

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

  1. 自动打开浏览器跳转发书授权页面
  2. 用户在飞书点击"授权"后,callback 收到 code
  3. 自动用 code 换取 access_token + refresh_token
  4. 自动保存到 ~/.mcporter/credentials.json(本地电脑)

预期输出:

text

Credential Access

High
Category
Privilege Escalation
Confidence
70% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

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

  1. 自动打开浏览器跳转发书授权页面
  2. 用户在飞书点击"授权"后,callback 收到 code
  3. 自动用 code 换取 access_token + refresh_token
  4. 自动保存到 ~/.mcporter/credentials.json(本地电脑)

预期输出:

text

Credential Access

High
Category
Privilege Escalation
Confidence
70% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

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

  1. 自动打开浏览器跳转发书授权页面
  2. 用户在飞书点击"授权"后,callback 收到 code
  3. 自动用 code 换取 access_token + refresh_token
  4. 自动保存到 ~/.mcporter/credentials.json(本地电脑)

预期输出:

text

Credential Access

High
Category
Privilege Escalation
Confidence
98% confidence
Finding

The skill instructs the user to display the contents of credentials.json, which contains OAuth access and refresh tokens. Prompting disclosure of that file is effectively asking for secret extraction and materially enables account and data compromise.

Content

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

授权完成后,在本地电脑执行:

bash
type %USERPROFILE%\.mcporter\credentials.json
# Windows PowerShell:
# Get-Content $env:USERPROFILE\.mcporter\credentials.json

Credential Access

High
Category
Privilege Escalation
Confidence
98% confidence
Finding

This PowerShell variant also exposes the credential file contents for copy-paste. Since OAuth tokens are bearer credentials, anyone who obtains them can reuse them until expiry and possibly refresh them for continued access.

Content

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

bash
type %USERPROFILE%\.mcporter\credentials.json
# Windows PowerShell:
# Get-Content $env:USERPROFILE\.mcporter\credentials.json
bash

Credential Access

High
Category
Privilege Escalation
Confidence
98% confidence
Finding

The cat ~/.mcporter/credentials.json instruction explicitly reveals sensitive OAuth material for onward sharing. In a chat-driven workflow, this creates an unnecessary exfiltration path into logs, transcripts, or third-party systems.

Content

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

bash
# Mac/Linux:
cat ~/.mcporter/credentials.json

把完整 JSON 内容发给 AI助手(粘贴到聊天里),AI会自动写入服务器的 /root/.mcporter/credentials.json。

Credential Access

High
Category
Privilege Escalation
Confidence
99% confidence
Finding

This line explicitly asks for the full credential JSON to be sent to the AI assistant and stored on the server. That crosses trust boundaries, exposes long-lived authentication artifacts, and grants the assistant or anyone with transcript access the ability to act as the user against Meego.

Content

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

cat ~/.mcporter/credentials.json

text

把完整 JSON 内容发给 AI助手(粘贴到聊天里),AI会自动写入服务器的 `/root/.mcporter/credentials.json`。

> **服务器credentials路径:** `/root/.mcporter/credentials.json`(Linux服务器)
> **本地 credentials 路径:** `~/.mcporter/credentials.json`

Context-Inappropriate Capability

High
Category
Not specified by scanner
Confidence
99% confidence
Finding

The documentation explicitly tells users to paste the full OAuth credentials.json into chat so the AI assistant can write it to the server. This is direct credential exfiltration: bearer tokens and refresh tokens grant access beyond a single command and can be reused, copied, or mishandled outside the user's intended trust boundary.

Content

No source excerpt is available for this finding.

Missing User Warnings

High
Category
Not specified by scanner
Confidence
99% confidence
Finding

The skill asks users to paste OAuth credential JSON into chat with no meaningful warning that these are sensitive bearer and refresh tokens. This unsafe prompt pattern can cause accidental disclosure of long-lived access material to the model provider, logs, plugins, or other systems handling the conversation.

Content

No source excerpt is available for this finding.

Ssd 3

High
Category
Not specified by scanner
Confidence
99% confidence
Finding

Instructing users to provide full OAuth credentials so the AI can place them on /root/.mcporter/credentials.json gives the assistant access to reusable authentication secrets and enables persistence on a privileged path. In context, this is more dangerous because the skill is for operational access to a project system, so the stolen tokens can be used to read or modify business data.

Content

No source excerpt is available for this finding.

Credential Access

High
Category
Privilege Escalation
Confidence
98% confidence
Finding

The troubleshooting section again tells users to export credentials, which exposes OAuth tokens for manual handling. Requiring users to reveal raw secret material increases the chance of leakage through terminal history, screenshots, clipboard sync, or chat transmission.

Content

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

第二步:导出 credentials

powershell
# 本地电脑执行
type $env:USERPROFILE\.mcporter\credentials.json

第三步:发给 AI助手,AI自动写入服务器 /root/.mcporter/credentials.json

Credential Access

High
Category
Privilege Escalation
Confidence
99% confidence
Finding

This line instructs the user to send exported credentials to the AI assistant for placement on the server. That is a direct secret-sharing workflow and creates an unnecessary high-risk trust dependency on the assistant and conversation handling pipeline.

Content

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

type $env:USERPROFILE.mcporter\credentials.json

text

**第三步:发给 AI助手**,AI自动写入服务器 `/root/.mcporter/credentials.json`

---

Context-Inappropriate Capability

High
Category
Not specified by scanner
Confidence
99% confidence
Finding

The error-handling guidance repeatedly normalizes sending refreshed credentials to the AI assistant whenever auth breaks or tokens expire. That turns troubleshooting into an ongoing credential collection channel and broadens the skill from Meego operations into secret handling without necessity or clear safeguards.

Content

No source excerpt is available for this finding.

Ssd 3

High
Category
Not specified by scanner
Confidence
99% confidence
Finding

The troubleshooting flow reinforces the practice of exporting credentials and sending them to the AI assistant, which increases the chance of repeated secret disclosure and persistence in chat history. Because refreshes may happen regularly, the pattern can continuously renew the assistant's access to the user's project account.

Content

No source excerpt is available for this finding.

Ssd 3

High
Category
Not specified by scanner
Confidence
99% confidence
Finding

The token refresh section explicitly instructs users to send updated credentials to the AI for server updates, effectively making the AI a credential relay and repository. That is unnecessary for the stated purpose and exposes both access and refresh tokens to unauthorized retention or reuse.

Content

No source excerpt is available for this finding.

Credential Access

High
Category
Privilege Escalation
Confidence
98% confidence
Finding

The token-refresh guidance asks users to export the newest credentials file, again surfacing bearer and refresh tokens for manual transfer. Repeated exposure of refreshed credentials extends the effective attack window and makes persistent unauthorized access more likely.

Content

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

powershell
# 本地执行,导出最新 credentials
type $env:USERPROFILE\.mcporter\credentials.json

把新 credentials 发给 AI助手 更新到服务器。

Credential Access

High
Category
Privilege Escalation
Confidence
94% confidence
Finding

Documenting that the server-side OAuth token file is 'AI助手写入' confirms the design expects the assistant to handle and place secrets. That institutionalizes insecure secret handling and makes the skill materially more dangerous because credential access is outside its stated project-management function.

Content

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

md
| 环境 | 文件路径 | 用途 |
|------|---------|------|
| 服务器(Linux) | `/root/.mcporter/credentials.json` | OAuth token(AI助手写入) |
| 本地电脑 | `~/.mcporter/credentials.json` | OAuth token(auth 命令自动写入) |

> **配置格式不是** `app_id + app_secret` JSON,而是 OAuth credentials JSON(由飞书授权流程自动生成)。

Rp1

Medium
Category
MCP Rug Pull
Confidence
87% confidence
Finding

The skill instructs use of npx @lark-project/meego-mcporter without pinning a specific version, so execution will fetch and run whatever package version is current at invocation time. That creates a software supply-chain risk where a compromised, typosquatted, or newly malicious upstream release could execute arbitrary code in the user's environment.

Content

No source excerpt is available for this finding.

Sudo/Root Execution

Medium
Category
Privilege Escalation
Confidence
80% confidence
Finding

The skill recommends sudo npm install -g, which executes package installation scripts with elevated privileges. If the package or one of its dependencies is malicious or compromised, this can lead to full system compromise rather than a user-scoped install issue.

Content

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

bash
# Mac/Linux 终端
sudo npm install -g mcporter
sudo npm install -g @lark-project/meego-mcporter

Sudo/Root Execution

Medium
Category
Privilege Escalation
Confidence
80% confidence
Finding

This second privileged install command compounds the same risk: arbitrary postinstall code would run as root. In combination with unpinned dependencies, this materially raises the chance and severity of supply-chain compromise.

Content

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

bash
# Mac/Linux 终端
sudo npm install -g mcporter
sudo npm install -g @lark-project/meego-mcporter

验证安装(服务器或本地都行):

Rp1

Medium
Category
MCP Rug Pull
Confidence
87% confidence
Finding

This unpinned npx invocation pulls and executes the latest available package at runtime. In a skill that already requests OAuth setup and privileged tooling, that increases the blast radius of an upstream package compromise into credential theft or arbitrary command execution.

Content

No source excerpt is available for this finding.

Rp1

Medium
Category
MCP Rug Pull
Confidence
87% confidence
Finding

Running an unversioned package through npx makes builds and execution non-reproducible and exposes users to silent upstream changes. Because this skill handles project-management access tokens, any malicious update could harvest credentials or manipulate project data.

Content

No source excerpt is available for this finding.