• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer
Sq Magazine LogoSQ Magazine

Smarter Insights for a Fast-Moving Digital World

  • Latest News
  • Statistics
  • About
  • Contact
Subscribe
Sq Magazine Logo
  • Latest News
  • Statistics
  • About
  • Contact
Subscribe
Home » Cybersecurity

TrapDoor Malware Targets npm, PyPI, and Rust Developers

Published on: May 25, 2026
Sofia Ramirez
Written By
Sofia Ramirez
Sofia Ramirez
Senior Tech Writer • 497 Articles
Sofia Ramirez is a technology and cybersecurity writer at SQ Magazine. With a keen eye on emerging threats and innovations, she helps reader...
LATEST POSTS:
How to Improve Your Attention Span: 9 Methods
WhatsApp Scams in 2026: Common Types and How to Spot Them
Cursor’s Unpatched Zero-Day Lets Repos Run Malicious Code
Robert A. Lee
Reviewed By
Robert A. Lee
Robert A. Lee
Senior Editor • 413 Articles
Robert A. Lee is a journalist at SQ Magazine who unpacks the fast-moving worlds of gaming and internet trends. He tracks everything from maj...
LATEST POSTS:
Netflix vs Disney+ vs Amazon Prime Statistics 2026: Viewer Insights
WhatsApp vs Telegram: Which One Is Best in 2026?
AWS CloudFront Outage Triggers Global 5xx Errors
Trapdoor Malware Attacks Rust Pypi And Npm Devs
As Featured In
The New York Times LogoForbes LogoWired LogoDeloitte LogoResearch.com Logo
Share on LinkedIn ChatGPT Perplexity Share on X Share on Facebook

A new malware campaign called TrapDoor is targeting crypto and AI developers through fake developer tools spread across npm, PyPI, and Rust package ecosystems.

Quick Summary – TLDR:

  • TrapDoor malware has infected more than 34 malicious packages and over 380 related versions across npm, PyPI, and Crates.io.
  • Attackers are stealing crypto wallet data, SSH keys, cloud credentials, API keys, and GitHub tokens.
  • The malware also attempts to manipulate AI coding assistants like Claude and Cursor using hidden prompts.
  • Researchers say the campaign specifically targets developers working in crypto, DeFi, AI, and blockchain infrastructure.

What Happened?

Security researchers at Socket uncovered a coordinated malware campaign called TrapDoor that spreads through fake open source developer packages. The malware has already appeared across npm, PyPI, and Rust’s Crates.io repositories, making it one of the broadest cross-ecosystem supply chain attacks seen recently.

The campaign mainly targets developers building crypto, AI, and decentralized finance applications. Researchers say the malware disguises itself as legitimate developer utilities and setup tools to trick users into installing infected packages during normal development work.

🚨 BREAKING: Active supply chain attack across npm, PyPI, and Crates.​io.

Socket detected TrapDoor, a crypto stealer campaign hitting 34 malicious packages and 384 versions and artifacts, with attackers repeatedly pushing new releases across ecosystems.

TrapDoor targets… pic.twitter.com/0CI758NJ6T

— Socket (@SocketSecurity) May 24, 2026

Fake Developer Tools Used to Spread Malware

According to Socket researchers, the attackers created packages that looked like common development helpers. Some of the fake package names included tools for wallet security, Solidity deployment, AI prompt engineering, and blockchain development.

The malicious packages were designed to blend into normal workflows so developers would not suspect anything unusual. Once installed, the malware quietly searched systems for sensitive information.

Researchers said TrapDoor specifically targets:

  • SSH keys
  • AWS credentials
  • GitHub tokens
  • Browser login data
  • Environment variables
  • Crypto wallet information
  • API keys
  • Cloud configuration files

The malware reportedly targeted wallets and platforms connected to Coinbase, Binance, MetaMask, Solana, Sui and Aptos.

AI Coding Assistants Became a New Attack Vector

One of the most unusual parts of the TrapDoor campaign is its attempt to abuse AI coding tools.

Socket CTO Ahmad Nassri said the malware injects hidden instructions into files like .cursorrules and CLAUDE.md. These files are commonly used by AI coding assistants such as Claude and Cursor to understand project instructions.

Researchers said the attackers tried to push AI assistants into running fake “security scans” that would expose sensitive developer secrets and transmit them back to attackers.

The report noted that attackers used hidden Unicode characters and AI themed documentation to disguise malicious instructions inside developer environments.

Newsletter
Don’t chase tech news. We track it for you.

