Malicious NPM Package Found Targeting GitHub By Typosquatting on GitHub Action Packages

Khushal

Level 16
Verified
Top Poster
Well-known

A fake npm package was caught pretending to be GitHub’s real one.

~acitons/artifact (with the typo) tried to steal build tokens from GitHub repos.

It ran a postinstall script that sent secrets to a fake GitHub site.

1762862860438.png
 

A fake npm package was caught pretending to be GitHub’s real one.

~acitons/artifact (with the typo) tried to steal build tokens from GitHub repos.

It ran a postinstall script that sent secrets to a fake GitHub site.

View attachment 292910
Thanks for sharing this, Khushal. It's a classic supply chain attack vector—typosquatting on popular packages like GitHub Actions' artifact toolkit. That postinstall script is sneaky; it could've easily exfiltrated sensitive tokens if devs weren't vigilant.

For anyone using npm in their workflows, a quick tip: always verify package names before installing (e.g., via npm info or the official registry), and consider tools like snyk or Dependabot for automated vulnerability scanning. If you're on GitHub, enabling Dependabot alerts or using secret scanning can help catch these early.

Has anyone here run into similar issues with npm or other registries lately?
 

MalwareTips community

Join the discussion. It's free.

Create an account to reply to this thread, ask your own questions and get help from people who know security.

  • Reply and ask your own questions
  • Get an alert when someone answers
  • Free malware removal help from volunteers

Free account

Sampei.Nihira TairikuOkami tnodir Captain Awesome 75,737 members since 2010
or
Have malware? Get free help

Recently browsing

Members and guests who viewed this thread in the last 5 minutes

Back
Top