
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
infected-lib
Advanced tools
A demonstration library designed to simulate malicious NPM package activity for security training and research purposes.
infected-lib is a malicious demonstration library designed to simulate compromised npm packages. It is intended for security training and research purposes only. This package contains unsafe functionality that mimics real-world attack scenarios, providing insight into malicious activity and how it can affect systems.
⚠️ Use it with caution and only in secure, controlled environments!
⚠️ Warning: This package is intended for educational and research purposes only. Do not use this package in production environments. The creator is not responsible for any misuse of this code.
To install the package, run the following command:
npm install infected-lib
Once installed, you can require the library in your Node.js application like so:
const infected = require('infected-lib');
// Simulate malicious activity
infected.triggerCompromise();
You can find Directory called creds and a file credentials.txt in the node_modules Directory
// run this in root directory of your nodejs application
cat /node_modules/creds/credentials.txt
We welcome contributions to infected-lib! If you have suggestions for improvements or new features, please feel free to submit a pull request or open an issue.
Mohammed Afzal
GitHub Profile
FAQs
A demonstration library designed to simulate malicious NPM package activity for security training and research purposes.
We found that infected-lib demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.