Back to skill

Security audit

永东直通巴士查询

Security checks for vulnerabilities and agentic risk

Overview

This skill coherently queries eebus bus schedules and prices, with no local persistence or user credential access found.

Install only if you want eebus-specific Hong Kong/Shenzhen bus lookups. The skill sends your queried date and stations to www.myeebus.com and relies on embedded API signing logic; it does not appear to read local files, store data, or use your credentials.

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/eebus_query.js:120
Finding

Hard-Coded API Signing Key Enables Request Forgery

Content
View full analysis
16 && (a = d(a, 32 * r)); var o = Array(16), h = Array(16); for (u = 0; u < 16; u++) { o[u] = 909522486 ^ a[u]; h[u] = 1549556828 ^ a[u] } var t = d(o.concat(D(input)), 512 + input.length * r); var g = d(h.concat(t), 640); var s = "0123456789abcdef", l2 = ""; for (u = 0; u < 4 * g.length; u++) l2 += s.charAt(g[u >> 2] >> u % 4 * 8 + 4 & 15) + s.charAt(g[u >> 2] >> u % 4 * 8 & 15); ``` ### Technical Analysis The fixed integer array is transformed into the secret key used by the custom HMAC-MD5 request-signing implementation. Because the signing material and the complete signing algorithm are distributed with the Skill, any person who obtains the source code can reconstruct the key and generate signatures independently. The script signs a concatenation of a client-generated token, timestamp, and nonce. Those changing values do not protect an exposed shared key because an attacker can choose their own values and calculate the corresponding signature. The token and nonce are also generated with `Math.random()` elsewhere in the script, which is not a cryptographically secure random-number generator, although exposure of the shared signing key is the principal weakness. The actual authorization checks and rate limits enforced by the remote server were not available for static review. Therefore, successful access beyond the public query functions cannot be asserted. Nevertheless, the client-side secret cannot provide a meaningful trust boundary. ### Attack Path 1. Obtain the distributed `scripts/eebus_query.js` file. 2. Extract the fixed integer arra ...[truncated 1219 chars]
Remediation
View remediation
Vulnerability Patterns
  • Trigger AbuseOverly Broad Trigger, Shadow Command Trigger, Keyword Baiting Trigger
  • MCP Least PrivilegeUnderdeclared Capability, Wildcard Permission, Missing Permission Declaration
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
Findings (8)

Ae1

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
node scripts/eebus_query.js <日期YYYY-MM-DD> <上车点> <下车点> [出发城市] [到达城市]

Ae1

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
node scripts/eebus_query.js <日期YYYY-MM-DD> <上车点> <下车点> [出发城市] [到达城市]

Ae1

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
node scripts/eebus_query.js <日期YYYY-MM-DD> <上车点> <下车点> [出发城市] [到达城市]

Ae1

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
node scripts/eebus_query.js <日期YYYY-MM-DD> <上车点> <下车点> [出发城市] [到达城市]

Undeclared Tool Scope

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.

Vague Triggers

Medium
Category
Not specified by scanner
Confidence
96% confidence
Finding

The activation description mixes specific brand references with generic cross-border transportation intents, creating unclear boundaries for when this skill should run. In context, this makes the skill more dangerous because it accepts broad natural-language travel requests and applies default route inference, increasing the chance of silently producing provider-specific results for an unrelated or ambiguous query.

Content

No source excerpt is available for this finding.

Vague Triggers

Medium
Category
Not specified by scanner
Confidence
90% confidence
Finding

The activation description mixes specific brand references with generic cross-border transportation intents, creating unclear boundaries for when this skill should run. In context, this makes the skill more dangerous because it accepts broad natural-language travel requests and applies default route inference, increasing the chance of silently producing provider-specific results for an unrelated or ambiguous query.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Low
Category
Not specified by scanner
Confidence
96% confidence
Finding

The request headers hard-code language: 'zh_CN', which imposes a specific locale regardless of user preference. Under the policy, locale restrictions should either be user-selectable or clearly justified as region-specific; neither is present in this file.

Content

No source excerpt is available for this finding.