Back to skill

Security audit

client-demo-portal

Security checks for vulnerabilities and agentic risk

Overview

This skill is a disclosed guide for building a local customer demo portal, with expected external API use that needs careful data-handling guidance but does not show hidden or malicious behavior.

Install only if you are comfortable with a Chinese-language portal-demo workflow that uses Zhihuiya/PatSnap, DeepSeek, and local project API keys. Keep keys in protected environment configuration, avoid putting real keys in URLs or logs, and do not send internal customer documents or confidential questions to external AI services unless that processing is approved.

Vulnerability Patterns
  • 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
  • Embedded Malicious CodeShips malicious scripts inside the skill and executes them locally
Findings (2)

T09 · Insecure Skill Coding Practices

Warning
Location
SKILL.md:42
Finding

API Credential Transported in a URL Query Parameter

Content
View full analysis
Remediation
View remediation

T09 · Insecure Skill Coding Practices

Warning
Location
SKILL.md:85
Finding

Potential Customer Data Disclosure to an External AI Provider Without Data-Handling Controls

Content
View full analysis
Remediation
View remediation
Vulnerability Patterns
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
  • Trigger AbuseOverly Broad Trigger, Shadow Command Trigger, Keyword Baiting Trigger
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Supply ChainUnpinned Dependencies, External Script Fetching, Obfuscated Code
Findings (7)

Credential Access

High
Category
Privilege Escalation
Confidence
60% confidence
Finding

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

Content

Scanner excerpt · SKILL.md (reported line 20)May include surrounding context.

text
[客户名]-portal/
├── server.js        ← Express后端(调智慧芽MCP)
├── .env             ← API Key配置
├── package.json
├── public/
│   └── index.html   ← Apple风格前端

Vague Triggers

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

The trigger list includes “帮我准备演示”, which is a generic request that could arise in many unrelated contexts and is not specific to this skill’s portal-building purpose. The description does not provide exclusion conditions or scope constraints to prevent unintended invocation.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
93% confidence
Finding

The skill explicitly describes sending data to third-party services including DeepSeek and the Zhihuiya MCP, but it does not present a clear user-facing warning or consent step before transmitting potentially sensitive customer context, questions, or internal document-derived content. In a client-demo and local-knowledge-base workflow, this is more dangerous because users may assume all processing is local while proprietary or customer information is actually sent externally.

Content

No source excerpt is available for this finding.

External Transmission

Medium
Category
Data Exfiltration
Confidence
95% confidence
Finding

The explicit external endpoint reference to https://api.deepseek.com/ confirms that analysis content is intended to leave the local environment. Because the skill presents itself as a local portal prototype and references internal docs and customer-specific workflows, undisclosed outbound transmission could violate customer expectations, internal policy, or contractual handling requirements.

Content

Scanner excerpt · SKILL.md (reported line 85)May include surrounding context.

patsnap-technical-qa是Eureka内部MCP,Node.js无法HTTP直连。

js
// 用DeepSeek替代(同步返回,不卡界面)
const response = await fetch('https://api.deepseek.com/chat/completions', {
  method: 'POST',
  headers: { 'Authorization': `Bearer ${process.env.DEEPSEEK_API_KEY}`, 'Content-Type': 'application/json' },
  body: JSON.stringify({ model: 'deepseek-chat', messages: [

External Transmission

Medium
Category
Data Exfiltration
Confidence
95% confidence
Finding

The explicit external endpoint reference to https://api.deepseek.com/ confirms that analysis content is intended to leave the local environment. Because the skill presents itself as a local portal prototype and references internal docs and customer-specific workflows, undisclosed outbound transmission could violate customer expectations, internal policy, or contractual handling requirements.

Content

Scanner excerpt · SKILL.md (reported line 85)May include surrounding context.

patsnap-technical-qa是Eureka内部MCP,Node.js无法HTTP直连。

js
// 用DeepSeek替代(同步返回,不卡界面)
const response = await fetch('https://api.deepseek.com/chat/completions', {
  method: 'POST',
  headers: { 'Authorization': `Bearer ${process.env.DEEPSEEK_API_KEY}`, 'Content-Type': 'application/json' },
  body: JSON.stringify({ model: 'deepseek-chat', messages: [

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
96% confidence
Finding

The document is entirely written in Chinese and provides no indication that language selection is optional or that the skill is intentionally limited to a Chinese-language audience. Under the language/locale policy, forcing a specific language without user opt-in is a natural-language policy concern.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Low
Category
Not specified by scanner
Confidence
79% confidence
Finding

The natural-language instructions and usage guidance are entirely presented in Chinese, with no indication that users may choose another language or that the locale restriction is intentional and justified. This can violate language-choice policy when a skill implicitly constrains interaction language without opt-in.

Content

No source excerpt is available for this finding.