Back to skill

Security audit

alphaclaw

Security checks for vulnerabilities and agentic risk

Overview

This looks like a legitimate SkillHub CLI helper, but it asks users to install a mutable global npm package and keep AK/SK credentials locally without enough safety guidance.

Install only if you trust the AlphaClaw npm package and publisher. Prefer a pinned reviewed version, avoid `sudo`, protect `~/.alphaclaw/auth.json`, use a non-shared machine or isolated environment, and review downloaded or published skill contents carefully before using `--force`, `--yes`, `--api`, or `--debug`.

Vulnerability Patterns
  • Insecure DependenciesIntroduces malicious components through unsafe dependency sources
  • 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
Findings (1)

T08 · Insecure Dependencies

Warning
Location
SKILL.md:33
Finding

Unpinned Global Installation of an Unreviewed npm Package

Content
View full analysis

Vulnerability Details

File Locations: SKILL.md:33-35 and README.md:21-23
Vulnerability Type: Supply-chain exposure through an unpinned third-party dependency
Risk Level: Medium

Complete vulnerable code snippet (SKILL.md:33-35):

bash
npm install -g 1688alphaclaw

Duplicate installation instruction (README.md:21-23):

bash
npm install -g 1688alphaclaw

Technical Analysis

The project directs users to install the remotely hosted 1688alphaclaw npm package globally without pinning a reviewed version or providing an integrity digest. The package implementation, source provenance, dependency lockfile, and lifecycle scripts are not included in the audited project, which consists only of SKILL.md and README.md.

An npm installation can execute package lifecycle scripts with the permissions of the invoking user. Because the command resolves a mutable package release, the effective code installed in the future may differ from the code that existed when this documentation was reviewed. Global installation also increases exposure because the resulting executable is placed in the user's global command environment.

The documented CLI handles AK/SK credentials, reads and writes local configuration, downloads skills, and packages local directories for upload. These behaviors cannot be independently verified without the package source. This finding does not establish that the current npm package is malicious; it identifies the unsafe and unverifiable dependency installation mechanism.

Attack Path

  1. An attacker compromises the npm publisher account, package supply chain, or a transitive dependency used by 1688alphaclaw.
  2. The attacker publishes a malicious release under the same package name.
  3. A user follows the documented unpinned command, causing npm to resolve the attacker-controlled release.
  4. Malicious package code executes during an npm lifecycle hook or when the glob ...[truncated 1000 chars]
Remediation
View remediation

Remediation Suggestions

  1. Pin the installation command to a specific, reviewed package version, such as npm install -g 1688alphaclaw@1.0.2.
  2. Publish or reference the exact source revision corresponding to the package release so its implementation and dependencies can be audited.
  3. Provide package provenance information and verify npm registry signatures or build attestations where supported.
  4. Record and verify an expected package integrity digest through a controlled installation process.
  5. Audit all direct and transitive dependencies and commit an appropriate lockfile in the CLI source repository.
  6. Avoid lifecycle scripts unless strictly necessary. Where operationally possible, install with lifecycle scripts disabled and explicitly perform reviewed setup steps.
  7. Prefer a project-local installation or isolated execution environment over global installation to reduce command-path and filesystem exposure.
  8. Document that users must not run the installation with sudo or another elevated account.
  9. Ensure ~/.alphaclaw/auth.json is created with owner-only permissions, avoids retaining the Secret Key when unnecessary, and never exposes credentials in debug logs.
  10. Update both SKILL.md and README.md so they provide the same pinned and verifiable installation procedure.
Vulnerability Patterns
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Trigger AbuseOverly Broad Trigger, Shadow Command Trigger, Keyword Baiting Trigger
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
  • Supply ChainUnpinned Dependencies, External Script Fetching, Obfuscated Code
Findings (8)

Ae1

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
将技能目录打包为 zip 并上传到 SkillHub。目录中必须包含 `SKILL.md` 文件。

Ae1

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
将技能目录打包为 zip 并上传到 SkillHub。目录中必须包含 `SKILL.md` 文件。

Ae1

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
将技能目录打包为 zip 并上传到 SkillHub。目录中必须包含 `SKILL.md` 文件。

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
89% confidence
Finding

The README explicitly states that authentication data is stored in ~/.alphaclaw/auth.json but does not clearly warn users that this file contains sensitive credentials or describe expected filesystem protections. For a CLI that uses AK/SK secrets, undocumented plaintext local storage increases the chance of credential exposure through weak file permissions, backups, shared environments, or accidental disclosure.

Content

No source excerpt is available for this finding.

Vague Triggers

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

The trigger section includes broad phrases such as '搜索技能', '安装技能', and 'skill 管理', which can match ordinary user requests and cause the skill to activate unexpectedly. Because this skill can lead users toward package installation, authentication, and network-backed actions, accidental invocation increases the chance of unintended security-sensitive operations.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
90% confidence
Finding

The document states that AK/SK credentials are entered, stored locally in ~/.alphaclaw/auth.json, and then used for JWT-based network authentication, but it does not clearly warn users about local secret storage, filesystem permissions, token handling, or the risks of using --debug around authenticated operations. In a skill that encourages login and package management, this omission can lead to credential exposure or unsafe use on shared systems.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Low
Category
Not specified by scanner
Confidence
90% confidence
Finding

The natural-language content of the skill documentation is wholly Chinese, which can amount to a language-policy issue when no opt-in, alternative language, or explicit region-specific justification is provided. The policy allows locale constraints when clearly documented and justified, but that is not stated here.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Low
Category
Not specified by scanner
Confidence
74% confidence
Finding

文档描述、触发条件和使用说明均以中文固定呈现,没有说明该技能是否仅面向中文用户,也未提供语言选择或用户确认。这可能构成语言/区域策略上的默认强制,尤其在多语言环境中会限制非中文用户使用。

Content

No source excerpt is available for this finding.