
Research
Namastex.ai npm Packages Hit with TeamPCP-Style CanisterWorm Malware
Malicious Namastex.ai npm packages appear to replicate TeamPCP-style Canister Worm tradecraft, including exfiltration and self-propagation.
Ruler can help you DO more with ACL.
Just call the Judge to decide if the user can access your resource.
var Ruler = require('ruler');
var Power = require('/sample/ability'); // This file is instead the sample folder on this project.
var person = {};
person.roles = ['admin'];
var acl = new Ruler(Power);
//Promise way...
// Promise me, this user is granted!
// the question: Judge, This PERSON can CREATE an USER?
acl.judge(person, 'create', 'user')
.then(function(access){
if(access){
console.log('Yes, this PERSON can CREATE an USER');
}else{
console.log('No, this PERSON can\'t CREATE an USER');
}
})
.catch(function(err){
});
// Callback way...
// When you return, tell me if this user is granted!
acl.judge(person, 'create', 'user', function(err, access){
if(!err){
if(access){
console.log('Yes, this PERSON can CREATE an USER');
}else{
console.log('No, this PERSON can\'t CREATE an USER');
}
}
});
FAQs
ACL module to control all stuffs
The npm package node-ruler receives a total of 5 weekly downloads. As such, node-ruler popularity was classified as not popular.
We found that node-ruler 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
Malicious Namastex.ai npm packages appear to replicate TeamPCP-style Canister Worm tradecraft, including exfiltration and self-propagation.

Product
Explore exportable charts for vulnerabilities, dependencies, and usage with Reports, Socket’s new extensible reporting framework.

Product
Socket for Jira lets teams turn alerts into Jira tickets with manual creation, automated ticketing rules, and two-way sync.