Say hello to the next chapter of the Testing Handbook!
Summary: Trail of Bits added a CodeQL chapter to its Testing Handbook, covering local setup, creating a CodeQL database, writing and running custom queries, unit testing and debugging them, and integrating CodeQL into CI/CD through GitHub code scanning. The firm says it uses CodeQL on client engagements to find common vulnerabilities and perform variant analysis, and wrote the chapter after hearing from developers and security professionals who struggle to write custom queries and wire them into pipelines.
What's compelling: The chapter's own example shows a CodeQL query cutting more than 2,500 compiler warnings about implicit conversions in OpenVPN2 down to 20, which is the difference between a backlog nobody reads and a short list someone can act on.
Read the original at Trail of Bits Blog ↗