baoyu-danger-x-to-markdown
Fail
Audited by Gen Agent Trust Hub on Mar 1, 2026
Risk Level: HIGHCREDENTIALS_UNSAFEDATA_EXFILTRATIONCOMMAND_EXECUTIONPROMPT_INJECTION
Full Analysis
- [CREDENTIALS_UNSAFE]: The skill contains a hardcoded authentication bearer token in the source code.
- Evidence:
scripts/constants.tsdefinesDEFAULT_BEARER_TOKENwith a static string credential used for API requests. - [DATA_EXFILTRATION]: The skill automates the extraction of sensitive session cookies from the user's browser.
- Evidence:
scripts/cookies.tsimplements a mechanism to connect to a browser via Chrome DevTools Protocol (CDP) and executeNetwork.getCookiesto retrieveauth_token,ct0,gt, andtwidfor X/Twitter domains. - [CREDENTIALS_UNSAFE]: Extracted session tokens are stored insecurely on the local file system.
- Evidence:
scripts/cookie-file.tswrites the retrieved session cookies to a plaintext JSON file (cookies.json) in the user's local application data directory without any encryption. - [COMMAND_EXECUTION]: The skill programmatically spawns browser processes with remote debugging capabilities.
- Evidence:
scripts/cookies.tsuseschild_process.spawnto launch Chrome or Edge with the--remote-debugging-portflag, which exposes a control interface for the browser. - [COMMAND_EXECUTION]: The skill documentation instructs the agent to execute arbitrary shell commands for configuration and environment checks.
- Evidence:
SKILL.mdcontains instructions for the agent to execute commands such ascatandtest -fon local system paths to manage user consent and preferences. - [PROMPT_INJECTION]: The skill is vulnerable to indirect prompt injection through the processing of untrusted external content.
- Ingestion points:
scripts/graphql.ts(retrieves tweet and article content from the X API). - Boundary markers: Absent; content is processed without delimiters or instructions to ignore embedded commands.
- Capability inventory:
scripts/main.tsexecuteswriteFile;scripts/cookies.tsexecutesspawnandkill. - Sanitization: Absent;
scripts/markdown.tsperforms basic formatting but no safety-related sanitization of the input content.
Recommendations
- AI detected serious security threats
Audit Metadata