Back to skill

Security audit

Quantum Cryptographic Seed Generator

Security checks for vulnerabilities and agentic risk

Overview

The skill openly uses AgentPMT's remote service to generate passwords, tokens, cryptographic seeds, and RSA prime factors, but that is sensitive enough to require careful review before use.

Review this skill carefully before installing or using it for real credentials. Use remotely generated output only when you are willing to trust AgentPMT with the generated secret material; for production passwords, bearer tokens, encryption seeds, or RSA private-key factors, prefer local generation or mix remote randomness with local trusted entropy. Prefer pinned or verified installation paths for companion setup skills.

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

Error
Location
SKILL.md:64
Finding

Remote Generation of Security-Critical Secret Material

Content
View full analysis

Vulnerability Details

File Location: SKILL.md:64-67, SKILL.md:83, SKILL.md:192-204, SKILL.md:228-229; related schema declarations in schema.md:155-249 and schema.md:278-330
Vulnerability Type: Reliance on a remote provider for generation of passwords, tokens, cryptographic seeds, and RSA prime factors
Risk Level: High

Vulnerable Code

SKILL.md:62-68:

markdown
## Use Cases
- Key derivation and encryption seed generation
- session tokens and API key creation
- secure password generation
- unique identifier production for databases and distributed systems
- RSA prime pair generation for public/private key creation
- cryptographic research and entropy analysis

SKILL.md:192-204:

markdown
Authenticated AgentPMT REST call body:

```json
{
  "name": "quantum-cryptographic-seed-generator",
  "parameters": {
    "action": "password",
    "digits": true,
    "exclude_ambiguous": true,
    "length": 32,
    "lowercase": true,
    "source": "quantum",
    "symbols": true,
    "uppercase": true
  }
}
text

`SKILL.md:228-229`:

```markdown
- AgentPMT main MCP server: https://api.agentpmt.com/mcp/
- AgentPMT REST invoke endpoint: https://api.agentpmt.com/products/purchase

Technical Analysis

The Skill explicitly delegates generation of passwords, API or session tokens, cryptographic seeds, and complete RSA prime pairs to an AgentPMT-hosted service. Sending generation parameters over HTTPS is necessary for the declared hosted functionality and does not itself disclose an existing local secret. However, the resulting secret material is generated by—and therefore potentially visible to—the remote provider.

Transport encryption only protects communication in transit. It does not prevent the service, its infrastructure, operational logs, administrators, or a compromised backend from retaining, substituting, or later disclosing generated valu ...[truncated 1973 chars]

Remediation
View remediation

Remediation Suggestions

  1. Generate production passwords, bearer tokens, cryptographic seeds, and private-key factors locally using an operating-system CSPRNG or reviewed hardware security module.
  2. Explicitly prohibit direct use of remotely generated passwords, seeds, tokens, and RSA prime pairs as production secrets.
  3. If remote quantum randomness is required, treat it only as untrusted supplemental entropy. Mix it locally with independently generated CSPRNG entropy using a documented cryptographic extractor or KDF.
  4. Never request both RSA private prime factors from a remote provider. Generate private keys locally or within an HSM, and export only public-key material.
  5. Document the provider trust boundary, retention policy, logging policy, incident-response process, and any independent entropy or service audits.
  6. Ensure responses containing secret material are not written to agent transcripts, telemetry, debug logs, caches, or persistent memory.
  7. Provide local-generation alternatives and require explicit user confirmation before invoking a remote service for security-sensitive material.

T08 · Insecure Dependencies

Warning
Location
SKILL.md:153
Finding

Unpinned Dependency and Skill Installation Through npx

Content
View full analysis

Vulnerability Details

File Location: SKILL.md:153-167, with repeated installation references at SKILL.md:225-226
Vulnerability Type: Mutable and unpinned third-party supply-chain dependencies
Risk Level: Medium

Vulnerable Code

SKILL.md:153-167:

markdown
Core AgentPMT setup skills:
- What AgentPMT is: ../what-is-agentpmt
  - ClawHub page: https://clawhub.ai/agentpmt/what-is-agentpmt
  - OpenClaw install: `openclaw skills install what-is-agentpmt`
  - skills.sh install: `npx skills add AgentPMT/agent-skills --skill what-is-agentpmt`
