Retroactive Grant Application - Independent Security Audit of FROST v3 (ZIP-312)

Hi all — submitting my Q4 retroactive grant application for an independent security audit of FROST v3, the threshold Schnorr scheme selected for Zcash shielded multisig (ZIP-312).

GitHub application: https://github.com/Financial-Privacy-Foundation/ZcashCoinholderGrantsProgram/issues/81

Summary

Independent, in-depth security audit of FROST v3 — covering frost-core v3.0.0, the RedPallas/RedJubjub ciphersuites, the DKG implementation, and the frost-tools application layer. Headline result, stated honestly: no critical vulnerability was found; the codebase is in excellent shape — this audit independently confirms it across 21+ investigated leads, each chased to a documented kill reason.

Requested amount: $40,000 (below the $50k KYC threshold; KYC available on request).

What was done

Round 1 — library audit (frost-core v3.0.0): 14 leads investigated, all killed with documented kill reasons. Covered nonce management (hedged generation per RFC 9591), binding factors, IncorrectCommitment scope, DKG robustness (Schnorr PoK domain separation, rogue-key defense, cheater detection default-on), challenge H2 against the Zcash spec, domain separation across all hash contexts, re-randomization (ZIP-312), and the 577-line RedPallas custom ciphersuite recovered from its pre-removal commit — the highest-risk zone.

Round 2 — application layer: one confirmed denial-of-service in frostd (memory exhaustion via unbounded recipient buffering — mechanism confirmed by source-code review and local fan-out test), filed as ZcashFoundation/frost-tools#611; ~1,270-request fuzzing campaign against the frostd HTTP state machine (release + debug builds): zero crashes, zero panics; two false positives rigorously debunked by the same methodology (Noise_K impersonation; missing cheater detection — both retracted with full errata); blind-signing design gap documented end-to-end for future wallet integrators; ywallet/Zallet integration check (neither ships FROST signing code).

The honest caveats

  • No critical vulnerability. The $150k+ Q3 security grants were for actual vulnerabilities; this does not claim that tier of impact.
  • The confirmed DoS is in frostd, explicitly demo/reference code; no production wallet was affected.
  • The audit protects a future, not a present: no production wallet uses FROST yet.
  • I am an unknown applicant in this ecosystem — which is exactly why everything is published and verifiable.

