Back to skill

Security audit

Raising Livestock

Security checks for vulnerabilities and agentic risk

Overview

This is a coherent livestock-advice skill; the main caution is an unpinned npx installer, not malicious skill behavior.

Install only through a trusted or pinned ClawHub installer and avoid running the npx command with administrator privileges. Expect the skill to provide practical animal-care guidance, including costs, local-law checks, health reminders, and veterinary referrals; verify animal health and slaughter decisions with local regulations and a qualified veterinarian.

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:16
Finding

Unpinned npm Package Execution Through npx

Content
View full analysis

Vulnerability Details

File Location: SKILL.md, line 16
Vulnerability Type: Unpinned third-party package execution
Risk Level: Medium

Vulnerable Code

yaml
install: "npx clawhub install raising-livestock"

Technical Analysis

The installation metadata instructs users to invoke the clawhub npm package through npx without specifying an exact package version or integrity digest. If the package is not available locally, npx may retrieve and execute it from the configured npm registry.

Consequently, the code executed during installation is not fixed to the version reviewed alongside this Skill. A compromised package release, maintainer account, registry resolution path, or malicious dependency introduced into a later release could cause arbitrary code to run when a user follows the installation instruction. The project contains no lockfile, vendored installer, checksum, or provenance information that would allow the resolved package to be verified against a reviewed artifact.

This is a supply-chain exposure rather than evidence that the current clawhub package is malicious.

Attack Path

  1. An attacker compromises the npm package, a package maintainer account, or a transitive dependency used by a subsequently published clawhub release.
  2. The attacker publishes a release containing malicious package code or an installation lifecycle script.
  3. A user follows the Skill metadata and runs npx clawhub install raising-livestock.
  4. Because no exact version or integrity value is specified, npx resolves the package version available through the user's configured registry.
  5. The malicious package or lifecycle code executes under the privileges of the user running the command.
  6. The code may access resources available to that account, including project files, user files, environment variables, developer credentials, and network services.

Impact Assessment

Successful exploitati ...[truncated 582 chars]

Remediation
View remediation

Remediation Suggestions

  1. Pin clawhub to an exact reviewed version rather than relying on unconstrained registry resolution:
    yaml
    install: "npx clawhub@<reviewed-exact-version> install raising-livestock"
    
  2. Record and verify package integrity or trusted provenance before execution, such as through registry integrity metadata, signed releases, or an approved internal artifact repository.
  3. Disable or tightly control npm lifecycle scripts where operationally possible.
  4. Document the expected package publisher, registry, exact version, and verification procedure so users can detect typosquatting or registry substitution.
  5. Provide a non-executing or manually verifiable installation method as an alternative.
  6. Re-audit the pinned installer and its transitive dependencies whenever the pinned version is updated.
  7. Advise users not to execute the installer with administrator or root privileges.
Vulnerability Patterns
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Trigger AbuseOverly Broad Trigger, Shadow Command Trigger, Keyword Baiting Trigger
  • 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
Findings (3)

Rp1

Medium
Category
MCP Rug Pull
Confidence
70% confidence
Finding

npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.

Content

No source excerpt is available for this finding.

Vague Triggers

Medium
Category
Not specified by scanner
Confidence
88% confidence
Finding

This markdown skill lists activation conditions such as 'User wants to raise chickens for eggs' and 'User is dealing with a specific livestock problem' without narrowing the trigger context or giving exclusion examples. Because the criteria are broad natural-language intents rather than explicit invocation phrases or bounded contexts, the skill could be invoked in casual discussion where the user is not actually seeking step-by-step livestock guidance.

Content

No source excerpt is available for this finding.

Behavior Manipulation

Medium
Category
Prompt Injection
Confidence
70% confidence
Finding

Subtle instructions detected that may alter agent decision-making or introduce hidden biases.

Content

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

md
- Recommend chickens before goats for any beginner -- the progression matters
- Never minimize the daily time commitment -- underselling this leads to neglected animals
- Emphasize predator-proofing with hardware cloth, not chicken wire
- For goat deworming, always recommend fecal testing over blanket treatment
- Be honest about costs and labor -- romanticizing livestock keeping sets people up for failure
- Link to soil-water-management for pasture improvement and water systems