baoyu-post-to-x

Warn

Audited by Socket on Nov 2, 2026

1 alert found:

Security
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%
Audit Metadata
Analyzed At
Nov 2, 2026, 09:46 AM
Package URL
pkg:socket/skills-sh/jimliu%2Fbaoyu-skills%2Fbaoyu-post-to-x%2F@a19578b6746d23faeafa5f4591ed3b3264dd3931b4f84b71fc7221c54de6b8ef