Microsoft has launched a limited public preview of Copilot Autofix for GitHub Advanced Security within Azure DevOps, allowing teams to automatically detect and remediate software vulnerabilities. By integrating static analysis from CodeQL with generative AI, the platform creates pull requests that suggest code fixes for developer review. This expansion aims to shorten the time between vulnerability identification and resolution while maintaining human oversight in existing workflows.
How does Copilot Autofix integrate with Azure DevOps?
The new functionality brings AI-driven remediation to organizations that rely on Azure Repos rather than GitHub repositories. According to Microsoft, the tool functions by pairing the deep semantic analysis of CodeQL with the coding agent capabilities of GitHub Copilot. When CodeQL identifies a supported security alert, the platform analyzes the vulnerability within the context of the surrounding application. It then generates a proposed code change and opens a pull request, which developers must review, test, and approve before it is merged into the codebase.

Microsoft’s move into AI-assisted remediation is part of a broader strategy to bridge the feature gap between GitHub and Azure DevOps. Previous integrations have already brought CodeQL default setup and secret scanning to Azure Repos.
Why is AI-assisted remediation becoming an industry standard?
Security teams face a growing bottleneck in the “last mile” of software delivery: the time spent interpreting alerts and manually writing patches. Static application security testing (SAST) tools have historically excelled at finding risks but often provided little help in the actual repair process. By automating the creation of candidate fixes, platforms like Copilot Autofix—alongside similar offerings from GitLab, Snyk, Sonar, and Checkmarx—aim to keep pace with the rapid volume of code generation driven by modern AI tools.
What are the risks of using AI for security fixes?
While AI can accelerate maintenance, Microsoft warns that generated fixes are not guaranteed to be complete or free from unintended side effects. Research into agent-generated pull requests indicates that many AI-proposed fixes are ultimately rejected due to incorrect assumptions or failures during CI validation. Because of these challenges, Microsoft maintains that developers remain responsible for the final code. The system does not operate autonomously; it functions as an assistant that respects existing governance and quality assurance practices.
Comparison: Traditional vs. AI-Assisted Remediation

| Feature | Traditional SAST | Copilot Autofix |
|---|---|---|
| Detection | Manual analysis required | Context-aware analysis |
| Remediation | Manual coding | AI-generated PRs |
| Oversight | Full manual review | Human-in-the-loop review |
Even when using AI to generate fixes, treat every pull request as if it were written by a junior developer. Always run your full suite of unit and integration tests before merging to ensure the AI hasn’t introduced regression errors.
Frequently Asked Questions
- Does Copilot Autofix replace human security engineers? No. Microsoft emphasizes that developers must validate every fix, as the AI is an assistant rather than an autonomous replacement.
- Is this feature available for all repositories? The current limited public preview is specifically designed for GitHub Advanced Security for Azure DevOps users.
- Does the tool only fix single lines of code? No. The platform is capable of proposing coordinated changes across multiple files to resolve complex issues correctly.
How is your team handling the surge in security alerts? Join the conversation below or subscribe to our newsletter for the latest updates on DevSecOps trends.
Worth a look