Why it is worth funding

  1. Independent assurance that FROST v3 — the foundation of shielded multisig — is sound, by someone other than the team.
  2. One real bug with a reproducible PoC the maintainers can fix (#611).
  3. A documented blind-signing design gap every future FROST wallet integrator should address before shipping.
  4. Methodological transparency, including the debunked false positives.

All reports, PoC code, and fuzzing harnesses: GitHub - metaforismo/frost-security-review: Security review of FROST, including reproducible reports and testing artifacts. · GitHub

Happy to answer any questions during the review period — including the uncomfortable ones.

Yeah, here’s one: an audit report is only worth it if the auditor is reputed and has something to lose. What do you have to lose here if you did the audit recklessly or had an AI do it for you?

I think it would be helpful if you could provide a breakdown of the amount you’re requesting, including how many hours you spent on the audit and what hourly rate you used to calculate the total

Fair question, and I said I would answer the uncomfortable ones.

What I have to lose: this is public work under my real name. The full package is checkable — the research repo, the draft report, the upstream issues, every claim linked to something you can verify. If I did this recklessly, or let a model invent results, the review period exists to catch exactly that. Getting caught would end my credibility with this community and with every future grant round. That is a real cost, and it is the reason the work is documented the way it is.

On AI: I do not hide it. AI tools were part of the process. But nothing in the report asks to be trusted on my word. Every finding I claim rests on something executed and reproduced — PoCs run against the real binaries, differential testing against an independent reimplementation — and the negative results are published too: in the last round, 17 attack chains were killed one by one with the broken link documented. The report also states plainly what was not found: no critical vulnerability in the FROST core.

One result from the continued work, stated plainly: a specification-level issue in ZIP-312. The threat model says a rogue coordinator should not be able to create signed transactions without the approval of the participants — but “approval” is never defined, the specified SIGHASH check is syntactic, and the authorization mechanism is declared out of scope of the ZIP. I executed the full walkthrough against frost-core v3.0.0: a participant performing exactly the specified checks signs an attacker-chosen transaction. To be clear, this is not a break of the FROST cryptography; it is a gap between what the specification promises and what it requires. The PoC, the run log, and a concrete suggested repair are in the research repo for anyone to check.

If the community decides the work is not worth $40k, that is a legitimate outcome of the vote. What I can promise is verifiability, not trust.

I will be blunt with you. The second issue becomes, does FROST v3 maintainers accept your audit as legitimate and displays it on the README of the official repository? I can audit Linux too and demand $1M from the Linux Foundation.

The main risk is findings you DIDN’T detect. It’s called “comprehensive within reason and ability” guarantee. It could just as easily have been false sense of security.

Further, it looks like the AI was the only word. All reports seem to be AI generated and all commits were made on one single day, Oct 17. Heck, it seems a commit system wasn’t even used until the findings needed polishing, which strongly points to the you even initialising git only after the whole audit was done. Strange, but not if you just activated an AI agent cluster, waited till it was done, THEN did a git init.

Normally one wouldn’t object, but the issue is you clearly DO know HOW to use Git, and you were doing pushes upto 8 times after the initial commit. So why only do it AFTER the main thing that needs Git, the main audit, has completed?

I am sorry, but the risk/reward ratio is extreme here. If the community funds you, the incentive for everyone is to buy a Claude subscription and then tell it to audit any given project, wait 30 minutes, and hope for a 2,000x ROI on a “maybe yes maybe not” shot.

3 Likes

A further issue I have is that:

  • This post and application is in English.
  • FROST v3 is in English.
  • Your report is Italian.

Makes sense if you are Italian, except code comments are in English, a characteristic of models to adapt to the language you’re talking it to.

So why Italian? Clearly, if this was your own work, you were making code comments in flawless English. You wrote this grant application in English. The reviewers are also English. Why would you choose flawless Italian JUST for the final report, given the fluent English comments?

It gets worser. In further commits, you simultaneously add code files and PoC files whose comments are absolute flawless English as well as demarcated by max-length, either a linter or an AI hallmark, while simultaneously updating the actual audit report ALSO in flawless Italian, also AI-like format.

And I just remembered. It so happens that the Foundation does not require KYC for approved grants under $50,000, and they are paid in ZEC, which cannot be tracked or reverted. Huh.

@metaforismo A security audit grant request without official maintainer appointment will come with certain comments

I would appreciate if you could answer these questions, it may benefit the non-technical coin-holders when deciding to vote on your proposal

i) Have the maintainers implemented your audit findings and merged remediation PRs?

ii) If yes to above, have the maintainers credited you in said fixes with GHSA/Comments in fix-PRs etc

iii) Did you responsibly disclose your findings and audit report privately to the maintainers of FROST (Zcash Foundation)

iv) If no to above, did you publicize the audit findings and PoC without proper maintainer notice thereby breaching good-faith

For the blind-signing point, here is how Konclave handles it in production, and what is still open: https://github.com/zcash/zips/pull/895#issuecomment-6633878497

Answering the new questions in one place.

