Hackers News Hackers News
  • CyberSecurity News
  • Threats
  • Attacks
  • Vulnerabilities
  • Breaches
  • Comparisons

Social Media

Hackers News Hackers News
  • CyberSecurity News
  • Threats
  • Attacks
  • Vulnerabilities
  • Breaches
  • Comparisons
Search the Site
Popular Searches:
technology Amazon AI
Recent Posts
Microsoft Teams to Gain New Security Detection Reporting Feature
August 9, 2026
Critical Metabase Vulnerability Exploited to Gain Admin Access
August 9, 2026
Cisco IOS XE Zero-Day Exploited, OWASP Top 10 for LLM
August 9, 2026
Home/CyberSecurity News/Critical Supply Chain Attack Compromises 34 npm, PyPI, and Crates Packages
CyberSecurity News

Critical Supply Chain Attack Compromises 34 npm, PyPI, and Crates Packages

Key Takeaways A new supply chain attack, dubbed “TrapDoor,” is actively distributing 34 malicious packages across npm, PyPI, and Crates.io. The primary goal of the campaign is to steal...

Emy Elsamnoudy
Emy Elsamnoudy
May 25, 2026 4 Min Read
64 0

Key Takeaways

  • A new supply chain attack, dubbed “TrapDoor,” is actively distributing 34 malicious packages across npm, PyPI, and Crates.io.
  • The primary goal of the campaign is to steal developer credentials and cryptocurrency wallets, specifically targeting individuals in the crypto, DeFi, Solana, and AI sectors.
  • TrapDoor employs ecosystem-specific execution methods and sophisticated obfuscation techniques, including zero-width Unicode characters to manipulate AI coding assistants.
  • Security firm Socket detected the malicious packages rapidly, limiting widespread adoption, but the campaign highlights persistent threats to software supply chains.

A significant new supply chain attack, identified as the “TrapDoor” campaign, is currently deploying 34 harmful packages and over 384 associated versions across major package repositories including npm, PyPI, and Crates.io. The sophisticated operation aims to compromise developer credentials and siphon off cryptocurrency holdings.

Table Of Content

  • Key Takeaways
  • Cross-Ecosystem Attack Vectors
  • What You Should Do

This malicious campaign specifically targets developers engaged in the cryptocurrency, decentralized finance (DeFi), Solana blockchain, and artificial intelligence (AI) communities. It achieves this by camouflaging its malware as legitimate developer utilities and security auditing tools.

The earliest component of the TrapDoor campaign was observed on May 22, 2026, with the publication of the PyPI package [email protected]. The threat rapidly expanded to other registries, with packages uploaded in distinct waves. Attackers used deceptive names such as prompt-engineering-toolkit, solidity-deploy-guard, and defi-threat-scanner to imbue the packages with a false sense of legitimacy within relevant developer ecosystems.

Security researchers at Socket successfully identified these TrapDoor releases with a median detection time of just 5 minutes and 27 seconds. This swift action allowed the entire campaign to be classified as malicious before it could achieve widespread adoption among developers.

Cross-Ecosystem Attack Vectors

The TrapDoor campaign leverages distinct, ecosystem-specific execution pathways to maximize its impact during typical developer installation and build processes. By customizing the attack vector for each package registry, the threat actor ensures the malicious code executes silently before developers can thoroughly inspect underlying dependencies.

Registry Target Execution Method Notable Payload Behavior Encryption and Exfiltration
npm Postinstall hooks. Deploys a shared trap-core.js payload for persistent credential harvesting. Uses Fernet and ECDH encryption while validating credentials via API.
PyPI Auto-execute on import. Downloads a remote JavaScript payload from GitHub Pages via node -e. Externally hosted payload allows dynamic behavioral updates without new releases.
Crates.io Rust build.rs scripts. Actively searches for and targets local Sui and Move developer keystores. Employs XOR encryption utilizing the hardcoded key cargo-build-helper-2026.

TrapDoor is designed to harvest an extensive array of sensitive developer data. This includes targeting Sui, Solana, and Aptos crypto wallets, as well as SSH keys, browser profiles, and AWS environment variables.

The core npm payload, a 1,149-line JavaScript file named trap-core.js, is engineered to establish long-term access. It achieves complex persistence through various mechanisms, including systemd services, cron jobs, Git hooks, and shell hooks.

Furthermore, any stolen SSH keys are subsequently repurposed to enable automated lateral movement. This tactic effectively transforms individual compromised workstations into persistent access points for broader corporate network breaches.

