Back to skill

Security audit

Habit Tracker Pro

Security checks for vulnerabilities and agentic risk

Overview

The skill is a simple habit-tracker description, but its install instructions ask users to run a mutable latest-version npx command.

Review the install command before using this skill. Prefer a pinned, reviewed ClawHub CLI version and avoid running the npx command as root or in an environment containing unrelated secrets. Also note that the documentation is mostly Chinese and the declared curl dependency is not explained by the visible instructions.

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
README.md:6
Finding

Unpinned Third-Party Package Execution Through npx

Content
View full analysis

Vulnerability Details

File Location: README.md, line 6
Vulnerability Type: Supply-chain exposure caused by executing a mutable third-party package version
Risk Level: Medium

Vulnerable Code

bash
npx clawhub@latest install habit-tracker-pro

Technical Analysis

The documented installation command instructs users to download and execute the version of the clawhub npm package currently associated with the mutable latest distribution tag. The command does not pin an audited package version or provide an integrity constraint.

Because npm package tags can be updated after this project has been reviewed, the code ultimately executed by this command may differ from the code available at audit time. If the package publisher account, npm package, release process, or a relevant supply-chain component is compromised, a malicious release assigned to latest could be downloaded and executed by users following the documentation.

There is no evidence in the audited files that the current clawhub package is malicious. The vulnerability is the unsafe trust model created by recommending execution of an unpinned, remotely resolved dependency.

Attack Path

  1. An attacker compromises the clawhub npm package, its publisher credentials, or its release pipeline.
  2. The attacker publishes a malicious package release and assigns it to the latest distribution tag.
  3. A user follows the installation command in README.md.
  4. npx resolves and downloads the attacker-controlled release from the configured npm registry.
  5. Package lifecycle behavior or the invoked CLI entry point runs under the user's account.
  6. The malicious package can perform actions allowed by that account before or while processing the requested installation.

Impact Assessment

Successful exploitation could provide attacker-controlled code with the privileges of the user running npx. Depending on the local environment and the user's permissions, this could perm ...[truncated 483 chars]

Remediation
View remediation

Remediation Suggestions

  1. Replace @latest with an exact, reviewed version:
bash
npx clawhub@X.Y.Z install habit-tracker-pro
  1. Review the selected release, including its package metadata, executable entry points, lifecycle scripts, transitive dependencies, publisher identity, and provenance.
  2. Where supported, verify package integrity and registry provenance before execution.
  3. Use a lockfile and deterministic dependency installation when integrating the tool into a project or automated environment.
  4. Test installation in a restricted container, sandbox, or low-privilege account before recommending it to users.
  5. Avoid running the installation command as root, with sudo, or in CI jobs that expose unrelated secrets.
  6. Establish a controlled update process so that version changes are explicitly reviewed rather than automatically inherited through a mutable distribution tag.
Vulnerability Patterns
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
  • Supply ChainUnpinned Dependencies, External Script Fetching, Obfuscated Code
  • Excessive AgencyUnrestricted Tool Access, Autonomous Decision Making, Scope Creep
Findings (3)

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
91% confidence
Finding

The file's natural-language instructions and feature descriptions are entirely in Chinese, which can amount to a language policy violation when no user opt-in, alternative language, or justification is provided. The stated policy specifically flags skills that force a specific language without user choice.

Content

No source excerpt is available for this finding.

Rp1

Medium
Category
MCP Rug Pull
Confidence
95% confidence
Finding

The README instructs users to run npx clawhub@latest install habit-tracker-pro, which pulls and executes the latest published version of the package rather than a pinned, reviewed version. This creates a supply-chain risk: if the package or one of its resolution paths is compromised, users may execute attacker-controlled code during installation.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
93% confidence
Finding

The manifest description and introductory text require Chinese comprehension, which effectively forces a specific language for users without any opt-in or alternative. The policy allows locale constraints only when they are explicitly offered as a choice or clearly documented and justified, which is not present here.

Content

No source excerpt is available for this finding.