Skip to content
CCPEDIAby Unity Nodes

RFP 22: DamlSec, automated security analysis of compiled Daml packages, seeking a Tech & Ops champion

1 posts13 viewsLast activity 10d ago

  1. Giorgio_BonuccelliOP

    Hi all, I’m Giorgio Bonuccelli at Dedaub.

    Daml contracts on Canton have almost no automated adversarial security tooling, and manual review does not enumerate every path through a choice. DamlSec is our Dev Fund proposal under RFP 22 (Daml Security Standards and Secure Development), filed as PR #971: Proposal: DamlSec, Automated Security Analysis of DAML Contracts (RFP 22) - resubmission of #194 by georgeiv76 · Pull Request #971 · canton-foundation/canton-dev-fund · GitHub

    DamlSec is an open-source CLI and library. It takes a compiled .dar, symbolically executes the choices of each template, and reports authorization, conservation, arithmetic and rounding, divulgence, and key/maintainer violations with concrete counterexamples, before a package is deployed or vetted. It is written in Scala on the same Speedy compiler pass as the Daml runtime, so Canton contributors can maintain and extend it.

    Who it is for:

    • Daml developers: a CLI and a GitHub Actions template that gate deployment on finding-free output.
    • Validator operators and parties vetting packages: it needs no source code, so a third-party package can be checked before it is vetted (RFP 3, Automated Application Management).
    • Auditors: systematic path coverage that manual review cannot provide. We will use it in our own Daml audits and publish the integration as a reference.

    The request is 250,000 CC over 14 weeks, with milestones in the proposal. It resubmits #194, which sat in “Needs Champion” from July 28 until it was closed in the Dev Fund 2.0 transition.

    We’re looking for a Champion from the Tech & Ops Committee. If you build or vet Daml packages, tell us which properties you would want checked first. Neville Grech, who wrote the proposal, is happy to do a walkthrough. The machine-checked Daml-LF 2 semantics proposed by Obsidian under the same RFP (RFP 22: a machine-checked semantics of Daml-LF 2, seeking a Tech & Ops champion) looks like a useful reference to test DamlSec’s model against, and we’d be glad to compare notes.