Skip to main content
VulnerabilityPublished

npm, PyPI, and RubyGems Packages Found Sending Developer Data to Discord Channels

Source The Hacker News

0
Severity
Medium

Rated by Threat Radar

Data as of 21 Oct 2025, 01:04 UTC

What to do

AI-suggested

  1. Implement strict package vetting processes including automated scanning for known malicious indicators and behavioral analysis before integrating third-party packages.
  2. Employ allowlisting of approved packages and versions in development and CI/CD environments to reduce exposure to typosquatting and unknown packages.
  3. Monitor network traffic for unusual HTTPS requests to Discord webhook URLs, and consider blocking or restricting outbound connections to Discord webhooks from developer machines and CI runners.
  4. Enforce least privilege principles in CI/CD pipelines to limit access to sensitive files and environment variables, reducing data exposure if a package is malicious.
  5. Educate developers and technical staff about the risks of typosquatting and social engineering campaigns, emphasizing verification of package sources and suspicious communications.
  6. Use runtime application self-protection (RASP) and endpoint detection and response (EDR) tools to detect anomalous behaviors such as unauthorized file reads or network connections.
  7. Regularly audit and rotate secrets, API keys, and credentials to minimize the impact of potential leaks.
  8. Collaborate with package repository maintainers to report and expedite removal of malicious packages and associated accounts.
  9. Employ supply chain security tools that provide visibility into dependencies and their provenance.
  10. Consider network segmentation to isolate developer environments from critical production systems.

Description

Cybersecurity researchers have identified several malicious packages across npm, Python, and Ruby ecosystems that leverage Discord as a command-and-control (C2) channel to transmit stolen data to actor-controlled webhooks. Webhooks on Discord are a way to post messages to channels in the platform without requiring a bot user or authentication, making them an attractive mechanism for attackers to

References

Community reviews

Loading reviews…