---
title: "Discussion on \"NPM Is Totally Compromised. \nHow Do You Run `npm install` Safely Now?\" | Hashnode"
description: "Discussion on \"NPM Is Totally Compromised. \nHow Do You Run `npm install` Safely Now?\". You rarely think about what code lands on your machine during a routine npm install, or what it might do once it gets there. You expect build errors or version conflicts. A compromised package can steal your SSH keys, GitHub tokens, AWS credentials, and access to crypto wallets—and then use your credentials to infect your own packages."
url: "https://hashnode.com/posts/npm-is-totally-compromised-how-do-you-run-npm-install-safely-now/6ae159868690889db485b735"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [NPM Is Totally Compromised. How Do You Run \`npm install\` Safely Now?](https://blog.reforma.ai/npm-is-totally-compromised-how-do-you-run-npm-install-safely-now?utm_source=hashnode&utm_medium=feed)

You rarely think about what code lands on your machine during a routine npm install, or what it might do once it gets there. You expect build errors or version conflicts. A compromised package can steal your SSH keys, GitHub tokens, AWS credentials, and access to crypto wallets—and then use your credentials to infect your own packages.

Oct 28 · 11 min read · blog.reforma.ai  
Read the article

-   [#npm](https://hashnode.com/tag/npm)
-   [#malware](https://hashnode.com/tag/malware)
-   [#reforma](https://hashnode.com/tag/reforma)
-   [#security](https://hashnode.com/tag/security)

## Written by

[Max](https://hashnode.com/@kachurun)

@kachurun · Los Angeles, USA

  
[View profile](https://hashnode.com/@kachurun)

Sharing what it takes to build SAAS, developer tool and infrastructure

## Responses 1

Markdown supported · ⌘↵ to post

[Noah Bennett](https://hashnode.com/@hhnh4g7udvs)

[Oct 28](https://hashnode.com/posts/npm-is-totally-compromised-how-do-you-run-npm-install-safely-now/6ae159868690889db485b735/comment/6ae17b92e06afeb9e42817c0)

Lockfile review is the step most teams still skip.
