Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
wasm-instrumentation
Advanced tools
Wasm-instrumentation
is a WebAssembly instrument tool using binaryen
to implement function mock and coverage collection.
npm i -D wasm-instrumentation
import initInstrumenter from "wasm-instrumentation";
export async function instrument() {
const instrumenter = await initInstrumenter();
const source = instrumenter.allocateUTF8("./build.wasm");
const output = instrumenter.allocateUTF8("./build.instrumented.wasm");
const report = instrumenter.allocateUTF8("covInstrument/traceExpression");
const sourceMap = instrumenter.allocateUTF8("./build.wasm.map");
const debugInfo = instrumenter.allocateUTF8("./build.debugInfo.json");
const expectInfo = instrumenter.allocateUTF8("./build.expectInfo.json");
instrumenter._wasm_instrument(source, output, report, sourceMap, expectInfo, debugInfo, null, null, true);
}
_wasm_instrument(sourceWasm, outputWasm, reportFunctionName, sourceMap, expectInfo, debugInfo, include, exclude, skipLib)
FAQs
WebAssembly instrumentation tool
We found that wasm-instrumentation demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 5 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 researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.