A distinctive feature of the TrapDoor campaign is its deliberate targeting of AI coding assistants. This is accomplished by modifying .cursorrules and CLAUDE.md project files.

The threat actor employs zero-width Unicode characters to obscure malicious prompts, thereby tricking AI systems into performing hostile credential exfiltration under the guise of executing an automated project security scan, as reported by Socket.

To scale this specific attack vector, the attacker utilized the GitHub account ddjidd564 to submit deceptive pull requests containing these poisoned configuration files to prominent open-source AI projects, including LangChain, MetaGPT, and OpenHands.

The attacker maintains a sophisticated command and control infrastructure hosted on GitHub Pages. This infrastructure hosts active malicious configuration files alongside a detailed AUDIT-MATRIX.md framework design document.

This operational playbook outlines a “Universal AI Agent Extraction Framework” that strategically relies on a disguise layer. This layer maps stealthy credential theft to seemingly benign developer automation workflows.

To maximize the value of exfiltrated data, the payloads actively validate stolen AWS and GitHub tokens via live API queries. They also utilize advanced cryptography across the different ecosystems to evade standard network detection mechanisms.

What You Should Do

  • Review Dependencies: Scrutinize all third-party packages and libraries used in your projects, especially those from npm, PyPI, and Crates.io. Verify package authenticity and developer reputation.
  • Implement Supply Chain Security Tools: Utilize tools that automatically scan for malicious packages and vulnerable dependencies.
  • Monitor Post-Install Scripts: Be cautious of packages that execute extensive scripts during installation (e.g., npm post-install hooks, Rust build.rs scripts) and understand their purpose.
  • Segregate Development Environments: Isolate development environments from production systems and sensitive corporate networks to limit lateral movement in case of a compromise.
  • Rotate Credentials Regularly: Regularly rotate API keys, SSH keys, and other developer credentials.
  • Educate on AI Assistant Security: Be aware of the risks of manipulating AI coding assistants with obscured prompts and ensure secure configurations for these tools.

Disclaimer: HackersRadar reports on cybersecurity threats and incidents for informational and awareness purposes only. We do not engage in hacking activities, data exfiltration, or the hosting or distribution of stolen or leaked information. All content is based on publicly available sources.

Tags:

AttackBreachHackerMalwareSecurityThreat

Share Article

Emy Elsamnoudy

Emy Elsamnoudy

Emy is a cybersecurity analyst and reporter specializing in threat hunting, defense strategies, and industry trends. With expertise in proactive security measures, Emily covers the tools and techniques organizations use to detect and prevent cyber attacks. She is a regular speaker at security conferences and has contributed to industry reports on threat intelligence and security operations. Emily's reporting focuses on helping organizations improve their security posture through practical, actionable insights.

Previous Post

Best Malware Sandbox Tools for Security Teams in 2024

Next Post

Wireshark 4.6.6 Patches Dissector Crash Vulnerability

No Comment! Be the first one.

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Popular Posts
OpenAI Pauses Astra Model Development to Assess Cybersecurity Risks
August 8, 2026
Critical Linux Kernel SCTP Vulnerability Lets Attackers Gain Root
August 7, 2026
Critical WordPress XSS2Shell Flaw Allows Remote Code Execution
August 7, 2026
Top Authors
Marcus Rodriguez
Marcus Rodriguez
Emy Elsamnoudy
Emy Elsamnoudy
Jennifer sherman
Jennifer sherman
Let's Connect
156k
2.25m
285k

Related Posts

Jennifer sherman
By Jennifer sherman
Threats

GlassWorm Attacks macOS via Malicious VS Code…

January 1, 2026
Emy Elsamnoudy
By Emy Elsamnoudy
Attacks

ClickFix Attack Hides Malicious Code via Stegan Security

January 1, 2026
Sarah simpson
By Sarah simpson
Vulnerabilities

MongoBleed Detector Tool Released to Detect MongoDB Vulnerability(CVE-2025-14847)

January 1, 2026
Emy Elsamnoudy
By Emy Elsamnoudy
Breaches

Conti Ransomware Gang Leaders & Infrastructure Exposed

January 1, 2026
Hackers News Hackers News
  • [email protected]

Quick Links

  • Contact Us
  • Privacy Policy
  • Terms of service

Categories

Attacks
Breaches
Comparisons
CyberSecurity News
Threats
Vulnerabilities

Let's keep in touch

receive fresh updates and breaking cyber news every day and week!

All Rights Reserved by HackersRadar ©2026

Follow Us