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.
interceptor-js
Advanced tools
I have no idea why you'd ever need interception in JavaScript but it was a nice exercise.
Some possible use cases: Testing frameworks, logging frameworks, binding frameworks or frameworks that expose objects over an API that need to be tracked / intercepted in some sort.
Do things like this:
var I = Interceptor();
var obj = I.proxy({
name: 'Interceptor',
sum: function(a, b) {
return a + b;
},
getProperty(object, property) {
return object[property];
}
});
I.when('name').of(obj).isAccessed().then(function() {
return 'Intercepted!';
});
I.when('sum').of(obj).isInvoked().then(function() {
return 'The whole is more than the sum of its parts';
});
I.when('getProperty').of(obj).isInvokedWith({name: 'Interceptor'}, 'name').then(function() {
return 'Intercepted!';
});
FAQs
Small library to generate interception proxies
We found that interceptor-js 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.