
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.
@lanetix/make-token
Advanced tools
Module to simplify interating with the auth service to get a token. Up to ~150MB of tokens are cached for slightly less than the time they take to expire (one day), at which point the least recently used are removed.
Ensure that you are are logged in as the lanetix npm user via npm login or
use a .npmrc file with a token for the lanetix user.
npm install --save @lanetix/make-token
To use this library,
var makeToken = require('@lanetix/make-token')(
'http://url.to.auth',
'private....key....',
'urn:issurer'
);
makeToken.forUser(1337) //user id
.then(function (token) {
//do stuff with token
});
makeToken.forSystemUser(42) //org id
.then(function (token) {
//do stuff with token
});
In order for auth to not 401, you'll need to register your service's public key here.
FAQs
make a jwt given an org or a user
We found that @lanetix/make-token demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 30 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.