Back to skill

Security audit

MochiPay Integration

Security checks for vulnerabilities and agentic risk

Overview

The skill provides proportionate MochiPay integration guidance with explicit controls for credentials, payment verification, and production changes.

Keep credentials on your backend and authorize production changes deliberately. Verify downloaded package hashes and test with internal sandbox orders, since sandbox success can trigger normal fulfillment. Replace demo authentication and storage before production. This review covers the bundled skill, not the separately downloaded gateways or demos; a passing offline check does not establish production readiness.

Vulnerability Patterns
  • 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
  • Unauthorized Access and Privilege EscalationObtains permissions beyond the task's legitimate needs
Vulnerability Patterns
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
  • Excessive AgencyUnrestricted Tool Access, Autonomous Decision Making, Scope Creep
  • Output HandlingUnvalidated Output Injection, Cross-Context Output, Unbounded Output
  • MCP Least PrivilegeUnderdeclared Capability, Wildcard Permission, Missing Permission Declaration
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
Findings (10)

Credential Access

High
Category
Privilege Escalation
Confidence
70% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · references/developer-examples.md (reported line 13)May include surrounding context.

md
## Mobile implementation

Select the existing Swift or Kotlin source project. Set only the merchant HTTPS backend origin in the app. Keep API key/secret exclusively on that backend. Treat the independent staging access token as demo-only and replace it with the merchant app's real account session. Retain request_id and original method across retries/restarts; mode/language changes do not change the order. Protect saved capability URLs; never log them. Validate returned checkout URLs against the configured origin and /checkout path.

ON_SITE opens the merchant-local payment dialog in WKWebView/AndroidWebView. Restrict navigation to the merchant HTTPS origin and do not install a JavaScript/native success bridge. HPP opens the merchant redirect route in the external browser. On app foreground or explicit refresh, query the merchant backend; never infer payment from browser return. Active polls are15 seconds, not a background mobile job. Backend notification verification continues if the

Skill declares no tool scope ('permissions' or 'allowed-tools') but code capabilities were detected: file_read, network.

Medium
Category
MCP Least Privilege
Confidence
70% confidence
Finding

Without declared permissions the skill's intent is opaque and cannot be validated.

Content

No source excerpt is available for this finding.

Merchant settings and installation instructions are forced to English without user opt-in or a documented justification.

Medium
Category
Output Handling
Confidence
96% confidence
Finding

L08 requires merchant gateway settings and installation documentation to remain English and reiterates that merchant settings and instructions stay English. Although it honors explicit language choices for other presentation and replies, the repeated merchant-facing restriction imposes a language requirement without explaining why it is necessary.

Content

No source excerpt is available for this finding.

Skill Enumeration

Medium
Category
Agent Snooping
Confidence
80% confidence
Finding

Skill enumerates or reads other installed skills. Access to other skills' SKILL.md files or the skills directory reveals prompt instructions, capabilities, and secrets that should be invisible to peer skills.

Content

Scanner excerpt · references/installation.md (reported line 16)May include surrounding context.

md
## Claude Code

Extract to ~/.claude/skills/integrate-mochipay/SKILL.md (personal) or <project>/.claude/skills/integrate-mochipay/SKILL.md (project). Avoid duplicate nested folders. Invoke /integrate-mochipay or request MochiPay setup. Follow client refresh guidance if absent.
Official: https://code.claude.com/docs/en/skills

## Codex CLI / IDE

Skill Enumeration

Medium
Category
Agent Snooping
Confidence
80% confidence
Finding

Skill enumerates or reads other installed skills. Access to other skills' SKILL.md files or the skills directory reveals prompt instructions, capabilities, and secrets that should be invisible to peer skills.

Content

Scanner excerpt · references/installation.md (reported line 16)May include surrounding context.

md
## Claude Code

Extract to ~/.claude/skills/integrate-mochipay/SKILL.md (personal) or <project>/.claude/skills/integrate-mochipay/SKILL.md (project). Avoid duplicate nested folders. Invoke /integrate-mochipay or request MochiPay setup. Follow client refresh guidance if absent.
Official: https://code.claude.com/docs/en/skills

## Codex CLI / IDE

Skill Enumeration

Medium
Category
Agent Snooping
Confidence
80% confidence
Finding

Skill enumerates or reads other installed skills. Access to other skills' SKILL.md files or the skills directory reveals prompt instructions, capabilities, and secrets that should be invisible to peer skills.

Content

Scanner excerpt · references/installation.md (reported line 21)May include surrounding context.

md
## Codex CLI / IDE

Extract to ~/.agents/skills/integrate-mochipay/SKILL.md (personal) or <project>/.agents/skills/integrate-mochipay/SKILL.md (project). Run /skills or mention $integrate-mochipay. Codex detects skills automatically; check path/discovery if absent.
Official: https://learn.chatgpt.com/docs/build-skills

## Other assistants

Skill Enumeration

Medium
Category
Agent Snooping
Confidence
80% confidence
Finding

Skill enumerates or reads other installed skills. Access to other skills' SKILL.md files or the skills directory reveals prompt instructions, capabilities, and secrets that should be invisible to peer skills.

Content

Scanner excerpt · references/installation.md (reported line 21)May include surrounding context.

md
## Codex CLI / IDE

Extract to ~/.agents/skills/integrate-mochipay/SKILL.md (personal) or <project>/.agents/skills/integrate-mochipay/SKILL.md (project). Run /skills or mention $integrate-mochipay. Codex detects skills automatically; check path/discovery if absent.
Official: https://learn.chatgpt.com/docs/build-skills

## Other assistants

Scope Creep

Low
Category
Excessive Agency
Confidence
70% confidence
Finding

Skill's behavior or capabilities extend beyond its stated purpose. Scope creep allows an agent to perform actions unrelated to its documented functionality, increasing the attack surface.

Content

Scanner excerpt · LICENSE.txt (reported line 7)May include surrounding context.

text
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Scope Creep

Low
Category
Excessive Agency
Confidence
70% confidence
Finding

Skill's behavior or capabilities extend beyond its stated purpose. Scope creep allows an agent to perform actions unrelated to its documented functionality, increasing the attack surface.

Content

Scanner excerpt · references/license.md (reported line 7)May include surrounding context.

md
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Setup documentation is required to be in English without user opt-in.

Low
Category
Output Handling
Confidence
99% confidence
Finding

The instruction "Keep setup documentation in English" mandates a specific output language without offering a user choice. The file provides no justification for this language restriction.

Content

No source excerpt is available for this finding.