Cyber Security News

Hackers Compromise 34 npm, PyPI, and Crates Packages in Major Supply Chain Attack

Hackers have launched a large-scale software supply chain attack targeting developers across npm, PyPI, and Crates.io, compromising at least 34 open-source packages and hundreds of associated versions.

Security researchers at Socket are tracking the campaign as “TrapDoor,” a crypto-focused credential stealer designed to infiltrate developer environments and exfiltrate sensitive data.

Cross-Ecosystem Supply Chain Attack

The TrapDoor campaign stands out due to its coordinated execution across three major package ecosystems. The attack began on May 22, 2026, with the upload of a malicious PyPI package named eth-security-auditor, followed by waves of similar packages published under multiple accounts.

Researchers identified over 384 malicious versions distributed across npm, PyPI, and Crates.io. These packages masquerade as legitimate developer utilities, including tools for blockchain development, AI workflows, and security auditing. Their naming strategy increases the likelihood of adoption by developers working in crypto, DeFi, and AI-related projects.

partially implemented extraction concepts mixed with working malware components.(Source: Guthub)

TrapDoor uses ecosystem-specific techniques to execute malicious code during normal development workflows:

  • npm packages trigger payload execution via post-install scripts.
  • PyPI packages execute remote JavaScript during import.
  • Crates.io packages abuse Rust’s build.rs to run malicious code at compile time.

A shared payload, commonly known as trap-core.js, is deployed to npm packages. This script scans infected systems for sensitive data, validates stolen credentials, and establishes persistence mechanisms.

For example, when a developer installs a seemingly harmless package like wallet-security-checker, the post-install script silently executes, harvesting SSH keys and cloud credentials while embedding persistence hooks into the system.

Data Theft and Persistence

The malware is designed to steal a wide range of sensitive information:

  • SSH keys and developer credentials
  • AWS access keys and GitHub tokens
  • Crypto wallet data (Solana, Sui, Aptos)
  • Browser-stored login data and session information
  • Environment variables and API keys

To maintain access, TrapDoor deploys multiple persistence techniques, including Git hooks, shell configurations, cron jobs, and systemd services. It can also attempt lateral movement using stolen SSH credentials, increasing the risk of broader infrastructure compromise.

A notable aspect of the campaign is its attempt to exploit AI-powered developer tools. The attackers inject hidden instructions into files such as .cursorrules and CLAUDE.md, which AI coding assistants use.

These instructions are designed to trick AI tools into executing malicious “security scans” that expose sensitive data. In some cases, attackers used invisible Unicode characters to conceal malicious directives, making detection more difficult.

Additionally, the threat actor attempted to insert these files into legitimate GitHub repositories via pull requests, disguising them as helpful development guidelines.

The campaign is linked to a GitHub account hosting payloads and configuration files via GitHub Pages. The same infrastructure was reused across all three ecosystems, helping researchers correlate the activity into a single coordinated operation.

The attacker also maintained repositories documenting malware design concepts, including credential harvesting, AI prompt injection, and persistence strategies, indicating a structured and evolving attack framework.

TrapDoor highlights a growing trend in supply chain attacks that target not just code dependencies, but the entire developer environment. By combining traditional techniques with AI-focused abuse, attackers are expanding their reach into modern development workflows.

Developers and organizations are advised to:

  • Audit dependencies before installation
  • Use tools that de
  • tect malicious package behavior
  • Monitor for unusual post-install or build-time activity
  • Restrict access to sensitive credentials and rotate keys regularly

This campaign demonstrates how even low-download packages can pose significant risks when strategically designed to target high-value developer environments.

Key TrapDoor campaign packages

EcosystemPackage nameLikely lure theme / description
npmasync-pipeline-builderGeneric async workflow / pipeline helper for projects
npmbuild-scripts-utilsBuild automation utilities for JavaScript/Node projects
npmchain-key-validatorBlockchain / key validation helper for crypto projects
npmcrypto-credential-scanner“Security” tool for scanning crypto-related credentials
npmdefi-env-auditorDeFi environment audit / security checking utility
npmdefi-threat-scannerThreat-scanning helper for DeFi developers
npmdeployment-key-auditorDeployment key and credential auditing helper
npmdev-env-bootstrapperEnvironment bootstrap/setup tool for developers
npmeth-wallet-sentinelEthereum wallet monitoring / safety helper
npmllm-context-compressorLLM / AI context size optimization helper
npmmnemonic-safety-checkSeed phrase / mnemonic safety checker for wallets
npmprompt-engineering-toolkitPrompt engineering helper for AI and LLM workflows
npmsolidity-deploy-guardSolidity deployment guard / security helper
npmwallet-backup-verifierWallet backup verification / safety checking tool
npmwallet-security-checkerGeneral wallet “security check” helper
npmweb3-secrets-detectorSecret and key detector for Web3 projects
npmworkspace-config-loaderWorkspace configuration loader for dev environments
PyPIcryptowallet-safetyPython tool for crypto wallet safety checks
PyPIdata-pipeline-checkData pipeline validation / QA helper
PyPIdefi-risk-scannerDeFi risk analysis / scanning tool
PyPIenv-loader-cliCLI for loading local environment variables
PyPIeth-security-auditorEthereum project “security auditor” (first observed)
PyPIgit-config-syncGit configuration sync helper for developers
PyPIsolidity-build-guardSolidity build guard / security helper
Cratesmove-analyzer-buildMove language build / analysis helper
Cratesmove-compiler-toolsCompiler helper tools for Move language
Cratesmove-project-builderProject builder for Move-based projects
Cratessui-framework-helpersHelper tools for Sui framework developers
Cratessui-move-build-helperBuild helper for Sui/Move projects
Cratessui-sdk-build-utilsSDK build utilities for Sui ecosystem

Follow us on Google News, LinkedIn, and X to Get Instant Updates and Set GBH as a Preferred Source in Google.

Divya

Divya is a Senior Journalist at GBhackers covering Cyber Attacks, Threats, Breaches, Vulnerabilities and other happenings in the cyber world.

Recent Posts

Microsoft Paint Vulnerability Allows Hackers to Execute Malicious Code Remotely Without User Interaction

Microsoft has announced a vulnerability in Windows Paint that could let unauthenticated attackers execute malicious…

21 minutes ago

ARTEX AI Framework Linked to Bank Breaches and Cloud Attacks Found Exposed Across Hundreds of Servers

An autonomous penetration-testing framework linked to South Korean banking breaches and cloud supply-chain attacks is…

51 minutes ago

Shopify Makes IP Allowlisting Mandatory for All Public Apps to Prevent Stolen API Token Abuse

Shopify is making IP allowlisting mandatory for all public apps to limit abuse of stolen…

1 hour ago

OpenAI’s New GPT-6 Cyber Finds 81 High-Severity Firefox Vulnerabilities and 948 Linux Kernel Exploits

OpenAI has introduced GPT-6 Cyber, a security-focused model built to find and validate exploitable vulnerabilities…

1 hour ago

OpenMatter Network Positions Decentralized Computing as an Alternative to Data Centers for AI

Melbourne, Florida, November 5th, 2026, CyberNewswire OpenMatter Network, a pioneer in decentralized infrastructure for agentic…

13 hours ago

China-Aligned Hackers Hijack Popular Sogou Keyboard Software to Secretly Install DarkVigil Malware

A China-aligned espionage group abused the update traffic of Sogou Input Method, one of China's…

18 hours ago