Report a vulnerability
Open the Security tab of the repository and choose Report a vulnerability. The report stays private between you and the maintainers.
A useful report names the component (BiloaLock, BiloaRegistry, @biloa/sdk, @biloa/lp or the Rust core), the version or commit, the steps to reproduce it, and what an attacker gains.
Scope
The contracts in src/ and the code that moves funds in sdk/ and lp/ are in scope, on Elysium mainnet and in the published 0.1.0 packages.
The contracts have no owner and cannot be upgraded or paused, so a fix ships as a new deployment and a new package release.
Audit status
The contracts have not had a third-party audit yet. Release 0.1.0 passed 44 contract tests, including fuzz tests, 5 Rust tests, 52 SDK tests and 17 LP tests. Both packages ran end to end on mainnet before they were published, including two swaps at once through one LP. HyperCore actions are checked byte for byte against vectors from Hyperliquid’s Python SDK.
Protections in the code
- Funds leave BiloaLock only through a claim, a refund, or
sendFeesto the fee recipient fixed at deploy. - The taker checks the LP’s side before its own funds move, and passes over an LP whose check fails before it has paid.
- The taker writes everything it needs to finish or refund a swap to its journal before the swap amount moves.
- The SDK accepts only public HTTPS endpoints from the registry and refuses private and loopback addresses.
- The LP agent runs as an unprivileged system user with a read-only system and no access to
/homeor/root. Its keys reach it as systemd credentials, and its wallet key is readable by root only.