baoyu-post-to-wechat

Warn

Audited by Socket on Aug 14, 2026

4 alerts found:

SecurityAnomalyx3
SecurityMEDIUM
scripts/paste-from-clipboard.ts

This module is a dual-use cross-platform keystroke injection utility that performs a real paste (Cmd+V/Ctrl+V equivalents) to the active/frontmost application and explicitly aims to bypass synthetic paste-event detection. No network exfiltration or persistence is present in the provided code, but the behavior is inherently security-sensitive (UI input automation) and can be abused for clipboard-driven attacks. The highest concrete technical risk is on macOS: user-supplied --app is interpolated into dynamically constructed AppleScript executed via osascript without escaping/validation, creating an AppleScript-evaluation injection risk. Overall: elevated security risk; treat as high-impact automation code and restrict/validate inputs when used.

Confidence: 66%Severity: 75%
AnomalyLOW
scripts/cdp.ts

No direct evidence of classic supply-chain malware (no hardcoded credentials, no external exfiltration endpoints, no persistence/backdoor logic visible). However, the module is high-privilege automation code with multiple strong execution primitives: arbitrary JavaScript execution via CDP Runtime.evaluate() and additional injection risk from unescaped selector interpolation in clickElement(). It can also paste clipboard contents into pages and can spawn a local executable based on an environment override. Treat as security-sensitive: ensure only trusted callers can invoke it and strictly validate/sanitize url/selector/expression and the chrome executable path.

Confidence: 66%Severity: 62%
AnomalyLOW
scripts/wechat-agent-browser.ts

This code is a WeChat posting automation utility with significant security exposure due to (1) host-side command execution via execSync/spawnSync of an external browser automation tool and (2) repeated in-browser JavaScript execution via eval, where title/content and image paths are user-influenced. The fallback upload mechanism can read local files via file:// fetch in the browser context, then upload them through the UI. No clear backdoor or direct third-party exfiltration endpoints are evident in this file alone, but the overall design warrants strong supply-chain/input trust controls and careful review of the agent-browser binary’s command parsing and permissions.

Confidence: 62%Severity: 66%
AnomalyLOW
scripts/md-to-wechat.ts

This module is not clearly malicious, but it has meaningful security risks suitable for hardening. The primary concern is that attacker-influenced Markdown image URLs are fetched over arbitrary http/https (including redirects) and streamed to local disk, enabling SSRF-like outbound access and resource exhaustion. A secondary concern is execution of an external renderer via 'npx -y bun', which increases toolchain/supply-chain and environment-resolution trust requirements. Local relative image path resolution lacks an explicit containment check to baseDir, which could become a file access issue depending on how the renderer consumes the returned localPath.

Confidence: 66%Severity: 62%
Audit Metadata
Analyzed At
Aug 14, 2026, 04:03 PM
Package URL
pkg:socket/skills-sh/atxinsky%2Fskills%2Fbaoyu-post-to-wechat%2F@55805650ae56eb911d5c294e4794f7cdde03e501b8a2a70b379c753d232e0a6f
Security Audit — socket — baoyu-post-to-wechat