Incomplete referenced artifact analysis
- Category
- analysis-evasion
- Confidence
- 100% confidence
- Finding
Referenced artifact was not completely inspected
- Content
md **入口脚本**:`scripts/studio.mjs`(Node ≥ 20,零依赖)。下文写成 `studio`,执行时换成
Security audit
Security checks for vulnerabilities and agentic risk
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.
Referenced artifact was not completely inspected
**入口脚本**:`scripts/studio.mjs`(Node ≥ 20,零依赖)。下文写成 `studio`,执行时换成
Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.
node <技能目录>/scripts/studio.mjs login --wait --timeout 240
- 成功打印账号昵称、UID 和点数余额。令牌存在 `~/.superx-studio/credentials.json`(权限 600),之后的命令自动带上。
- 退出码 4 且提示「还没等到授权」:链接 10 分钟内有效,再跑一次 `login --wait` 接着等。
- 过期或被拒绝:重新 `login --start`,把新链接发给用户。
- **不要**读、打印、转述 `~/.superx-studio/` 下的任何文件,里面是用户的登录凭据。
Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.
/** 当前令牌:环境变量优先(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 : '';
}
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.
}
/** 这份技能能不能被自动替换。返回空串表示可以,否则是原因 */
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 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.
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.
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';
Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.
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}`);
Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.
/* 令牌已经失效也照样清本机 */
}
}
removeState('credentials.json');
info('✓ 已退出登录,本机令牌已作废');
}
Skill contains instructions that could directly expose system prompts, internal rules, or hidden instructions to users or external parties.
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) {
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.
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 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.
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.
/** 每条命令前看一眼有没有新版,有就换上、用新脚本重跑这条命令 */
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;
Without declared permissions the skill's intent is opaque and cannot be validated.
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.
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.
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.
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.
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.
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,