codeql
Enables developers to perform complex static analysis on codebases using CodeQL for enhanced security and bug prevention.
Install this skill
Security score
The codeql skill was audited on Feb 9, 2026 and we found 33 security issues across 3 threat categories. Review the findings below before installing.
Categories Tested
Security Issues
Template literal with variable interpolation in command context
| 390 | ```yaml |
Template literal with variable interpolation in command context
| 464 | ```yaml |
Access to hidden dotfiles in home directory
| 292 | Configure the CLI to find your queries by creating `~/.config/codeql/config`: |
Access to hidden dotfiles in home directory
| 478 | path: ~/.codeql |
Access to root home directory
| 294 | --search-path /full/path/to/your/codeql/root/directory |
External URL reference
| 111 | Output formats include SARIF and CSV. SARIF results can be viewed with the [VSCode SARIF Explorer extension](https://marketplace.visualstudio.com/items?itemName=trailofbits.sarif-explorer). |
External URL reference
| 354 | **VSCode:** [CodeQL extension](https://marketplace.visualstudio.com/items?itemName=GitHub.vscode-codeql) provides LSP support, syntax highlighting, query running, and AST visualization. |
External URL reference
| 370 | - [C and C++](https://codeql.github.com/codeql-standard-libraries/cpp/) |
External URL reference
| 371 | - [Go](https://codeql.github.com/codeql-standard-libraries/go/) |
External URL reference
| 372 | - [Java and Kotlin](https://codeql.github.com/codeql-standard-libraries/java/) |
External URL reference
| 373 | - [JavaScript and TypeScript](https://codeql.github.com/codeql-standard-libraries/javascript/) |
External URL reference
| 374 | - [Python](https://codeql.github.com/codeql-standard-libraries/python/) |
External URL reference
| 375 | - [C#](https://codeql.github.com/codeql-standard-libraries/csharp/) |
External URL reference
| 376 | - [Ruby](https://codeql.github.com/codeql-standard-libraries/ruby/) |
External URL reference
| 377 | - [Swift](https://codeql.github.com/codeql-standard-libraries/swift/) |
External URL reference
| 381 | CodeQL supports C/C++, C#, Go, Java, Kotlin, JavaScript, TypeScript, Python, Ruby, and Swift. Check [supported languages and frameworks](https://codeql.github.com/docs/codeql-overview/supported-langua |
External URL reference
| 517 | - [Look out! Divergent representations are everywhere!](https://blog.trailofbits.com/2022/11/10/divergent-representations-variable-overflows-c-compiler/) |
External URL reference
| 518 | - [Finding unhandled errors using CodeQL](https://blog.trailofbits.com/2022/01/11/finding-unhandled-errors-using-codeql/) |
External URL reference
| 519 | - [Detecting iterator invalidation with CodeQL](https://blog.trailofbits.com/2020/10/09/detecting-iterator-invalidation-with-codeql/) |
External URL reference
| 523 | - [CodeQL zero to hero part 1: The fundamentals of static analysis for vulnerability research](https://github.blog/2023-03-31-codeql-zero-to-hero-part-1-the-fundamentals-of-static-analysis-for-vulnera |
External URL reference
| 524 | - [QL language tutorials](https://codeql.github.com/docs/writing-codeql-queries/ql-tutorials/) |
External URL reference
| 525 | - [GitHub Security Lab CodeQL CTFs](https://securitylab.github.com/ctf/) |
External URL reference
| 529 | - [Practical introduction to CodeQL](https://jorgectf.github.io/blog/post/practical-codeql-introduction/) |
External URL reference
| 530 | - [Sharing security expertise through CodeQL packs (Part I)](https://github.blog/2022-04-19-sharing-security-expertise-through-codeql-packs-part-i/) |
External URL reference
| 534 | - [Trail of Bits: Introduction to CodeQL - Examples, Tools and CI Integration](https://www.youtube.com/watch?v=rQRlnUQPXDw) |
External URL reference
| 535 | - [Finding Security Vulnerabilities in C/C++ with CodeQL](https://www.youtube.com/watch?v=eAjecQrfv3o) |
External URL reference
| 536 | - [Finding Security Vulnerabilities in JavaScript with CodeQL](https://www.youtube.com/watch?v=pYzfGaLTqC0) |
External URL reference
| 537 | - [Finding Security Vulnerabilities in Java with CodeQL](https://www.youtube.com/watch?v=nvCd0Ee4FgE) |
External URL reference
| 541 | - [Clang checkers and CodeQL queries for detecting untrusted pointer derefs and tainted loop conditions](https://www.zerodayinitiative.com/blog/2022/2/22/clang-checkers-and-codeql-queries-for-detectin |
External URL reference
| 543 | - [Interesting kernel objects dashboard](https://lookerstudio.google.com/reporting/68b02863-4f5c-4d85-b3c1-992af89c855c/page/n92nD) |
External URL reference
| 547 | - [Blue-teaming for Exiv2: adding custom CodeQL queries to code scanning](https://github.blog/2021-11-16-adding-custom-codeql-queries-code-scanning/) |
External URL reference
| 548 | - [Best practices on rolling out code scanning at enterprise scale](https://github.blog/2022-09-28-best-practices-on-rolling-out-code-scanning-at-enterprise-scale/) |
External URL reference
| 549 | - [Fine tuning CodeQL scans using query filters](https://colinsalmcorner.com/fine-tuning-codeql-scans/) |