GitHub announced on July 10, 2026 that CodeQL 2.26.0 adds AI prompt-injection detection. Enabling a query is useful; owning a regression test is better.

Primary source: GitHub Changelog, July 10, 2026.

The examples below are implementation templates, not results from a repository I tested.

Model a path, not a phrase

A useful fixture contains an untrusted source, prompt construction, and a model sink: