Ghost Labs
Is Ghost Labs safe? How the protocol works and what it can't do
Ghost is an early mainnet pilot that is open source but has not completed a formal third-party security audit, and its relayer is a trusted party today, so it is reasonable to use with small amounts but not to treat as trustless. Some protections are enforced on-chain by the program, while others, including Shield proof verification and Gas credit balances, depend on the relayer behaving honestly.
Short answer: Your secrets stay on your device, withdrawals are bound to the recipient in the proof, and double-spends fail on-chain. But proofs are verified by Ghost's relayer rather than on-chain, only that relayer can submit withdrawals, Gas credit lives in an off-chain ledger, and there is no formal audit yet. Use amounts you can afford to lose.
What Ghost is
Ghost Labs is the team behind Ghost, an open-source privacy suite for USDC on Solana with two products: Ghost Shield, a fixed 1 USDC zero-knowledge pool that unlinks withdrawals from deposits, and Ghost Gas, prepaid USDC gas so a wallet with zero SOL can send.
What is enforced on-chain
- On-chain
- Programs
- Relayer
- Trusted ops
- You
- Keys + notes
The ghost_pool program (69gepJRrDXGgaKExaUHWmDjtLe4LHxTrNiGVzBGoTczR) enforces, per our litepaper:
- Exact deposits: each deposit is exactly the pool denomination, 1 USDC.
- Unique commitments: the same commitment cannot be deposited twice.
- Single-use nullifiers: each withdrawal creates a nullifier record; a second withdrawal of the same note fails.
- Fee split and cap: the payout and treasury fee are computed on-chain, and the fee is hard-capped at 10%.
- Relayer-only withdrawals: only the designated relayer can call withdraw.
- Admin limits: only the authority can change the relayer or the fee.
What the relayer is trusted with
From our trust model, Shield docs, and risk disclosure:
- Shield proof verification. The Groth16 proof, root history, and recipient check run in the relayer, not on-chain yet. Our risk disclosure says it plainly: if the relayer is malicious, compromised, or misconfigured, pool funds can be stolen. Do not assume Ghost is trustless.
- Gas credit balances. Credit lives in the relayer's ledger. A malicious operator could mis-debit notes or refuse service.
- Availability. If the relayer is down, withdrawals and sponsored sends stop.
- Metadata. For Gas, the relayer can link the deposit that funded a note with the wallet that spends it.
What protects you even if the relayer misbehaves
- Gas sends need your signature. Tokens move from your wallet to the recipient only along the allowlisted instruction shape. Ghost does not take custody of transferred tokens on a normal Gas send.
- Recipients are bound into proofs. A Shield withdrawal cannot be redirected to a different address.
- Secrets stay client-side. Notes are generated in your browser. The relayer sees only proofs and public signals.
Cryptographic setup
Proving keys come from a Powers of Tau ceremony plus a circuit-specific phase-2 contribution. A multi-party trusted-setup ceremony has not happened yet; it is on the roadmap. Until then, users rely on that setup having been done honestly.
Audits and reviews
- No formal security audit. Our risk disclosure states that Ghost has not completed a formal third-party security audit.
- Secrets scan. Before open-sourcing, the repo was scanned with gitleaks and trufflehog and every commit was reviewed for leaked secrets. That checks for exposed keys, not for protocol bugs.
- Tests. The repo's README records local runs of the SDK, relayer, Anchor, and end-to-end test suites passing. Tests are not an audit.
Privacy limits
- Anonymity set: a withdrawal hides among deposits made before it, up to 1,024 per pool. A small or new pool offers less cover.
- Timing and behaviour: fast withdrawals, reused addresses, and RPC or wallet metadata can reduce privacy.
- One denomination: 1 USDC. Larger amounts mean many deposits, which can form patterns.
- Gas is not a mixer: transfers stay visible; it only removes the SOL funding link.
See How shielded pools work on Solana.
Operational risks
- Lost notes are lost funds. Ghost Notes and gas notes are bearer secrets. Store them like passwords.
- Phishing. Use only ghostlabshq.xyz. Ghost has not launched an official token; treat any "Ghost token" as unofficial unless announced on our channels.
- Regulation. Privacy tools face evolving rules. You are responsible for your own compliance.
What is planned
From the README and litepaper roadmap, with no committed dates:
- Multisig authority and treasury; rent-aware Gas pricing; multi-party trusted setup.
- On-chain Groth16 verification with
alt_bn128and on-chain root history; independent audit. - More denominations or larger trees; relayer network; association-set compliance proofs.
How to use Ghost more safely
- Start with 1 USDC and a small gas top-up.
- Save notes offline, never in screenshots or chats.
- Withdraw to fresh addresses and wait before withdrawing.
- Read the code. It is all on GitHub.
- Report bugs. If a note, withdrawal, or sponsored send behaves in a way it should not, tell us.
FAQ
Has Ghost been audited? No. Ghost has not completed a formal third-party security audit. A pre-open-source secrets scan was done, which is not a security audit. An independent audit is on the roadmap.
Can Ghost steal my funds? For Gas sends, tokens move only with your signature and Ghost never holds them. For Shield, proof verification is done by the relayer today, so a malicious or compromised relayer could steal pool funds.
What happens if I lose my note? Both Ghost Notes and gas notes are bearer secrets kept on your device. Ghost cannot recover them, and anyone who gets one can spend it.
Is Ghost open source? Yes. The program, circuit, SDK, relayer, and frontend are on GitHub under the MIT license.
How much should I put in? Only what you can afford to lose. Ghost is an early mainnet pilot, and Shield deposits are fixed at 1 USDC each.
Read before you use
The risk disclosure, trust model, and What is a relayer? cover the details. Then try a small amount in the app.