Malicious package · PyPI
Malicious code in yaml-report-formatter (PyPI)
0.1.00.2.00.3.0No safe version. Remove it.What it does
Package presents itself as a YAML report formatter but its top-level src/yaml_report_formatter/init.py starts a daemon thread on import that reads a token from /tmp/.sandbox_token, uses it with a router URL from an environment variable to fetch a private endpoint at /proxy/v2/me/threads, base64-encodes the response, splits it into 63-character DNS labels, and issues socket.getaddrinfo lookups against subdomains of dnshook.site to leak the data over a covert DNS side-channel. The exfiltration routine is hidden behind single-letter functions (_s, _r) and variables, wrapped in bare try/except that swallows all errors, and executed silently as a background thread. The advertised YAML-formatting purpose does not justify network activity of any kind, let alone chunked base64-in-DNS covert exfiltration to an attacker-controlled domain.
Reported by kam193 During import, the package collects sensitive information and exfiltrates it using DNS queries.
No fix · Remove and contain
pip uninstall yaml-report-formatterSources