Home›Discover›Technology›Trail of Bits Blog

Trail of Bits Blog

Posts per week · about 00 subscribersenTechnology
blog.trailofbits.com

Recent articles

Subscribe and these — and every new article — show up in your reader

After Binance, check what your signing systems can approve

Binance’s October 2026 security incident raises an operational question for every organization holding user funds: Can your security controls recognize when a valid signature grants an attacker wallet authority? If an organization only moni

The cryptography behind electronic voting (and why paper ballots are still essential)

AI summaryThe article explains why paper ballots remain essential for elections despite cryptographic advances, describing how systems like Helios and ElectionGuard use techniques such as homomorphic encryption, threshold key-sharing, and zero-knowledge proofs to protect voter privacy and provide verifiable tallies. It highlights that electronic voting introduces unique risks—such as scalable software vulnerabilities, compromised clients, and coercion—that paper-based systems largely avoid through physical controls and detectability of failures. Ultimately, cryptography can strengthen verifiability as a layer atop paper infrastructure, but it cannot fully replace the security and trust of paper ballots in high-stakes public elections.

Backporting security fixes at scale with Codex

Stable Linux releases lack existing security fixes because backporting them is time-consuming and often thankless work. We’re using Codex to reduce the backporting process time from days to hours per fix, empowering human patch reviewers to

Your AI agent fixed the bug, but what else did it change?

AI summaryTrail of Bits has released two plugins, patching-bugs and regression-hunt, developed through its Patch the Planet initiative with OpenAI, which let AI agents reproduce reported bugs, develop fixes, and check whether changes break previously working behavior in open-source projects. The plugins standardize patching through strict input/output schemas, live proof-of-concept validation, and project-specific threat models and patching guidelines, with regression-hunt producing 25% fewer false-positive findings than a baseline Codex agent in preliminary evaluations. The authors argue that as AI accelerates bug discovery, the industry needs reliable, standardized patching workflows, and they encourage maintainers to add THREAT_MODEL.md and PATCHING_GUIDELINES.md files so the agents work within each project's rules.

Package managers have an integrity problem

AI summaryThe author tested 25 popular package managers against a simulated malicious package repository using a Docker- and mitmproxy-based harness, finding that fewer than half check integrity via lockfiles by default, only Go and vcpkg verify every downloaded package, and only Go verifies signatures by default. Many cryptographic implementations fall short in subtle ways—for example, Pub detects hash mismatches but installs packages anyway, Conan treats an MD5 hash merely as an identifier, and cpanminus uses unencrypted HTTP—due to design choices, prioritization, or the complexity of developer-friendly solutions. The article warns that as developer compromise becomes harder, attackers will shift to the repositories serving code, and explores which cryptographic designs package managers should adopt going forward.

SequenceHash: multihashing for the rest of us

Multihashing is one of those cryptographic tasks that’s easy not to think about too much. This is unfortunate, because multihashing is a common stumbling point when cryptographers try to use hashes. As part of our goal to “fix software, not

Don't let TEEs break your MPC

Threshold signature schemes, a form of multi-party computation (MPC) that lets a set of parties sign together without any one of them holding the key, are increasingly deployed inside trusted execution environments (TEEs). The combination i

SAML: A fractal of bad design

Born out of academia and raised in corporate IT departments, the Security Assertion Markup Language (SAML) authentication protocol continues to be a staple in these organizations. However, it’s time for it to retire. With the rise of softwa

Auditing in the age of (good enough) AI

Security firms have published numerous blog posts describing how they pointed their agent harness at a codebase and found dozens of bugs (we’re one of them). However, these posts tend to focus on agentic code review, which is just one aspec

1Password's AI patching benchmark is misleading

1Password’s FLAWED report, published on August 6, 2026, gives defenders a misleading picture of AI patching. Its headline says models produced clean fixes only 26% of the time. That figure includes experiments that deliberately instructed a

A “proof” of Fermat’s Last Theorem that fits the margin

Fermat famously claimed to have a “truly marvelous proof” of his Last Theorem, but he never wrote it down, insisting the margin of his page was too narrow to contain it. A few centuries later, Anthropic announced a complete formalization of

VMs won't contain cyber-capable agents

As part of Patch the Planet, we received preview access to GPT 5.6-Cyber with a simple task: evaluate its cyber capabilities. Recent events inspired me to give it a challenge to work through: escape the VM I’d normally use for sandboxing. T

State divergence enables unauthorized access

We found and reported a bug in Provenance Blockchain, a public proof-of-stake chain built on Cosmos SDK, that lets any user grant themselves admin control over marker accounts without holding a single token. Provenance covers a range of fin

How Trail of Bits helps verify the integrity of your Signal chats

Every Signal chat starts the same way: the client asks the Signal server for the public key associated with your contact’s phone number. But how do you know the server gave you the right key? A compromised server could provide a false publi

A few notes on AWS Nitro Enclaves: KMS integration

Nitro Enclaves and Key Management Service (KMS) feel like a natural fit: since the KMS can verify attestation documents generated by the enclaves, developers can offload key management tasks from their applications to the AWS-managed servic

Building secure Uniswap v4 hooks

Uniswap v4 hooks let developers add custom behavior to pools, including dynamic fees, custom accounting, and external integrations. This flexibility moves some security responsibilities into application and hook code. The Cork and Bunni exp

How we use /goal to find bugs in Patch the Planet

Codex’s /goal feature amplifies bug hunting, but getting good results requires the right prompt, the right scope, and the right number of outcomes per run. For Patch the Planet, our joint initiative with OpenAI to find and fix bugs in open-

Rust-proof your code with our new Testing Handbook chapter

We’ve added a new chapter to our Testing Handbook: a comprehensive guide to security testing Rust programs. This chapter covers the tools and techniques we use at Trail of Bits to validate the security of Rust programs and systems. fn main(

Mutation testing comes to DAML

In April we released Mewt, our open-source mutation-testing engine that finds the gaps in your test suite. Today we’re expanding it with support for DAML, the language Canton Network applications are written in. Mewt now reads DAML, generat

GPT-5.5-Cyber built a zlib fuzzing lab in a day

We’re running Patch the Planet, an ongoing collaboration with OpenAI that pairs Trail of Bits engineers directly with more than 30 open-source projects. Its goal is to front-run a serious problem facing open-source maintainers: highly capab