Back to skill

Security audit

2037

Security checks for vulnerabilities and agentic risk

Overview

The assistant’s account access and game controls fit its stated purpose, with game writes disabled by default and account deletion, payment, and diagnostic commands blocked.

Configure credentials in your own terminal and protect the unencrypted credential file. Keep read-only mode until you authorize specific game actions, and verify any replacement account-service address before using it. Entering a character replaces its existing client connection. Review included source inspection and offline policy checks, without live gameplay testing.

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
  • 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
  • Unauthorized Access and Privilege EscalationObtains permissions beyond the task's legitimate needs
Vulnerability Patterns
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
  • Excessive AgencyUnrestricted Tool Access, Autonomous Decision Making, Scope Creep
  • MCP Least PrivilegeUnderdeclared Capability, Wildcard Permission, Missing Permission Declaration
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
Findings (7)

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 · references/SETUP.md (reported line 13)May include surrounding context.

md
`npm ci` 从 npm 仓库下载锁定的 MCP SDK、JSON Schema 校验器、WebSocket 客户端及其依赖,并禁用安装脚本。doctor 启动本机 stdio MCP 子进程,检查工具清单和坐标换算,不登录、不进入角色、不执行游戏操作。

setup 需要玩家自己的交互终端,密码输入不回显。它在 `~/.earth2037-agent/` 生成私有凭据 `credentials.json`,POSIX 文件权限 600、目录权限 700;同时生成 `mcp.json`、`hermes-mcp.yaml`、`dsh-mcp.patch.yaml`。已有凭据保留,生成的配置文件会被替换。只把其中 Earth2037 条目合并到所用助手配置,不覆盖其他 MCP。setup 不自动修改助手全局配置、不启动后台服务。

通用 MCP 使用 `node /绝对路径/src/main.mjs`,传输方式是 stdio,不是公开 HTTP 服务,不需要开放端口。

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 · references/SETUP.md (reported line 54)May include surrounding context.

命令行不会自动读取生成的 MCP 配置,需显式传入路径:

bash
export EARTH2037_CREDENTIAL_FILE="$HOME/.earth2037-agent/credentials.json"
export EARTH2037_STATE_DIR="$HOME/.earth2037-agent/state"
export EARTH2037_READ_ONLY=1
node src/cli.mjs describe arrivalheroexplore

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 · src/account.mjs (reported line 31)May include surrounding context.

js
return data;
  }
  accept(session) {
    requireValue(session?.access_token, 'account_invalid_response', 'Missing access token');
    this.accessToken = session.access_token; this.refreshToken = session.refresh_token || this.refreshToken;
    this.identity = session.account;
    // Refresh handles rotate. Persist only in the explicitly configured private

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 · tools/setup.mjs (reported line 13)May include surrounding context.

js
export function configurations({ privateDir, node = process.execPath, gateway = root, locale = 'en', readOnly = true, platform = process.platform }) {
  const entry = { command: node, args: [join(gateway, 'src/main.mjs')], env: {
    EARTH2037_ACCOUNT_URL: 'https://new2037.earth2037.com/account-api',
    EARTH2037_CREDENTIAL_FILE: join(privateDir, 'credentials.json'),
    EARTH2037_STATE_DIR: join(privateDir, 'state'),
    EARTH2037_LOCALE: locale,
    // Account Center has no linux runtime enum; headless Linux/WSL uses its web client context.

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 · tools/setup.mjs (reported line 66)May include surrounding context.

js
}
  const locale = args.includes('--locale') ? args[args.indexOf('--locale')+1] : 'en';
  const privateDir = join(homedir(), '.earth2037-agent');
  const credentials = join(privateDir, 'credentials.json');
  mkdirSync(privateDir, { recursive: true, mode: 0o700 });
  if (!existsSync(credentials) && !args.includes('--config-only')) {
    if (!process.stdin.isTTY || !process.stdout.isTTY) throw new Error('Run setup in your own interactive terminal; do not send a password in chat or a command argument.');

Skill declares no tool scope ('permissions' or 'allowed-tools') but code capabilities were detected: env, network, shell.

Medium
Category
MCP Least Privilege
Confidence
70% confidence
Finding

Without declared permissions the skill's intent is opaque and cannot be validated.

Content

No source excerpt is available for this finding.

The player-assistant command catalog includes a server testing capability unrelated to normal gameplay.

Medium
Category
Excessive Agency
Confidence
87% confidence
Finding

The catalog exposes a server TEST command with an unrestricted string argument as a server-dispatched game operation, despite the skill being scoped to player gameplay rather than server administration. This unnecessarily makes a diagnostic entry point available to the assistant and could permit unintended server actions if the handler supports them; the provided catalog does not establish the handler's behavior, authorization, or actual runtime reachability.

Content

No source excerpt is available for this finding.