Cyber Risks · Trail of Bits Blog

Publishing Trail of Bits’ CodeQL queries

Summary: Trail of Bits published a continuously updated repository of custom CodeQL queries for Go and C, covering misused cryptography, insecure file permissions, and bugs in string methods, which it says found critical issues the standard CodeQL queries would have missed. The release joins its public Semgrep rules and Automated Testing Handbook, and the queries target cases such as unhashed data passed to ecdsa.SignASN1 and ecdsa.VerifyASN1, non-octal file permission integers, strings.TrimLeft cutset misuse, tls.Config structures without MinVersion set, and invalid size arguments to strncmp, strncpy, memmove, and strncat.

Why it matters: The unhashed-signing flaw means code signs and verifies only the first 32 bytes of a file on the P-256 curve, and Trail of Bits says it has seen this in real-world codebases with critical impact.

Read the original at Trail of Bits Blog ↗