
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.
JavaScript module namespacer and event emitter
For apps using singletons which needs to be globally available but depending on other singletons inside application
For example displaying username after user had logged in:
// simple function saying hello to given user
function SayHello(username) {
console.log("Hello ", username);
}
// class (defined using ES6 syntax) which needs to be instantiated after user had logged in
class Welcome {
constructor() {
app.sayHello(app.user.username);
}
}
// class extending jsLightss built in event emitter
class User extends jsLights.EventEmitter {
constructor() {
this.login();
}
login() {
this.username = "johnDoe";
this.trigger("login");
}
}
// create "new SayHello()" and bind it in "app.sayHello"
jsLights.instantiate('app.sayHello', SayHello);
// create "new User()" and bind it in "app.user"
// after app.sayHello is initialized
jsLights.instantiate('app.user', User, 'app.sayHello');
// create "new Welcome()" and bind it in app.welcome
// after DOM is ready
// after app.sayHello is initialized
// after app.user is initialized and triggered "login" event
jsLights.instantiate('app.welcome', Welcome, [
'onDocumentReady',
'app.sayHello',
'app.user->login'
]);
For now, to be able to build minified file, you need to have "babel", "browserify" and "uglifyjs" installed globaly (this should be changed in the near future)
FAQs
JavaScript module manager
The npm package jslights receives a total of 0 weekly downloads. As such, jslights popularity was classified as not popular.
We found that jslights 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
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.