One weekly briefing with the launches, AI developments, and breaches that matter. No filler.

Malware Used Different Tricks Across Ecosystems

TrapDoor adapted its behavior depending on which ecosystem it targeted.

In npm packages, the malware used postinstall scripts to automatically execute malicious code after installation. The payload known as trap-core.js reportedly scanned systems for credentials and even attempted SSH-based lateral movement.

In Rust packages on Crates.io, attackers abused build.rs scripts that automatically run during compilation. These scripts searched for local crypto wallet keystores and sent stolen data to GitHub Gists after encrypting it.

Meanwhile, PyPI packages executed remote JavaScript payloads immediately after import. Researchers said this allowed attackers to change malware behavior remotely without uploading a new package version.

GitHub Activity Raised More Concerns

Researchers also connected the campaign to suspicious GitHub activity. The attackers allegedly opened pull requests on several AI and developer projects while attempting to insert files linked to the malware campaign.

Socket said the repositories showed signs of rapid AI assisted development with partially completed malware components, fake security documentation, and lure repositories designed to appear legitimate.

The report also mentioned that GitHub recently disclosed unauthorized access to internal repositories after an employee device was compromised.

Supply Chain Attacks Continue to Grow

The TrapDoor operation highlights how attackers are increasingly targeting software supply chains and developer environments instead of individual users.

Security researchers warned that developers often install third party packages with elevated permissions without fully reviewing the code, making open source ecosystems attractive targets for attackers.

The campaign also shows how AI development tools are quickly becoming part of the modern attack surface as hackers experiment with new ways to abuse automated coding workflows.

SQ Magazine Takeaway

I think TrapDoor is one of the clearest signs that developers are now becoming the primary target instead of just the end users. Attackers know that one compromised developer machine can unlock wallets, cloud systems, GitHub repositories, and even AI workflows at the same time. What makes this even more worrying is how normal these fake packages looked. Most developers install tools quickly during projects, and that habit is now turning into a major security risk.

The AI assistant angle is what really stands out here. Hackers are no longer just writing malware for operating systems. They are actively trying to manipulate AI coding tools and automated workflows. That changes the security conversation completely.

This article has been reviewed and fact-checked by Robert A. Lee. SQ Magazine follows strict Publishing Principles and a documented Fact-Check Policy to ensure accuracy, transparency, and editorial independence across all content.

Add SQ Magazine as a Preferred Source on Google for updates! Follow on Google News
Share ChatGPT Perplexity

References

  • TrapDoor Crypto Stealer Supply Chain Attack Hits 34 Packages and Hundreds of Versions Across npm, PyPI, and Crates.io
Sofia Ramirez

Sofia Ramirez

Senior Tech Writer


Sofia Ramirez is a technology and cybersecurity writer at SQ Magazine. With a keen eye on emerging threats and innovations, she helps readers stay informed and secure in today’s fast-changing tech landscape. Passionate about making cybersecurity accessible, Sofia blends research-driven analysis with straightforward explanations; so whether you’re a tech professional or a curious reader, her work ensures you’re always one step ahead in the digital world.

Related Posts

Cursor Ai Agent Extension Flaw Unpatched
Cybersecurity

Cursor AI Flaw Lets Hackers Steal API Keys and Run Code Silently

Notepad Faces Cyberattack Affecting All Users
Cybersecurity

Stealthy Cyber Espionage Campaign Hits Notepad++ Users

Daemon Tools Hack Spreads Malware To Global Users
Cybersecurity

DAEMON Tools Hack Spreads Malware to Global Users (New Update)

Disclaimer: The content published on SQ Magazine is for informational and educational purposes only. Please verify details independently before making any important decisions based on our content.

Reader Interactions

Leave a Comment Cancel reply

Primary Sidebar

Connect With Us

facebook x linkedin google-news telegram pinterest whatsapp email
google-preferred-source-badge Add as a preferred source on Google

You Should Also Read

Axios npm Attack Pushes RAT Through Malicious Packages
Zapier, Postman, ENS Hit as Shai-Hulud Malware Infects Hundreds of npm Packages
Cybercriminals Exploit TinyLoader Malware to Hijack Crypto and Infiltrate Networks

Table of Contents

  • Quick Summary – TLDR:
  • What Happened?
  • Fake Developer Tools Used to Spread Malware
  • AI Coding Assistants Became a New Attack Vector
  • Malware Used Different Tricks Across Ecosystems
  • GitHub Activity Raised More Concerns
  • Supply Chain Attacks Continue to Grow
  • SQ Magazine Takeaway
