baoyu-post-to-weibo
Audited by Socket on Sep 9, 2026
2 alerts found:
SecurityAnomalyThis 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.
No definitive malicious payload (e.g., exfiltration, reverse shells, credential theft code) is visible in the provided fragment. However, the module performs high-impact host automation: executing OS commands, terminating processes, launching Chrome to a caller-provided URL, and automating clipboard copy/paste via runtime-executed helper scripts. The real malware/abuse likelihood depends heavily on the contents and dependencies of the referenced helper scripts and on how upstream callers supply `url`, `profileDir`, and clipboard-related paths/targets. Treat this as a security-sensitive automation component requiring review and strict input controls.