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.
npm install cominterop
Only compatible with Windows (which goes to most typelibs too anyway).
let cominterop = require( 'cominterop' );
let lib = cominterop.load( 'path/to/typelib.dll' );
// Normal constructors.
let obj = new lib.MyClass();
// propget/propput methods mapped to JavaScript getters/setters.
let value = obj.Value;
// Objects have a hidden .Async property which exposes a promise interface.
obj.Async.GetItem()
.then( item => {
console.log( item.Value );
} );
obj.Member !== obj.Member
,
when Member
is non-primitive.SAFE_ARRAY
the biggest one.arr[ 0 ]
.IDispatch
for method invocation.load()
for mangling the member names for lower
case. The upper case method names will confuse linters that expect these to
be constructors.Preprocessing the type library should help a bit with the major performance issues of going with raw IDispatch.
However there are still a lot of dynamic lookups happening - especially in parameter resolution. And the method invocations are done over IDispatch (with all the VARIANTing) instead of using direct COM vtables and other internals.
FAQs
COM interop layer for Node.JS
The npm package cominterop receives a total of 15 weekly downloads. As such, cominterop popularity was classified as not popular.
We found that cominterop 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.