Back to skill

Security audit

mcp-apps-host-dev

Security checks for vulnerabilities and agentic risk

Overview

The skill is a coherent MCP Apps host-development guide, but it recommends under-scoped card permissions and persistence that can let untrusted cards influence model turns or retain sensitive card data.

Review this skill carefully before installing. It is most appropriate for developers working on MCP Apps host code, but generated changes should be tightened: require explicit authorization for card-originated model turns, separate card data from user instructions, use per-card or per-tool allowlists instead of broad server-wide permission, restrict CSP domains and forms, avoid durable localStorage for sensitive payloads, and prefer a pinned or manually reviewed installation path.

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 (4)

T09 · Insecure Skill Coding Practices

Error
Location
SKILL.md:301
Finding

Untrusted MCP Card Content Is Injected into Model Conversations

Content
View full analysis
Remediation
View remediation

T09 · Insecure Skill Coding Practices

Error
Location
SKILL.md:258
Finding

Overly Permissive Card CSP Enables Unauthorized Network Disclosure

Content
View full analysis
Remediation
View remediation

T09 · Insecure Skill Coding Practices

Warning
Location
SKILL.md:446
Finding

Sensitive MCP Card Payloads Are Persisted in localStorage Across Sessions

Content
View full analysis
) - preserveMcpUiCards() falls back to localStorage when the in-memory Map does not contain the entry - clearCachedMcpUi() clears both memory and localStorage - Cross-session ID matching: when the runtime session ID differs from the event session ID used during storage, scan all mcp-ui:* localStorage entries and match by tool-call ID ``` ```text Use localStorage rather than sessionStorage—localStorage survives both HMR reloads and application restarts. ``` ### Technical Analysis The Skill recommends persisting MCP UI payloads in browser `localStorage` so cards survive hot reloads and application restarts. These payloads may include card HTML, structured tool results, session identifiers, checkout information, addresses, or other service-specific data. `localStorage` is durable plaintext storage accessible to scripts executing in the same renderer origin. The documented design does not prescribe expiration, encryption, data classification, sensitivity filtering, storage quotas, user isolation, or cleanup on logout. Scanning all `mcp-ui:*` entries to match tool-call IDs also weakens session boundaries and increases the chance that stale data from another runtime session will be restored into the current session. ### Attack Path 1. An MCP tool returns a UI payload containing sensitive structured content or identifiers. 2. The host stores the complete payload in `localStorage`. 3. The data remains after HMR, application restart, or completion of the original conversation. 4. A later malicious card, injected renderer script, compromised dependency, or user sharing the same application profile accesses or enumerates the stored entr ...[truncated 597 chars]
Remediation
View remediation

T08 · Insecure Dependencies

Warning
Location
README.md:56
Finding

Recommended Installation Executes an Unpinned Third-Party Package

Content
View full analysis
Remediation
View remediation
Vulnerability Patterns
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
  • Supply ChainUnpinned Dependencies, External Script Fetching, Obfuscated Code
  • Excessive AgencyUnrestricted Tool Access, Autonomous Decision Making, Scope Creep
Findings (5)

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.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
97% confidence
Finding

The skill content is written entirely in Chinese starting with the title at L010 and continuing throughout the document, while the manifest description at L003 is in English and does not state that the skill is China-specific or requires Chinese. This creates a language-policy issue because users are not given an opt-in or alternative language choice.

Content

No source excerpt is available for this finding.

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 · SKILL.md (reported line 476)May include surrounding context.

3. 如果日志停在几分钟前且没有新 turn → gateway 挂了

4. 检查 API 端点是否可达

curl -s --max-time 10 "<base_url>/chat/completions"
-H "Authorization: Bearer "
-d '{"model":"","messages":[{"role":"user","content":"hi"}],"max_tokens":5}'

text

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.