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.
JavaScript version of WABT, The WebAssembly Binary Toolkit, with TypeScript support.
JavaScript version of WABT, the WebAssembly Binary Toolkit.
$> npm install wabt
var wabt = require("wabt");
var wasm = ...; // a buffer holding the contents of a wasm file
var myModule = wabt.readWasm(wasm, { readDebugNames: true });
myModule.applyNames();
var wast = myModule.toText({ foldExprs: false, inlineExport: false });
console.log(wast);
parseWast(filename: string
, buffer: string | Uint8Array
): WasmModule
Parses a wast source to a module.
readWasm(buffer: Uint8Array
, options: IReadWasmOptions
): WasmModule
Reads a wasm binaryen to a module.
WasmModule
A class representing a WebAssembly module.
void
void
IToTextOptions
): string
IToBinaryOptions
): IToBinaryResult
void
IReadWasmOptions
Options modifying the behavior of readWasm
.
boolean
IToTextOptions
Options modifying the behavior of WasmModule#toText
.
boolean
boolean
IToBinaryOptions
Options modifying the behavior of WasmModule#toBinary
.
boolean
boolean
boolean
boolean
IToBinaryResult
Result object of WasmModule#toBinary
.
buffer: Uint8Array
The wasm binary buffer.
log: string
Generated log output.
FAQs
JavaScript version of WABT, The WebAssembly Binary Toolkit.
The npm package wabt receives a total of 12,542 weekly downloads. As such, wabt popularity was classified as popular.
We found that wabt 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.