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.
An API to download and/or extract git repositories.
This project is the spiritual successor of gittar written in TypeScript.
import { fetch, extract } = from 'gitly'
consle.log(await fetch('iwatakeshi/gitly'))
//=> ~/.gitly/github/iwatakeshi/gitly/master.tar.gz
consle.log(await fetch('iwatakeshi/gitly#v1.0.0'))
//=> ~/.gitly/github/iwatakeshi/gitly/v1.0.0.tar.gz
consle.log(await fetch('https://github.com/iwatakeshi/gitly'))
//=> ~/.gitly/github/iwatakeshi/gitly/master.tar.gz
consle.log(await fetch('gitlab:Rich-Harris/buble#v0.15.2'))
//=> ~/.gitly/gitlab/Rich-Harris/buble/v0.15.2.tar.gz
consle.log(await fetch('Rich-Harris/buble', { host: 'gitlab' }))
//=> ~/.gitly/gitlab/Rich-Harris/buble/master.tar.gz
const source = '...local file or repo pattern to the local file...'
const dest = '/path/to/foobar'
await extract(source, destination)
interface GitlyOptions {
// Use cache only
cache?: boolean
// Use both cache and local
force?: boolean
// Set cache directory
temp?: string
// Set the host name
host?: string
url?: {
// Extend the url filtering method
filter?(info: URLInfo): string
}
extract?: {
// Extend the extract filtering method
filter?(path: string, stat: FileStat): boolean
}
}
interface URLInfo {
protocol: string
host: string
hostname: string
hash: string
href: string
path: string
repository: string
owner: string
type: string
}
FAQs
An API to download and/or extract git repositories
The npm package gitly receives a total of 982 weekly downloads. As such, gitly popularity was classified as not popular.
We found that gitly demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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.