
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.
Figure out your caller (thanks to @substack).
// foo.js
var bar = require('bar');
// bar.js
var caller = require('caller');
console.log(caller()); // `/path/to/foo.js`
// foo.js
var bar = require('bar');
bar.doWork();
// bar.js
var caller = require('caller');
exports.doWork = function () {
console.log(caller()); // `/path/to/foo.js`
};
Caller also accepts a depth argument for tracing back further (defaults to 1).
// foo.js
var bar = require('bar');
bar.doWork();
// bar.js
var baz = require('baz');
exports.doWork = function () {
baz.doWork();
};
// baz.js
var caller = require('caller');
exports.doWork = function () {
console.log(caller(2)); // `/path/to/foo.js`
};
The 'callsite' package provides a way to get detailed information about the call stack, including file paths, line numbers, and function names. It offers more detailed stack trace information compared to 'caller', which focuses on the immediate caller.
The 'stack-trace' package allows you to capture and manipulate stack traces in Node.js. It provides more comprehensive stack trace information and is useful for advanced debugging and error handling, whereas 'caller' is more lightweight and focused on identifying the immediate caller.
FAQs
@substack's caller.js as a module
The npm package caller receives a total of 219,360 weekly downloads. As such, caller popularity was classified as popular.
We found that caller 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.