Budget breakdown (sangsoo): Fair question. A retroactive grant is not priced as hours × rate — the $40,000 is calibrated against the program’s own precedents, and priced deliberately low next to them: Q3 security grants were $150k+ for actual vulnerabilities, and commissioned external audits ran $599k–$739k. What the $40k covers: roughly three weeks of specialist work across Oct 16 – Nov 4, in four documented rounds — 14 library leads chased to documented kills, the frostd DoS reproduced and measured (frost-tools#611), a ~1,270-request fuzzing campaign with zero crashes, differential testing against an independent reimplementation, and a spec-level ZIP-312 gap executed end-to-end three times with a negative control. Self-funded, done at my own risk. If the community thinks that is worth less, the vote is the right place to say it.

Maintainer appointment / README (strahncryptography): Nobody appointed me, and this program does not require appointment — it requires completed work, verified during review by its intended users or their representatives. That is what this period is for. What I did do: filed the frostd DoS as a normal upstream issue on 17/10 (frost-tools#611) and posted the full review to the FROST maintainers’ repo the same day (frost#1102), explicitly asking for technical corrections. Nothing was withheld for leverage: the DoS is in demo code (stated plainly in the issue), and F1 is a gap in a public specification document, not an exploitable secret — I published the PoC, the run log, and a concrete suggested repair the same day it was confirmed. If maintainers say any of this is wrong, I want that on the record here. On the four questions directly: (i) no remediation PRs merged — the work is three weeks old and the confirmed finding is in demo code; (ii) nothing to credit yet; (iii) the heads-up went to the upstream repos on 17/10, public by the program’s design — no private embargo was needed because no production system was at risk; (iv) publishing the findings is not a breach of good faith; it is what this grant funds — completed, verifiable work.

On undetected findings: agreed, fully. No audit — mine included — proves completeness. That is why the report states plainly what was NOT found (no critical vulnerability in the FROST core) and publishes the killed leads with their kill reasons. Trust the artifacts, not the auditor.

On the git history: the repo is the public deliverable package, created 17/10 for this application; the commits are public and span 17/10 to 4/11 — Round 4 (F1) was executed this week, three runs plus a negative control, all in the run log. If the timeline reads strangely, the remedy is the same as for everything else: the evidence is checkable.

On Italian vs English: Italian is my native language; this thread, the GitHub issue, and the upstream issues are in English, and code comments follow English conventions. Language does not change what the PoCs do when you run them.

On KYC/ZEC: $40k is below the program’s $50k KYC threshold; I stated KYC is available on request if the key-holders want it. Payment in shielded ZEC is the program’s rule for everyone, not my choice.

What I can promise is verifiability, not trust. Happy to keep answering.

1 Like

Thanks for this — it is genuinely useful data.

Your production path is, in effect, the concrete repair the finding asks for: each device derives the sighash from its own PCZT copy and refuses to sign what the coordinator sent instead. That this has to be built outside the spec is the point. Against the text as written (be04583), “approval” appears only in the threat model and is never defined operationally; the only hard requirement is that each signer “MUST be satisfied that the transaction should be authorized,” with the mechanism left open. A minimal but compliant implementation can satisfy every MUST in the document and still sign whatever the coordinator puts in the signing package — which is what the PoC demonstrates.

Your broader question is the right one, and if the answer is yes — every participant is a Signer in the ZIP-374 sense, with the per-device checks stated here — then writing that into the ZIP resolves F1 as stated. The residual you flag (approval bound to a proposal id rather than its content, konclave#567) is a good illustration of why the mechanism, not just the requirement, needs to be in the text.

Happy to test a revision against the PoC.

i) Could you confirm that no maintainer has acknowledged your audit report and contribution to the demo repo?

ii) The issue here isn’t that you haven’t been credited yet, it’s that the maintainer of the code you audited hasn’t triaged your findings.

iii) No production system was at risk? Is this because your DoS finding was on the FROST demo repo?

iv) You’re not entirely wrong, but it’s only because the finding was on a demo repo.

2 Likes

Those grants rewarded real critical vulnerabilities with concrete security impact on Zcash, while the external audits were explicitly commissioned with agreed scopes and budgets.

My concern is whether this review was actually necessary without first consulting the maintainers.

reports:

4 Likes

craftsoldier — on the four points, in order:

(i) Confirmed: frost-tools#611 has been open since 17/10 with no maintainer response — one comment, mine, verified again today. frost#1102 has no comments. That is the public record.

(ii) Agreed on the substance: the findings have not been triaged by the maintainers. That is what the program’s review period (16/11–16/12) is for — verification of completed work by its intended users or their representatives. The public filings on 17/10, with an explicit request for technical corrections, were the consultation. Nothing was held back for leverage.

(iii) Yes — “no production system was at risk” holds precisely because the confirmed DoS is in the demo’s send() path. The issue states that plainly, which is why no private embargo was needed. The mechanism (unbounded per-recipient buffering) is also distinct from what Least Authority flagged in the demo’s message handling.

(iv) Partly agreed, with one correction: the demo caveat applies to the DoS, not to the whole review. F1 is a gap in the ZIP-312 specification text — it constrains every compliant implementation, not the demo. Least Authority’s own “signing oracle” issue (April 2025) was demo-app-level and was fixed with a consent prompt in the demo; F1 is the remaining spec-level gap — “approval” is still undefined in the text at be04583. That a production implementer engaged with it today, describing mitigations built outside the spec, is evidence it is not demo-limited.

sangsoo — on the prior audits: they are real work, and the application does not pretend otherwise. NCC’s 2023 assessment covered the FROST library at v0.6.0; Least Authority’s April 2025 audit covered the demo at that time’s revision. This review covered different ground: frost-core v3.0.0, the ZIP-312 specification itself (a level neither audit addressed), differential testing against an independent reimplementation, and a ~1,270-request fuzzing campaign.

On necessity: the program funds independent, completed, verifiable work — it does not require maintainer pre-approval, and the 17/10 public filings were the consultation. The $40k is deliberately priced below the program’s own precedents for exactly the reasons you state: no critical vulnerability in production is claimed. If the community judges the work worth less, the vote is the mechanism for saying so.