Connect on Telegram

Footer

SQ Magazine Logo

Smarter Insights for a Fast-Moving Digital World

Connect With Us

Follow Us on Google News

Editorial & Trust

  • About
  • Publishing Principles
  • Fact-Check Policy
  • Corrections Policy
  • Ethics Policy
  • Disclaimer

Worth Checking

  • Social Media Attention Span Stats
  • Gen Z Social Media Statistics
  • TikTok vs. Instagram Statistics
  • LLM Hallucination Statistics
  • Spotify User Statistics
  • Apple Customer Loyalty Statistics
Contact Us
13570 Grove Dr #189,
Maple Grove, MN 55311,
United States
10 a.m. to 6 p.m. | Every day

Copyright © 2022–2026 SQ Magazine. All Rights Reserved. Powered by the Neural Stack.

  • Privacy Policy
  • Terms
  • Accessibility Statement
Company
  • About Us
  • Our Team
  • Our Mission
  • Core Values
Discover
  • Brand Assets
    Brand Assets
  • Stats Methodology
    Stats Research Process
  • Glossary
    Glossary
Categories
  • Internet
  • Technology
  • Artificial Intelligence
  • Gaming
  • Cybersecurity
Internet
Netflix vs Disney+ vs Amazon Prime Statistics
Netflix vs Disney+ vs Amazon Prime Statistics 2026: Viewer Insights
Social Media Demographics By Platform
Social Media Demographics by Platform Statistics 2026: A Definitive Guide
Amazon Music Statistics
Amazon Music Statistics 2026: Subscribers, Share and Revenue
How Many People Use YouTube
How Many People Use YouTube 2026: Users by Country
How Many People Work At Amazon
How Many People Work At Amazon 2026: Headcount, Layoffs, Productivity
Hulu Statistics
Hulu Statistics 2026: Subscribers, Revenue and Market Share
Technology
Google Cloud Platform Statistics
Google Cloud Platform Statistics 2026: Market Growth
Asana Statistics
Asana Statistics 2026: Revenue, Customers, AI ARR and Market Share
AWS Statistics
AWS Statistics 2026: Revenue, Market Share and AI Growth
Adobe Creative Cloud Statistics
Adobe Creative Cloud Statistics 2026: Subscribers, Revenue and Market Share
Adobe Statistics
Adobe Statistics 2026: Revenue, ARR, and Workforce Data
Employee Productivity Statistics
Employee Productivity Statistics 2026: Engagement, Costs & Trends
Artificial Intelligence
ChatGPT vs DeepSeek Statistics
ChatGPT vs DeepSeek Statistics 2026: Users, Benchmarks & Pricing
ChatGPT vs Claude vs Gemini vs Perplexity Statistics
ChatGPT vs Claude vs Gemini vs Perplexity Statistics 2026: Users, Revenue & Market Share
How Many People Work At Midjourney
How Many People Work At Midjourney 2026: Lean Team, Big Revenue
Grammarly AI Statistics
Grammarly AI Statistics 2026: Users, Revenue, Funding, Rebrand
Copilot Statistics
Copilot Statistics 2026: Users, Adoption, Revenue and Market Share
AI Image Generation Statistics
AI Image Generation Statistics 2026: Market Size, Adoption & Risks
Gaming
Online Gambling Regulations Statistics
Online Gambling Regulations Statistics 2026: Global Compliance and Enforcement Data
Fantasy Sports Statistics
Fantasy Sports Statistics 2026: Users, Revenue & Trends
Apex Legends Statistics
Apex Legends Statistics 2026: Players, Revenue, and Esports
Fortnite Statistics
Fortnite Statistics 2026: Players, Revenue, Esports, and Engagement
Gamers Statistics
Gamers Statistics 2026: Players, Habits & Global Data
Minecraft Statistics
Minecraft Statistics 2026: 300 Million Copies Sold & 212M Monthly Players
Cybersecurity
Password Statistics
Password Statistics 2026: Credential Theft, MFA, and the Passkey Tipping Point
Identity Theft Statistics
Identity Theft Statistics 2026: Key Fraud Data and Trends
CVE Statistics
CVE Statistics 2026: Severity Distribution and Top Affected Vendors
Dark Web AI Tool Marketplace Statistics
Dark Web AI Tool Marketplace Statistics 2026: Explosive Market Growth
API Security Breach Statistics
API Security Breach Statistics 2026: Hidden Threats
AI Voice Cloning Fraud Statistics
AI Voice Cloning Fraud Statistics 2026: Alarming Trends You Must Know Now
Categories
  • Cybersecurity
  • Artificial Intelligence
  • Internet
  • Technology
  • Gaming
