GitHub's code scanning for AI applications enters public preview
Start here
GitHub launched a public preview of Code scanning for AI applications, automatically detecting AI-specific vulnerabilities such as indirect prompt injection (XPIA), sensitive information leakage, and excessive agency in pull requests. Scanning runs automatically when a PR is created, in parallel with existing CodeQL analysis, flags agent code paths where untrusted content could reach models with access to tools, data, or business systems, and gives remediation suggestions directly in the PR. Indirect prompt injection ranks first on the OWASP Top 10 for LLM applications.
Generated by AI from reports · Updated 2026-10-29
Progress timeline
- The GitHub BlogGitHub's code scanning for AI applications enters public preview
GitHub launched a public preview of Code scanning for AI applications, automatically detecting AI-specific vulnerabilities such as indirect prompt injection (XPIA), sensitive information leakage and excessive agency in pull requests. The scan runs automatically when a PR is created, in parallel with existing CodeQL analysis, flags agent code paths where untrusted content could reach models with access to tools, data or business systems, and gives remediation suggestions directly in the PR. Indirect prompt injection ranks first on the OWASP Top 10 for LLM applications, and as more teams build agents into their codebases, such risk architectures are hard to find through manual review alone. The feature requires a GitHub Advanced Security license and is currently available only on github.com, not yet on GitHub Enterprise Server.