Microsoft Defender for Cloud
Cloud and workloads

Remediate code with Microsoft Security Copilot

In brief

The article now explains that Copilot generates pull requests to correct Infrastructure as Code misconfigurations, adds a before-you-begin section, clarifies the remediation steps, and emphasizes developer review before merging.

What Defender admins need to know

Administrators can use the revised guidance to better understand and communicate the Copilot remediation workflow; no configuration change is stated.

Summaries are generated from the documentation change itself.

Documentation change

The comparison below shows only the changed extract. Use the full-page view for complete context.

Remediate code with Microsoft Security Copilot

Microsoft Defender for Cloud's integration integrates with Microsoft Security Copilot letsto help you remediatefix Infrastructure as Code (IaC) misconfigurationsissues in your code repositories. Remediating IaC findings with Copilot letsWith Copilot, you addresscan catch and fix security misconfigurations and vulnerabilitiesissues early in the development cycle by automatically generatingcycle. Copilot creates pull requests (PRs) that correct the identified weaknesses. This remediation ensuresproblems it finds. Automatically generated PRs help ensure that securitycode issues in code are addressed accuratelyfixed quickly and promptly.correctly. Before you get started, make sure you meet the prerequisites for Defender for Cloud, Security Copilot, and repository integration.

Prerequisites

Before you begin, make sure you have the following items set up:

Remediate an Infrastructure as Code scanning finding

With Microsoft SecurityYou can use Copilot in Defender for Cloud, you can remediate recommendations.Cloud to fix flagged issues. Follow these steps to resolve a finding:

  1. Sign in to the Azure portal.

  2. Select security check.

  3. Select the appropriate description.description that matches the security check finding.

  4. Select Select.

  5. Select Submit.

  6. Select the provided link.pull request link shown in the Copilot results.

  7. Review the pull request.

OnceAfter Copilot creates the pull request is generated in your code repository, a developer should review and approve the pull request for merging into the code base.it before merging.

Next stepsteps

[!div class="nextstepaction"] Scan for misconfigurations in Infrastructure as Code