Back to skill

Security audit

Aic Dashboard

Security checks for vulnerabilities and agentic risk

Overview

The skill is mostly a read-only local dashboard concept, but its permissions and instructions are broader and riskier than that purpose requires.

Review carefully before installing. Use only on localhost, avoid LAN sharing unless protected by HTTPS/VPN or a trusted reverse proxy, do not put tokens in shared URLs, rotate any fixed token, and be aware the declared write permission and broad feature claims exceed the read-only dashboard description.

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

Error
Location
SKILL.md:101
Finding

Plaintext Dashboard Token Exposure and Unsafe Network-Sharing Configuration

Content
View full analysis

Vulnerability Details

File Location: SKILL.md, lines 101 and 108–113; related usage guidance appears at lines 138, 163–172, 200, and 211
Vulnerability Type: Plaintext bearer-token exposure and insecure authentication configuration
Risk Level: High

Vulnerable Code Snippet

markdown
| `DASHBOARD_HOST` | 否 | `127.0.0.1` | 绑定地址,设为 `0.0.0.0` 允许局域网访问 |

- 所有请求必须携带 token,支持 3 种方式:
  - URL 查询参数: `?token=未指定`
  - 请求头: `X-Dashboard-Token: 未指定`
  - Bearer 认证: `Authorization: Bearer 未指定`
- 前端将 token 存入 `localStorage`,页面加载后从 URL 中移除,避免泄露
- 默认绑定 `127.0.0.1`,仅本机可访问;需局域网访问时设 `DASHBOARD_HOST=0.0.0.0`

The related LAN-sharing example is:

markdown
DASHBOARD_HOST=0.0.0.0 PORT=19195 DASHBOARD_TOKEN=team-shared-key node (请参考skill目录中的脚本文件)
text
Access URL: http://0.0.0.0:19195/?token=team-shared-key

The document also explicitly acknowledges the exposure:

markdown
4. **Token 安全性**: token 以明文形式存在于 URL 与 `localStorage`,HTTPS 环境下更安全

Technical Analysis

The documented authentication design permits a bearer token to be transmitted as a URL query parameter and stores that token in browser localStorage. Query-string credentials can be retained in browser history, copied URLs, access logs, monitoring systems, screenshots, and other URL-processing infrastructure. Removing the token from the address bar after page load does not remove copies already recorded during the initial request.

A token stored in localStorage is accessible to JavaScript executing in the dashboard origin. Therefore, any same-origin cross-site scripting flaw or compromised third-party frontend resource could read and exfiltrate it. The package contains no server or frontend implementation, so output escaping, Content Security Policy enforcement, and safe token handling cannot be verified.

The documented LAN configuration compounds this weakness by binding the service to all interfaces and advertising an ` ...[truncated 2034 chars]

Remediation
View remediation

Remediation Suggestions

  1. Remove query-string token authentication entirely. Reject requests containing credentials in URL parameters.
  2. For browser access, use a short-lived, cryptographically random session identifier in a cookie configured with Secure, HttpOnly, and SameSite=Strict.
  3. If authorization headers remain supported for API clients, require HTTPS and avoid persisting bearer tokens in browser storage.
  4. Do not store authentication credentials in localStorage. Keep short-lived credentials in protected cookies or ephemeral in-memory state.
  5. Continue binding to 127.0.0.1 by default. For remote access, require an authenticated TLS reverse proxy, VPN, or similarly protected tunnel instead of directly exposing the Express service on all interfaces.
  6. Replace the plaintext http:// LAN example with an HTTPS deployment example and prominently warn against sending bearer credentials over unencrypted transport.
  7. Generate high-entropy credentials, enforce expiration and rotation, and provide immediate revocation. Avoid shared static tokens and placeholder examples that resemble deployable secrets.
  8. Add per-user authentication and authorization if team access is supported, with separate credentials and audit logging for each user.
  9. Apply restrictive security headers, including an appropriate Content Security Policy, and ensure all values read from inbox.jsonl and session.json are contextually escaped before rendering.
  10. Supply the actual implementation and automated security tests so authentication, output encoding, URL cleanup, access control, and loopback-only defaults can be independently verified.
Vulnerability Patterns
  • Trigger AbuseOverly Broad Trigger, Shadow Command Trigger, Keyword Baiting Trigger
  • MCP Tool PoisoningHidden Instructions, Unicode Deception, Parameter Description Injection
  • 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 (5)

Intent-Code Divergence

High
Category
Not specified by scanner
Confidence
97% confidence
Finding

The documented scope explicitly says the skill does not perform browser automation or credential-related actions, but the premium features advertise parallel tab scraping and anti-bot bypass behavior. These contradictory claims are dangerous because they conceal materially more powerful behavior than a user would expect, including web automation patterns commonly associated with evasive or policy-violating activity.

Content

No source excerpt is available for this finding.

Intent-Code Divergence

High
Category
Not specified by scanner
Confidence
96% confidence
Finding

The feature overview expands the skill from a local dashboard into generic file processing, API integration, and command execution. In context, this broadening is risky because it normalizes powerful capabilities unrelated to the stated purpose, making it easier to smuggle in execution or external communication under the guise of a harmless monitoring panel.

Content

No source excerpt is available for this finding.

Vague Triggers

Medium
Category
Not specified by scanner
Confidence
96% confidence
Finding

The activation text is overly broad, effectively saying to use the skill whenever the user needs related functionality, without precise trigger boundaries. In an agent ecosystem, vague activation criteria can cause the skill to be invoked in unintended contexts, exposing unnecessary exec/read/write capabilities and increasing the chance of overreach.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
93% confidence
Finding

The description explicitly states "支持中文交互" and the document presents the skill as operating in Chinese, but it does not offer an opt-in or alternative language choice. This can violate language/locale policy when a skill forces a specific language without user selection or justification.

Content

No source excerpt is available for this finding.

Intent-Code Divergence

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

The skill repeatedly claims it is strictly read-only and does not write data, yet the manifest grants write capability and later text advertises file-writing support. This mismatch can mislead users and agents into granting broader permissions than expected, increasing the risk of unauthorized file modification or data tampering if the skill implementation uses the advertised capabilities.

Content

No source excerpt is available for this finding.