baoyu-danger-x-to-markdown
Pass
Audited by Gen Agent Trust Hub on Mar 16, 2026
Risk Level: SAFECOMMAND_EXECUTIONEXTERNAL_DOWNLOADSCREDENTIALS_UNSAFEPROMPT_INJECTION
Full Analysis
- [COMMAND_EXECUTION]: The script
scripts/cookies.tsspawns a local browser process (Google Chrome, Microsoft Edge, or Chromium) usingnode:child_process.spawn. This is used to capture session cookies via the Chrome DevTools Protocol (CDP) when necessary credentials are not provided via environment variables. - [EXTERNAL_DOWNLOADS]: The skill fetches content from X's GraphQL API and downloads JavaScript bundles from
abs.twimg.comto resolve API operation IDs. Additionally,scripts/media-localizer.tsdownloads images and videos frompbs.twimg.comandvideo.twimg.comto the local filesystem for offline markdown reference. - [CREDENTIALS_UNSAFE]: A hardcoded Bearer token is present in
scripts/constants.tsfor guest access. The skill also manages sensitive session cookies (auth_token,ct0) which are persisted in a localcookies.jsonfile in the application's data directory. - [PROMPT_INJECTION]: The skill is susceptible to indirect prompt injection because it ingests untrusted text from external tweets and articles. This content is converted into Markdown and presented to the agent without advanced sanitization for embedded instructions.
- Ingestion points: Content is retrieved from X via
scripts/graphql.tsandscripts/thread.ts. - Boundary markers: The output is structured with YAML front matter and Markdown headers, but lacks explicit 'ignore instructions' delimiters for the ingested text.
- Capability inventory: The skill has the ability to write files to the disk and spawn system processes (browsers).
- Sanitization: Limited to basic Markdown escaping for media metadata.
Audit Metadata