<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>codeql on The Trail of Bits Blog</title><link>https://miscreants.github.io/blog.trailofbits.com/categories/codeql/</link><description>Recent content in codeql on The Trail of Bits Blog</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Thu, 11 Dec 2025 00:00:00 -0500</lastBuildDate><atom:link href="https://miscreants.github.io/blog.trailofbits.com/categories/codeql/index.xml" rel="self" type="application/rss+xml"/><item><title>Introducing mrva, a terminal-first approach to CodeQL multi-repo variant analysis</title><link>https://miscreants.github.io/blog.trailofbits.com/2025/12/11/introducing-mrva-a-terminal-first-approach-to-codeql-multi-repo-variant-analysis/</link><pubDate>Thu, 11 Dec 2025 07:00:00 -0500</pubDate><guid>https://miscreants.github.io/blog.trailofbits.com/2025/12/11/introducing-mrva-a-terminal-first-approach-to-codeql-multi-repo-variant-analysis/</guid><description>Our new tool mrva is a terminal-first tool for running CodeQL multi-repository variant analysis locally,allowing users to download pre-built databases, analyze them with custom queries, and view results directly in the terminal.</description></item><item><title>Taming 2,500 compiler warnings with CodeQL, an OpenVPN2 case study</title><link>https://miscreants.github.io/blog.trailofbits.com/2025/09/25/taming-2500-compiler-warnings-with-codeql-an-openvpn2-case-study/</link><pubDate>Thu, 25 Sep 2025 07:00:00 -0400</pubDate><guid>https://miscreants.github.io/blog.trailofbits.com/2025/09/25/taming-2500-compiler-warnings-with-codeql-an-openvpn2-case-study/</guid><description>We created a CodeQL query that reduced 2,500+ compiler warnings about implicit conversions in OpenVPN2 to just 20 high-priority cases, demonstrating how to effectively identify potentially dangerous type conversions in C code.</description></item><item><title>Catching OpenSSL misuse using CodeQL</title><link>https://miscreants.github.io/blog.trailofbits.com/2023/12/22/catching-openssl-misuse-using-codeql/</link><pubDate>Fri, 22 Dec 2023 09:00:35 -0500</pubDate><guid>https://miscreants.github.io/blog.trailofbits.com/2023/12/22/catching-openssl-misuse-using-codeql/</guid><description>I’ve created five CodeQL queries that catch potentially potent bugs in the OpenSSL libcrypto API, a widely adopted but often unforgiving API that can be misused to cause memory leaks, authentication bypasses, and other subtle cryptographic issues in implementations. These queries—which I developed during my internship with my mentors, Fredrik Dahlgren and […]</description></item><item><title>Say hello to the next chapter of the Testing Handbook!</title><link>https://miscreants.github.io/blog.trailofbits.com/2023/12/11/say-hello-to-the-next-chapter-of-the-testing-handbook/</link><pubDate>Mon, 11 Dec 2023 08:30:16 -0500</pubDate><guid>https://miscreants.github.io/blog.trailofbits.com/2023/12/11/say-hello-to-the-next-chapter-of-the-testing-handbook/</guid><description>Today we are announcing the latest addition to the Trail of Bits Testing Handbook: a brand new chapter on CodeQL! CodeQL is a powerful and versatile static analysis tool, and at Trail of Bits, we regularly use CodeQL on client engagements to find common vulnerabilities and to perform variant analysis for already […]</description></item><item><title>Publishing Trail of Bits’ CodeQL queries</title><link>https://miscreants.github.io/blog.trailofbits.com/2023/12/06/publishing-trail-of-bits-codeql-queries/</link><pubDate>Wed, 06 Dec 2023 08:30:25 -0500</pubDate><guid>https://miscreants.github.io/blog.trailofbits.com/2023/12/06/publishing-trail-of-bits-codeql-queries/</guid><description>We are publishing a set of custom CodeQL queries for Go and C. We have used them to find critical issues that the standard CodeQL queries would have missed. This new release of a continuously updated repository of CodeQL queries joins our public Semgrep rules and Automated Testing Handbook in an effort […]</description></item><item><title>Look out! Divergent representations are everywhere!</title><link>https://miscreants.github.io/blog.trailofbits.com/2022/11/10/divergent-representations-variable-overflows-c-compiler/</link><pubDate>Thu, 10 Nov 2022 07:30:53 -0500</pubDate><guid>https://miscreants.github.io/blog.trailofbits.com/2022/11/10/divergent-representations-variable-overflows-c-compiler/</guid><description>Trail of Bits recently published a blog post about a signed integer overflow in certain versions of SQLite that can enable arbitrary code execution and result in a denial of service. While working on proof-of-concept exploits for that vulnerability, we noticed that the compiler’s representation of an important integer variable is semantically […]</description></item><item><title>Finding unhandled errors using CodeQL</title><link>https://miscreants.github.io/blog.trailofbits.com/2022/01/11/finding-unhandled-errors-using-codeql/</link><pubDate>Tue, 11 Jan 2022 07:00:58 -0500</pubDate><guid>https://miscreants.github.io/blog.trailofbits.com/2022/01/11/finding-unhandled-errors-using-codeql/</guid><description>One of your developers finds a bug in your codebase—an unhandled error code—and wonders whether there could be more. He combs through the code and finds unhandled error after unhandled error. One lone developer playing whack-a-mole. It’s not enough. And your undisciplined team of first-year Stanford grads never learned software engineering. You’re […]</description></item><item><title>Detecting Iterator Invalidation with CodeQL</title><link>https://miscreants.github.io/blog.trailofbits.com/2020/10/09/detecting-iterator-invalidation-with-codeql/</link><pubDate>Fri, 09 Oct 2020 08:30:22 -0400</pubDate><guid>https://miscreants.github.io/blog.trailofbits.com/2020/10/09/detecting-iterator-invalidation-with-codeql/</guid><description>Iterator invalidation is a common and subtle class of C++ bugs that often leads to exploitable vulnerabilities. During my Trail of Bits internship this summer, I developed Itergator, a set of CodeQL classes and queries for analyzing and discovering iterator invalidation. Results are easily interpretable by an auditor, […]</description></item></channel></rss>