Back to skill

Security audit

SuperX Studio

Security checks for vulnerabilities and agentic risk

Overview

ClawScan marks this skill suspicious because scanners report automatic, weakly authenticated self-updates and capabilities that extend beyond the described media and account workflows; analysis was partial, so evidence is incomplete.

Consider avoiding installation until the update path is independently reviewed and the skill's account access and data disclosures are acceptable to you. Skillspector reports partial analysis, inspecting 7 of 15 components fully; AIG completed with no findings, but that does not resolve the coverage gaps.

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
  • Output HandlingUnvalidated Output Injection, Cross-Context Output, Unbounded Output
  • System Prompt LeakageDirect Leakage, Indirect Extraction, Tool-Based Exfiltration
  • Rogue AgentSelf-Modification, Session Persistence
Findings (18)

Incomplete referenced artifact analysis

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
**入口脚本**:`scripts/studio.mjs`(Node ≥ 20,零依赖)。下文写成 `studio`,执行时换成

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 58)May include surrounding context.

node <技能目录>/scripts/studio.mjs login --wait --timeout 240

text

- 成功打印账号昵称、UID 和点数余额。令牌存在 `~/.superx-studio/credentials.json`(权限 600),之后的命令自动带上。
- 退出码 4 且提示「还没等到授权」:链接 10 分钟内有效,再跑一次 `login --wait` 接着等。
- 过期或被拒绝:重新 `login --start`,把新链接发给用户。
- **不要**读、打印、转述 `~/.superx-studio/` 下的任何文件,里面是用户的登录凭据。

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 · scripts/lib/store.mjs (reported line 53)May include surrounding context.

js
/** 当前令牌:环境变量优先(CI / 不想落盘时用),其次本机登录记录 */
export function currentToken() {
  if (process.env.STUDIO_TOKEN) return process.env.STUDIO_TOKEN;
  const cred = readState('credentials.json');
  return cred && cred.baseUrl === BASE_URL ? cred.token : '';
}

Self-Modification

High
Category
Rogue Agent
Confidence
92% confidence
Finding

The named function is a protective eligibility check, but the surrounding module confirms default-enabled replacement of the skill's executable directory. The opt-out environment variable and write-access checks do not authenticate replacement code, so this is another indication of the same unsafe update trust boundary rather than a separate exploit.

Content

Scanner excerpt · scripts/lib/update.mjs (reported line 75)May include surrounding context.

js
}

/** 这份技能能不能被自动替换。返回空串表示可以,否则是原因 */
export function cannotSelfUpdate(root = SKILL_ROOT) {
  if (process.env.STUDIO_NO_AUTO_UPDATE) return '设置了 STUDIO_NO_AUTO_UPDATE';
  // 源码仓库里构建出来的那份是开发者在改的东西,不能被线上旧版覆盖
  if (fs.existsSync(path.join(root, '..', '..', 'build.mjs'))) return '这是技能源码仓库里的构建目录';

The skill implements remote self-replacement beyond its declared media-generation and account-management capabilities.

High
Category
Excessive Agency
Confidence
97% confidence
Finding

The installer replaces executable skill files using a remotely supplied archive without independently authenticating the release. An attacker controlling the update manifest or its distribution infrastructure could supply malicious code and a matching checksum, gaining execution when the replacement script runs.

Content

No source excerpt is available for this finding.

Self-Modification

High
Category
Rogue Agent
Confidence
90% confidence
Finding

Skill modifies its own code, configuration, or behavior at runtime. Self-modification enables an agent to escalate privileges, disable safety constraints, or install persistent backdoors.

Content

Scanner excerpt · scripts/studio.mjs (reported line 16)May include surrounding context.

js
import {
  SITE, BASE_URL, SKILL_ROOT, STATE_DIR, api, artApi, currentToken, fullUrl, readState, writeState, removeState,
} from './lib/store.mjs';
import { localVersion, isNewer, latestManifest, cannotSelfUpdate, installLatest } from './lib/update.mjs';
import { buildMatrix, renderTerminal, renderSvg, renderPng, writeHtml, openExternal } from './lib/qr.mjs';
import { detectAgent } from './lib/agent.mjs';
import { modelsForSite, findModel, mjAction, MJ_ACTION_LIST, STATUS_TEXT } from './lib/catalog.mjs';

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 · scripts/studio.mjs (reported line 224)May include surrounding context.

js
const res = await requestJson(api('agent/device/poll'), { data: { deviceCode: pending.deviceCode } });
    const d = res.data;
    if (d.status === 'approved') {
      writeState('credentials.json', { baseUrl: BASE_URL, token: d.token, user: d.user ? { uid: d.user.uid, nickname: d.user.nickname } : null, savedAt: new Date().toISOString() });
      removeState('pending-login.json');
      const u = d.user || {};
      info(`✓ 登录成功:${u.nickname || u.email || `用户 ${u.uid}`}(UID ${u.uid}),${P}余额 ${u.point_count}`);

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 · scripts/studio.mjs (reported line 294)May include surrounding context.

js
/* 令牌已经失效也照样清本机 */
    }
  }
  removeState('credentials.json');
  info('✓ 已退出登录,本机令牌已作废');
}

