
Research
2025 Report: Destructive Malware in Open Source Packages
Destructive malware is rising across open source registries, using delays and kill switches to wipe code, break builds, and disrupt CI/CD.
@transia/hooks-toolkit
Advanced tools
$ npm i -g c2wasm-cli
Run this command to locally compile an XRPL Hook source file (inside ./contracts) from .c to .wasm code:
$ yarn run build:hooks
Here is what each command does in the background:
wasmcc - compiles a Hook source file (C code) to WebAssembly (WASM) code. For example, ./contracts/base.c compiles to ./build/base.wasmwasm-opt - optimizes the WASM code ./build/base.wasmhook-cleaner - cleans it by removing unnecessary additional exportsguard_checker - this checks if any guard violation has occurred in the Hooks code before submitting it in SetHook transaction. For more information, visit this linkSetHook transactionYou can also build a single hook with;
$ yarn run build:hook contracts/toolbox/base.c build
tail -f xahau/log/debug.log | grep HookTrace
Run Unit tests
$ yarn run test:unit
Before you can run the integration tests you must have a standalone rippled server running.
Full env with explorer:
$ xrpld-netgen up:standaloneDocker standalone only:
$ docker run -p 5005:5005 -p 6006:6006 -it transia/xahaud:latestRun Integration tests
$ yarn run test:integration
Run single Integration test
$ yarn run test:integration test/integration/toolbox/base.test.ts
contracts directory$ yarn run build:hooksbase.test.ts template into the correct folder. (audited/toolbox)$ yarn run test:integration test/integration/audited/myHook.test.tsFAQs
A toolkit for interacting with smart contracts (hooks) on the Xahau Ledger.
The npm package @transia/hooks-toolkit receives a total of 21 weekly downloads. As such, @transia/hooks-toolkit popularity was classified as not popular.
We found that @transia/hooks-toolkit 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
Destructive malware is rising across open source registries, using delays and kill switches to wipe code, break builds, and disrupt CI/CD.

Security News
Socket CTO Ahmad Nassri shares practical AI coding techniques, tools, and team workflows, plus what still feels noisy and why shipping remains human-led.

Research
/Security News
A five-month operation turned 27 npm packages into durable hosting for browser-run lures that mimic document-sharing portals and Microsoft sign-in, targeting 25 organizations across manufacturing, industrial automation, plastics, and healthcare for credential theft.