Back to skill

Security audit

Pet Renaissance Portrait Generator

Security checks for vulnerabilities and agentic risk

Overview

This skill is a straightforward pet portrait image generator that uses a disclosed external API, but users should handle the API token carefully and avoid mutable install commands when possible.

Before installing, prefer a pinned or ClawHub-managed source when available. Treat the Neta token as a secret, avoid placing literal tokens in shared terminals, scripts, or logs, and understand that your prompt and any reference UUID are sent to the external image-generation API.

Vulnerability Patterns
  • 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
  • Remote Payload Retrieval and ExecutionFetches external code whose behavior can change after review
Findings (2)

T09 · Insecure Skill Coding Practices

Warning
Location
petrenaissanceportraitgenerator.js:14
Finding

API Token Exposed Through Command-Line Arguments

Content
View full analysis
"your prompt" --token YOUR_TOKEN ``` ### Technical Analysis The script only accepts the Neta API token through the `--token` command-line option. Command-line secrets may be exposed through: - Process inspection facilities while the command is running. - Shell history when a literal token is used. - Process-monitoring, telemetry, debugging, or audit logs. - Wrapper scripts or automation systems that record full command lines. - Error reports that capture process invocation details. Quoting an environment variable, as shown in the README, prevents shell word splitting but does not prevent expansion into the child process argument list. This issue does not transmit the token to an unrelated service: the script legitimately sends it to `api.talesofai.com` as the `x-token` header. The vulnerability concerns its local handling before that request. ### Attack Path 1. A user follows the documented instructions and invokes the script with `--token YOUR_TOKEN` or `--token "$NETA_TOKEN"`. 2. The shell expands the token and places it in the Node.js process argument list. 3. A local process observer, command telemetry system, shell-history reader, or logging component captures the command line. 4. An attacker retrieves the exposed token. 5. The attacker submits unauthorized requests to the Neta API using the victim's credential. This exploitation path requires local access, access to relevant logs, or compromise of a ...[truncated 533 chars]
Remediation
View remediation

T08 · Insecure Dependencies

Warning
Location
SKILL.md:31
Finding

Unpinned Third-Party Installer and Mutable Skill Source

Content
View full analysis
Remediation
View remediation
add ... ``` 2. Pin the installed skill to an immutable commit, verified release, or content digest rather than only an owner/repository name. 3. Publish cryptographic checksums for distributed artifacts and verify them before installation. 4. Prefer signed releases and document the signature-verification procedure. 5. Use npm lockfiles and integrity metadata where installer tooling permits. 6. Recommend installation under a non-privileged user account and explicitly warn users not to run the command with `sudo` or equivalent elevation. 7. Periodically review the pinned installer and skill versions before updating them. 8. Where possible, separate artifact download from execution so users can inspect and verify the downloaded content first. ]]>
Vulnerability Patterns
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Supply ChainUnpinned Dependencies, External Script Fetching, Obfuscated Code
  • Trigger AbuseOverly Broad Trigger, Shadow Command Trigger, Keyword Baiting Trigger
  • MCP Least PrivilegeUnderdeclared Capability, Wildcard Permission, Missing Permission Declaration
Findings (9)

Rp1

Medium
Category
MCP Rug Pull
Confidence
90% confidence
Finding

The README instructs users to install and run the skill via npx skills without pinning a specific version. This can cause users to fetch and execute whatever package/version is current at the time, increasing supply-chain risk if the package is updated maliciously, compromised, or changed incompatibly.

Content

No source excerpt is available for this finding.

Rp1

Medium
Category
MCP Rug Pull
Confidence
88% confidence
Finding

This second unpinned npx skills reference repeats the same risky pattern by encouraging execution of an unversioned remote package. In a skill-distribution context, installation commands are especially sensitive because users may copy-paste them directly, so an upstream compromise could lead to arbitrary code execution on user systems.

Content

No source excerpt is available for this finding.

Undeclared Tool Scope

Medium
Category
MCP Least Privilege
Confidence
95% confidence
Finding

The skill declares tools: Bash and instructs use of a script that requires an external API token, which implies outbound network access, but it does not declare any explicit tool scope such as permissions or allowed-tools. This creates an avoidable least-privilege gap: an agent may run with broader-than-necessary capabilities, increasing the blast radius if the skill or downstream script is modified or abused.

Content

No source excerpt is available for this finding.

Vague Triggers

Medium
Category
Not specified by scanner
Confidence
94% confidence
Finding

The trigger guidance, 'Use when someone asks to generate or create royal pet portrait ai generator images,' is broad and imprecise. Overbroad invocation criteria can cause the skill to activate in loosely related contexts, unnecessarily exposing user prompts, tokens, or execution pathways to a networked image-generation workflow.

Content

No source excerpt is available for this finding.

Rp1

Medium
Category
MCP Rug Pull
Confidence
89% confidence
Finding

The install instruction uses npx skills add blammectrappora/pet-renaissance-portrait-generator without pinning a specific version or immutable reference. That exposes users to supply-chain risk because future package or registry changes could cause different code to be fetched and executed than what was originally reviewed.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
94% confidence
Finding

The script requires the API token via a --token CLI argument, which exposes the credential to local process inspection, shell history, logging, and CI job traces on many systems. While the token is expected to be sent to the vendor API for normal operation, accepting it on the command line without warning or safer alternatives creates avoidable credential leakage risk.

Content

No source excerpt is available for this finding.

External Transmission

Medium
Category
Data Exfiltration
Confidence
70% confidence
Finding

Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.

Content

Scanner excerpt · petrenaissanceportraitgenerator.js (reported line 72)May include surrounding context.

js
};
  }

  const res = await fetch('https://api.talesofai.com/v3/make_image', {
    method: 'POST',
    headers: HEADERS,
    body: JSON.stringify(body),

External Transmission

Medium
Category
Data Exfiltration
Confidence
60% confidence
Finding

Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.

Content

Scanner excerpt · petrenaissanceportraitgenerator.js (reported line 72)May include surrounding context.

js
};
  }

  const res = await fetch('https://api.talesofai.com/v3/make_image', {
    method: 'POST',
    headers: HEADERS,
    body: JSON.stringify(body),

External Transmission

Medium
Category
Data Exfiltration
Confidence
60% confidence
Finding

Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.

Content

Scanner excerpt · petrenaissanceportraitgenerator.js (reported line 104)May include surrounding context.

js
};
  }

  const res = await fetch('https://api.talesofai.com/v3/make_image', {
    method: 'POST',
    headers: HEADERS,
    body: JSON.stringify(body),