Back to skill

Security audit

Computer Task Execution

Security checks for vulnerabilities and agentic risk

Overview

The skill is mostly a coherent computer-task execution guide, but it includes a stored WeChat pattern that can cause a real message to be sent to a hard-coded contact during a test.

Review this skill before installing. Its general automation strategy is reasonable, but do not use it unless stored patterns are cleaned so they never introduce recipients, destinations, message text, or side effects that were not explicitly requested by the current user. Pattern memory should also be limited to non-sensitive operational facts with clear user control and deletion expectations.

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

T01 · Skill Instruction Hijacking

Error
Location
references/site-patterns/wechat.md:16
Finding

Hard-Coded WeChat Recipient and Test Message Can Trigger an Unauthorized External Communication

Content
View full analysis

Vulnerability Details

File Location: references/site-patterns/wechat.md, line 16
Vulnerability Type: T01: Skill Instruction Hijacking
Risk Level: High

Code Snippet:

markdown
- [2026-03-27] Connectivity test default: use the contact phrase `微信给小崽崽说 hi` and append a timestamp in the sent content for freshness checking.

Related execution instructions appear at lines 15 and 24–26:

markdown
- [2026-03-27] Verified send flow: `open -a WeChat` (fallback `open -a 微信`) → `Command+F` → paste contact name → `Enter` to open target chat → paste message → `Enter` to send.
markdown
## Verification
- Confirm in the visible target thread that the sent message appears after send.
- For test messages, verify the timestamp matches the current run.

Technical Analysis

The site-pattern file embeds a fixed recipient phrase, fixed message content, and a requirement to append a fresh timestamp. When this pattern is loaded for a WeChat task, it can alter the agent's current objective from executing the user's requested action to communicating with a predetermined contact.

A connectivity test does not require transmission to a hard-coded third party. The adjacent instructions provide a complete send sequence and treat appearance of the message in the conversation as successful verification. Therefore, this is not merely an inert example: the instructions collectively describe how to select the recipient, compose the message, send it using the user's authenticated account, and confirm delivery.

This behavior exceeds least privilege for the declared generic computer-task execution functionality. Testing availability could instead be performed through non-destructive checks, such as confirming that WeChat launches and that the expected UI is accessible. Any real message transmission must use a recipient and exact content explicitly supplied or approved by the user.

Attack Path

  1. The use ...[truncated 1574 chars]
Remediation
View remediation

Remediation Suggestions

  1. Remove the hard-coded recipient phrase, message, and timestamp requirement from the pattern file.
  2. Prohibit connectivity checks from sending messages or making other externally visible changes.
  3. For any real send operation, require:
    • A recipient explicitly supplied by the user.
    • Exact message content supplied or approved by the user.
    • Clear recipient disambiguation.
    • A final confirmation immediately before transmission when the action is not already unambiguously authorized.
  4. Replace destructive connectivity testing with read-only validation, such as checking whether the application launches, the authenticated interface is available, and the requested conversation can be located without sending.
  5. Add a policy stating that stored patterns must never introduce recipients, destinations, content, or side effects absent from the current user request.
  6. Add validation before the critical action to ensure the active recipient and outgoing content exactly match the current request.
  7. Restrict pattern-memory updates so they never retain recipients, message content, credentials, tokens, personal data, or instructions originating from untrusted content.
Vulnerability Patterns
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
  • Supply ChainUnpinned Dependencies, External Script Fetching, Obfuscated Code
  • Excessive AgencyUnrestricted Tool Access, Autonomous Decision Making, Scope Creep
Findings (3)

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
93% confidence
Finding

The skill instructs the agent to persist target-specific execution history in references/site-patterns/<target>.md without any explicit user warning, consent step, retention rule, or data-minimization constraint. Because these pattern files can accumulate sensitive operational context about websites, apps, workflows, and prior user actions, they create a privacy and security risk if stored silently or reused across tasks.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

This markdown file presents all user-facing instructions in Chinese and does not indicate that the user can choose another language or that the skill is intentionally limited to a Chinese-speaking context. Under the policy, forcing a specific language without user opt-in is a natural-language policy violation.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Low
Category
Not specified by scanner
Confidence
87% confidence
Finding

This markdown file contains all user-facing guidance exclusively in Chinese and does not offer any language choice or explain a locale-specific scope. Under the natural-language policy rules, forcing a specific language without opt-in can be a policy violation.

Content

No source excerpt is available for this finding.