Back to skill

Security audit

Mayar

Security checks for vulnerabilities and agentic risk

Overview

This Mayar payment skill is coherent, but it needs Review because it runs an unpinned npm package while handling payment credentials and suggests an API-key command pattern that can expose secrets.

Install only if you are comfortable giving this CLI access to your Mayar merchant account. Prefer a pinned, reviewed CLI version instead of `mayar@latest`, use least-privilege or revocable API keys, avoid passing keys on the command line, and require explicit user confirmation before creating, closing, reopening, or registering payment-related resources.

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)

T08 · Insecure Dependencies

Error
Location
SKILL.md:21
Finding

Mutable npm Package Is Downloaded and Executed Without Version or Integrity Pinning

Content
View full analysis
Remediation
View remediation

T09 · Insecure Skill Coding Practices

Warning
Location
SKILL.md:81
Finding

Mayar API Key Can Be Exposed Through Command-Line Arguments

Content
View full analysis
**Option B — one-time flag (single command):** > > Ask the user to provide the key and pass it as: > ```bash > npx -y mayar@latest --api-key whoami > ``` ``` ### Technical Analysis The authentication instructions recommend supplying the Mayar API key through the `--api-key` command-line option. Secrets placed in command-line arguments may be exposed through: - Shell history files. - Process inspection tools and operating-system process metadata. - Terminal transcripts and session recordings. - Agent tool-call logs and execution traces. - CI/CD logs, debugging output, or command auditing systems. Although the option is described as a one-time flag, that does not prevent the command or its arguments from being retained by the shell, Agent framework, operating system, or monitoring infrastructure. Because the API key authorizes payment-platform operations, disclosure can give another party access to sensitive merchant resources. ### Attack Path 1. A user follows the documented Option B workflow and provides a Mayar API key. 2. The Agent executes `npx -y mayar@latest --api-key whoami`. 3. The complete command is recorded in shell history, an Agent transcript, process metadata, or execution logs. 4. A local user, monitoring process, log reader, or party with access to the Agent transcript obtains the exposed key. 5. The party reuses the key against the Mayar API or CLI. 6. The party can perform operations permitted by the credential until the key is revoked or expires. ### Impact Assessment Exploitation can disclose the Mayar API key to users or systems that can inspect process arguments, histories, or logs. The resulting access is limited to the permissions associated with that credential but may include: - Merchant identity and ...[truncated 338 chars]
Remediation
View remediation
Vulnerability Patterns
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Supply ChainUnpinned Dependencies, External Script Fetching, Obfuscated Code
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
  • Excessive AgencyUnrestricted Tool Access, Autonomous Decision Making, Scope Creep
Findings (40)

Rp1

Medium
Category
MCP Rug Pull
Confidence
98% confidence
Finding

The skill installs and invokes the package via npx -y mayar@latest, which always resolves to the newest published version instead of a reviewed, immutable release. This creates a supply-chain execution risk: if the npm package is compromised or a malicious version is published, agents will automatically fetch and run attacker-controlled code.

Content

No source excerpt is available for this finding.

Rp1

Medium
Category
MCP Rug Pull
Confidence
98% confidence
Finding

The invoke_prefix uses npx -y mayar@latest, causing every invocation to execute an unpinned remote package version. In an agent context, this is especially risky because routine tool use repeatedly reintroduces the chance of running a newly compromised release.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
93% confidence
Finding

The documentation describes operations over invoices, customers, payments, transactions, webhooks, balance, and identity but does not clearly warn that these commands transmit sensitive financial, account, and customer data to an external API service. In agent settings, users may not realize that prompts or local files passed into commands can leave the local environment and be processed by a third party.

Content

No source excerpt is available for this finding.

Rp1

Medium
Category
MCP Rug Pull
Confidence
97% confidence
Finding

The quick-start example instructs agents to run npx -y mayar@latest whoami, which executes whatever version is current on npm at runtime. This exposes users and agents to silent remote code changes and supply-chain compromise without any local review barrier.

Content

No source excerpt is available for this finding.

Rp1

Medium
Category
MCP Rug Pull
Confidence
97% confidence
Finding

The authentication flow tells agents to run npx -y mayar@latest whoami --json, again fetching and executing an unpinned package. Because this command is the first step before handling secrets, a compromised package could harvest API keys or manipulate trust decisions.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
99% confidence
Finding

The documentation explicitly recommends passing the API key via --api-key <their_key> without warning that command-line arguments may be exposed through shell history, process listings, terminal logs, or agent telemetry. Because this is a live bearer credential for a payment platform, disclosure could allow unauthorized access to merchant financial and customer data and potentially state-changing API actions.

Content

No source excerpt is available for this finding.

Rp1

Medium
Category
MCP Rug Pull
Confidence
97% confidence
Finding

The environment-variable example still relies on npx -y mayar@latest, leaving execution dependent on an unreviewed current npm release. Since this flow is used after a user sets a valid API key, compromise could directly expose payment-platform credentials.

Content

No source excerpt is available for this finding.

Rp1

Medium
Category
MCP Rug Pull
Confidence
97% confidence
Finding

The one-time flag example invokes npx -y mayar@latest, which creates the same supply-chain exposure at the moment credentials are passed. An attacker controlling a new package version could intercept the API key and exfiltrate merchant data or alter transactions.

Content

No source excerpt is available for this finding.

Rp1

Medium
Category
MCP Rug Pull
Confidence
97% confidence
Finding

The interactive setup example uses npx -y mayar@latest init, which executes mutable remote code in a workflow likely to collect and store credentials. That makes initial account onboarding a particularly sensitive point for supply-chain compromise.

Content

No source excerpt is available for this finding.

Rp1

Medium
Category
MCP Rug Pull
Confidence
96% confidence
Finding

The generic usage pattern specifies npx -y mayar@latest <command>, normalizing unpinned remote execution throughout the skill. This broadens the attack surface because every documented operation inherits the same supply-chain risk.

Content

No source excerpt is available for this finding.

Rp1

Medium
Category
MCP Rug Pull
Confidence
96% confidence
Finding

The whoami account example uses @latest, which still allows execution of arbitrary newly published code. While the command is read-oriented, it validates credentials and exposes identity/account metadata, making compromise meaningful.

Content

No source excerpt is available for this finding.

Rp1

Medium
Category
MCP Rug Pull
Confidence
96% confidence
Finding

The balance command example uses npx -y mayar@latest, exposing financial account information through an unpinned package. A malicious upstream release could capture balances or manipulate displayed data to mislead operators.

Content

No source excerpt is available for this finding.

Rp1

Medium
Category
MCP Rug Pull
Confidence
96% confidence
Finding

The invoice list example relies on @latest, inheriting the same mutable code execution risk. Because invoices can contain customer and payment metadata, compromise could expose sensitive business information.

Content

No source excerpt is available for this finding.

Rp1

Medium
Category
MCP Rug Pull
Confidence
96% confidence
Finding

The invoice get example executes an unpinned npm package version, allowing future package changes to affect a data-retrieval workflow. This could result in exfiltration or falsification of invoice details consumed by downstream agents.

Content

No source excerpt is available for this finding.

Rp1

Medium
Category
MCP Rug Pull
Confidence
97% confidence
Finding

The invoice close example invokes mutable remote code for a state-changing financial action. If the package is compromised, attackers could abuse authenticated access to alter invoice state or perform unauthorized API operations.

Content

No source excerpt is available for this finding.

Rp1

Medium
Category
MCP Rug Pull
Confidence
97% confidence
Finding

The invoice reopen example uses @latest, making a state-changing financial operation dependent on an unreviewed current package release. This increases the risk of unauthorized invoice manipulation under the merchant's credentials.

Content

No source excerpt is available for this finding.

Rp1

Medium
Category
MCP Rug Pull
Confidence
97% confidence
Finding

The invoice creation example executes @latest in a path that can create new payment artifacts using authenticated access. A malicious package update could alter invoice payloads, exfiltrate customer data, or create fraudulent invoices.

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.

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.