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.
github.com/alfonsocebollero/asyncreply-requestapi
This project runs a cadence worker in parallel with a gin-gonic server to implement an async Reply-Request API.
It is thought to have a local instance of cadence running locally which can be easily accomplished following these instructions. This set up does not provide persintance when deleted, but it can be easily added by docker volume means.
Inside resources folder, a configuration file can be found with the following content:
env: "development"
cadence:
domain: "test-domain"
service: "cadence-frontend"
hostPort: "host.docker.internal:7933"
serverBaseURL: "http://localhost:8080"
workflows:
waitingwf: "WaitingWorkflow"
If the app is wanted to be run with docker, no modifications are needed, in case it is run directly with go, the hostPort must be changed to "127.0.0.1:7933". Both options are thought to be deployed in a local environment where a cadence instance is already running.
There is also the domain entry, which value can be changed to any other existing domain within cadence. The workflows will be created inside this domain.
A workflows map, which contains all the available workflows inside the application, is included, so, when a new workflow is added, this value must be updated as well.
>> docker build -t asyncapi .
>> docker run -p 8080:8080 -d --name AsyncAPI asyncapi
The implemented worker only counts with one workflow, which is designed to simulate long async tasks that are in charge of the worker. When accessing to the local cadence web instance the created workflows can be seen:
Its results are also available, this workflow has an activity that is performed after the waiting time that just returns "Completed!".
The endpoints documentation can be found in the app swagger, which is available in: http://localhost:8080/swagger/index.html
FAQs
Unknown package
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.