Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
@casual-simulation/aux-vm
Advanced tools
A set of abstractions and common utilities required to run an AUX on any platform.
npm install @casual-simulation/aux-vm
import { BaseSimulation, AuxVM } from '@casual-simulation/aux-vm';
// Simulations are wrappers for an
// AuxVM + AuxChannel combo.
// They make all the capabilities of an AUX easy to access
// and understand.
export class MySimulation extends BaseSimulation {
constructor(
id: string, // The ID of the
config: { isBuilder: boolean; isPlayer: boolean }
) {
super(id, config, config => new MyAuxVM(config));
}
}
// An AUX VM is in charge of separating
// the consumer from the AUX Environment.
// Basically its a security barrier between an AUX and the consumer code.
// On Web Browsers, this is usually implemented via web workers and sandboxed iframes.
// On Node.js, this is implemented via a custom script sandbox.
// Below, you can implement your own VM.
export class MyAuxVM implements AuxVM {
// TODO: Implement
}
V0.10.4
onAnyAction()
action tag to intercept and change actions before they are executed.
onAnyAction()
runs for every action, including when a bot is created, changed, or deleted.type
property.
type
property is a string that indicates what the action does.add_bot
: A bot should be added (i.e. created).remove_bot
: A bot should be removed (i.e. deleted).update_bot
: A bot should be updated.apply_state
: The given bot state should be applied. (i.e. a set of bots should be created/updated)shout
: A shout should be executed.show_toast
: A toast message should be shown on the device.show_barcode
: A barcode should be shown.tween_to
: The camera should be tweened to show a bot.that
is an object with the following properties:
action
: The action that is going to be executed.onAnyAction()
on the config bot.
action.reject(action)
: Prevents the given action from being performed. Returns the rejection action.action.perform(action)
: Adds the given action to the performance queue so it will be performed. This can be used to re-enable an action after it has been rejected (you can also reject the rejection action). Returns the action that will be performed.local
bot which is stored in the browser's local storage.
local
bot is a bot that is unique to the device and channel.getBot("#id", "local")
.onShout()
to onAnyListen()
.onListen()
which is an alternative to onAnyListen()
that is only called on the targeted bots.plater.toast("message", durationNum)
.FAQs
A set of abstractions required to securely run an AUX.
The npm package @casual-simulation/aux-vm receives a total of 77 weekly downloads. As such, @casual-simulation/aux-vm popularity was classified as not popular.
We found that @casual-simulation/aux-vm demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 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.
Security News
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.