Cybersecurity
Cursor S Unpatched Zero Day Lets Repos Run Malicious Code
Cursor’s Unpatched Zero-Day Lets Repos Run Malicious Code
Notepad 8 9 7 Patches Five Security Vulnerabilities
Notepad++ 8.9.7 Patches Five Security Vulnerabilities
Telegram S T Me Domain Suspended Amid Ofac Sanctions Link
Telegram’s t.me Domain Suspended Amid OFAC Sanctions Link
Shinyhunters Abuses Salesforce Oauth To Bypass Mfa
ShinyHunters Abuses Salesforce OAuth to Bypass MFA
Lidl Confirmed Data Breach Of Online Store
Lidl Confirms Data Breach at Third-Party IT Provider
Ghostcommit Attack Hides Prompt Injection Inside Images
GhostCommit Attack Hides Prompt Injection Inside Images
Artificial Intelligence
Moonshot S Kimi K3 Beats Top U S Ai Models
Moonshot’s Kimi K3 Beats Top U.S. AI Models in Blind Tests
Xai Open Sources Grok Build Coding Agent
Grok Build AI Coding Agent is Now Open Source
Openai Reveals Gpt Red For Powerful Ai Security Testing
OpenAI Reveals GPT Red for Powerful AI Security Testing
Openai S First Hardware Device Is Reportedly A Screenless Speaker
OpenAI’s First Hardware Device Is Reportedly a Screenless Speaker
Claude For Teachers Launched
Anthropic Gives Verified K-12 Teachers Free Claude Access
Kalshi S World Cup Odds In Chatgpt
OpenAI Shows Kalshi’s World Cup Odds in ChatGPT
Internet
Aws Cloudfront Outage Triggers Global 5xx Errors
AWS CloudFront Outage Triggers Global 5xx Errors
Whatsapp Launches Username Reservation Feature
WhatsApp Opens Username Reservations for Its 3 Billion Users
Chrome 149 Update Fixes Serious Vulnerabilities
Google Chrome 149 Fixes 18 Serious Security Flaws
Meta Hands Whatsapp Reins To Cred Founder Kunal Shah
Meta Hands WhatsApp Reins to CRED Founder Kunal Shah
Major X Outage Disrupts Users Worldwide
Major X Outage Disrupts Users Worldwide, Service Restored
Meta Adds 13 Plus Age Verification For Teen Safety
Meta Adds 13+ Content Settings and AI Age Checks for Teens
Technology
Apple S Foldable Iphone Ultra Battery Capacity Allegedly Leaks
Apple’s Foldable iPhone Ultra Battery Capacity Allegedly Leaks
Microsoft Lays Off 4800 Employees
Microsoft Cuts 4,800 Jobs, Resets Xbox Strategy
Chrome Update Fixes 382 Vulnerabilities
Chrome 150 Patches 382 Security Fixes, 15 Critical
Apple Leak Reveals Six New Iphones For 2027
Massive Apple Leak Reveals Six New iPhones for 2027
Google Finance Comes Out Of Beta With Android App
Google Finance Gets Major AI Upgrade and New Android App
Windows Recycle Bin Bug Confirmed After June Security Update
Windows Recycle Bin Bug Confirmed After June Security Update
Gaming
Gta Vi Official Cover Art
GTA 6 Pre-Orders Start June 25, New Cover Art Unveiled
Epic Games Teases Unreal Engine 6 For Rocket League
Epic Games Teases Unreal Engine 6 for Rocket League
Stardew Valley Launched For Nintendo Switch 2 Edition
Stardew Valley Switch 2 Edition Arrives with Online Co-op
Hogwarts Legacy Game Crosses 40m Downloads
Hogwarts Legacy Crosses 40M Sales, Beating Industry Giants
Pubg Black Budget Closed Alpha Launched
PUBG: Black Budget Launches Closed Alpha Test With a Bold PvPvE Twist
Counter Strike 2 Skin Market Crashes After Valve Update
Counter-Strike 2’s $5.9 Billion Skin Economy Just Got Shattered
Newsletter

Too much tech noise?

We respect your time. One high-signal briefing a week — tech, AI, and security. Nothing else.

Newsletter

The SQ Briefing

We track tech, AI, and security 24/7. You get a 5-minute weekly summary.