Back to skill

Security audit

quantum-circuit-builder-with-proof

Security checks across malware telemetry and agentic risk

Overview

The skill is mostly transparent about being a paid remote AgentPMT quantum-proof tool, but it includes under-scoped remote code execution and mutable setup paths that deserve user review before installation.

Install only if you are comfortable sending quantum circuit data, claim ledgers, certificates, and possibly Lean source to AgentPMT. Do not submit secrets, wallet material, proprietary research, or untrusted Lean source through the Lean-backed actions. Prefer the normalized-circuit and bounded provider-import flows when possible, and use pinned or reviewed setup routes instead of unpinned `npx` installer commands for account configuration.

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:36
Finding
Untrusted Lean Source Executes in a Shared Privileged Service Runtime<![CDATA[ ## Vulnerability Details **File Location**: `SKILL.md:36` **Additional Locations**: `SKILL.md:194`, `SKILL.md:217-235`; `schema.md:289-300`, `schema.md:428-448` **Vulnerability Type**: Trusted code execution without effective isolation **Risk Level**: High ### Vulnerable Code Snippet ```markdown - Lean submitted to `certify_from_lean`, `export_provider_programs`, or `execute_locally` runs as `trusted_direct_v1` inside the private Cloud Run service container. IAM authenticates callers, but Lean shares the service filesystem, network, and service identity; this is not untrusted-code isolation. Submit only internally trusted Lean. The receipt fields `execution_mode` and `untrusted_code_isolation` are the machine-readable authority. ``` The corresponding schema accepts source code as a general string: ```json "lean_source": { "description": "Complete CircuitSpec authoring fragment defining spec. Use search_lean with authoring_only=true and a worked .lean corpus example when authoring. Maximum 1048576 characters.", "required": true, "type": "string" } ``` ### Technical Analysis The Skill explicitly states that user-supplied Lean source is executed directly within a shared Cloud Run service container and that it shares the service filesystem, network connectivity, and service identity. IAM authenticates the caller but does not isolate the submitted program from service-level resources. The instruction to submit only “internally trusted Lean” is an administrative warning rather than a technical security boundary. The exposed input schema only establishes that `lean_source` is a string; it does not demonstrate enforced syntax restrictions, capability restrictions, module allowlisting, filesystem isolation, network isolation, or per-request identities. This execution model exceeds the minimum privileges required to compile or verify a quantum-circuit specification. A least-privilege implementation would not grant submitted source access to a sha ...[truncated 1765 chars]
Remediation
<![CDATA[ ## Remediation Suggestions 1. Execute every submitted Lean program in a fresh, ephemeral sandbox rather than the shared service container. 2. Use a dedicated request-scoped service identity with no default permissions; grant only the minimum capabilities required for proof compilation. 3. Disable network access by default. If limited network access is indispensable, enforce an explicit destination allowlist through a controlled proxy. 4. Mount an empty, request-specific filesystem and expose only immutable compiler libraries required for the operation. 5. Prevent access to metadata services, service credentials, Unix sockets, host paths, and artifacts belonging to other requests. 6. Enforce a strict server-side allowlist of admitted Lean imports and declarations. Do not rely on prompt instructions or caller trust. 7. Apply CPU, memory, process, output-size, and wall-clock limits to every request. 8. Destroy the sandbox and all temporary files after completion. 9. Return verifiable receipt fields identifying the sandbox policy, egress policy, runtime image digest, and request-scoped identity. 10. Until isolation is implemented, disable the source-execution actions for externally supplied or agent-generated Lean and accept only normalized declarative circuit representations. ]]>

T08 · Insecure Dependencies

Warning
Location
SKILL.md:374
Finding
Setup Instructions Install Mutable Remote Dependencies Without Version or Integrity Pinning<![CDATA[ ## Vulnerability Details **File Location**: `SKILL.md:374-375` **Vulnerability Type**: Unpinned third-party installer and mutable Skill dependency **Risk Level**: Medium ### Vulnerable Code Snippet ```bash npx skills add AgentPMT/agent-skills --skill what-is-agentpmt npx skills add AgentPMT/agent-skills --skill agentpmt-account-mcp-rest-api-setup ``` ### Technical Analysis The setup workflow invokes an `npx`-resolved tool and installs Skill content from `AgentPMT/agent-skills` without specifying an immutable package version, repository commit, integrity digest, or signature. Consequently, the code and instructions installed at setup time can differ from those reviewed during this audit. The effective dependency may change due to a legitimate upstream update, package-registry compromise, repository compromise, account takeover, or malicious dependency publication. This is particularly sensitive because the downloaded setup Skill is responsible for account, MCP, REST, and credential-handling configuration. Compromise of that dependency could affect authentication data or redirect subsequent tool calls. ### Attack Path 1. An attacker compromises the package resolved by `npx`, the upstream `AgentPMT/agent-skills` repository, its publication account, or the dependency-resolution path. 2. The attacker publishes modified installer behavior or malicious setup Skill content under the expected mutable identifier. 3. A user follows the documented setup commands. 4. `npx` retrieves and runs the currently resolved package, and the installer retrieves the current upstream Skill content. 5. The malicious dependency is installed and loaded as trusted setup guidance. 6. It could then direct the Agent to disclose credentials, connect to an attacker-controlled endpoint, execute additional commands, or install further payloads. ### Impact Assessment Depending on the permissions of the installer and Agent environment, successful supply-chain compromise could resu ...[truncated 638 chars]
Remediation
<![CDATA[ ## Remediation Suggestions 1. Pin the `npx` installer to an exact reviewed version rather than relying on the package manager's current resolution. 2. Pin `AgentPMT/agent-skills` to an immutable commit hash or signed release tag. 3. Publish and verify SHA-256 or stronger integrity digests for every installed Skill file. 4. Require cryptographic release signatures and verify them before installation. 5. Avoid executing an installer directly from the network where possible; distribute reviewed setup files with the product Skill. 6. Use a lockfile or manifest recording the exact installer version, repository commit, file digests, and expected publisher identity. 7. Run installation in a restricted environment without access to account credentials. 8. Review installed Skill content before loading it into an Agent session, especially any account or credential-handling instructions. 9. Fail closed if version, digest, signature, or publisher verification cannot be completed. ]]>

SkillSpector

By NVIDIA
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 (3)

Vague Triggers

Medium
Confidence
95% confidence
Finding
The skill advertises very generic activation keywords such as "circuit" and "claims," which can cause the agent to invoke this external, paid remote tool for ordinary conversations unrelated to quantum proof workflows. That broad triggering increases the chance of unnecessary data transmission to a third-party service and accidental execution of high-impact actions in the wrong context.

External Transmission

Medium
Category
Data Exfiltration
Content
- 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-circuit-builder-with-proof
- AgentPMT main MCP server: https://api.agentpmt.com/mcp/
- AgentPMT REST invoke endpoint: https://api.agentpmt.com/products/purchase
Confidence
88% confidence
Finding
This skill is explicitly designed to send user-supplied circuit data, claims, files, and possibly Lean source to remote AgentPMT endpoints. While external transmission is core to the product, it still creates a real security boundary: sensitive research artifacts or code may leave the local environment, and the skill itself notes that some Lean execution occurs in a shared service container without untrusted-code isolation.

External Transmission

Medium
Category
Data Exfiltration
Content
- 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-circuit-builder-with-proof
- AgentPMT main MCP server: https://api.agentpmt.com/mcp/
- AgentPMT REST invoke endpoint: https://api.agentpmt.com/products/purchase
Confidence
88% confidence
Finding
The documented REST invoke endpoint is another explicit external exfiltration path for tool inputs and outputs. In context, this is expected functionality rather than covert behavior, but it remains security-relevant because the skill encourages remote submission of potentially sensitive materials and long-running background processing on third-party infrastructure.

VirusTotal

VirusTotal findings are pending for this skill version.

View on VirusTotal

Static analysis

No suspicious patterns detected.