
Security News
/Research
Wallet-Draining npm Package Impersonates Nodemailer to Hijack Crypto Transactions
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
A TypeScript client for interfacing with the Vitrus WebSocket server. This library provides an Actor/Agent communication model with workflow orchestration.
# Using npm
npm install vitrus-sdk
# Using yarn
yarn add vitrus-sdk
# Using bun
bun add vitrus-sdk
import Vitrus from 'vitrus-sdk';
// Initialize the client
const vitrus = new Vitrus({
apiKey: "your-api-key",
world: "world-id",
baseUrl: "ws://localhost:3001" // Optional, defaults to localhost:3001
});
// Actor example (server-side)
async function runActorExample() {
const actor = vitrus.actor("asimov");
// Register command handlers
actor.on("get-camera", () => {
// Return screenshot or camera data
return { data: "screenshot-data" };
});
actor.on("move", (motor: string, angle: number) => {
// Run the action here
console.log(`Moving ${motor} to angle ${angle}`);
return { success: true };
});
}
// Agent example (client-side)
async function runAgentExample() {
// Get a scene
const scene = vitrus.scene("zelda-initial");
// Get a player
const player = vitrus.actor("player");
// Take a screenshot
const screenshot = await actor.run("get-screenshot");
// Use Vitrus' perception encoders
const structure = await vitrus.workflow("perception-encoder", {
image: screenshot
});
// Update scene with structure
scene.set(structure);
// Add object to scene
scene.add(object);
// Update scene object
scene.update({
id: "..."
});
// Remove object from scene
scene.remove("object");
// Get scene
const sceneData = scene.get();
// Upload image
const imageUrl = await vitrus.upload_image(screenshot, "image");
// Add record
await vitrus.add_record(screenshot);
// Run player command
await player.run("press", "START");
}
bun test
new Vitrus({
apiKey: string,
world: string,
baseUrl?: string // Optional, defaults to "ws://localhost:3001"
})
actor(name: string, options?: any): Actor
- Create or get an actorscene(sceneId: string): Scene
- Get a sceneworkflow(workflowName: string, args?: any): Promise<any>
- Run a workflowupload_image(image: any, filename?: string): Promise<string>
- Upload an imageadd_record(data: any, name?: string): Promise<string>
- Add a recordon(commandName: string, handler: Function): Actor
- Register a command handlerrun(commandName: string, ...args: any[]): Promise<any>
- Run a command on an actorset(structure: any): void
- Set a structure to the sceneadd(object: any): void
- Add an object to the sceneupdate(params: { id: string, [key: string]: any }): void
- Update an object in the sceneremove(objectId: string): void
- Remove an object from the sceneget(): any
- Get the sceneMIT
FAQs
TypeScript client for interfacing with the Vitrus WebSocket server
The npm package vitrus-sdk receives a total of 0 weekly downloads. As such, vitrus-sdk popularity was classified as not popular.
We found that vitrus-sdk demonstrated a healthy version release cadence and project activity because the last version was released less than 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.
Security News
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.