Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
npm install grepr
Function signature is function(string,dir,callback)
where:
string
: is the string to search;dir
: is directory where the search starts;callback
: is a function of type function(file,indices,lines)
where file is the complete file path where the input string has been found, indices is an array of line index and lines is the array of lines containing the string.Callback is called only on those files containing at least one occurrence of the input string.
For example this call search in the current directory the word npm:
var grepr = require('grepr');
grepr("npm","./", function(file,indices,lines){
console.log("FOUND in "+file);
console.log("INDICES\n"+indices);
console.log("LINES\n"+lines);
});
Created with Nodeclipse (Eclipse Marketplace, site)
Nodeclipse is free open-source project that grows with your contributions.
FAQs
node.js module that implements a recursive grep function.
The npm package grepr receives a total of 0 weekly downloads. As such, grepr popularity was classified as not popular.
We found that grepr demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.