Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Queue javascript objects dynamically then process the queue according to the appender.
Included tag appenders:
npm install queueobj
npm test
npm run test_all
npm run test_top_one
npm run test_bottom_one
npm run test_func_all
npm run test_sync_all
npm run test_status
npm run test_version
var colors = require('colors')
var queue = require("queueobj");
class test1 {
constructor() {
this.id = 100
this.process = this.process.bind(this)
}
process(callback) {
setTimeout(() => {
console.log(`processing test1`.cyan)
console.log(`some async process`)
callback({success: {msg: `processing all (${this.id})`}})
}, 3000)
}
}
class test2 {
constructor() {
this.id = 200
this.process = this.process.bind(this)
}
process(callback) {
let msg = `some kinda problem here in id(${this.id})`
// callback({error: {msg: msg}}) //this will show errors
callback({success: {msg: `processing all (${this.id})}`}}) //this will show no errors
}
ping() {
console.log('hello from test2'.rainbow)
}
}
class test3 {
constructor() {
this.id = 300
this.process = this.process.bind(this)
}
process(callback) {
callback({success: {msg: `processing all (${this.id})}`}})
}
}
class test4 {
constructor() {
let t = this
t.id = 400
t.custom_function = t.custom_function.bind(this)
}
custom_function(callback) {
let msg = `custom func problem here id(${this.id})`
setTimeout(() => {
// callback({error: {msg: msg}}) //this will show errors
callback({success: {msg: `processing all (${this.id})}`}}) //this will show no errors
}, 3000)
}
}
let tst4 = new test4()
let qObj = new queue(), props = { appender: 'sync_all' }
qObj.load(props).add(new test1()).add(new test2()).add(new test3()).add(tst4.custom_function)
qObj.process().then(res => {
console.log(`success with all sync processing: (${JSON.stringify(res)})`.bold.italic.green)
}, err => {
console.log(`errors with all sync processing: (${JSON.stringify(err)})`.red)
})
FAQs
Queue File Objects
The npm package queueobj receives a total of 1 weekly downloads. As such, queueobj popularity was classified as not popular.
We found that queueobj demonstrated a healthy version release cadence and project activity because the last version was released less than 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.
Security News
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.