
Research
Security News
Lazarus Strikes npm Again with New Wave of Malicious Packages
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
@super-protocol/tunnels-lib
Advanced tools
Library with Tunnel Server and Tunnel Client for secure distrubuted connection with SGX
Connecting custom local server to Tunnel Server. Example of usage:
const fs = require('node:fs');
const { TunnelClient } = require('@super-protocol/tunnels-lib');
const pino = require('pino');
const serverFile = __dirname + '/server.js';
const domainConfigs = [
{
tunnels: [
{
sgxMrEnclave: '64cd7bc8bc121b9b71470ba185e83cde90c0d8a3b81661b5bd5e44ab451d5aad',
sgxMrSigner: '22c4c4c40ebf9874905cfc44782eec5149bf07429ec0bd3e7fd018e9942d0513',
},
],
authToken: 'b97e4be4-6546-43a1-85d9-fa28a447dd07',
site: {
key: fs.readFileSync('private.pem'),
cert: fs.readFileSync('ssl_fullchain.crt'),
},
},
];
const logger = pino({ level: 'trace' });
const options = { logger };
const tunnelClient = new TunnelClient(serverFile, domainConfigs, options);
tunnelClient.run().catch((error) => {
logger.fatal({ error }, `Fail to start Tunnel Client`);
});
Tunnel Client properties:
options
. This file will be run from NodeJS worker*threads. Tunnel Client will path HTTPS_PORT env variable that equals "applicationPort" property from options
. Also it will pass TLS_CERT and TLS_KEY env variables that should be used to start https server. It's important to note that this certificate is not obtained from the domainConfigspino
logger. pino
is a peer dependency of the library. Default: undefinedconst { isMainThread, parentPort } = require('node:worker_threads');
if(!isMainThread) {
parentPort.on('message', (message) => {
if(['SIGTERM', 'SIGINT', 'SIGABRT'].includes(message)) {
...
shutdownHandler();
...
}
})
}
FAQs
Library with Tunnel Server and Tunnel Client for secure distributed connection with SGX
We found that @super-protocol/tunnels-lib demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
Security News
Socket CEO Feross Aboukhadijeh discusses the open web, open source security, and how Socket tackles software supply chain attacks on The Pair Program podcast.
Security News
Opengrep continues building momentum with the alpha release of its Playground tool, demonstrating the project's rapid evolution just two months after its initial launch.