New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

infected-lib

Package Overview
Dependencies
Maintainers
0
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

infected-lib

A demonstration library designed to simulate malicious NPM package activity for security training and research purposes.

latest
Source
npmnpm
Version
1.0.1
Version published
Maintainers
0
Created
Source

infected-lib

npm version License: ISC

Description

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!

Disclaimer

⚠️ 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.

Installation

To install the package, run the following command:

npm install infected-lib

Usage

Once installed, you can require the library in your Node.js application like so:

const infected = require('infected-lib');

// Simulate malicious activity
infected.triggerCompromise();

Detect the Activity

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

Contributing

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.

Author

Mohammed Afzal
GitHub Profile

Keywords

security

FAQs

Package last updated on 09 Oct 2024

Did you know?

Socket

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.

Install

Related posts