Edit

Share via


Remediate code with Microsoft Security Copilot

Microsoft Defender for Cloud's integration with Microsoft Security Copilot lets you remediate Infrastructure as Code (IaC) misconfigurations in your code repositories. Remediating IaC findings with Copilot lets you address security misconfigurations and vulnerabilities early in the development cycle by automatically generating Pull Requests (PRs) that correct the identified weaknesses. This remediation ensures that security issues in code are addressed accurately and promptly.

Prerequisites

Remediate an Infrastructure as Code scanning finding

With Microsoft Security Copilot, in Defender for Cloud you can remediate recommendations.

  1. Sign in to the Azure portal.

  2. Search for and select Microsoft Defender for Cloud.

  3. Navigate to Recommendations.

  4. Search for and select the Azure DevOps repositories should have infrastructure as code scanning findings resolved recommendation.

    Screenshot that shows the recommendation that you searched for.

  5. Select Reduce risk with Copilot.

    Screenshot that shows where the Summarize with copilot button is located.

  6. Select Help me remediate this recommendation.

  7. Select security check.

  8. Select the appropriate description.

  9. Select Select.

    Screenshot that shows where the select button is located.

  10. Review the summary of the code fix.

  11. Select Submit.

  12. Select the provided link.

  13. Review the pull request.

Once the pull request is generated in your code repository, a developer should review and approve the pull request for merging into the code base.

Next step