baoyu-post-to-x

Warn

Audited by Socket on Jul 13, 2026

2 alerts found:

SecurityAnomaly
SecurityMEDIUM
scripts/paste-from-clipboard.ts

This dependency implements cross-platform OS-level keystroke injection to perform a real paste (Cmd+V/Ctrl+V) into the active UI context, explicitly aiming to bypass detection of synthetic events. The snippet does not show direct data theft or network exfiltration, but it is inherently abuse-prone (clipboard/automation enabling) and contains a concrete script-injection risk on macOS by interpolating the unvalidated --app value into an AppleScript program executed by osascript. Overall, treat as a security-sensitive automation component and restrict/control how CLI inputs and execution context are provided.

Confidence: 74%Severity: 72%
AnomalyLOW
scripts/x-utils.ts

No direct malware payload is visible in this file fragment (no explicit exfiltration, backdoor, or command-and-control). However, it has elevated security risk due to (a) automated extraction/verification of X/Twitter authentication cookies via CDP and (b) executing clipboard operations by spawning local helper scripts through `npx -y bun` with inherited stdio and caller-influenced arguments, plus (c) deleting lock artifacts in a supplied profile directory. This warrants careful review of the helper scripts and the downstream handling of retrieved session cookies.

Confidence: 62%Severity: 66%
Audit Metadata
Analyzed At
Jul 13, 2026, 08:06 AM
Package URL
pkg:socket/skills-sh/full-stack-skills%2Fbaoyu-skills%2Fbaoyu-post-to-x%2F@7c4e93cfa77f3a7f669997132b6c0fda88202700f8faffb02f8909d53e0c8af5
Security Audit — socket — baoyu-post-to-x