baoyu-post-to-x

Warn

Audited by Socket on Sep 9, 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
Sep 9, 2026, 07:48 AM
Package URL
pkg:socket/skills-sh/full-aigc-skills%2Fbaoyu-skills%2Fbaoyu-post-to-x%2F@738dd6f5aa0119e68a9a155b6c839d2c641ccfa485be8b65db693ecf3204e7c4
Security Audit — socket — baoyu-post-to-x