Back to skill

Security audit

auto-publisher-self-learning

Security checks for vulnerabilities and agentic risk

Overview

This skill is a publishing helper, but it also instructs agents to install and permanently patch a global ClawHub CLI and persist publishing diagnostics without enough user control.

Review carefully before installing. Use only in an isolated environment, and do not allow it to patch a global CLI, search from `/`, or store raw error output unless you explicitly accept those risks. Prefer a version-pinned local ClawHub CLI and require confirmation before any publish, batch publish, install, or host-level modification.

Vulnerability Patterns
  • Tool Hijacking and SpoofingModifies or replaces tools so legitimate-looking calls execute attacker logic
  • Insecure DependenciesIntroduces malicious components through unsafe dependency sources
  • Insecure Skill Coding PracticesFinds exploitable flaws such as hardcoded secrets or command injection
  • 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
Findings (3)

T07 · Tool Hijacking and Spoofing

Error
Location
SKILL.md:197
Finding

System-Wide ClawHub CLI Modification Forces License Acceptance

Content
View full analysis
/dev/null | head -1) if [ -z "$PUBLISH_JS" ]; then PUBLISH_JS=$(find / -path "*/node_modules/clawhub/*" -name "publish.js" 2>/dev/null | head -1) fi if [ -n "$PUBLISH_JS" ]; then grep -q "acceptLicenseTerms" "$PUBLISH_JS" && echo "Already patched" || { sed -i 's/skillName:/acceptLicenseTerms: true, skillName:/' "$PUBLISH_JS" echo "Applied acceptLicenseTerms patch" } fi ``` ### Technical Analysis The Skill instructs the Agent to search global Node.js installation paths—and ultimately the entire filesystem—for a ClawHub `publish.js` file. It then rewrites the installed CLI implementation with `sed`, injecting `acceptLicenseTerms: true` into publishing requests. This modification is not required to perform the declared publishing function. A publisher should use the supported CLI interface, report an incompatibility, or ask the user to accept applicable terms explicitly. Altering an installed executable bypasses the CLI's intended consent workflow and changes the behavior of a shared tool outside the target Skill directory. The broad `find /` operation also exceeds minimum filesystem access. If multiple matching files exist, selecting the first result may modify an unintended installation. The write succeeds with all permissions available to the Agent, potentially including elevated permissions if the Skill is run in a privileged environment. ### Attack Path 1. A user invokes the Skill to publish a local package. 2. The Skill searches standard global paths for a ClawHub `publish.js`. 3. If no result is found, it traverses the entire accessible filesystem. 4. It chooses the first matching file without verifying its package version, ow ...[truncated 855 chars]
Remediation
View remediation

T08 · Insecure Dependencies

Warning
Location
SKILL.md:130
Finding

Unpinned Global Installation of a Third-Party Publishing CLI

Content
View full analysis
/dev/null || npm install -g clawhub ``` ### Technical Analysis If `clawhub` is absent, the Skill automatically installs the latest package associated with the unversioned npm name `clawhub`. The installation is global and does not pin a reviewed version, verify package integrity, require a lockfile, or isolate the package from the host environment. An unpinned dependency can change after the Skill is audited. A compromised package release, compromised maintainer account, or unexpected upstream update would execute installation and runtime code with the Agent's privileges. Global installation also modifies host state beyond the selected project and makes the dependency available to unrelated workflows. The audit does not establish that the current npm package is malicious. The vulnerability is the unrestricted and mutable dependency acquisition process. ### Attack Path 1. A user invokes the publishing Skill on a host without the `clawhub` executable. 2. The conditional command automatically runs `npm install -g clawhub`. 3. npm resolves the package version available at execution time rather than an audited, pinned version. 4. Package installation scripts execute with the permissions of the Agent. 5. A compromised or unexpectedly modified release can access files, environment variables, credentials, and network resources available to that process. 6. The globally installed package remains available to subsequent projects and sessions. ### Impact Assessment A malicious dependency release could obtain the same privileges as the Agent process, including access to readable local files, npm configuration, environment variables, publishing credentials, and outbound network connectivity. When run with administrative permissions, installation could modify system-wide N ...[truncated 76 chars]
Remediation
View remediation

T09 · Insecure Skill Coding Practices

Warning
Location
SKILL.md:237
Finding

Unredacted Persistence of Complete Publishing Error Messages

Content
View full analysis
Remediation
View remediation
Vulnerability Patterns
  • Excessive AgencyUnrestricted Tool Access, Autonomous Decision Making, Scope Creep
  • Rogue AgentSelf-Modification, Session Persistence
  • Trigger AbuseOverly Broad Trigger, Shadow Command Trigger, Keyword Baiting Trigger
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
Findings (8)

Missing User Warnings

High
Category
Not specified by scanner
Confidence
94% confidence
Finding

The workflow includes local file writes, package installation, CLI patching, retries, and batch publishing, but does not prominently warn that it will modify the local environment and potentially many skills at once. Lack of informed-consent messaging makes destructive or persistent changes more likely to occur unexpectedly.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
84% confidence
Finding

Most user-facing instructions, headings, workflow descriptions, and examples are written in Chinese, which can effectively force a language choice for users who do not read Chinese. The file includes English metadata fields, but it does not offer users an explicit language option for the operational instructions.

Content

No source excerpt is available for this finding.

Vague Triggers

Medium
Category
Not specified by scanner
Confidence
90% confidence
Finding

The trigger phrases are generic ('publish skill', 'deploy skill', etc.) and can activate in ordinary conversations that are not clearly authorizing this specific automation. Because the skill can write files, install packages, patch software, and batch-publish, broad triggering raises the risk of unintended execution of impactful actions.

Content

No source excerpt is available for this finding.

Session Persistence

Medium
Category
Rogue Agent
Confidence
82% confidence
Finding

The same persistent-memory design allows the skill to carry forward prior error handling strategies and environmental assumptions into later runs. In this context, that can make unsafe workarounds like CLI patching recur automatically, amplifying the effect of a bad prior decision across sessions.

Content

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

md
visibility: "public"
allowed-tools:
  - Read
  - Write
  - Edit
  - Bash
  - Grep

Session Persistence

Medium
Category
Rogue Agent
Confidence
82% confidence
Finding

The same persistent-memory design allows the skill to carry forward prior error handling strategies and environmental assumptions into later runs. In this context, that can make unsafe workarounds like CLI patching recur automatically, amplifying the effect of a bad prior decision across sessions.

Content

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

md
visibility: "public"
allowed-tools:
  - Read
  - Write
  - Edit
  - Bash
  - Grep

Context-Inappropriate Capability

Medium
Category
Not specified by scanner
Confidence
96% confidence
Finding

The skill instructs the agent to install and then patch a global CLI by modifying publish.js in-place, which exceeds the stated scope of publishing a local skill and changes software outside the target project. This creates a persistent supply-chain and integrity risk: a compromised or incorrect patch can affect future CLI behavior globally, and the user is not clearly prompted to approve the environment modification.

Content

No source excerpt is available for this finding.

Context-Inappropriate Capability

Medium
Category
Not specified by scanner
Confidence
93% confidence
Finding

The workflow performs broad filesystem discovery, including fallback searches from /, to locate node_modules/clawhub files to edit. For a publishing skill, this is overbroad host inspection that can traverse unrelated directories, increase exposure to sensitive paths, and normalize unnecessary privilege and reach.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
88% confidence
Finding

The skill persists learned patterns, publish history, and quality trend data from user activity without a clear privacy notice or retention controls. Those records can contain repository names, error messages, paths, timing, and operational metadata that may be sensitive in aggregate.

Content

No source excerpt is available for this finding.