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.
JavaScript SDK for Darken.sh, a universal patch/mirror/image/sync tool.
Darken is a mirroring client. This JavaScript SDK is for developing apps that interact with Darken registries.
First, the patcher downloads a manifest describing all of the files to be synchronized. Then, it verifies whether the local copy of each file in the manifest has a hash that matches the hash in the manifest. For each file in the manifest that either does not exist locally or whose hash does not match, the patcher will download that file.
import { darken } from 'darken-sdk';
darken({
// OPTIONAL: The path on the local filesystem to be synced with the repo.
path: process.cwd(),
// OPTIONAL: The Darken registry URL
registry: 'https://darken.sh',
// OPTIONAL: The name of the Darken repo to pull
repo: '@stable/blank',
// OPTIONAL: Callbacks to integrate with Darken internals
telemetry: {
onFile(name) {
// Called for each file in the manifest immediately after reading its manifest entry.
},
onFileError(name, error) {
// Called if there was an error downloading or writing a file in the manifest.
},
onFileReady(name) {
// Called when a file exists locally and has a hash matching the hash in the manifest.
},
onFileUpdate(name) {
// Called when a file in the manifest either does not exist locally or has a hash that does not match its hash in the manifest.
},
onFileUpdateProgress(name, bytesProgress, bytesTotal) {
// Called when downloading a file whenever progress is made
},
onManifest() {
// Called immediately upon receiving the manifest.
},
onManifestError(error) {
// Called if there was an error reading or validating the manifest.
}
}
});
FAQs
JavaScript SDK for Darken.sh, a universal patch/mirror/image/sync tool.
The npm package darken-sdk receives a total of 0 weekly downloads. As such, darken-sdk popularity was classified as not popular.
We found that darken-sdk 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.