Back to skill

Security audit

Phonebridge

Security checks for vulnerabilities and agentic risk

Overview

The skill is a coherent phone-data tutorial, but it also permits reading imported phone data from a broad local folder without clear user consent or scope limits.

Review before installing. This skill appears useful for phone connection and backup guidance, but only use any local phone-data connector when you intentionally want the agent to inspect specific exported files. Keep phone exports private, use trusted computers, and disable USB debugging when finished.

Vulnerability Patterns
  • Unauthorized Access and Privilege EscalationObtains permissions beyond the task's legitimate needs
  • 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)

T05 · Unauthorized Access and Privilege Escalation

Warning
Location
SKILL.md:13
Finding

Unnecessary Access to Exported Phone Data

Content
View full analysis

Vulnerability Details

File Location: SKILL.md, line 13
Vulnerability Type: Excessive local data access that violates least privilege
Risk Level: Medium

Vulnerable instruction, translated into English:

markdown
2. **Local data** (included with the package): `js/data.js` contains all structured brand/application data; if the computer has the phone-mirror connector configured, it may read imported phone data from `~/PhoneMirror/`.

Technical Analysis

The Skill's stated purpose is to provide instructions for enabling developer mode, configuring USB debugging, and exporting application data. Reading previously exported phone data from ~/PhoneMirror/ is not required to provide those tutorials.

The instruction does not require explicit user authorization before access, limit access to a user-selected file, define permitted file types, or prohibit recursive directory inspection. Because exported phone data may contain conversations, screenshots, account information, or other personal records, allowing unrestricted reads from this directory violates the principle of least privilege.

No executable implementation or explicit network-exfiltration instruction was found. Exploitation therefore depends on an Agent having a connector or file-reading tool capable of accessing the referenced directory.

Attack Path

  1. A user activates the PhoneBridge Skill to request general setup or export guidance.
  2. The Agent observes the instruction permitting access to ~/PhoneMirror/.
  3. A configured phone-mirror connector or file-reading capability is used without separate, informed authorization.
  4. The Agent enumerates or reads previously exported phone content that is unrelated to the immediate request.
  5. Sensitive content enters the Agent's context and may be disclosed in responses, logs, traces, or downstream tool calls.

Impact Assessment

The affected scope is the phone data available to the Agen ...[truncated 484 chars]

Remediation
View remediation

Remediation Suggestions

  1. Remove the instruction permitting general access to ~/PhoneMirror/ because local phone contents are unnecessary for tutorial delivery.
  2. If local processing is an essential feature, require explicit, operation-specific user consent before every access.
  3. Require the user to select an individual file rather than authorizing directory-wide or recursive reads.
  4. Define an allowlist of necessary file formats and reject unrelated files, hidden files, links, and path traversal.
  5. State that local phone content must never be included in external requests unless the user separately approves the exact destination and data.
  6. Minimize retention by avoiding storage of file contents in persistent memory, logs, or generated artifacts.
  7. Add a preview step that identifies the selected file and intended operation without exposing its contents, followed by explicit confirmation.
  8. Treat instructions retrieved from the mutable external website as untrusted reference data and prevent them from expanding local file or tool permissions.
Vulnerability Patterns
  • Trigger AbuseOverly Broad Trigger, Shadow Command Trigger, Keyword Baiting Trigger
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
  • Supply ChainUnpinned Dependencies, External Script Fetching, Obfuscated Code
Findings (5)

Vague Triggers

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

L11 列出的触发关键词中包含“USB调试”“开发者模式”“手机连电脑”等泛化表达,这些词语可出现在大量普通求助或技术讨论中,且文档未说明触发边界、上下文限制或排除情形。缺少更明确的调用范围,容易与一般手机支持类对话重叠,造成非预期激活。

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
92% confidence
Finding

The skill explicitly helps users export phone data and back up chat records, including enabling developer mode and USB debugging, yet the README provides no privacy, consent, device-trust, or sensitive-data handling warnings. In this context, omission of safeguards increases the risk that users expose personal data, connect to untrusted computers, or perform high-risk actions without understanding consequences.

Content

No source excerpt is available for this finding.

Skill Enumeration

Medium
Category
Agent Snooping
Confidence
80% confidence
Finding

Skill enumerates or reads other installed skills. Access to other skills' SKILL.md files or the skills directory reveals prompt instructions, capabilities, and secrets that should be invisible to peer skills.

Content

Scanner excerpt · README.md (reported line 18)May include surrounding context.

md
## 提示词模板(SKILL.md 核心内容)

技能文件:`~/.workbuddy/skills/phonebridge/SKILL.md`(已按市场标准格式写好)
核心逻辑:
1. 确认手机品牌(未说则让用户选)
2. 从站点/数据取该品牌步骤(开发者模式 → USB调试 → 品牌特有坑)

Vague Triggers

Medium
Category
Not specified by scanner
Confidence
93% confidence
Finding

The listed trigger phrases include generic terms such as "USB调试", "开发者模式", "手机连电脑", and "微信备份", which are common support topics and may match everyday requests not specifically intended to invoke this skill. The description does not provide exclusion conditions or narrower activation context to distinguish when the skill should or should not activate.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Low
Category
Not specified by scanner
Confidence
89% confidence
Finding

整个 README 以中文编写,并在内容上默认面向中文用户,没有提供其他语言选项或说明该技能仅适用于特定语言/区域场景。若组织要求避免在未获用户选择的情况下强制特定语言,这构成自然语言层面的策略风险。

Content

No source excerpt is available for this finding.