
Research
Supply Chain Attack on Axios Pulls Malicious Dependency from npm
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.
@uktrade/client-matrix-js
Advanced tools
Expose client capabilities for several frameworks when running UI tests against third party providers
The intentation of this package is to provide client capabilities when running UI tests against third party providers like browserstack and saucelabs. This package provides capabilities in the format for both WebdriverIO and NightwatchJS.
Install dependencies:
$ npm install
Build locally:
$ npm run build
Run the tests:
$ npm run test
In your wdio.conf.js file, after you have the list of browsers you would like to run your tests
against, provide it in the capabilities key in the conf file:
// wdio.conf.js
const clientMatrix = require('@uktrade/client-matrix-js')
const clientMatrixList = clientMatrix.requestedClients(['chrome_latest', 'firefox_latest'])
export.config = {
// ...
capabilities: [...clientMatrixList],
// ...
}
Add the package to your test suite using the following command:
npm install --save-dev @uktrade/client-matrix-js
Then import the function from the exposed module to have the ability to get a list of capabilities:
const clientMatrix = require('@uktrade/client-matrix-js')
To fetch capabilities for a given device or browser for your wdio test suite, simply provide the clients in a list, notice that the strings need to match the maintained client matrix:
clientMatrix.requestedClients(['chrome_latest', 'firefox_latest'])
To fetch capabilities for nightwatch, ensure the flag is set to true:
clientMatrix.requestedClients(['chrome_latest', 'firefox_latest'], true)
The package currently has its own browserstack maintaned client matrix, although you can maintain your own matrix (either browserstack, saucelabs or any other provider) and inject it to the function:
const sauceLabsMatrix = {
FIREFOX: {
BROWSER_NAME: 'firefox',
},
CHROME: {
BROWSER_NAME: 'chrome',
},
CHROME_EMULATOR: {
BROWSER_NAME: 'edge',
},
}
// If you'd like nightwatch capabilities output
// ensure the flag is set to true
clientMatrix.requestedClients(['chrome', 'edge'], false, sauceLabsMatrix)
FAQs
Expose client capabilities for several frameworks when running UI tests against third party providers
We found that @uktrade/client-matrix-js demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 8 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
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.

Research
Malicious versions of the Telnyx Python SDK on PyPI delivered credential-stealing malware via a multi-stage supply chain attack.

Security News
TeamPCP is partnering with ransomware group Vect to turn open source supply chain attacks on tools like Trivy and LiteLLM into large-scale ransomware operations.