Security

@antv npm Attack Hits CI/CD Secrets and Tokens

3 min read

Summary

Microsoft has disclosed an active supply chain attack involving compromised @antv npm packages that used malicious preinstall scripts to steal credentials from GitHub Actions and other CI/CD environments. The campaign matters because it spread through popular downstream dependencies, putting developer pipelines, cloud secrets, and software supply chains at risk.

Need help with Security?Talk to an Expert

Introduction

Microsoft has uncovered a significant npm supply chain attack affecting the @antv package ecosystem. Because these packages are widely used directly and transitively, the compromise can reach far beyond a single project and into CI/CD pipelines, cloud environments, and downstream software builds.

For IT and security teams, this is a reminder that package ecosystem compromises can quickly become credential theft and cloud access incidents.

What happened

A threat actor compromised an @antv maintainer account and published malicious package versions. The malicious code executed during npm install through a preinstall hook and targeted GitHub Actions runners on Linux.

Key technical findings

  • Malicious @antv packages propagated through dependency chains into widely used libraries such as echarts-for-react
  • The payload was heavily obfuscated and designed to evade analysis
  • It executed silently during package installation
  • It focused on CI/CD environments, especially GitHub Actions
  • It installed Bun if needed and launched a second-stage payload

Credentials and secrets targeted

Microsoft says the malware attempted to steal credentials from multiple platforms, including:

  • GitHub tokens and repository secrets
  • AWS credentials and Secrets Manager data
  • HashiCorp Vault tokens
  • npm tokens
  • Kubernetes service account secrets
  • 1Password CLI data

The payload also scraped GitHub Actions runner process memory to extract secrets directly, potentially bypassing normal secret masking protections.

Why this matters for administrators

This is more than a developer issue. If affected packages were installed in enterprise build systems, attackers may have gained access to:

  • Source code repositories
  • CI/CD secrets and pipelines
  • Cloud workloads and infrastructure
  • Package publishing credentials

Microsoft also notes the malware attempted privilege escalation, dual-channel exfiltration, and even SLSA provenance forgery, which undermines trust in software supply chain attestations.

What GitHub did

GitHub responded by:

  • Removing 640 malicious packages
  • Invalidating 61,274 npm granular access tokens with write permissions and 2FA bypass
  • Publishing advisories and issuing Dependabot and npm audit alerts

Administrators should act quickly:

  • Review dependency trees for direct or transitive use of affected @antv packages
  • Identify systems that installed or built these packages during the exposure window
  • Rotate GitHub, npm, AWS, Vault, Kubernetes, and other potentially exposed credentials
  • Audit GitHub Actions workflows, runner logs, and repository changes for suspicious activity
  • Check for unauthorized repos, commits, secrets access, or package publication events
  • Pin known-good package versions and strengthen dependency controls

Bottom line

The @antv compromise shows how a single npm maintainer account takeover can cascade into widespread CI/CD credential theft. Security and DevOps teams should treat any exposure as a potential pipeline and cloud credential incident, not just a package hygiene issue.

Need help with Security?

Our experts can help you implement and optimize your Microsoft solutions.

Talk to an Expert

Stay updated on Microsoft technologies

npmsupply chain securityGitHub ActionsCI/CDcredential theft

Related Posts

Security

MacSync Stealer Hunting: New Behavioral Detection

Microsoft Defender Experts detailed how defenders can track MacSync Stealer on macOS by focusing on recurring behaviors instead of fast-changing domains. The research links more than 30 related domains and shows how process, command-line, and network telemetry can reveal payload delivery, staging, and chunked data exfiltration.

Security

Microsoft Defender Experts MDR Named IDC Leader

Microsoft has been named a Leader in the 2026 IDC MarketScape for enterprise MDR/MXDR, highlighting the strength of Microsoft Defender Experts MDR. The recognition matters for security teams evaluating managed detection and response services that combine native Defender integration, large-scale threat intelligence, AI-assisted operations, and 24/7 expert support.

Security

DeadLock Ransomware: Microsoft Details New TTPs

Microsoft Threat Intelligence has published a technical breakdown of DeadLock ransomware, a Rust-based encryptor that uses decentralized infrastructure for victim communications and leak operations. The report highlights geofencing, privilege escalation, service disruption, and recovery workflows, giving security teams practical indicators and mitigation guidance to strengthen ransomware defenses.

Security

macOS ClickFix Campaign Hides Behind Fingerprinting

Microsoft Threat Intelligence reports that a macOS ClickFix campaign has shifted from openly serving malicious lures to using server-side browser fingerprinting that mainly exposes the payload to likely macOS victims. The change makes the operation harder for crawlers, sandboxes, and defenders to spot, increasing the importance of hunting for shared infrastructure patterns and strengthening endpoint protections.

Security

Microsoft CNAPP Leader: KuppingerCole 2026 Report

Microsoft has been named a Leader across all four categories in KuppingerCole’s 2026 CNAPP Leadership Compass, highlighting Defender for Cloud’s unified approach to cloud and AI security. The recognition matters for security teams as CNAPP platforms increasingly focus on exploitability, attack path analysis, AI security posture, and integrated SOC operations across multicloud environments.

Security

ChainDrop npm Attack: Self-Propagating Worm Explained

Microsoft has detailed ChainDrop, a large-scale npm supply chain attack that compromised more than 400 packages using a self-propagating credential-stealing worm. The campaign matters because it targets developer workstations and CI/CD pipelines, steals cloud and publishing credentials, and can automatically republish infected packages across additional publishers.