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.
chainloader
Advanced tools
parse blockchain transactions for embedded data keys, fetch the data bodies from a Tradle keeper
var Loader = require('chainloader')
var loader = new Loader({
prefix: 'tradle',
networkName: 'testnet',
keeper: keeper, // see tradle/bitkeeper-js
lookup: identityLookupFn
})
// bitcoin.Transaction, or array of them (bitcoinjs-lib)
loader.load(tx)
.then(function (chainedObj) {
// chainedObj has
// 1. metadata about the chained object,
// 2. the associated permission file (if any)
// 3. the chained object
//
// all together it looks like:
// {
// encryptedKey: Buffer, // encrypted DHT key of the file
// key: String, // decrypted DHT key of the file
// data: Buffer, // serialized object data
// from: Object, // result from identityLookupFn
// to: Object, // result from identityLookupFn
// tx: bitcoin.Transaction, // see bitcoinjs-lib
// txId: String,
// txType: TxData.types[type], // see tradle/tx-data
// txData: Buffer, // data embedded in the tx
// addressesFrom: Array,
// addressesTo: Array,
// // if it's a shared file:
// permission: Permission, // see tradle/permission
// encryptedPermission: Buffer,
// sharedKey: Buffer, // shared key (ECC) of bitcoin tx participants
// permissionKey: String, // the DHT key of the permission file
// encryptedData: Buffer, // encrypted object data
// }
})
// to be implemented by you, see tests for an example
// or you can use tradle/tim which does the whole shebang
function identityLookupFn (fingerprint, cb) {
// ...
cb(null, {
identity: identity,
key: key
})
}
FAQs
parse blockchain transactions for embedded data keys, fetch the data bodies from a Tradle keeper
The npm package chainloader receives a total of 1 weekly downloads. As such, chainloader popularity was classified as not popular.
We found that chainloader 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.