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.
The gitstat
Node module streams paths of changed files tracked by a local Git repository.
Read orginal output of the underlying git status -uno -z
file by file:
var gitstat = require('gitstat'), status
status = gitstat('.')
status.on('readable', function () {
var chunk
while ((chunk = status.read()) !== null) {
console.log('%s', chunk)
}
})
Pipe filenames of added and/or modified files:
var gitstat = require('gitstat')
gitstat('.', 'AM')
.pipe(process.stdout)
A path to a local git repository.
Optionally configure which filenames should be emitted by passing Git statuses ("M|A|D|R|C|U"
) as String of undefined length. For example:
gitstat('.', 'AM')
This would return a readable stream that emits filenames of all added and/or modified files.
With the default mode (undefined
), not filenames, but the original output of git status -uno -z
is emitted file by file. For details please refer to man git-status
.
This function returns a Readable stream. On the first read this stream executes git status -uno -z
and begins emitting paths according to mode. Untracked files are ignored.
FAQs
stream git status
The npm package gitstat receives a total of 0 weekly downloads. As such, gitstat popularity was classified as not popular.
We found that gitstat 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.