baoyu-danger-x-to-markdown

Warn

Audited by Gen Agent Trust Hub on Mar 28, 2026

Risk Level: MEDIUMCOMMAND_EXECUTIONCREDENTIALS_UNSAFEDATA_EXFILTRATIONEXTERNAL_DOWNLOADSPROMPT_INJECTION
Full Analysis
  • [COMMAND_EXECUTION]: The skill uses node:child_process modules to execute system-level commands across various scripts.
  • It spawns browser processes (Chrome or Microsoft Edge) to facilitate session cookie extraction via CDP.
  • It executes ps aux on Unix-like systems to discover running browser instances and their debug ports.
  • It uses execSync to resolve Windows user profile paths in WSL environments.
  • [CREDENTIALS_UNSAFE]: The skill includes a hardcoded API Bearer token in scripts/constants.ts. Additionally, the core logic is designed to harvest sensitive session identifiers (auth_token, ct0, twid) from the user's local browser profile.
  • [DATA_EXFILTRATION]: The skill automates the extraction of browser session cookies and stores them in a local file (cookies.json). Although no transmission of these credentials to an external third-party server (other than X domains) was detected, the automated harvesting and local storage of session tokens represent a significant security risk.
  • [EXTERNAL_DOWNLOADS]: The skill performs network requests to X API endpoints and downloads media assets (images and videos) from remote domains such as pbs.twimg.com and video.twimg.com to the user's local file system.
  • [PROMPT_INJECTION]: The skill is susceptible to indirect prompt injection because it processes untrusted data from X tweets and articles.
  • Ingestion points: External content is ingested via API calls in scripts/graphql.ts and scripts/thread.ts.
  • Boundary markers: The instructions do not define clear boundary markers or protective delimiters when processing or displaying the extracted tweet content.
  • Capability inventory: The skill maintains capabilities to write to the file system, execute shell commands, and perform network operations, which could be abused if malicious content is processed.
  • Sanitization: While the skill implements basic markdown escaping for media alt text and sanitizes file slugs, it lacks comprehensive filtering of instructions embedded in the tweet text itself.
Audit Metadata
Risk Level
MEDIUM
Analyzed
Mar 28, 2026, 12:55 AM