Is this binary actually built from that public source code?
Devcon·Fri, Nov 6, 2026, 12:00 AM
Speaker
Transcript
[music] [music]
Thank you, Kid. Hello. Thank you, Kid. So, is binary actually built from that public source code is a question that I've been asking myself throughout my journey as an engineer whenever I would install any kind of tools. So, I mean this question might make sense or not, but to make more sense of it, we can first understand the software release life cycle.
So, in a nutshell, we basically have some source code on GitHub and then there is a team who compiles this code and publishes the binary. So, this can happen in in the CI or it can also happen on the developer machine as well. And then they also signed the binary using GPG signatures. And from the user part of site, so we just go to our terminal and or on any application through which we install the binaries, we say brew install this and this or any client that we're installing. So, it just downloads the binary from the CDN or somewhere.
We verify the binary and then we execute code. We don't know if I mean that is the question if is this binary is actually built from that public source code that we installed. So, usually we think that okay, this is GPG signed, so this signature verifies. So, I guess it's fine, right? But then we can look at this.
So, there are a lot of incidents which I can just press through because this is a lightning talk. So, again now if we ask this question, is this binary actually built from that public source code that we see on GitHub? So, yeah, I mean we can say that it's GitHub I mean it's GPG signed, but then we actually don't know because we see the binary and then there is source code. We have to reverse engineer the binary just to know if right. So, now we can dive into this thing that how we can actually do the binary verification.
Is that even possible? And what people can do right now. So, one of the solution is self build. I mean whoever is using that project, if you are the user, you can just clone the repo and then self build and then basically add it to your system and that's how you can do it. But the thing is if you're using go it's fine, but some of the tool chains like rust they take a lot of it's not practical basically and then there are companies like Google who have who know this problem and what they do with this public libraries is they have this they have a bucket in which they publish I mean hashes of popular libraries like React JS and all of those things which are popular from NPM and many ecosystems and anyone wants to see that so they can actually verify from their system.
And then there are teams like Bitcoin who have I mean whenever they want to release a binary they would just have the community actually build it and then when they publish a release the community would say that okay this binary looks good. So, this is a manual process and again it requires a lot of people to coordinate. And there are also more interesting solutions like ZK proof of build. You actually run the build entire thing in a ZK proof, but that's obviously very expensive. And then we can I mean if you want to avoid ZK you can do TE, but I think that's too much.
But then there is a solution which is in between. So, on one end what we have is just one person that is a developer who signs the binary I mean builds the binary and publishes it and on the other end that is a self build thing where everyone, millions of users clone the repo, build it and then publish it. So, we can find something in between. So, that is the social layer attestation where let's say a small set of people like 100, 200 maybe 1000 people they just build it locally and then they publicly mention that okay, I have tried building it. And the hash looks good.
So so I've tried to think about it and how we can actually do it in practice. So so there is this just a hobby side project that I worked on. It's called ledger.build. You can if you want you can open it in your system.
So basically it works in a way that right now I'm just focusing on Ethereum client binaries like the EL and CL clients. So you can so let me go to the next slide. You can just copy this thing and put in your cloud code cursor, whatever it is. It will there is a prompt. It will just clone all the Ethereum clients or you can also specifically mention that I just want to attest Geth or whatever client you're interested in or whatever target it is.
Your system will build it and then it will publish the hash to ES or there were three backends that I'm thinking about. So this is pretty much it. I mean just to the back slide, I mean first you build it on yourself and then you publish your attestation and then whoever is interested in that binary, they can actually check the network. So yeah, this is it.
Thank you very much so. [applause] I'm really glad that someone's making sure that our binaries are secure because I know not enough not enough people are actually checking them. We're just running arbitrary binaries and hoping for the best. Any questions?
It's kind of well, what about NIX and how do you achieve deterministic builds? That's the bigger question because that's a tough
build is definitely something. I mean I was just running the builds of all of the clients. All of the I was running the builds from for all of all of the clients and not all of them have a good build pipeline. I mean I have to set a lot of flags to get deterministic building. So there are some in which timestamp is built in.
So that is that is a challenge right now. Not everyone is using that pipeline. But but I I I've heard about this problem and my friend was talking about but not a lot of people are using it. That that is the problem.
Thank you.
[music]
Automatic transcript — names and jargon may be misspelled.