GitHub Enhances CodeQL with Declarative Security Modeling for Faster, More Flexible Analysis
Our take

GitHub has taken a significant step toward democratizing security analysis with its latest CodeQL enhancement. The introduction of declarative security modeling through a "models-as-data" approach represents a fundamental shift in how development teams can extend security scanning across their codebases. Rather than requiring deep expertise in CodeQL's query language or complex plugin development, developers can now define custom sanitizers and validators using a more accessible data-driven model. This development arrives at a critical moment as organizations grapple with increasingly sophisticated threats while facing a persistent shortage of dedicated security expertise. The timing of this announcement reflects broader industry transformations, much like how How AI Agents Will Transform Data Science Work in 2026 explores how automation is reshaping technical workflows across the development landscape.
The significance of this update extends beyond mere convenience. Security analysis has traditionally required either extensive customization through code or acceptance of generic rules that generate excessive false positives. By enabling teams to define their own sanitization and validation logic through data models, GitHub allows organizations to encode their specific security requirements without requiring dedicated security engineers to write custom queries. This approach addresses a real friction point that has long hindered adoption of sophisticated static analysis tools in organizations without large security teams. The models-as-data paradigm essentially lowers the barrier to entry while preserving the depth of analysis that CodeQL is known for.
What makes this particularly noteworthy is how it aligns with a broader industry movement toward treating configuration as data rather than code. This pattern has proven effective across policy-as-code, infrastructure-as-code, and now security modeling, suggesting that declarative approaches simply scale better than imperative ones for many organizational needs. Developers can focus on describing what their applications should consider secure rather than how to implement that detection logic in a specialized query language. The result is a more maintainable approach where security models can be version-controlled, reviewed, and iterated upon like any other data asset. This shift also makes it easier for teams to share and adopt security best practices across projects, as the models can be distributed and adapted more readily than custom query code.
Looking ahead, the question becomes whether this declarative approach will truly make advanced security analysis accessible to the teams that need it most, or whether the underlying complexity of security modeling will still require specialized knowledge to get right. The answer likely depends on how the ecosystem evolves around these new capabilities. If the community develops rich libraries of pre-built models that organizations can adopt and adapt, we could see a meaningful expansion of sophisticated security scanning across the development world. GitHub's move positions CodeQL to compete more effectively in an increasingly crowded static analysis market while addressing a genuine pain point that has limited the technology's reach. The coming months will reveal whether this innovation drives the broader adoption that the approach promises.

GitHub has introduced a significant update to its CodeQL engine, enabling developers to define custom sanitizers and validators directly through "models-as-data," a move that simplifies how teams extend security analysis across their codebases.
By Craig RisiRead on the original site
Open the publisher's page for the full experience