Summary
GitHub released CodeQL 2.26.0 on July 10, 2026 with a new js/system-prompt-injection query that uses taint tracking to detect when untrusted user input flows into AI system prompts across OpenAI, Anthropic, and Google GenAI SDK calls. Repositories with Code Scanning enabled receive the update automatically. Python and indirect prompt injection are not yet covered.
Source Analysis
Verified against GitHub official changelog and CodeQL query help documentation. Release date July 8, 2026 (changelog published July 10). CWE-1427, severity 7.8.
Research Notes
Additional Sources
- 2026-07-12-codeql-2-26-github-changelog — GitHub official announcement
- 2026-07-12-codeql-system-prompt-injection-query-help — query documentation, mitigations
- Primary: 2026-07-12-codeql-2-26-prompt-injection-detection
Key Facts Verified
- Confirmed: Query
js/system-prompt-injectionin CodeQL 2.26.0 - Confirmed: JS/TS only; covers OpenAI, Anthropic, Google GenAI SDK sinks
- Confirmed: Auto-deploys to GitHub code scanning on github.com
- Confirmed gaps: No Python query; indirect injection partially covered; tool-description injection separate pattern
Broader Context
Defensive counterpart to png-prompt-injection-ai-code-review-attack attack story. Mainstream SAST milestone for prompt-injection in AI-integrated codebases. Pairs as attack/defense package for Turkish dev audience.
Related Wiki
Draft Article
CodeQL Artık Prompt Injection’ı CI’da Yakalıyor: GitHub 2.26 ile Ne Değişti?
github, 8–10 Temmuz 2026’da codeql 2.26.0 sürümünü yayınladı. Yeni js/system-prompt-injection sorgusu, güvenilmeyen kullanıcı girdisinin OpenAI, Anthropic ve Google GenAI SDK çağrıları üzerinden AI system prompt’larına aktığını taint tracking ile tespit ediyor. Code Scanning etkin repolara güncelleme otomatik dağıtılıyor. CWE-1427, severity 7.8.
Ana Gelişme
prompt-injection, AI entegreli kod tabanlarında giderek yaygın bir güvenlik riski. codeql 2.26, bu riski statik analiz (SAST) kapsamına alan ilk ana akım araçlardan biri.
Sorgu nasıl çalışıyor:
- Güvenilmeyen kullanıcı girdisi (HTTP request, form input vb.) kaynak olarak işaretlenir
- Taint tracking, verinin AI SDK system prompt parametrelerine ulaşıp ulaşmadığını izler
- Akış tespit edilirse uyarı üretilir
Desteklenen SDK’lar: OpenAI, Anthropic, Google GenAI. Code Scanning etkin github.com repolarına otomatik dağıtım yapılıyor.
Neden Önemli?
devsecops ve ci-cd pipeline’larına prompt-injection tespiti entegre edilmesi, Türk geliştirici topluluğu için pratik bir savunma katmanı. Dün yayınlanan png-prompt-injection-ai-code-review-attack saldırı haberinin savunma karşılığı olarak değerlendirilebilir — saldırı ve savunma paketi.
Teknik Detaylar
Kapsam sınırlamaları:
- Yalnızca JavaScript/TypeScript — Python sorgusu yok
- Dolaylı (indirect) prompt injection kısmen kapsanıyor
- Tool-description injection ayrı bir desen olarak ele alınıyor
Bağlam
ai-security alanında SAST araçlarının AI-spesifik zafiyetleri kapsaması, endüstrinin olgunlaştığının bir göstergesi. github-security ekosistemi, AI SDK entegrasyonları için güvenlik sorgularını genişletmeye devam ediyor.
Sonraki Adımlar
Python desteği ve dolaylı injection kapsamının genişletilmesi bekleniyor. Geliştiriciler, Code Scanning’i etkinleştirip mevcut repolarında yeni sorguyu test etmeli.
Kaynaklar
- CodeQL 2.26 Prompt Injection Detection (ByteIota)
- GitHub CodeQL Changelog
- CodeQL Query Help — js/system-prompt-injection
PreScreening Notes
Score: 7/10 | Priority: high
Evaluation Report
(See evaluated stage notes.)
Suggested Angle
Turkish audience angle: “CodeQL artık prompt injection’ı CI’da yakalıyor: GitHub 2.26 ile ne değişti?”
Editorial Notes
Approved angle: DevSecOps milestone — prompt injection artık SAST kapsamında
Format: standard
Reporting instructions:
- Lead with practical developer impact: auto-deploys to repos with Code Scanning enabled
- Explain
js/system-prompt-injectionquery and taint tracking concept briefly - Cover supported SDKs: OpenAI, Anthropic, Google GenAI
- Clearly state gaps: JS/TS only, no Python, indirect injection partial
- Optional cross-link to published png-prompt-injection-ai-code-review-attack as attack/defense pair
Headline suggestions (TR):
- CodeQL artık prompt injection’ı CI’da yakalıyor: GitHub 2.26 ile ne değişti?
- GitHub CodeQL 2.26: AI system prompt injection için statik analiz
Must include:
- Release July 8–10, 2026; CWE-1427; severity 7.8
- Taint tracking from untrusted input to system prompts
- Coverage limitations (Python, indirect injection)