Prevent malicious package installations with real-time scanning.
Project details
slop-deps is a powerful tool designed to catch hallucinated or non-existent npm, PyPI, and Crates.io packages before installation. By identifying potential threats and typosquat risks from AI-generated package names, slop-deps helps ensure safer coding practices and protects sensitive information from malicious payloads.
slop-deps is a powerful tool designed to detect hallucinated, non-existent packages from npm, PyPI, Crates.io, and Maven/Gradle before installation occurs. This innovative solution protects developers from potential vulnerabilities caused by artificial intelligence-generated package names, which attackers exploit to introduce malicious payloads into development environments.
Key Features:
npm install -g slop-deps or using npx for instant scanning: npx slop-deps.AI coding assistants often generate fictitious package names that do not exist in public repositories. Attackers can take advantage of these non-existent packages, registering them with harmful content. With slop-deps, developers can proactively scan their source files, preventing the execution of potentially harmful packages and keeping sensitive data safe.
Scanning a repository:
slopdeps
Scanning only staged files in a Git commit:
slopdeps --staged
Running in offline mode for additional security:
slopdeps --offline
The tool follows a reliable exit code strategy for integration into CI/CD pipelines:
0: Clean, all imports verified.1: Findings, at least one hallucinated package detected.2: Strict Failure, an error occurred in strict mode.All releases come with verified signatures and SHA-256 checksum files to ensure the integrity of downloaded binaries. Users are encouraged to verify releases against the provided checksums to maintain a secure development environment.
Feedback is valued to enhance the functionality of slop-deps. Developers are invited to rate and provide feedback on the tool using this link: Rate slop-deps & Drop Feedback.
**Crafted for developers who prioritize security in their coding practices, slop-deps acts as a shield against the risks associated with AI-generated package names.
Comments
0Start the conversation
Share the first comment.