
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.
yarn add bblfsh
The WASM module from node_modules/dist/libuast.wasm
must be available as /libuast.wasm
in a browser.
It's possible to change the public path to the file like this:
const libuast = initLibuast({
locateFile(path) {
if(path.endsWith('.wasm')) {
return '/some/other/path/libuast.wasm';
}
return path;
}
});
import Client from 'bblfsh';
const client = new Client('<web-grpc-address>');
client.parse(sourceCode, filename, language)
.then(r => /* gRPC response */)
.catch(err => /* or error */);
import { protoToMap, initLibuast } from 'bblfsh';
const libuast = initLibuast();
const uastMapping = protoToMap(uast);
libuast.filter(nodeId, uastMapping, xpathQuery)
.then(ids => /* list of nodes */)
.catch(err => /* or error */);
Full API documentation available here: API.md.
docker-compose up
The example app will be available on http://127.0.0.1:8444
Please check Dockerfile in the app example directory to run it without docker
grpcwebproxy --backend_addr=127.0.0.1:9432 --run_tls_server=false
yarn build
- build everythingyarn build:proto
- generate js from protobuf filesyarn build:libs
- download & build C dependencies for libuastyarn build:wasm
- generate WASM & js helper for libuastyarn build:bundle
- generate library as a bundle with all dependencies includedFAQs
javascript bblfsh client
We found that bblfsh demonstrated a not healthy version release cadence and project activity because the last version was released 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.