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/jsmouret/grpc-over-webrtc
Just a proof of concept, please be kind.
Start all the things
Client, create-react-app + grpc-web signaling + webrtc extensions
cd client
yarn
yarn start
Client v2, same but using Improbable version with client and bidi-streaming
cd client-improbable
yarn
yarn start
Server, grpc server + grpc-web signaling + pion/webrtc
cd server
go run .
Click on buttons in your browser
Profit!
Regular gRPC client/server are implemented in client/src/echo.tsx
and server/echo.go
. They should look like business as usual.
To simplify establishing the connection, this uses a simple grpc-web api defined by signaling.proto
. It expects to run on localhost so there is no fancy ICE candidate exchange, that would be out of scope.
For the grpc-web
client, the magic happens in client/src/grtc/adapter.ts
which introduces a WebRtcClientBase
to replace GrpcWebClientBase
.
For the improbable client, instead of using a new transport which manipulates chunks, client-improbable/src/grpc/client.ts
dispatches
between the original GrpcClient
and WebRtcClient
. The other files in client-improbable/src/grpc
are just linking to that new client
function.
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.