baoyu-danger-x-to-markdown
Audited by Socket on Jul 13, 2026
2 alerts found:
SecurityAnomalyThis module is a configuration/constants file that is likely used to perform authenticated/automated interaction with X/Twitter. The presence of a hardcoded exported bearer token and exports that strongly indicate use of local browser session/cookies (cookie names + derived Chrome profile path) creates a high secret-exposure and credential misuse risk. No direct malicious actions are visible in this fragment, so malware intent is not proven, but security review/secret rotation and validation in consuming modules is warranted.
No explicit obfuscated malware or direct outbound exfiltration is present in this module. However, it implements a high-impact capability: harvesting X/Twitter authentication cookies via local Chrome CDP, optionally persisting them to disk, and returning them in a Cookie header for downstream authenticated requests. Combined with partial token leakage in logs and sensitive token persistence (permissions not shown here), this is a security-sensitive supply-chain component that warrants careful review of intended use, log exposure, and cookie-file storage controls.