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.
This stack queue replicates async function like the one used in the Google Analytics (GA) snippet.
Where this comes in handy is putting javascript snippets on html pages without requiring external scripts. The ability to push data and events into a queue before a larger javascript file is loaded is invaluable in certain circumstances.
The code required to set up a stack queue object that is compatible with this library is minimal.
Usage like newer Google Analytics, wrapped in a function.
// Setup
var arr = [];
sq = sq || function() {
arr.push(arguments);
};
sq.arr = sq.arr || arr;
// Usage
sq("log", "hello from stack!");
From our app we can treat the stack queue object as if it were created by the library.
var stackqueue = require("stackqueue");
var log = function(message) {
console.log(message);
};
// Here we grab the sq declared in our html and initialise it.
stackqueue.flush(window.sq, { log: log });
// Output: "hello from stack!"
FAQs
A minimal setup stack queue
We found that stackqueue 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.