Back to skill

Security audit

xpeng-monitor

Security checks for vulnerabilities and agentic risk

Overview

This vehicle-data skill needs review because it requests passwords in chat and ships saved website session cookies.

Ask the publisher to remove bundled sessions, replace password collection through chat and command-line arguments with user-controlled authentication, and protect cached sessions with clear deletion and expiration controls. Avoid supplying your password through the current workflow.

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

T09 · Insecure Skill Coding Practices

Warning
Location
scripts/.eu-session.json
Finding

Session cookies are included in the distributed Skill

Content
View full analysis

Impact

Recipients can replay the originating session while it remains accepted. If that session is authenticated, replay can grant its account access. Current validity, authentication state, and available privileges were not verified.

Vulnerability Patterns
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
  • Output HandlingUnvalidated Output Injection, Cross-Context Output, Unbounded Output
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Supply ChainUnpinned Dependencies, External Script Fetching, Obfuscated Code
Findings (9)

Incomplete referenced artifact analysis

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
| `xpeng_eu_daily.js` | 获取最近 12 个月每日各车型交付销量明细,支持 JSON 和 markdown 报告两种输出(`--report` 含 ①②③④ 四个表格模块) | `node xpeng_eu_daily.js [year] [--report] [--email <email> -

Incomplete referenced artifact analysis

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
node scripts/xpeng_eu_daily.js [year] # 输出 JSON(含 daily/monthly_full/monthly_partial)

Incomplete referenced artifact analysis

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
node scripts/xpeng_eu_daily.js [year] --report # 输出 markdown 报告(①②③④ 表格,默认入口)

Incomplete referenced artifact analysis

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
node scripts/xpeng_eu_daily.js [year] --email <email> --password <password>

Incomplete referenced artifact analysis

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
默认运行 `node scripts/xpeng_eu_daily.js --report`(当前年份),直接获取 ①②③④ 四个 markdown 表格模块。如果用户指定了年份(如"查看 2025 年数据"),传入年份参数:`node scripts/xpeng_eu_daily.js 2025 --report`。

Incomplete referenced artifact analysis

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
**检测规则(强制)**:每次运行 `xpeng_eu_daily.js` 后,**必须检查 stdout 是否包含 `LOGIN_REQUIRED`**。这是脚本要求 agent 介入获取凭据的唯一信号,**不得当成普通错误直接结束**,必须走下面的询问流程。

The login fallback uses an unsupported privacy assurance to encourage disclosure of account passwords in chat.

Medium
Category
Prompt Injection
Confidence
98% confidence
Finding

The skill instructs the agent to assure users that credentials are used only for the login and will not reach third parties, despite requiring password disclosure through an AI conversation and tool execution whose handling it cannot guarantee. This unsupported reassurance can induce users to disclose secrets they would otherwise withhold, and treating every data-page redirect or BLOCKED signal as a mandatory password request increases unnecessary collection. The legitimate login purpose does not establish malicious intent, but it does not justify the privacy promise.

Content

No source excerpt is available for this finding.

The login workflow requests passwords in chat and passes them as command-line arguments without warning about those exposure channels.

Medium
Category
Output Handling
Confidence
99% confidence
Finding

The workflow explicitly collects account passwords through chat and forwards them using --password command-line arguments, potentially exposing them in conversation retention, tool-call logs, and process listings. Authentication is relevant to the data source, but it does not require these insecure channels; recommending a unique password reduces password-reuse harm without preventing disclosure of this account's credentials.

Content

No source excerpt is available for this finding.

The script silently writes and potentially overwrites scripts/tmp_page.html without disclosing the file write.

Low
Category
Output Handling
Confidence
92% confidence
Finding

fs.writeFileSync saves the downloaded HTML to a fixed path and replaces any existing file there. The script's comments describe fetching and analyzing the page, while the adjacent log reports only page size; neither discloses the local file write or overwrite behavior.

Content

No source excerpt is available for this finding.