Kaspero Labs released version 0.18.0 of kaspa-redteam, a free tool that throws known attacks at Kaspa smart contracts, on Monday, Nov. 30. The new version can take real transactions that carry a zero-knowledge (ZK) proof, pulled from Kaspa’s chain, and try to abuse them the way an attacker would. The code was pushed to GitHub at 5:12 p.m. ET and announced on X at 5:29 p.m. ET.

The official @kaspaunchained account replied “nice work” 20 minutes later. Kaspero Labs was clear about the limit: “What it does not test: the circuit.”

What the tool does

Kaspa is a proof-of-work network built as a BlockDAG, which keeps parallel blocks and orders them with a consensus rule called GHOSTDAG. Since the Toccata hard fork in June 2026, coins can be covenants: coins that carry rules their next transaction must follow. Developers usually write those rules in Silverscript, a language that compiles to Kaspa script.

kaspa-redteam compiles a Silverscript contract, finds an honest way to spend each path, then tries hostile variations. According to its README, every attack transaction “is signed for real and judged by rusty-kaspa’s own consensus validator,” the main Kaspa node software. A finding is reported only when consensus accepts something it should have rejected, along with the exact transaction so anyone can replay it.

What’s new in 0.18.0

Some covenants check a Groth16 proof, a compact ZK proof that an off-chain computation was done correctly. Bridges and other apps use them so Kaspa can accept facts it cannot compute itself. Version 0.18.0 takes the transaction IDs of such a covenant, keeps the real proof and real verifying key, and tries four attacks, per the announcement:

  • changing the data next to the proof while keeping the proof
  • putting another real proof under the same data
  • replaying a proof on another coin of the same covenant
  • re-randomizing the proof, which “always works on Groth16, so never identify a proof by its bytes”

The release also fixes how the tool reports fees. Kaspero Labs says a spend that verifies a proof “weighs around 170,000 grams, so its fee is around 0.17 KAS,” which earlier versions had shown as leftover value. A new check, FEE-02, measures how much of a covenant’s fee ceiling is left for whoever submits the transaction first. KaspaNews did not independently measure those fees.

Limits and caveats

The tool cannot make real proofs, so when testing source code it swaps in a test verifying key. That tests “everything around the proof,” the README says, but “it does not test the circuit, or whether the key in the script is the right one.” In the announcement’s words, “A valid proof of a wrong statement passes everything here.”

The README also stresses that a clean result “is not an audit or a guarantee.” The project is small: three GitHub stars, MIT-licensed, created Oct. 29, with commits that credit an AI coding assistant as co-author. A browser version runs at redteam.kasperolabs.com; the web page was hardened after what the commit log calls “the Nov 28 probe,” the same weekend Kaspero Labs reported attacks on its services with, by its own account, no funds lost.

There is also an interest to disclose. Kaspero Labs builds Kozmic Bridge, a ZK-verified USDC bridge to Kaspa, so it tests the same class of contract it ships. The tool is open source, which lets others check it.

Why it matters and what to watch

ZK covenants are where Kaspa’s newest money sits, and November showed the risk. A critical RISC Zero advisory forced new verifying keys and led Kaspa to retire its native STARK check, with every Groth16 covenant needing its own migration. Replay and copy-from-mempool bugs are a classic way to drain such contracts, and the tool’s example file shows one: a payout that goes to whoever submits a valid proof.

For builders, it is a free first pass before paying for an audit. For holders using bridges or ZK apps, it is a reminder that a passing scan says nothing about whether the proof proves the right thing.

Kaspero Labs says it is still working on circuit testing and will publish instructions for testing bad proofs. Watch whether other Kaspa ZK projects publish redteam reports, and for any audit of Kozmic Bridge.

Sources