
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.
@hmcts/div-service-auth-provider-client
Advanced tools
Client to obtain tokens for service to service calls
Client library to obtain service to service call tokens.
As of now, this module is published only in a private repository. We are working on publishing this project to NPM. Until then, the package can be installed from its github URL, examples:
# Install the latest version
yarn add https://github.com/hmcts/div-service-auht-provider-client
# Install a specific version
yarn add https://github.com/hmcts/div-service-auth-provider-client#2.1.4
First get a client
const serviceAuthProviderClient = require('@hmcts/div-service-auth-provider-client')
const client = serviceAuthProviderClient.init({
apiBaseUrl: 'https://service-auth-provider-api:4502', // Base URL of service-auth-provider API
microservice: 'reference', // The name of the IDAM service role
secret: 'AAAAAAAAAAAAAAAA' // Service secret
})
client.lease()
.then(token => {
// The response payload contains the token in plain text.
console.log(token)
})
.catch(err => {
// Or an error in case of an error.
console.error(err)
})
client.isTokenExpired(token) // true if expired, false otherwise.
Tokens returned contain an expiry date as a unix timestamp under exp. Ideally, this expiry date should be respected
and the token should be renewed using the lease method.
The service needs to be registered with IDAM and a secret is required in order to generate a token.
For early implementations where IDAM registration has not finished yet, the reference details (microservice, secret) can be used from the above example.
FAQs
Client to obtain tokens for service to service calls
We found that @hmcts/div-service-auth-provider-client demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 18 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.