canghe-post-to-x

Warn

Audited by Socket on Sep 17, 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 17, 2026, 02:46 AM
Package URL
pkg:socket/skills-sh/freestylefly%2Fcanghe-skills%2Fcanghe-post-to-x%2F@754781246d8f70862ee22f5d6f4809f6d7aa80f1923aceed276f527b0e224771