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.
github.com/cebarks/deplist
Scan and list the dependencies in a source code repository.
Supports:
Dependencies are printed in PackageURL format.
On Fedora:
$ dnf install golang-bin yarnpkg maven rubygem-bundler ruby-devel gcc gcc-c++ npm
Also supports rbenv
. Any ruby versions installed with rbenv
will be used as backups from starting with system ruby (if available), and then from newest to oldest.
$ make
go build cmd/deplist/deplist.go
$ ./deplist test/testRepo
pkg:npm/d3-scale-chromatic@2.0.0
pkg:npm/d3-time@2.0.0
pkg:npm/prop-types@15.7.2
pkg:npm/react@16.13.1
...
The api functions as follows:
func GetDeps(fullPath string) ([]Dependency, Bitmask, error) {
fullPath:
Path to directory with source code.
Depenency:
Array of Dependency structs from dependencies.go
Bitmask:
A bitmask of found languages:
const (
LangGolang = 1 << iota
LangNodeJS
LangPython
LangRuby
)
error:
Standard Go error handling
FAQs
Unknown package
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.