Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
api-tests-template
Advanced tools
This POC is created using a nodejs library called Pact.
https://github.com/pact-foundation/pact-js
Pact is a contract testing tool. Contract testing is a way to ensure that services (such as an API provider and a client) can communicate with each other. https://docs.pact.io/readme
Required packages and basic setup is done. There are useful comments included so code should be pretty straight forward.
You're all set to start writing tests :-)
yarn install
to install dependencies
yarn test:consumer
to run consumer tests against mock server and generate pact file
yarn publish:pacts
to start a docker http server and publish pacts to be accessible to provider
yarn test:provider
to run the pact file against the actual server and publish results back to http server
yarn test:e2e
to run the all the above steps in one go for end to end worklfow
mochawesome reporter is used to capture and present the test results.
Test Report is available in ./mochawesome-report
in both json and html format
FAQs
This POC is created using a nodejs library called Pact.
The npm package api-tests-template receives a total of 1 weekly downloads. As such, api-tests-template popularity was classified as not popular.
We found that api-tests-template demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.