Securing CodeQL queries with Semgrep
Blog post from Semgrep
Semgrep, a tool focused on enhancing software security through secure coding practices, has expanded its capabilities by supporting CodeQL, a query language initially developed by Semmle Inc. and later acquired by GitHub. This integration allows Semgrep to scan CodeQL queries, thereby addressing potential security issues and code inconsistencies in a more efficient manner. The process involved leveraging the tree-sitter technology to translate CodeQL's syntax into a format that Semgrep can interpret, despite the complexities and irregularities within CodeQL's grammar. This enhancement aims to further Semgrep's mission of improving software security across various platforms by providing reliable guardrails for secure coding. The project, which took a day and a half to complete, showcases Semgrep's commitment to supporting diverse programming languages and maintaining high standards for language support, achieving a 99.999% parse rate for CodeQL.