- AgentPMT account MCP/REST setup: ../agentpmt-account-mcp-rest-api-setup
  - ClawHub page: https://clawhub.ai/agentpmt/agentpmt-account-mcp-rest-api-setup
  - OpenClaw install: `openclaw skills install agentpmt-account-mcp-rest-api-setup`
  - skills.sh install: `npx skills add AgentPMT/agent-skills --skill agentpmt-account-mcp-rest-api-setup`

skills.sh install script:

```bash
npx skills add AgentPMT/agent-skills --skill what-is-agentpmt
npx skills add AgentPMT/agent-skills --skill agentpmt-account-mcp-rest-api-setup
text

### Technical Analysis

The installation commands invoke the `skills` package through `npx` without pinning a package version or integrity value. They also identify the `AgentPMT/agent-skills` source without an immutable commit reference. Consequently, the content installed in the future may differ from the content reviewed during this audit.

If `npx` must download the package, package installation or execution behavior occurs under the invoking user's privileges. A compromise of the package publisher, package registry, upstream repository, associated maintainer credentials, or mutable default branch could therefore introduce instructions or executable content that was not present in this project.

The current project contains only documentation and schemas; no malicious local script was identified. This finding concerns the unsafe
...[truncated 1619 chars]
Remediation
View remediation

Remediation Suggestions

  1. Pin the skills npm package to a reviewed exact version rather than allowing npx to resolve the latest release.
  2. Pin the AgentPMT Skill repository to a reviewed immutable commit hash or signed release tag.
  3. Publish and verify package-lock data, checksums, signatures, or other integrity metadata before execution.
  4. Download and inspect dependencies before running installation logic; avoid installation commands that implicitly execute newly downloaded code.
  5. Audit what-is-agentpmt and agentpmt-account-mcp-rest-api-setup independently before recommending or installing them.
  6. Run installation with a non-privileged account in a sandbox that has no production credentials or sensitive environment variables.
  7. Configure registry allowlists and provenance verification, and monitor pinned dependencies for security advisories.
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 (9)

Vague Triggers

Medium
Category
Not specified by scanner
Confidence
97% confidence
Finding

The activation keywords include very generic terms such as password, source, and length, which can cause this remote tool to be selected in unrelated contexts. In this skill, accidental activation is more dangerous because invocation sends requests to an external service and may generate or handle sensitive authentication material such as tokens, passwords, or seeds.

Content

No source excerpt is available for this finding.

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.

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.

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.

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.

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.

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.

External Transmission

Medium
Category
Data Exfiltration
Confidence
50% 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 · SKILL.md (reported line 228)May include surrounding context.

md
- What AgentPMT is: ../what-is-agentpmt (ClawHub: `what-is-agentpmt`, page: https://clawhub.ai/agentpmt/what-is-agentpmt; skills.sh: `npx skills add AgentPMT/agent-skills --skill what-is-agentpmt`)
- AgentPMT account MCP/REST setup: ../agentpmt-account-mcp-rest-api-setup (ClawHub: `agentpmt-account-mcp-rest-api-setup`, page: https://clawhub.ai/agentpmt/agentpmt-account-mcp-rest-api-setup; skills.sh: `npx skills add AgentPMT/agent-skills --skill agentpmt-account-mcp-rest-api-setup`)
- Marketplace product: https://www.agentpmt.com/marketplace/quantum-cryptographic-seed-generator
- AgentPMT main MCP server: https://api.agentpmt.com/mcp/
- AgentPMT REST invoke endpoint: https://api.agentpmt.com/products/purchase

External Transmission

Medium
Category
Data Exfiltration
Confidence
50% 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 · SKILL.md (reported line 229)May include surrounding context.

md
- What AgentPMT is: ../what-is-agentpmt (ClawHub: `what-is-agentpmt`, page: https://clawhub.ai/agentpmt/what-is-agentpmt; skills.sh: `npx skills add AgentPMT/agent-skills --skill what-is-agentpmt`)
- AgentPMT account MCP/REST setup: ../agentpmt-account-mcp-rest-api-setup (ClawHub: `agentpmt-account-mcp-rest-api-setup`, page: https://clawhub.ai/agentpmt/agentpmt-account-mcp-rest-api-setup; skills.sh: `npx skills add AgentPMT/agent-skills --skill agentpmt-account-mcp-rest-api-setup`)
- Marketplace product: https://www.agentpmt.com/marketplace/quantum-cryptographic-seed-generator
- AgentPMT main MCP server: https://api.agentpmt.com/mcp/
- AgentPMT REST invoke endpoint: https://api.agentpmt.com/products/purchase

Static analysis

No suspicious patterns detected.