T01 · Skill Instruction Hijacking
- 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: HighCode 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
- The use ...[truncated 1574 chars]
- Remediation
View remediation
Remediation Suggestions
- Remove the hard-coded recipient phrase, message, and timestamp requirement from the pattern file.
- Prohibit connectivity checks from sending messages or making other externally visible changes.
- 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.
- 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.
- Add a policy stating that stored patterns must never introduce recipients, destinations, content, or side effects absent from the current user request.
- Add validation before the critical action to ensure the active recipient and outgoing content exactly match the current request.
- Restrict pattern-memory updates so they never retain recipients, message content, credentials, tokens, personal data, or instructions originating from untrusted content.
