
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.
tree-manipulator
Advanced tools
A service manipulating tree object.
var tree = {
id: '1',
children: [{
id: '2',
children: [
{
id: '3',
},
{
id: '4'
}
]
}, {
id: '5',
children: [{
id: '6'
}, {
id: '7'
}]
}]
};
var ta = TreeManipulator();
ta.findNode('2', tree);
// returns the entire node with identifier '2'
ta.deleteNode('2', tree);
// returns the entire node with identifier '2' and deletes it from the tree
ta.createNode('8', {parent: '2', before: '4'}, tree);
// returns a new node with identifier '8' and inserts it after the node '4'
ta.createNode('8', {parent: '2', after: '3'}, tree);
// returns a new node with identifier '8' and inserts it before the node '3'
ta.createNode('8', {parent: '2'}, tree);
// returns a new node with identifier '8' and appends it as a last child of the node '2'
npm install crosser --save
####constructor (options)
Object]
String]'id'String]'children'Function]function(){
return new Date().getTime().toString();
}
Function]function(obj, property) {
return obj[property];
}
Function]function(obj, property, value) {
obj[property] = value;
}
Function]function() {
return {};
}
Function]function(item, index, array) {
array.splice(index, 0, item);
}
Function]function(item, array) {
var index = array.indexOf(item);
return array.splice(index, 1)[0];
}
####findNode (identifierValue, tree)
String]Object]Object]####createNode (identifierValue, options, tree)
String]Object]
String] - parent identifierString] - before identifierString] - after identifierObject]Object]####deleteNode (identifierValue, tree)
String]Object]Object]FAQs
Tree object manipulator
We found that tree-manipulator demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 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
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.