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.
@dappworks/urpc
Advanced tools
To install dependencies:
bun add @dappworks/urpc
import {
URPC,
createServerClient,
createSimpleHttpClient,
} from "@dappworks/urpc";
const urpc = new URPC({
schemas: {
sum: URPC.Func({
input: { a: 0, b: 0 },
func: ({ input }) => input.a + input.b,
}),
foo: URPC.Var({ get: () => data.foo }),
},
});
// server
const serverClient = createServerClient({ urpc });
const app = new Hono();
app.post("/urpc", async (c) => {
const body = (await c.req.json()) as any;
const res = await serverClient.handle(body);
return c.json(res);
});
// client
const client = createSimpleHttpClient<typeof urpc.schemas>({
url: "http://localhost:3000/urpc",
});
client.func.call();
client.var.set();
client.schema.loadFull();
client.schema.loadVars();
To run:
bun run index.ts
This project was created using bun init
in bun v1.1.3. Bun is a fast all-in-one JavaScript runtime.
FAQs
To install dependencies:
The npm package @dappworks/urpc receives a total of 4 weekly downloads. As such, @dappworks/urpc popularity was classified as not popular.
We found that @dappworks/urpc demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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
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.