# The Trail of Bits Blog

Recent content on The Trail of Bits Blog

This is one page of public article previews, not the complete archive. Follow Next page to continue. Summaries are not the original full articles.

## After Binance, check what your signing systems can approve

DevFeed: [After Binance, check what your signing systems can approve](<https://devfeed.tech/articles/after-binance-check-what-your-signing-systems-can-approve-121392.md>)

Original publisher: [Read original article](<https://blog.trailofbits.com/2026/11/06/after-binance-check-what-your-signing-systems-can-approve/>)

Author: "Tarun Bansal"; "Jaime Iglesias"; "Anish Naik"

Published: 2026-11-06T12:00:00Z

Content type: tutorial

Language: en

Sources: [The Trail of Bits Blog](<https://devfeed.tech/sources/the-trail-of-bits-blog-2.md>), [Trail of Bits](<https://devfeed.tech/sources/the-trail-of-bits-blog.md>)

Topics: [Security](<https://devfeed.tech/topics/security.md>), [Access Control](<https://devfeed.tech/topics/access-control.md>), [credential-based attacks](<https://devfeed.tech/topics/credential-based-attacks.md>), [observability](<https://devfeed.tech/topics/observability.md>), [Social engineering](<https://devfeed.tech/topics/social-engineering.md>), [Credential theft](<https://devfeed.tech/topics/credential-theft.md>)

Tags: [2026](<https://devfeed.tech/tags/2026.md>), [ai](<https://devfeed.tech/tags/ai.md>), [binance](<https://devfeed.tech/tags/binance.md>), [blockchain](<https://devfeed.tech/tags/blockchain.md>), [credentials](<https://devfeed.tech/tags/credentials.md>), [delegation](<https://devfeed.tech/tags/delegation.md>), [detection-rules](<https://devfeed.tech/tags/detection-rules.md>), [devops](<https://devfeed.tech/tags/devops.md>), [eip-7702](<https://devfeed.tech/tags/eip-7702.md>), [ethereum](<https://devfeed.tech/tags/ethereum.md>), [guides](<https://devfeed.tech/tags/guides.md>), [security](<https://devfeed.tech/tags/security.md>), [security-controls](<https://devfeed.tech/tags/security-controls.md>), [security-incident](<https://devfeed.tech/tags/security-incident.md>), [signing](<https://devfeed.tech/tags/signing.md>), [social-engineering](<https://devfeed.tech/tags/social-engineering.md>), [stolen-credentials](<https://devfeed.tech/tags/stolen-credentials.md>), [teams](<https://devfeed.tech/tags/teams.md>)

### AI overview

Binance's report describes an attack in which stolen credentials and access to its wallet-signing service let an attacker obtain valid signatures without extracting wallet keys. An EIP-7702 delegation then enabled repeated transfers, including of later deposits, without further Binance signatures; other wallets were drained through ordinary signed transfers. The article recommends four steps: inventory and restrict signing access; treat delegation as an administrative privilege and approve its account, delegate, code, chain, and nonce; enforce damage limits through separate custody controls the operational key cannot change; and monitor authority changes across delegation, modules, and ERC-4337 operations. It also recommends testing compromise paths, simulations, alerts, and incident response, then assigning ongoing review whenever supported protocols, wallets, or signing services change.

### Source excerpt

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 monitors transfers and ownership changes, it may miss the shift in wallet authority until assets move. Binance's initial update about the incident suggested that a compromised DevOps laptop allowed an attacker to access a service container and submit unauthorized withdrawals. Its second update reported additional breaches but no evidence that wallet private keys had leaked. In its November 3 report, Binance described a broader attack involving social engineering, misuse of an internal AI tool, stolen credentials, and unauthorized access to its wallet-signing service. The attacker nevertheless obtained valid signatures, illustrating a major risk: a compromised server with permission to request signatures can misuse a protected key without extracting it. The attacker used an EIP-7702 delegation that allows a wallet to sign a standing instruction: "Use this code when my account is called." Ethereum keeps that instruction in place until it is changed or cleared using the wallet's key. That enabled repeated transfers, including funds deposited after the first theft, without further signatures from Binance. Other Binance wallets were drained through ordinary signed transfers. Transaction execution and monitoring systems must keep pace with Ethereum. EIP-7702 places delegation authorizations outside ordinary calldata. Session keys, recovery paths, authorization modules, Safe modules, and ERC-4337 UserOperations all add execution paths that signing policies and monitors must understand. Systems that have not been updated can miss malicious authority changes and asset movements, leaving wallets exposed. Teams must update their detection rules and test that these attack paths are covered. If you're responsible for securing wallet infrastructure

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

DevFeed: [The cryptography behind electronic voting (and why paper ballots are still essential)](<https://devfeed.tech/articles/the-cryptography-behind-electronic-voting-and-why-paper-ballots-are-still-essential-114216.md>)

Original publisher: [Read original article](<https://blog.trailofbits.com/2026/11/03/the-cryptography-behind-electronic-voting-and-why-paper-ballots-are-still-essential/>)

Author: "Fredrik Dahlgren"

Published: 2026-11-03T12:00:00Z

Content type: article

Language: en

Sources: [The Trail of Bits Blog](<https://devfeed.tech/sources/the-trail-of-bits-blog-2.md>), [Trail of Bits](<https://devfeed.tech/sources/the-trail-of-bits-blog.md>)

Topics: [Cryptography](<https://devfeed.tech/topics/cryptography.md>), [trust](<https://devfeed.tech/topics/trust.md>)

Tags: [audits](<https://devfeed.tech/tags/audits.md>), [cryptographic](<https://devfeed.tech/tags/cryptographic.md>), [cryptography](<https://devfeed.tech/tags/cryptography.md>), [elections](<https://devfeed.tech/tags/elections.md>), [electronic-voting](<https://devfeed.tech/tags/electronic-voting.md>), [helios](<https://devfeed.tech/tags/helios.md>), [infrastructure](<https://devfeed.tech/tags/infrastructure.md>), [internet](<https://devfeed.tech/tags/internet.md>), [like](<https://devfeed.tech/tags/like.md>), [paper](<https://devfeed.tech/tags/paper.md>), [privacy](<https://devfeed.tech/tags/privacy.md>), [risk](<https://devfeed.tech/tags/risk.md>), [security](<https://devfeed.tech/tags/security.md>), [security-and-trust](<https://devfeed.tech/tags/security-and-trust.md>), [tally](<https://devfeed.tech/tags/tally.md>), [trust](<https://devfeed.tech/tags/trust.md>), [voting](<https://devfeed.tech/tags/voting.md>), [zero-knowledge](<https://devfeed.tech/tags/zero-knowledge.md>)

### AI overview

Paper ballots remain essential in general elections because cryptography can improve ballot secrecy and tally verification but does not remove key risks of electronic voting. Helios targets low-stakes, low-coercion elections; ElectionGuard adds end-to-end verifiability to existing paper-based systems. Threshold key sharing and homomorphic encryption can keep individual votes confidential while enabling tallying, and zero-knowledge proofs can validate ballots and results. Benaloh's challenge and public ballot records help voters detect altered or omitted ballots, but detection depends on voter participation and does not address all client compromises, coercion, authentication, or injected votes. The cited National Academies report says no known technology guarantees secrecy, security, and verifiability for ballots transmitted over the internet.

### Source excerpt

As millions of Americans vote in today's U.S. midterms, most will use paper ballots, which are protected by strict chain-of-custody protocols and, in some cases, statistical audits. You may wonder why we still use paper for our elections and voting systems when tasks like banking, tax filing, and document signing have moved away from paper-based legacy systems and become fully electronic. The short answer: security. That may come as a surprise to some. After all, cryptography and other security advancements have enabled secure electronic systems for many applications. In fact, cryptography can be used to provide two essential safeguards in elections: keeping (1) individual votes secret while (2) making the final tally independently verifiable. This is exactly the approach of cryptographic protocols like Helios and ElectionGuard. However, Helios intentionally targets lower-risk and lower-coercion settings rather than high-stakes public elections. ElectionGuard, by contrast, is intended for public elections, but not as a replacement for a paper-based system; it is used as a cryptographic layer integrated with traditional voting infrastructure. In this blog post, we'll explain how cryptographic techniques can help protect ballot secrecy and prevent manipulation in electronic voting systems, and explore the limitations of these systems. Although cryptography can strengthen election verifiability and have other strong security properties, it cannot fully replace the security and trust of existing paper ballot systems in general elections. The challenges of electronic voting The National Academy of Sciences' excellent 2018 report on election security concludes that electronic ballot return (also known as online voting or internet voting) should not be used in general elections, since "no known technology guarantees the secrecy, security, and verifiability of a marked ballot transmitted over the Internet." The difficulty of this problem makes sense when you consider the st

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

DevFeed: [Your AI agent fixed the bug, but what else did it change?](<https://devfeed.tech/articles/your-ai-agent-fixed-the-bug-but-what-else-did-it-change-92968.md>)

Original publisher: [Read original article](<https://blog.trailofbits.com/2026/10/21/your-ai-agent-fixed-the-bug-but-what-else-did-it-change/>)

Author: "Anish Naik, Marcelo Morales"

Published: 2026-10-21T15:00:00Z

Content type: news

Language: en

Sources: [The Trail of Bits Blog](<https://devfeed.tech/sources/the-trail-of-bits-blog-2.md>), [Trail of Bits](<https://devfeed.tech/sources/the-trail-of-bits-blog.md>)

Topics: [ai code review](<https://devfeed.tech/topics/ai-code-review.md>), [Test automation](<https://devfeed.tech/topics/test-automation.md>), [open source maintenance](<https://devfeed.tech/topics/open-source-maintenance.md>), [codex](<https://devfeed.tech/topics/codex.md>), [Pull Request](<https://devfeed.tech/topics/pull-request.md>)

Tags: [agent](<https://devfeed.tech/tags/agent.md>), [agents](<https://devfeed.tech/tags/agents.md>), [ai](<https://devfeed.tech/tags/ai.md>), [ai-agent](<https://devfeed.tech/tags/ai-agent.md>), [analysis](<https://devfeed.tech/tags/analysis.md>), [and-best-practices](<https://devfeed.tech/tags/and-best-practices.md>), [behavior](<https://devfeed.tech/tags/behavior.md>), [best-practices](<https://devfeed.tech/tags/best-practices.md>), [bug](<https://devfeed.tech/tags/bug.md>), [bugs](<https://devfeed.tech/tags/bugs.md>), [build](<https://devfeed.tech/tags/build.md>), [change](<https://devfeed.tech/tags/change.md>), [changes](<https://devfeed.tech/tags/changes.md>), [codex](<https://devfeed.tech/tags/codex.md>), [development](<https://devfeed.tech/tags/development.md>), [engineer](<https://devfeed.tech/tags/engineer.md>), [evaluations](<https://devfeed.tech/tags/evaluations.md>), [false-positive](<https://devfeed.tech/tags/false-positive.md>), [fewer](<https://devfeed.tech/tags/fewer.md>), [functional](<https://devfeed.tech/tags/functional.md>), [open-source](<https://devfeed.tech/tags/open-source.md>), [patch-the-planet](<https://devfeed.tech/tags/patch-the-planet.md>), [vulnerabilities](<https://devfeed.tech/tags/vulnerabilities.md>)

### AI overview

The patching-bugs and regression-hunt plugins standardize agent-assisted bug fixing and regression checks, requiring live proof-of-concept evidence and reviewable, schema-defined steps. regression-hunt traces changes to user-facing interfaces, reproduces candidates on a running system, replays proofs with a fresh-context agent, and adjudicates whether evidence rules out false positives and other explanations. In evaluations on 21 confirmed regressions, it produced 25% fewer false positives than a baseline Codex agent, with a 95% confidence interval of 14%-38%; some known cases remained inconclusive, trading confident coverage for stricter evidence. patching-bugs uses a three-arm proof (original fails, patch passes, revert fails), targets underlying security invariants, and requires regression-hunt checks. Maintainers can provide a threat model and project patching guidelines to shape agent decisions. The account reports 21 regressions among more than 130 merged PRs reviewed, none breaking a security protection, and describes plans to evaluate patch quality and expand configurability.

### Source excerpt

Today we're publishing patching-bugs and regression-hunt, two plugins that let engineers delegate patch development and regression checks to agents. Our patching-bugs plugin reproduces reported bugs, develops fixes, and tests them. The regression-hunt plugin checks whether any changes break previously working and supported behavior. Engineers can direct the work and review their results; maintainers can supply their own security assumptions and patching requirements, so the agents work within the project's rules. We built patching-bugs and regression-hunt through Patch the Planet, our joint initiative with OpenAI, where we've co-authored hundreds of security patches for widely used open-source projects. Motivated by our major successes on projects like Scapy, our plugins draw on our analysis of merged patches and thousands of our engineers' Codex sessions. The plugins provide maintainers with a structured workflow, evidence, independent checks, and best practices to improve their patching hygiene. In our preliminary evaluations, regression-hunt produces 25% fewer false-positive findings than a baseline Codex agent prompted to "review the PR for regressions." Standardizing the patching process Our September post reported regressions introduced by some of our Patch the Planet patches. Since then, we've reviewed every patch that a Trail of Bits engineer authored and maintainers merged upstream. The review confirmed 21 regressions from over 130 PRs merged: 16 functional, one performance, and four build/test. None broke a security protection. ("Regression" refers to a new defect introduced by a change that breaks previously correct and supported behavior along a path a real user or attacker can reach.) For each patch, an agent looked for potential regressions, confirmed each one with a proof-of-concept (PoC) run before and after the change, and then passed the results to an engineer for review. The review was noisy: today's bug disclosures arrive at an unprecedented spee

## Package managers have an integrity problem

DevFeed: [Package managers have an integrity problem](<https://devfeed.tech/articles/package-managers-have-an-integrity-problem-87158.md>)

Original publisher: [Read original article](<https://blog.trailofbits.com/2026/10/14/package-managers-have-an-integrity-problem/>)

Author: "Keegan Ryan"

Published: 2026-10-14T11:00:00Z

Content type: article

Language: en

Sources: [The Trail of Bits Blog](<https://devfeed.tech/sources/the-trail-of-bits-blog-2.md>), [Trail of Bits](<https://devfeed.tech/sources/the-trail-of-bits-blog.md>)

Topics: [software artifact signing](<https://devfeed.tech/topics/software-artifact-signing.md>), [Cryptography](<https://devfeed.tech/topics/cryptography.md>), [sigstore policy controller](<https://devfeed.tech/topics/sigstore-policy-controller.md>), [npm-workspaces](<https://devfeed.tech/topics/npm-workspaces.md>), [Conan](<https://devfeed.tech/topics/conan.md>), [pnpm](<https://devfeed.tech/topics/pnpm.md>), [Yarn](<https://devfeed.tech/topics/yarn.md>)

Tags: [cryptography](<https://devfeed.tech/tags/cryptography.md>), [dependencies](<https://devfeed.tech/tags/dependencies.md>), [ecosystem-security](<https://devfeed.tech/tags/ecosystem-security.md>), [hash](<https://devfeed.tech/tags/hash.md>), [integrity](<https://devfeed.tech/tags/integrity.md>), [security](<https://devfeed.tech/tags/security.md>), [supply-chain](<https://devfeed.tech/tags/supply-chain.md>)

### AI overview

A test of 25 popular source-code package managers found uneven protection against malicious package repositories. Fewer than half checked lockfile hashes for tampering by default, and only two verified every downloaded package. The article examines how lockfiles, signatures, and transparency logs affect package integrity, and proposes recording signer identity in lockfiles as one possible design.

### Source excerpt

I tested 25 of the most popular package managers to check whether they detect a compromised package repository injecting malicious code into legitimate packages. This code integrity problem could be solved using cryptographic hashes or signatures, but many package managers are still vulnerable to this threat. Of the 25 package managers reviewed1, fewer than half used lockfiles that checked for tampering by default, and only two verified the integrity of every package they downloaded. Supply-chain attacks caused by developer compromise are a common story, but imagine what happens if ongoing mitigation attempts, including work by Trail of Bits2, are successful. If developers of popular packages are no longer the easiest targets, attackers will shift their focus to the next weakest link in the system: the package repositories that serve the code. The cryptographic answers to this problem are more subtle than they appear, and many implementations fall short due to deliberate design choices, resource prioritization, or the complexity of developer-friendly solutions. One natural answer is to include a cryptographic hash of a package's contents in a lockfile and compare hashes after downloading the package. This automatic verification was the default behavior in about half of the package managers I tested, but others required extra configuration to include or verify these hashes, used hashes in a cryptographically insecure way, or lacked hashes entirely. This is summarized in the following table. Verifies integrity Go, vcpkg Verifies if lockfile is present Bun, Bundler, Cargo, npm, pnpm, Poetry, SwiftPM, uv, Yarn Verifies with lockfile + extra steps Conda, Gradle, Pip, NuGet, Pub Does not verify with lockfile or N/A CocoaPods, Composer, Conan, cpanminus, Gem, Maven, PowerShellGet, PSResourceGet, R Table 1: Lockfile-based security of a package manager fetching dependencies from a malicious repository, categorized by how much work it takes a developer to achieve integrity. E

## SequenceHash: multihashing for the rest of us

DevFeed: [SequenceHash: multihashing for the rest of us](<https://devfeed.tech/articles/sequencehash-multihashing-for-the-rest-of-us-64138.md>)

Original publisher: [Read original article](<https://blog.trailofbits.com/2026/10/02/sequencehash-multihashing-for-the-rest-of-us/>)

Author: "Opal Wright"

Published: 2026-10-02T11:00:00Z

Content type: article

Language: en

Sources: [The Trail of Bits Blog](<https://devfeed.tech/sources/the-trail-of-bits-blog-2.md>), [Trail of Bits](<https://devfeed.tech/sources/the-trail-of-bits-blog.md>)

Topics: [Cryptography](<https://devfeed.tech/topics/cryptography.md>), [hashing](<https://devfeed.tech/topics/hashing.md>), [Memory Safety](<https://devfeed.tech/topics/memory-safety.md>)

Tags: [cryptography](<https://devfeed.tech/tags/cryptography.md>), [go](<https://devfeed.tech/tags/go.md>), [hashing](<https://devfeed.tech/tags/hashing.md>), [open-source](<https://devfeed.tech/tags/open-source.md>), [python](<https://devfeed.tech/tags/python.md>), [rust](<https://devfeed.tech/tags/rust.md>), [security](<https://devfeed.tech/tags/security.md>), [sha256](<https://devfeed.tech/tags/sha256.md>), [zero-knowledge](<https://devfeed.tech/tags/zero-knowledge.md>)

### AI overview

Trail of Bits introduces SequenceHash and SequenceMAC, hash-agnostic constructions for securely hashing multiple inputs without ambiguous encodings. The article describes their length-extension protections, customization strings, implementations in Rust, Go, and Python, and test vectors. The specification is part of C2SP. It notes that security depends on the underlying hash and that an XOF variant has not yet been specified.

### Source excerpt

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 bugs," Trail of Bits is introducing SequenceHash and its sister function SequenceMAC, a pair of related hash constructions that bring secure multihashing to developers using hash functions other than Keccak. We hope SequenceHash and SequenceMAC will help cryptographers avoid attacks that take advantage of ambiguous input encodings. The specification is open source, and is now a part of the Community Cryptography Specification Project (C2SP). SequenceHash and SequenceMAC behave similarly to NIST's TupleHash, but have the advantage of not being tied to a single hash function. They also don't require developers to implement fiddly computations that aren't byte-aligned. Instead, SequenceHash and SequenceMAC work out of the box with nearly any secure cryptographic hash function you care to use, including SHA256/384/512, BLAKE, and RIPEMD. SequenceMAC supports keys 32 bytes or longer (up to the ridiculous limit of ${2}^{128}-1$ bytes). (It's worth noting: SequenceHash and SequenceMAC rely on the security of the underlying hash for their own security. SequenceHash and SequenceMAC can't magically make MD4 or SHA0 secure again. For the purposes of this document, it's assumed that you have chosen a reasonable hash function like SHA256, not CRC32.) To make SequenceHash and SequenceMAC easy to use, we're releasing three initial implementations of SequenceHash and SequenceMAC: one each in Rust, Go, and Python. We're also releasing a large set of test vectors that cover multiple hash functions and include intermediate values to help developers debug and verify their implementations. Wait, "multihashing"? Yeah, it's a weird term, but the idea is pretty simple. "Multihashing" means "hashing a bunch of values together." If you've ever read a cryp

## Don't let TEEs break your MPC

DevFeed: [Don't let TEEs break your MPC](<https://devfeed.tech/articles/don-t-let-tees-break-your-mpc-60057.md>)

Original publisher: [Read original article](<https://blog.trailofbits.com/2026/09/25/dont-let-tees-break-your-mpc/>)

Author: "Paul Bottinelli"

Published: 2026-09-25T11:00:00Z

Content type: article

Language: en

Sources: [The Trail of Bits Blog](<https://devfeed.tech/sources/the-trail-of-bits-blog-2.md>), [Trail of Bits](<https://devfeed.tech/sources/the-trail-of-bits-blog.md>)

Topics: [Security](<https://devfeed.tech/topics/security.md>), [trusted-execution-environment](<https://devfeed.tech/topics/trusted-execution-environment.md>), [Confidential Computing](<https://devfeed.tech/topics/confidential-computing.md>), [Protocol (disambiguation)](<https://devfeed.tech/topics/protocol.md>), [private key](<https://devfeed.tech/topics/private-key.md>)

Tags: [attestation](<https://devfeed.tech/tags/attestation.md>), [cryptographic](<https://devfeed.tech/tags/cryptographic.md>), [cryptography](<https://devfeed.tech/tags/cryptography.md>), [defense-in-depth](<https://devfeed.tech/tags/defense-in-depth.md>), [pitfalls](<https://devfeed.tech/tags/pitfalls.md>), [security](<https://devfeed.tech/tags/security.md>), [threshold-signatures](<https://devfeed.tech/tags/threshold-signatures.md>), [trusted-execution-environment](<https://devfeed.tech/tags/trusted-execution-environment.md>)

### AI overview

This article examines how trusted execution environments interact with multi-party computation and threshold signatures. It explains how an untrusted host can undermine protocol security through filesystem rollback and nonce reuse, and recommends treating TEEs as defense in depth with strong attestation tied to MPC participant identities.

### Source excerpt

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 is intended to amplify security for sensitive computations: MPC distributes trust across multiple independent parties, while TEEs root trust in the hardware manufacturer and its attestation infrastructure. But subtle issues can arise when running an MPC protocol inside a TEE without accounting for the untrusted host: for example, a malicious host could roll back the filesystem state after a threshold signer deletes a used pre-signature, causing the signer to reuse their nonce share and disclose their private key share. So is this combination worth it? Provided you treat the TEE as a defense-in-depth layer rather than a substitute for a sound protocol, the answer is yes. This blog post discusses what TEE attestation can and can't fix in MPC deployments, explores the pitfalls we see most often in audits, and covers best practices, such as incorporating strong attestation processes and binding them to the MPC parties' identities. MPC: Security that depends on participant behavior Before diving into how TEEs and MPC interact, we need to understand what MPC means and what security guarantees it offers. MPC is a cryptographic technique that allows multiple parties to jointly compute a function over their private inputs without revealing those inputs to each other. The security of MPC protocols depends critically on assumptions about participant behavior. The cryptographic literature uses two primary security models: Semi-honest (honest-but-curious) security: In this model, all participants follow the protocol exactly as specified, but they may try to learn additional information from the messages they receive during the protocol execution. Participants can try to learn more than they should, but they don't deviate from the protocol speci

## How AI agents helped build security-review tooling and formal models for the Miden VM

DevFeed: [How AI agents helped build security-review tooling and formal models for the Miden VM](<https://devfeed.tech/articles/auditing-in-the-age-of-good-enough-ai-42758.md>)

Original publisher: [Read original article](<https://blog.trailofbits.com/2026/09/18/auditing-in-the-age-of-good-enough-ai/>)

Author: "Fredrik Dahlgren"

Published: 2026-09-18T11:00:00Z

Content type: article

Language: en

Sources: [The Trail of Bits Blog](<https://devfeed.tech/sources/the-trail-of-bits-blog-2.md>), [Trail of Bits](<https://devfeed.tech/sources/the-trail-of-bits-blog.md>)

Topics: [Security](<https://devfeed.tech/topics/security.md>), [Artificial Intelligence](<https://devfeed.tech/topics/ai.md>), [Agent Harness](<https://devfeed.tech/topics/agent-harness.md>), [ai code review](<https://devfeed.tech/topics/ai-code-review.md>), [Lean](<https://devfeed.tech/topics/lean.md>), [Assembly](<https://devfeed.tech/topics/assembly.md>), [Zero-knowledge proof](<https://devfeed.tech/topics/zkp.md>), [Developer Tools](<https://devfeed.tech/topics/developer-tools.md>)

Tags: [agent](<https://devfeed.tech/tags/agent.md>), [agent-harness](<https://devfeed.tech/tags/agent-harness.md>), [agentic-code-review](<https://devfeed.tech/tags/agentic-code-review.md>), [ai](<https://devfeed.tech/tags/ai.md>), [assembly](<https://devfeed.tech/tags/assembly.md>), [cryptography](<https://devfeed.tech/tags/cryptography.md>), [library](<https://devfeed.tech/tags/library.md>), [security](<https://devfeed.tech/tags/security.md>), [static-analysis](<https://devfeed.tech/tags/static-analysis.md>), [zero-knowledge](<https://devfeed.tech/tags/zero-knowledge.md>)

### AI overview

The article describes using AI agents to prepare a security review of the Miden zero-knowledge VM. Over six months, the team built an LSP server, decompiler, static analysis engine, and Lean model, uncovering security issues and producing machine-checked correctness proofs.

### Source excerpt

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 aspect of how we use AI in our security reviews. We want to give a different perspective: before code review even starts, agents now allow us to build custom tooling and formal models that improve the quality and depth of our reviews. We recently reviewed the Miden VM, a new zero-knowledge VM with its own custom assembly language and almost no developer tooling. To prepare, we spent six months having our agents build an LSP server, a decompiler, a static analysis engine, and a Lean model of the VM executor from scratch. These tools found real security issues, like an unvalidated prover-supplied input that would let a malicious prover forge Falcon signatures and steal funds from Miden account holders. Additionally, the Lean work produced 95 machine-checked correctness proofs, covering a large component of the Miden core library. Auditing the Miden zkVM In late 2025, the Miden team came to us to have parts of their zero-knowledge VM reviewed before launch. Part of the review was scoped to cover the Miden core library, which contains a small set of cryptographic primitives written in a custom assembly language called Miden assembly (MASM). This made us genuinely excited, as it was right up our alley: a high-assurance project writing complex cryptographic code in a low-level custom assembly language that we had never seen before. At the same time, it also presented some unique challenges. Figure 1: The left image shows a MASM procedure computing the XOR of two 128-bit values (represented as 32-bit limbs). The right image shows the same procedure implemented using 32-bit x86 assembly code. To start, the Miden VM implements a stack-machine architecture. This means that each instruction operates on values read from the stack, and the result o

## Review argues 1Password's AI patching benchmark overstates poor patch quality

DevFeed: [Review argues 1Password's AI patching benchmark overstates poor patch quality](<https://devfeed.tech/articles/1password-s-ai-patching-benchmark-is-misleading-26584.md>)

Original publisher: [Read original article](<https://blog.trailofbits.com/2026/09/15/1passwords-ai-patching-benchmark-is-misleading/>)

Author: "Anish Naik"; "Dan Guido"; "Benjamin Samuels"; "Marcelo Morales"

Published: 2026-09-15T11:00:00Z

Content type: opinion

Language: en

Sources: [The Trail of Bits Blog](<https://devfeed.tech/sources/the-trail-of-bits-blog-2.md>), [Trail of Bits](<https://devfeed.tech/sources/the-trail-of-bits-blog.md>)

Topics: [Artificial Intelligence](<https://devfeed.tech/topics/ai.md>), [Benchmark](<https://devfeed.tech/topics/benchmark.md>), [Vulnerabilities](<https://devfeed.tech/topics/vulnerabilities.md>), [Software Testing](<https://devfeed.tech/topics/software-testing.md>), [Agent Skills](<https://devfeed.tech/topics/agent-skills.md>)

Tags: [agent-skills](<https://devfeed.tech/tags/agent-skills.md>), [agents](<https://devfeed.tech/tags/agents.md>), [ai](<https://devfeed.tech/tags/ai.md>), [benchmark](<https://devfeed.tech/tags/benchmark.md>), [open-source](<https://devfeed.tech/tags/open-source.md>), [patch-the-planet](<https://devfeed.tech/tags/patch-the-planet.md>), [report](<https://devfeed.tech/tags/report.md>), [testing](<https://devfeed.tech/tags/testing.md>), [vulnerabilities](<https://devfeed.tech/tags/vulnerabilities.md>)

### AI overview

The article argues that 1Password's 26% clean-fix headline gives a misleading picture of AI patching because the benchmark included difficult vulnerabilities, prompts instructing agents to apply wrong fixes, trials that prohibited testing, and differing reasoning settings. It reports that 2,634 of 3,067 eligible patches blocked the supplied exploit and announces two agent skills for validation and review.

### Source excerpt

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 agents to apply the wrong fix, along with experiments in which agents could not compile or test their patches. The report risks making defenders less effective by discouraging them from using technology that could help them fix more vulnerabilities. Teams that take its headline at face value may leave repairable vulnerabilities unaddressed. We want our work to help defenders fix more vulnerabilities. This post shares real-world data on human and agent patch quality from our consulting projects and Patch the Planet. We're also releasing two agent skills: post-patch-validation to help agents test fixes, and review-walkthrough to help engineers review them. How the experiment produces a misleading headline Our review of 1Password's code and data found four choices that make its 26% clean-fix rate a misleading guide to ordinary patching work.1 The sample was selected for difficult fixes. The authors chose six vulnerabilities because their fixes were complex. Clean-fix rates ranged from 3% to 60% across those bugs, so the average depends heavily on which vulnerabilities made the list.2 Two prompts tell agents to apply the wrong fix. Those prompts account for 22% of the data. Combining them with ordinary repair attempts makes the reported rate depend partly on how often the researchers chose to give agents bad advice. More than a third of the trials prohibit testing. One evaluation mode prevents agents from building or running code and accounts for 36% of the data. The headline combines those trials with experiments in which agents could test their patches and act on the results. The models ran at different reasoning settings. GPT-5.5 ran at medium effort and Opus 4.8 at high. These were the tools' defaults. Neither model was tested at i

## A "proof" of Fermat's Last Theorem that fits the margin

DevFeed: [A "proof" of Fermat's Last Theorem that fits the margin](<https://devfeed.tech/articles/a-proof-of-fermat-s-last-theorem-that-fits-the-margin-7665.md>)

Original publisher: [Read original article](<https://blog.trailofbits.com/2026/09/09/a-proof-of-fermats-last-theorem-that-fits-the-margin/>)

Author: "Marc Ilunga"

Published: 2026-09-09T11:00:00Z

Content type: article

Language: en

Sources: [The Trail of Bits Blog](<https://devfeed.tech/sources/the-trail-of-bits-blog-2.md>), [Trail of Bits](<https://devfeed.tech/sources/the-trail-of-bits-blog.md>)

Topics: [Lean](<https://devfeed.tech/topics/lean.md>), [bug](<https://devfeed.tech/topics/bug.md>), [Memory safety verification](<https://devfeed.tech/topics/memory-safety-verification.md>)

Tags: [bug](<https://devfeed.tech/tags/bug.md>), [exploits](<https://devfeed.tech/tags/exploits.md>), [memory-safety](<https://devfeed.tech/tags/memory-safety.md>), [open-source](<https://devfeed.tech/tags/open-source.md>), [vulnerability-disclosure](<https://devfeed.tech/tags/vulnerability-disclosure.md>)

### AI overview

A Lean string-slicing bug caused its logical evaluator and compiled native code to disagree, allowing a contradiction that could make an invalid proof appear checked. The issue was fixed after disclosure.

### Source excerpt

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 Fermat's Last Theorem using 13 million lines of Lean code (clearly not what Fermat intended). Luckily, we found a wonderfully cursed Lean bug, shown below, that suggests the proof may have fit the margin after all. The issue affects all stable versions of Lean up to 4.33.1, and the patch is incorporated in v4.34.0-rc1. A "checked" proof of Fermat's Last Theorem using Lean 4.33.1 The blue checkmarks in the screenshot above would suggest that Lean considers this proof correct. This seems odd given the amount of work Sir Andrew Wiles put into this problem and the vast size of Claude's proof. So what is going on? The "proof" clearly doesn't make any sense and exploits an issue in Lean. We found the issue while using GPT-5.6 to experiment with a new skill for code review. We want to clarify up front that the issue is not a kernel soundness issue, but it happens to nicely fit any discussion of strings, lengths, and substrings. The issue affects String.Pos.Raw.extract, Lean's low-level string-slicing function. When asked to extract a one-byte slice at an astronomically large position, Lean's logical definition returns the empty string. But the compiled native code returns the entire original string. That disagreement is enough to manufacture a contradiction. Lean's ordinary evaluator "proves" that the tiny slice was empty, while native evaluation "proves" that the very same slice contained "a truly marvelous proof." Put those together, and Lean concludes that the empty string equals a non-empty string. And once you have a contradiction, you can prove anything, including Fermat's Last Theorem. On the bright side, the Lean team was considerably faster than mathematical history. About 90 minutes after we reported the issue, hargoniX opened

## VMs won't contain cyber-capable agents

DevFeed: [VMs won't contain cyber-capable agents](<https://devfeed.tech/articles/vms-won-t-contain-cyber-capable-agents-7664.md>)

Original publisher: [Read original article](<https://blog.trailofbits.com/2026/08/26/vms-wont-contain-cyber-capable-agents/>)

Author: "Artem Dinaburg"

Published: 2026-08-26T11:00:00Z

Content type: article

Language: en

Sources: [The Trail of Bits Blog](<https://devfeed.tech/sources/the-trail-of-bits-blog-2.md>), [Trail of Bits](<https://devfeed.tech/sources/the-trail-of-bits-blog.md>)

Topics: [Vulnerabilities](<https://devfeed.tech/topics/vulnerabilities.md>), [AI Bots](<https://devfeed.tech/topics/ai-bots.md>), [AI-assisted coding](<https://devfeed.tech/topics/ai-assisted-coding.md>)

Tags: [ai](<https://devfeed.tech/tags/ai.md>), [ai-agent](<https://devfeed.tech/tags/ai-agent.md>), [bugs](<https://devfeed.tech/tags/bugs.md>), [cybersecurity](<https://devfeed.tech/tags/cybersecurity.md>), [gpt](<https://devfeed.tech/tags/gpt.md>), [kernel](<https://devfeed.tech/tags/kernel.md>), [linux](<https://devfeed.tech/tags/linux.md>), [open-source](<https://devfeed.tech/tags/open-source.md>), [patch-the-planet](<https://devfeed.tech/tags/patch-the-planet.md>), [vulnerabilities](<https://devfeed.tech/tags/vulnerabilities.md>)

### AI overview

An evaluation of GPT 5.6-Cyber reports that it escaped a QEMU/KVM sandbox three times by using disclosed flaws and finding zero-days. The article argues that capable autonomous AI agents should not be assumed to be safely contained by a VM.

### Source excerpt

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. The target was a QEMU/KVM VM on my Linux dev machine (Debian Linux 12, AMD Zen3). It escaped the VM three different times. First, it used recently disclosed bugs in my host kernel. When I fully updated, it used disclosed bugs that had not yet reached package maintainers or were not classified as security bugs. When I rebuilt QEMU and dependencies from the latest upstream source, it found several 0-days. It operated autonomously for hours, backtracked from approaches that didn't work, pulled code and research papers, wrote oracles, made its own minimal examples, and aimed for a reusable, reliable exploit, all with minimal handholding and prompting. My main job was to physically reboot the machine when it hardlocked the host kernel. If it wasn't clear before, I will state it plainly: you can no longer assume a mere VM will contain a sufficiently advanced AI agent. To use a 2010s term of art, you should treat such agents as an advanced persistent threat. Advancing cybersecurity capabilities Let's imagine a common situation: you want to run an AI agent, but need its full capabilities, including the ability to download, build and debug software; do research; sift through dependencies; set up fuzzers; triage vulnerabilities; and stand up services under different configurations. The generally accepted solution is to set up a VM that serves as a safety perimeter and isolated prison for the agent: this virtual environment contains nothing of value, is separate from the host, and can be immediately deactivated or snapshotted for later investigation. This setup allows the agent to roam free, while isolating your computer from its consequences. There is, of course, a tiny wrinkle. To be useful, the virtual environment must share resources with

## State divergence enables unauthorized access

DevFeed: [State divergence enables unauthorized access](<https://devfeed.tech/articles/state-divergence-enables-unauthorized-access-7663.md>)

Original publisher: [Read original article](<https://blog.trailofbits.com/2026/08/25/state-divergence-enables-unauthorized-access/>)

Author: "Paweł Płatek"; "Denys Pakizh"

Published: 2026-08-25T11:00:00Z

Content type: article

Language: en

Sources: [The Trail of Bits Blog](<https://devfeed.tech/sources/the-trail-of-bits-blog-2.md>), [Trail of Bits](<https://devfeed.tech/sources/the-trail-of-bits-blog.md>)

Topics: [bug](<https://devfeed.tech/topics/bug.md>), [Blockchain](<https://devfeed.tech/topics/blockchain.md>), [Authorization](<https://devfeed.tech/topics/authorization.md>), [Transactions](<https://devfeed.tech/topics/transactions.md>), [SDK](<https://devfeed.tech/topics/sdk.md>)

Tags: [2026](<https://devfeed.tech/tags/2026.md>), [access-control](<https://devfeed.tech/tags/access-control.md>), [audits](<https://devfeed.tech/tags/audits.md>), [authorization](<https://devfeed.tech/tags/authorization.md>), [blockchain](<https://devfeed.tech/tags/blockchain.md>), [bug](<https://devfeed.tech/tags/bug.md>), [financial-services](<https://devfeed.tech/tags/financial-services.md>), [module](<https://devfeed.tech/tags/module.md>), [tokens](<https://devfeed.tech/tags/tokens.md>), [transactions](<https://devfeed.tech/tags/transactions.md>), [vulnerabilities](<https://devfeed.tech/tags/vulnerabilities.md>)

### AI overview

The article describes a Provenance Blockchain authorization bug that allowed users to grant themselves admin control over marker accounts without holding tokens. The flaw affected non-fixed-supply markers because the access check read a stale zero-valued supply field instead of the live circulating supply. The issue was mitigated in v1.28.0 and fixed in v1.29.0.

### Source excerpt

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 financial services, including on-chain tokenized loans, private equity tokens, bridged assets, and asset registries. Our bug affected 82 markers representing live financial assets on mainnet. We found the bug, which affects versions before 1.28.0, in March 2026, and reported it to Provenance on April 1. It was mitigated in PR #2627 (commit c81fd65), which shipped in v1.28.0 on May 1, 2026, and fixed in PR #2734, which shipped in v1.29.0 on June 8, 2026. What is a marker? The marker module is Provenance's core primitive for fungible tokens. Chain participants can issue a new asset on Provenance by submitting a MsgAddMarkerRequest transaction; the chain creates a dedicated account for that asset, called a marker. Each marker is a special account type that controls: A denomination (e.g., uusd.trading, cusd.deposit, cguaranteedrateomni) An access control list governing who can mint, burn, withdraw, deposit, or administer the token A supply field recording the canonical token count An escrow balance (the marker account can hold any asset, not just its own denomination) Markers are either supply_fixed (the supply field is enforced as a hard cap) or non-fixed (the bank module is the source of truth; the supply field is informational). This distinction is central to the bug. The bug: An access check anyone can pass AddAccess is the Cosmos SDK message handler that processes requests to modify a marker's access control list. It checks whether the caller is authorized using three conditions, any one of which is sufficient: The caller is the marker's designated manager and the marker is in Finalized state. The caller already holds ACCESS_ADMIN on the marker. The caller controls 100% of the marker's circulating supply. case types.StatusFinalized,

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

DevFeed: [How Trail of Bits helps verify the integrity of your Signal chats](<https://devfeed.tech/articles/how-trail-of-bits-helps-verify-the-integrity-of-your-signal-chats-7662.md>)

Original publisher: [Read original article](<https://blog.trailofbits.com/2026/08/11/how-trail-of-bits-helps-verify-the-integrity-of-your-signal-chats/>)

Author: "Tjaden Hess"

Published: 2026-08-11T17:30:00Z

Content type: article

Language: en

Sources: [The Trail of Bits Blog](<https://devfeed.tech/sources/the-trail-of-bits-blog-2.md>), [Trail of Bits](<https://devfeed.tech/sources/the-trail-of-bits-blog.md>)

Topics: [client](<https://devfeed.tech/topics/client.md>), [Server](<https://devfeed.tech/topics/server.md>), [Cloudflare](<https://devfeed.tech/topics/cloudflare.md>), [App](<https://devfeed.tech/topics/app.md>)

Tags: [audits](<https://devfeed.tech/tags/audits.md>), [cloudflare](<https://devfeed.tech/tags/cloudflare.md>), [cryptography](<https://devfeed.tech/tags/cryptography.md>), [devices](<https://devfeed.tech/tags/devices.md>), [external](<https://devfeed.tech/tags/external.md>), [open-source](<https://devfeed.tech/tags/open-source.md>), [safety](<https://devfeed.tech/tags/safety.md>), [server](<https://devfeed.tech/tags/server.md>), [signing](<https://devfeed.tech/tags/signing.md>), [verification](<https://devfeed.tech/tags/verification.md>)

### AI overview

The article explains how Trail of Bits helps verify the integrity of Signal chats through Automatic Key Verification. The system uses external auditors, globally consistent public-key maps, Merkle trees, and signed tree heads to make mismatches harder to conceal. Signal clients currently require signatures from auditors operated by Signal, Cloudflare, and Trail of Bits.

### Source excerpt

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 public key, allowing the client to encrypt messages to an attacker rather than the intended recipient. Until now, the only way to detect such malfeasance was to verify safety numbers with your contact in person or over a trusted channel. Signal recently launched an alternative: Automatic Key Verification, a feature that helps validate that your chats are secure without requiring direct safety number comparison. Trail of Bits built and operates one of the three auditors that make this system trustworthy. Our auditor, which is an independent implementation written from scratch, continuously checks that the Automatic Key Verification system behaves honestly. How key verification works Automatic Key Verification is a form of "key transparency" that makes mismatch attacks harder to hide by creating a globally consistent view of the set of public keys associated with each phone number. The Signal app now performs a periodic self-check to ensure that all keys stored in the global map for your account belong to your devices. If the app is unable to verify the log, or finds that not all keys are expected, the user is presented with a warning that "Automatic Key Verification is currently unavailable for your device." Automatic Key Verification may also be unavailable for other reasons, as outlined in Signal's documentation. What our auditor does Automatic Key Verification depends on external auditors. Trail of Bits helps this system function by providing external verification that the user ↔ public key map is globally consistent and well formed, and does not hide any entries. Each time a new entry is added, we update our local copy of the map, stored as a Merkle tree. Periodically, we sign the head of the tree using a signing key that only we kn

## A few notes on AWS Nitro Enclaves: KMS integration

DevFeed: [A few notes on AWS Nitro Enclaves: KMS integration](<https://devfeed.tech/articles/a-few-notes-on-aws-nitro-enclaves-kms-integration-7661.md>)

Original publisher: [Read original article](<https://blog.trailofbits.com/2026/08/05/a-few-notes-on-aws-nitro-enclaves-kms-integration/>)

Author: "Paweł Płatek"

Published: 2026-08-05T11:00:00Z

Content type: article

Language: en

Sources: [The Trail of Bits Blog](<https://devfeed.tech/sources/the-trail-of-bits-blog-2.md>), [Trail of Bits](<https://devfeed.tech/sources/the-trail-of-bits-blog.md>)

Topics: [Cryptography](<https://devfeed.tech/topics/cryptography.md>), [AWS IAM](<https://devfeed.tech/topics/aws-iam.md>)

Tags: [application-security](<https://devfeed.tech/tags/application-security.md>), [aws](<https://devfeed.tech/tags/aws.md>), [cryptographic](<https://devfeed.tech/tags/cryptographic.md>), [cryptography](<https://devfeed.tech/tags/cryptography.md>), [encryption](<https://devfeed.tech/tags/encryption.md>), [iam](<https://devfeed.tech/tags/iam.md>), [integration](<https://devfeed.tech/tags/integration.md>), [policy](<https://devfeed.tech/tags/policy.md>), [trusted-execution-environment](<https://devfeed.tech/tags/trusted-execution-environment.md>)

### AI overview

The article examines security and operational risks in integrating AWS Nitro Enclaves with KMS, including attestation, key policies, and encrypted key handling.

### Source excerpt

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 service. But integrating an external service with your trusted enclaves comes with new threats, even if that service comes from the same provider. In this blog post--the third in our series on Nitro Enclaves, following our posts on attack surface and images and attestation--we catalog passive and active attack classes against the enclave-KMS communication channel, and cover the operational risks that persist even when the cryptography is correct. Intro to KMS The KMS is an AWS service that provides a unified public API for creating and managing keys backed by HSMs to the broader AWS ecosystem. There are three main key types supported by KMS that devs need to care about: Customer-managed keys (CMK) Data keys (DK, symmetric) Data key pairs (asymmetric) CMKs never leave KMS. You request KMS to perform cryptographic operations (like encryption or signing) for you. Data keys and key pairs are generated in KMS, are not stored in KMS, and are intended for programmatic uses. For symmetric keys, the KMS gives you a plaintext key and the same key encrypted to CMK. Your application performs encryptions, removes the plaintext key, and stores the key encrypted to a CMK along the ciphertexts; this pattern is called envelope encryption. For asymmetric keys, the KMS gives you a plaintext key pair and the private key encrypted to CMK. Your application creates signatures or encrypts data, deletes the private key, and keeps the public key and encrypted private key (along with signatures/ciphertexts). Both types of data keys can be used with Decrypt operation to get plaintext keys again. S t o r a g e s t { o E r _ e d ( k E , _ C d } k , C ) E n c l a v G e e { n d e k C D p r , = e l a E e c a t _ n r i e d c y n D k ( p t a = d t e t e k ( { x a n , c d t

## Building secure Uniswap v4 hooks

DevFeed: [Building secure Uniswap v4 hooks](<https://devfeed.tech/articles/building-secure-uniswap-v4-hooks-7660.md>)

Original publisher: [Read original article](<https://blog.trailofbits.com/2026/07/30/building-secure-uniswap-v4-hooks/>)

Author: "Nicolas Donboly"

Published: 2026-07-30T11:00:00Z

Content type: article

Language: en

Sources: [The Trail of Bits Blog](<https://devfeed.tech/sources/the-trail-of-bits-blog-2.md>), [Trail of Bits](<https://devfeed.tech/sources/the-trail-of-bits-blog.md>)

Topics: [Security](<https://devfeed.tech/topics/security.md>), [Code](<https://devfeed.tech/topics/code.md>), [Authorization](<https://devfeed.tech/topics/authorization.md>), [software-architecture](<https://devfeed.tech/topics/software-architecture.md>), [incident](<https://devfeed.tech/topics/incident.md>)

Tags: [audits](<https://devfeed.tech/tags/audits.md>), [blockchain](<https://devfeed.tech/tags/blockchain.md>), [code](<https://devfeed.tech/tags/code.md>), [developers](<https://devfeed.tech/tags/developers.md>), [development](<https://devfeed.tech/tags/development.md>), [exploits](<https://devfeed.tech/tags/exploits.md>), [incident](<https://devfeed.tech/tags/incident.md>), [review](<https://devfeed.tech/tags/review.md>), [security](<https://devfeed.tech/tags/security.md>), [vulnerabilities](<https://devfeed.tech/tags/vulnerabilities.md>)

### AI overview

Uniswap v4 hooks add customizable pool behavior but shift important security responsibilities into application and hook code. Drawing on audit findings and public reports, the article identifies recurring failure patterns--including missing caller checks and accounting bugs--and presents them as a checklist for builders and auditors.

### Source excerpt

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 exploits are two app-level incidents that show what can go wrong in that code. Together, they account for more than $20M in losses. Neither incident stemmed from a flaw in the Uniswap v4 core protocol or the PoolManager; both arose from application-specific authorization and accounting logic built around hooks. After analyzing dozens of findings from Trail of Bits audits (including our Uniswap v4-core security review), public reports from other firms, and the Solodit database, I've identified seven recurring failure patterns in application and hook code, including missing caller checks and accounting bugs that still satisfy the PoolManager's settlement invariant. Builders can use these patterns as a secure-development checklist; auditors can use them to focus their review. What the PoolManager guarantees If you're familiar with Uniswap v3, where each pool was a separate contract, v4 inverts the model. All pool state now lives in a singleton PoolManager contract, with each pool represented in its storage. Uniswap v4 adds hooks: independent contracts that execute custom logic at specific points in the swap and liquidity lifecycle. Figure 1: Pools live inside the singleton PoolManager, and multiple pools can use the same hook contract. Here's what a pool looks like in v4: struct PoolKey { Currency currency0; Currency currency1; uint24 fee; int24 tickSpacing; IHooks hooks; } Figure 2: A pool's PoolKey includes both currencies, the fee, tick spacing, and the hook address (v4-core/src/types/PoolKey.sol). Notice that the hook address (IHooks hooks;) is part of the pool's identity. If you change any of these fields, you're talking to a different pool. This matters because trusting the wrong PoolKey means trusting the wrong pool. v4 also intr

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

DevFeed: [How we use /goal to find bugs in Patch the Planet](<https://devfeed.tech/articles/how-we-use-goal-to-find-bugs-in-patch-the-planet-7659.md>)

Original publisher: [Read original article](<https://blog.trailofbits.com/2026/07/28/how-we-use-goal-to-find-bugs-in-patch-the-planet/>)

Author: "Trail of Bits"

Published: 2026-07-28T11:00:00Z

Content type: article

Language: en

Sources: [The Trail of Bits Blog](<https://devfeed.tech/sources/the-trail-of-bits-blog-2.md>), [Trail of Bits](<https://devfeed.tech/sources/the-trail-of-bits-blog.md>)

Topics: [codex](<https://devfeed.tech/topics/codex.md>), [bug](<https://devfeed.tech/topics/bug.md>), [Open Source](<https://devfeed.tech/topics/open-source.md>), [open-source-security](<https://devfeed.tech/topics/open-source-security.md>), [cURL](<https://devfeed.tech/topics/curl.md>), [Rust](<https://devfeed.tech/topics/rust.md>), [OpenAI](<https://devfeed.tech/topics/openai.md>)

Tags: [analysis](<https://devfeed.tech/tags/analysis.md>), [blog](<https://devfeed.tech/tags/blog.md>), [bugs](<https://devfeed.tech/tags/bugs.md>), [code](<https://devfeed.tech/tags/code.md>), [codex](<https://devfeed.tech/tags/codex.md>), [machine-learning](<https://devfeed.tech/tags/machine-learning.md>), [open-source](<https://devfeed.tech/tags/open-source.md>), [openai](<https://devfeed.tech/tags/openai.md>), [patch-the-planet](<https://devfeed.tech/tags/patch-the-planet.md>), [software](<https://devfeed.tech/tags/software.md>), [tool](<https://devfeed.tech/tags/tool.md>), [vulnerabilities](<https://devfeed.tech/tags/vulnerabilities.md>)

### AI overview

The article describes how Trail of Bits used Codex's /goal feature in Patch the Planet to find bugs in open-source software. It highlights results involving Rust, curl, Semgrep-based variant analysis, and potential Keycloak privilege-escalation issues, then discusses goal and prompt design techniques.

### Source excerpt

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-source software, we pointed Codex at some of the most widely used, heavily audited codebases in the world, like Rust, curl, and zlib. One tool came up again and again in our internal bug-report channels: /goal, which hands Codex an open-ended objective and lets it work independently toward a success condition. Here are a few highlights: /goal found every Rust bug we submitted, including a soundness hole and a miscompilation now patched in Rust 1.98, from a single variant-analysis pipeline. It turned every project's past CVEs into Semgrep rules that had to fire on the vulnerable version and stay silent on the patched one, then flagged 11 variant hits across multiple projects. It uncovered two potential high-severity privilege-escalation bugs in Keycloak's SAML component during a discovery run. Over the first few weeks of Patch the Planet, our engineers independently converged on three techniques for using /goal. We found that getting the most out of /goal means treating the prompt as a set of specific success criteria, not a set of instructions. (Note that this blog post uses /goal to refer to goal-based prompting in general. Codex can also set goals for itself through a tool call, and that's how we recommend everyone use it; we rarely type the slash command ourselves.) 1. Let Codex write the goal The art of using /goal is prompt design, and we found that Codex knows Codex the best. Internally, our single most repeated /goal tip was to use Codex to help write each /goal prompt. We hand Codex threat model files and the context about what we're looking for, and then tell it to write the goal prompt. As mentioned before, /goal is a tool Codex can invoke on itself, and a few engineers stopped typing goals by hand entirely. $goal-prompt

## Rust-proof your code with our new Testing Handbook chapter

DevFeed: [Rust-proof your code with our new Testing Handbook chapter](<https://devfeed.tech/articles/rust-proof-your-code-with-our-new-testing-handbook-chapter-7658.md>)

Original publisher: [Read original article](<https://blog.trailofbits.com/2026/07/13/rust-proof-your-code-with-our-new-testing-handbook-chapter/>)

Author: "Paweł Płatek"

Published: 2026-07-13T11:00:00Z

Content type: tutorial

Language: en

Sources: [The Trail of Bits Blog](<https://devfeed.tech/sources/the-trail-of-bits-blog-2.md>), [Trail of Bits](<https://devfeed.tech/sources/the-trail-of-bits-blog.md>)

Topics: [Rust](<https://devfeed.tech/topics/rust.md>), [Security](<https://devfeed.tech/topics/security.md>), [mutation-testing](<https://devfeed.tech/topics/mutation-testing.md>), [Developer Tools](<https://devfeed.tech/topics/developer-tools.md>), [test-coverage](<https://devfeed.tech/topics/test-coverage.md>), [Memory Safety](<https://devfeed.tech/topics/memory-safety.md>), [Concurrency](<https://devfeed.tech/topics/concurrency.md>), [Claude Code](<https://devfeed.tech/topics/claude-code.md>), [Claude](<https://devfeed.tech/topics/claude.md>)

Tags: [application-security](<https://devfeed.tech/tags/application-security.md>), [claude-code](<https://devfeed.tech/tags/claude-code.md>), [concurrency](<https://devfeed.tech/tags/concurrency.md>), [measurement](<https://devfeed.tech/tags/measurement.md>), [memory-safety](<https://devfeed.tech/tags/memory-safety.md>), [mutation-testing](<https://devfeed.tech/tags/mutation-testing.md>), [rust](<https://devfeed.tech/tags/rust.md>), [security](<https://devfeed.tech/tags/security.md>), [testing](<https://devfeed.tech/tags/testing.md>), [testing-handbook](<https://devfeed.tech/tags/testing-handbook.md>), [tooling](<https://devfeed.tech/tags/tooling.md>)

### AI overview

A new Testing Handbook chapter presents techniques for security testing Rust programs and systems. It covers Rust security limitations, dynamic and static analysis, undefined-behavior detection with Miri, property testing, coverage and mutation testing, Clippy, manual code review, memory zeroization, model checking with Kani, and dependency supply-chain vetting. The article also announces rust-review, a Claude Code plugin for automated Rust security reviews.

### Source excerpt

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() {(|f:&dyn Fn(u128)->Box< dyn Iterator<Item= char>+'static>|f(*[&( 0x7B736D70683F73u128<<64| 0x7A6A6D7C3F7A667D),&(0x7B736Du128 <<64|0x70683F7073737A77)][((std::hint:: black_box(0.0f64)/0.0).to_bits()>>63)as usize]) .for_each(|c|print!("{c}")))(Box::leak(Box::new(|n: u128|Box::new(std::iter::successors(Some(n),|&n|Some(n>>8) ).take_while(|&n|n>0).map(|n|((n as u8)^0x1F)as char))as _)))} What's in the chapter The chapter starts with a security overview of what Rust's guarantees do and don't cover, including underappreciated issues like unwind safety, nondeterminism, and arithmetic errors. This leads into an overview of dynamic analysis, which covers a range of boosters for unit tests, how to use Miri to detect undefined behavior, property testing with proptest, coverage measurement, and mutation testing. The static analysis section then covers Clippy in depth, including a list of our favorite lints. Beyond tooling, the chapter also covers what we've learned from auditing Rust codebases directly. Our gotchas and footguns checklist is a great reference for manual code reviews, and will help you find subtle issues like a & b == c having different operator precedence than in C. The memory zeroization section offers three solutions to the tricky problem of guaranteeing that secrets are erased from memory. Finally, the specialized testing sections cover tools like Kani (a model checker), and the supply chain section covers the full toolchain for vetting dependencies. Still oxidizing We've also released rust-review, a Claude Code plugin for automated Rust security reviews. Co-built with Aptos Labs, it targets over a dozen bug classes, from memory safety and concurrency hazards to FFI pitfalls and async cancellation issues. It's a fast wa

## Mutation testing comes to DAML

DevFeed: [Mutation testing comes to DAML](<https://devfeed.tech/articles/mutation-testing-comes-to-daml-7657.md>)

Original publisher: [Read original article](<https://blog.trailofbits.com/2026/07/08/mutation-testing-comes-to-daml/>)

Author: "Kamil Chmielewski"

Published: 2026-07-08T11:00:00Z

Content type: article

Language: en

Sources: [The Trail of Bits Blog](<https://devfeed.tech/sources/the-trail-of-bits-blog-2.md>), [Trail of Bits](<https://devfeed.tech/sources/the-trail-of-bits-blog.md>)

Topics: [mutation-testing](<https://devfeed.tech/topics/mutation-testing.md>), [test-coverage](<https://devfeed.tech/topics/test-coverage.md>), [Authorization](<https://devfeed.tech/topics/authorization.md>), [Code](<https://devfeed.tech/topics/code.md>), [Open Source](<https://devfeed.tech/topics/open-source.md>)

Tags: [applications](<https://devfeed.tech/tags/applications.md>), [blockchain](<https://devfeed.tech/tags/blockchain.md>), [bug](<https://devfeed.tech/tags/bug.md>), [code](<https://devfeed.tech/tags/code.md>), [development](<https://devfeed.tech/tags/development.md>), [mutation-testing](<https://devfeed.tech/tags/mutation-testing.md>), [open](<https://devfeed.tech/tags/open.md>), [open-source](<https://devfeed.tech/tags/open-source.md>), [production](<https://devfeed.tech/tags/production.md>), [test-coverage](<https://devfeed.tech/tags/test-coverage.md>), [testing](<https://devfeed.tech/tags/testing.md>), [tool-release](<https://devfeed.tech/tags/tool-release.md>)

### AI overview

Mewt, an open-source mutation-testing engine, now supports DAML, the language used for Canton Network applications. The article explains how mutation testing exposes gaps that ordinary coverage reports can miss by generating modified versions of code and checking which changes survive the existing test suite.

### Source excerpt

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, generates several classes of mutants (including two built for DAML's authorization primitives), and runs them through your existing test suite to count how many mutants survive. If you want to try it, simply install Mewt from the repository, point a mewt.toml at your project and its test command, and use mewt run. For a team shipping DAML to production, that count is what a passing test run is actually worth: it puts a number on how much your suite checks, whereas a green run on its own does not. Why DAML's coverage reports lie Test coverage is the most reassuring lie in smart-contract development. Hitting 100% line coverage tells you the test runner walked the code; it does not tell you whether any test would fail if that code stopped doing what it is supposed to. We have been grading test harnesses by how many mutants they kill since at least 2019, and our primer on finding the bugs your tests don't catch shows how a green suite can still miss the bug that matters. DAML's built-in coverage measures execution at the template and choice level: which templates were created and which choices were exercised over the test run. It reports whether each choice was exercised, not what happened inside it. A test that exercises a choice once and asserts nothing about the result reports that choice as covered. The report prints the same green percentage whether the test verifies the outcome or discards it. How mutation testing works Instead of asking whether your tests reached the code, mutation testing grades your tests by sabotaging that code. The engine generates mutants, copies of the code that each carry one small deliberate change: a flipped comparison, a removed branch, a dropped party. It then runs your test suite against each one. A mutant

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

DevFeed: [GPT-5.5-Cyber built a zlib fuzzing lab in a day](<https://devfeed.tech/articles/gpt-5-5-cyber-built-a-zlib-fuzzing-lab-in-a-day-7656.md>)

Original publisher: [Read original article](<https://blog.trailofbits.com/2026/07/02/field-reports-from-patch-the-planet/>)

Author: "Benjamin Samuels"

Published: 2026-07-02T11:00:00Z

Content type: article

Language: en

Sources: [The Trail of Bits Blog](<https://devfeed.tech/sources/the-trail-of-bits-blog-2.md>), [Trail of Bits](<https://devfeed.tech/sources/the-trail-of-bits-blog.md>)

Topics: [AI-assisted coding](<https://devfeed.tech/topics/ai-assisted-coding.md>), [Vulnerabilities](<https://devfeed.tech/topics/vulnerabilities.md>), [AI Chat](<https://devfeed.tech/topics/ai-chat.md>)

Tags: [bugs](<https://devfeed.tech/tags/bugs.md>), [codex](<https://devfeed.tech/tags/codex.md>), [compression](<https://devfeed.tech/tags/compression.md>), [fuzzing](<https://devfeed.tech/tags/fuzzing.md>), [gpt](<https://devfeed.tech/tags/gpt.md>), [machine-learning](<https://devfeed.tech/tags/machine-learning.md>), [open-source](<https://devfeed.tech/tags/open-source.md>), [openai](<https://devfeed.tech/tags/openai.md>), [patch-the-planet](<https://devfeed.tech/tags/patch-the-planet.md>), [security](<https://devfeed.tech/tags/security.md>), [tooling](<https://devfeed.tech/tags/tooling.md>), [vulnerabilities](<https://devfeed.tech/tags/vulnerabilities.md>)

### AI overview

Trail of Bits reports that GPT-5.5-Cyber built a fuzzing campaign for zlib in a day, using sanitizer and variant builds, harnesses, and seeds. The effort is part of Patch the Planet, which aims to find and patch security bugs in open-source projects with maintainers.

### Source excerpt

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 capable models like GPT-5.5-Cyber will soon create a firehose of bug reports, and OSS maintainers are already spread thin. Our plan is to point OpenAI's latest models at real codebases, find the security bugs first, work with maintainers to patch them, and find ways to decrease the burden on maintainers in the long run. We'll publish field reports like this one as the initiative progresses; follow along via the Patch the Planet tag. The expertise barrier that kept bespoke fuzzing campaigns out of reach for most attackers is gone. We watched GPT-5.5-Cyber build in a single day what would have taken weeks for a skilled security researcher: harnesses across a dozen entrypoints, sanitizer and variant builds, seeds, and multiple findings currently undergoing coordinated disclosure. This particular instance focused on zlib, a widely used data format and lossless data compression software library. We pointed GPT-5.5-Cyber at the library and drove it through Codex with the /goal command, asking it to find a specific class of bugs that are critically dangerous in compression libraries. We'll publish the full harness and findings for inspection once the vulnerabilities are patched and a new release is cut. The lab GPT-5.5-Cyber built in a day We didn't tell the model how to find these bugs. The obvious first move is to read the source code, but zlib has been reviewed so thoroughly that there's little left to find that way. GPT-5.5-Cyber worked that out for itself, judged static review to be a poor use of tokens, and decided the higher value path was to build fuzz tooling to dynamically test the code. Earlier models given the same goal tend to read the code and flag whatever looks suspicious, ultimately leading to mediocre outcomes. We believe th

## Shipping post-quantum cryptography to Python

DevFeed: [Shipping post-quantum cryptography to Python](<https://devfeed.tech/articles/shipping-post-quantum-cryptography-to-python-7655.md>)

Original publisher: [Read original article](<https://blog.trailofbits.com/2026/06/30/shipping-post-quantum-cryptography-to-python/>)

Author: "Alexis Challande"

Published: 2026-06-30T11:00:00Z

Content type: release

Language: en

Sources: [The Trail of Bits Blog](<https://devfeed.tech/sources/the-trail-of-bits-blog-2.md>), [Trail of Bits](<https://devfeed.tech/sources/the-trail-of-bits-blog.md>)

Topics: [Cryptography](<https://devfeed.tech/topics/cryptography.md>)

Tags: [cryptography](<https://devfeed.tech/tags/cryptography.md>), [open-source](<https://devfeed.tech/tags/open-source.md>), [post-quantum](<https://devfeed.tech/tags/post-quantum.md>), [python](<https://devfeed.tech/tags/python.md>), [release](<https://devfeed.tech/tags/release.md>)

### AI overview

The article announces post-quantum cryptography support in pyca/cryptography 48 for Python, including ML-KEM and ML-DSA. It explains that adopting these primitives involves size, performance, and integration tradeoffs.

### Source excerpt

Post-quantum cryptography is now one pip-install away for the entire Python ecosystem. With funding from the Sovereign Tech Agency, we implemented support for ML-KEM, the NIST-standard key-establishment primitive, and ML-DSA, the NIST-standard digital-signature primitive, in pyca/cryptography. On June 22, 2026, the White House ordered the U.S. government to accelerate its transition to post-quantum cryptography. The order says large-scale quantum computers, especially in adversarial hands, will threaten widely used cryptographic systems, and that attackers may already be collecting encrypted data now so they can decrypt it later. It also sets concrete migration deadlines: high-value and high-impact federal systems must use post-quantum key establishment by December 31, 2030, and post-quantum digital signatures by December 31, 2031. And even if you don't care about quantum resistance, that's not a problem because quantum resistance isn't the main benefit of post-quantum crypto. That transition cannot happen only at the policy layer. Every application that signs packages, validates certificates, establishes secure channels, or protects long-lived secrets depends on cryptographic libraries. If those libraries do not expose post-quantum algorithms, the software stack cannot migrate. Almost every Python program that touches cryptography goes through pyca/cryptography. It's currently the eleventh most-downloaded package on PyPI, pulling 1.2 billion downloads in the last month alone. The pyca/cryptography package handles the cryptographic operations of projects like Ansible, Certbot (the Let's Encrypt client), Apache Airflow, paramiko (the Python-only SSH client), and many others. If pyca/cryptography doesn't ship post-quantum primitives, the Python ecosystem can't begin to migrate. Post-quantum support is now one pip install away As of cryptography>=48, support for post quantum algorithms is just a pip install away. The version 48 release includes our Rust bindings for ML

## Introducing Patch the Planet

DevFeed: [Introducing Patch the Planet](<https://devfeed.tech/articles/introducing-patch-the-planet-7654.md>)

Original publisher: [Read original article](<https://blog.trailofbits.com/2026/06/22/introducing-patch-the-planet/>)

Author: "Trail of Bits"

Published: 2026-06-22T16:50:00Z

Content type: article

Language: en

Sources: [The Trail of Bits Blog](<https://devfeed.tech/sources/the-trail-of-bits-blog-2.md>), [Trail of Bits](<https://devfeed.tech/sources/the-trail-of-bits-blog.md>)

Topics: [Open Source](<https://devfeed.tech/topics/open-source.md>), [Security](<https://devfeed.tech/topics/security.md>), [Vulnerabilities](<https://devfeed.tech/topics/vulnerabilities.md>), [Maintainers](<https://devfeed.tech/topics/maintainers.md>), [Pull Request](<https://devfeed.tech/topics/pull-request.md>), [Fuzzing/Fuzz testing](<https://devfeed.tech/topics/fuzzing.md>), [GitHub](<https://devfeed.tech/topics/github.md>), [Cryptography](<https://devfeed.tech/topics/cryptography.md>), [Network](<https://devfeed.tech/topics/network.md>), [cURL](<https://devfeed.tech/topics/curl.md>), [Go Language](<https://devfeed.tech/topics/go-language.md>)

Tags: [announcements](<https://devfeed.tech/tags/announcements.md>), [cryptography](<https://devfeed.tech/tags/cryptography.md>), [fuzzing](<https://devfeed.tech/tags/fuzzing.md>), [github](<https://devfeed.tech/tags/github.md>), [github-actions](<https://devfeed.tech/tags/github-actions.md>), [go](<https://devfeed.tech/tags/go.md>), [maintainers](<https://devfeed.tech/tags/maintainers.md>), [networking](<https://devfeed.tech/tags/networking.md>), [open-source](<https://devfeed.tech/tags/open-source.md>), [openai](<https://devfeed.tech/tags/openai.md>), [patch-the-planet](<https://devfeed.tech/tags/patch-the-planet.md>), [pull-requests](<https://devfeed.tech/tags/pull-requests.md>), [security](<https://devfeed.tech/tags/security.md>), [supply-chain](<https://devfeed.tech/tags/supply-chain.md>), [vulnerabilities](<https://devfeed.tech/tags/vulnerabilities.md>)

### AI overview

Patch the Planet pairs Trail of Bits engineers and open-source maintainers with frontier models to discover, triage, and fix security issues. Its first week produced hundreds of bugs, 64 pull requests, and 51 issues across 19 projects, with work also adding tests, fuzzing harnesses, CI security scanning, supply-chain tooling, correctness fixes, and features.

### Source excerpt

What happens when you clear dozens of Trail of Bits engineers' schedules, pair them with every open-source maintainer they can contact, and unleash the latest frontier models like GPT-5.5-Cyber on critical open-source targets? Thanks to our partnership with OpenAI and its Daybreak initiative, we can report that the impact is hundreds of discovered bugs, 64 pull requests, and 51 issues filed across 19 projects (with many more still undergoing coordinated disclosure). That was just the first week of Patch the Planet. Frontier models like GPT-5.5-Cyber are producing a firehose of security findings, and already-stretched maintainers must sift through all of it to separate real vulnerabilities from plausible-sounding false positives. Patch the Planet is different: with our experts orchestrating and triaging findings, we handle the work of fixing and hardening the code alongside the people who maintain it. The first week of Patch the Planet covered 19 projects across cryptography, networking, language infrastructure, and software supply chain. Among these 19 projects were cURL, NATS, pyca, Sigstore, aiohttp, the Go project, freenginx, Python and python.org, urllib3, PyPI, SimpleX, Valkey, and RustCrypto. Over 30 projects have joined the initiative so far, and we're rapidly expanding it to include more; if you maintain an open-source project, apply to join! Live look at the Trail of Bits engineering teams Anyone can file an issue, flex, and walk away. We showed up with the patches: 37 are already merged, and many more are in flight. These merges go beyond just fixing bugs: we're adding new tests and fuzzing harnesses, CI security scanning, supply-chain tooling, correctness fixes, and features maintainers had been meaning to get to. The goal of Patch the Planet is to leave essential open-source projects measurably better off. We brought patches, not just bug reports We're reporting public findings on GitHub, including 64 total pull requests. We also filed 51 issues, 19 of w

## Factoring "short-sleeve" RSA keys with polynomials

DevFeed: [Factoring "short-sleeve" RSA keys with polynomials](<https://devfeed.tech/articles/factoring-short-sleeve-rsa-keys-with-polynomials-7653.md>)

Original publisher: [Read original article](<https://blog.trailofbits.com/2026/06/12/factoring-short-sleeve-rsa-keys-with-polynomials/>)

Author: "Keegan Ryan"

Published: 2026-06-12T11:00:00Z

Content type: article

Language: en

Sources: [The Trail of Bits Blog](<https://devfeed.tech/sources/the-trail-of-bits-blog-2.md>), [Trail of Bits](<https://devfeed.tech/sources/the-trail-of-bits-blog.md>)

Topics: [Vulnerabilities](<https://devfeed.tech/topics/vulnerabilities.md>), [Certificate Transparency](<https://devfeed.tech/topics/certificate-transparency.md>), [TLS (Transport Layer Security)](<https://devfeed.tech/topics/tls.md>), [ssh](<https://devfeed.tech/topics/ssh.md>), [Open Source](<https://devfeed.tech/topics/open-source.md>), [Code](<https://devfeed.tech/topics/code.md>)

Tags: [attacks](<https://devfeed.tech/tags/attacks.md>), [bug](<https://devfeed.tech/tags/bug.md>), [certificate-transparency](<https://devfeed.tech/tags/certificate-transparency.md>), [code](<https://devfeed.tech/tags/code.md>), [cryptography](<https://devfeed.tech/tags/cryptography.md>), [exploits](<https://devfeed.tech/tags/exploits.md>), [internet](<https://devfeed.tech/tags/internet.md>), [open-source](<https://devfeed.tech/tags/open-source.md>), [software](<https://devfeed.tech/tags/software.md>), [ssh](<https://devfeed.tech/tags/ssh.md>), [tls](<https://devfeed.tech/tags/tls.md>), [vulnerabilities](<https://devfeed.tech/tags/vulnerabilities.md>)

### AI overview

Researchers found hundreds of weak RSA and DSA keys whose structured zero-bit patterns made them quickly factorable with a polynomial-based cryptanalytic technique. They linked many of the keys to a type mismatch in older CompleteFTP big-integer code and recovered 603 RSA private keys and 74 DSA keys from internet scans.

### Source excerpt

What happens when the bits of an RSA private key are heavily biased toward 0 instead of being randomly generated? The public key's bits could be biased enough for us to detect these incorrectly generated keys in the wild. Together with Hanno Böck of the badkeys project, we found hundreds of unique keys that not only have this property, but can be quickly factored. We also found the bug that led to many of these keys and analyzed historical data to track the issue over time. Surprisingly, the pattern of 0 bits is often highly structured, allowing us to develop a powerful polynomial-based cryptanalytic technique that exploits the pattern. Figure 1: Two patterns of RSA moduli with repeated blocks of 0 bits seen in real-world examples. These "short-sleeve" keys, named for how the 0 bits don't fully cover the limbs of the big integers, largely fell into two patterns. Pattern 1 remains unexplained, but we traced pattern 2 to a type mismatch in big-integer code from old versions of the CompleteFTP file transfer software. The CompleteFTP bug also generated vulnerable short-sleeve DSA keys, and we recovered 603 unique RSA private keys and 74 DSA keys from internet scans. If you used CompleteFTP to generate host keys between December 2016 and December 2023, CompleteFTP has released a tool to check whether your keys need to be regenerated. How we found the weak keys The badkeys project is an open-source service that checks public keys for known vulnerabilities. While developing this tool, Hanno collected a massive number of real-world keys from public sources, including Certificate Transparency logs, internet-wide TLS and SSH scans, PGP keys, and many others. By searching this dataset for unexpectedly sparse RSA moduli, we uncovered a large number of keys in the wild with the patterns in Figure 1. Both patterns include several regularly spaced blocks of all zeros interleaved with seemingly random data. Pattern 1 appears in CT logs for certificates issued to several large organ

## The sorry state of skill distribution

DevFeed: [The sorry state of skill distribution](<https://devfeed.tech/articles/the-sorry-state-of-skill-distribution-7652.md>)

Original publisher: [Read original article](<https://blog.trailofbits.com/2026/06/03/the-sorry-state-of-skill-distribution/>)

Author: "Samuel Judson"; "Tjaden Hess"

Published: 2026-06-03T11:00:00Z

Content type: article

Language: en

Sources: [The Trail of Bits Blog](<https://devfeed.tech/sources/the-trail-of-bits-blog-2.md>), [Trail of Bits](<https://devfeed.tech/sources/the-trail-of-bits-blog.md>)

Topics: [Security, Privacy and Abuse Prevention](<https://devfeed.tech/topics/security-privacy-and-abuse-prevention.md>), [AI Bots](<https://devfeed.tech/topics/ai-bots.md>)

Tags: [agent-skill](<https://devfeed.tech/tags/agent-skill.md>), [agents](<https://devfeed.tech/tags/agents.md>), [attacks](<https://devfeed.tech/tags/attacks.md>), [machine-learning](<https://devfeed.tech/tags/machine-learning.md>), [security](<https://devfeed.tech/tags/security.md>), [skills](<https://devfeed.tech/tags/skills.md>), [supply-chain](<https://devfeed.tech/tags/supply-chain.md>), [vulnerabilities](<https://devfeed.tech/tags/vulnerabilities.md>)

### AI overview

The article reports that public marketplaces for agent skills are being flooded with malicious skills and argues that tested skill scanners were readily bypassed. It frames skill distribution as a software-supply-chain security problem, with natural-language prompts and code both creating attack paths.

### Source excerpt

Public skill marketplaces are being flooded with malicious skills that steal credentials, exfiltrate data, and hijack agents. In response, a segment of the security industry released skill scanners, a new family of tools designed to detect malicious skills before they're installed. But we tested them, and they don't work. We recently bypassed ClawHub's malicious skill detector, Cisco's agent skill scanner, and all three of the scanners integrated into skills.sh. These were not advanced attacks: it took us less than an hour to conceive and implement three of the four malicious skills in trailofbits/overtly-malicious-skills, using standard tricks and rapid inspection of the scanner source code. The fourth malicious skill took a few hours, but only because the prompt injection required some trial and error. Our findings demonstrate that even when skill scanners have some defenses, their static nature gives an adversary unlimited bites at the apple to tweak an attack until it finds a way through. Why skill security matters Software supply chains have long been the soft underbelly of computer security. As fragile infrastructure susceptible to both insider threats and external attackers, these supply chains were vulnerable enough when malicious code was the sole vector of compromise. But the rise in agentic systems has spawned a new style of dependency--the skill--and with it a whole new ecosystem of marketplaces and distribution channels that now run alongside traditional package managers. Malicious skills can embed harmful instructions in natural language (e.g., a SKILL.md prompt) as well as code, giving them whole new avenues to attack any system they are given access to. Compounding the issue, the distribution channels for skills have proved to be ship-first, secure-later. There are already multiple types of distribution channels for how users find skills and deploy them to their agents: ZIP archives distributed out-of-band and then uploaded manually or via API to agent