baoyu-post-to-x

Warn

Audited by Socket on Oct 26, 2026

2 alerts found:

Securityx2
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%
SecurityMEDIUM
scripts/md-to-html.ts

No clear evidence of deliberate malware/backdoor behavior in this module. However, it is security-sensitive: it downloads arbitrary attacker-controlled HTTP(S) URLs (including redirects) and writes the responses to disk, creating an SSRF/uncontrolled egress risk. Separately, its Markdown-to-HTML conversion performs insufficient escaping and inserts unvalidated link href values directly into HTML, creating a high XSS/HTML-injection risk if the resulting HTML is rendered or served without robust sanitization at a higher layer.

Confidence: 72%Severity: 74%
Audit Metadata
Analyzed At
Oct 26, 2026, 10:52 AM
Package URL
pkg:socket/skills-sh/anbeime%2Fskill%2Fbaoyu-post-to-x%2F@d693ca0df5ab60d484a19ef2b4a072c65e634316