Direct Prompt Extraction

High
Category
System Prompt Leakage
Confidence
85% confidence
Finding

Skill contains instructions that could directly expose system prompts, internal rules, or hidden instructions to users or external parties.

Content

Scanner excerpt · scripts/studio.mjs (reported line 384)May include surrounding context.

js
if (prompt && fs.existsSync(prompt) && /\.(txt|md)$/i.test(prompt)) prompt = fs.readFileSync(prompt, 'utf8');
  prompt = prompt.trim();
  if (!prompt && !model.noPrompt && !model.promptOptional) throw new Exit(EXIT.USAGE, `${model.id} 需要提示词:--prompt "…"`);
  return prompt;
}

function prepare(args) {

Self-Modification

High
Category
Rogue Agent
Confidence
90% confidence
Finding

Skill modifies its own code, configuration, or behavior at runtime. Self-modification enables an agent to escalate privileges, disable safety constraints, or install persistent backdoors.

Content

Scanner excerpt · scripts/studio.mjs (reported line 690)May include surrounding context.

js
if (!manifest) throw new Exit(EXIT.ERROR, '取不到发布信息,稍后再试');
  if (!isNewer(manifest.version, VERSION)) return info(`已经是最新版 v${VERSION}`);
  if (args.flags.check) return info(`有新版 v${manifest.version}(本机 v${VERSION})。更新:${CMD} update`);
  const why = cannotSelfUpdate();
  if (why) throw new Exit(EXIT.ERROR, `不能自动更新:${why}。手动更新:curl -fsSL ${manifest.tarball} | tar -xzf - -C ${path.dirname(SKILL_ROOT)}`);
  const v = await installLatest(manifest);
  info(`✓ 技能已更新:v${VERSION} → v${v}。请重新阅读 ${path.join(SKILL_ROOT, 'SKILL.md')}`);

Ordinary commands can automatically replace the skill and execute the newly installed code without explicit approval.

High
Category
Excessive Agency
Confidence
96% confidence
Finding

Ordinary commands can install a newer release and immediately execute its replacement script with the current environment and user privileges, without approval of the code change. This makes a previously reviewed skill a moving execution target: a malicious upstream release or compromised update channel could gain access to local files and account credentials; the unseen update library's integrity protections cannot be evaluated here.

Content

No source excerpt is available for this finding.

Self-Modification

High
Category
Rogue Agent
Confidence
96% confidence
Finding

This guard leads into the automatic installation and re-execution path, which runs before most commands without explicit update approval. It is the same underlying vulnerability as finding-ace0e55e6c054dfe838a887872d97d68, not an independent exploit: upstream release control can change the code that executes with the user's privileges.

Content

Scanner excerpt · scripts/studio.mjs (reported line 698)May include surrounding context.

js
/** 每条命令前看一眼有没有新版,有就换上、用新脚本重跑这条命令 */
async function autoUpdate(argv) {
  if (process.env.STUDIO_UPDATED || cannotSelfUpdate()) return false;
  const manifest = await latestManifest();
  if (!manifest || !isNewer(manifest.version, VERSION)) return false;
  let installed;

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.

Activation includes unqualified balance and top-up requests without requiring SuperX context.

Medium
Category
Trigger Abuse
Confidence
95% confidence
Finding

The activation description treats generic balance and top-up requests as reasons to use a specific paid service, even when the user has not identified SuperX. This creates a service-selection ambiguity that can route unrelated financial requests into SuperX account or payment workflows, although the explicit package-selection requirement reduces the risk of unauthorized payment.

Content

No source excerpt is available for this finding.

The documented SHA-256 verification guarantee is conditional in the implementation.

Medium
Category
Excessive Agency
Confidence
99% confidence
Finding

Checksum verification is skipped entirely when the manifest omits sha256, and manifest parsing only requires version and tarball. Consequently, an archive can be installed without the integrity check promised in the module comments; moreover, a checksum supplied by the same compromised manifest would not authenticate a release.

Content

No source excerpt is available for this finding.

Login silently transmits local account and device metadata to the service.

Medium
Category
Output Handling
Confidence
94% confidence
Finding

Starting login sends the local username, hostname, platform, agent identity, and version to the service without a visible disclosure or opt-out. Device identification is plausible for an authorization flow, but usernames and hostnames can expose personal or internal infrastructure identifiers unnecessarily.

Content

No source excerpt is available for this finding.

The skill exposes an unrestricted authenticated API caller beyond its declared creative and account operations.

Medium
Category
Excessive Agency
Confidence
97% confidence
Finding

The manifest describes specific media-generation, account-query, login, and recharge capabilities. In L665–L677, the call command instead accepts a caller-selected website path, HTTP method, and payload and attaches the user's token, allowing requests to endpoints outside those workflows, subject only to server-side authorization.

Content

No source excerpt is available for this finding.

Scope Creep

Low
Category
Excessive Agency
Confidence
70% confidence
Finding

Skill's behavior or capabilities extend beyond its stated purpose. Scope creep allows an agent to perform actions unrelated to its documented functionality, increasing the attack surface.

Content

Scanner excerpt · scripts/lib/vendor/README.md (reported line 25)May include surrounding context.

md
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,