Microsoft Defender for Cloud
Cloud and workloads

Configure agentless code scanning (Preview)

In brief

The article’s wording and metadata were updated, the “Scanning tools” section was renamed “Supported scanning tools,” and the Template Analyzer license label was clarified.

What Defender admins need to know

No administrator action is required.

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.

Configure agentless code scanning (Preview)

Agentless code scanning in Microsoft Defender for Cloud offers fast and scalable security coverage for all repositories in Azure DevOps and GitHub. It automatically scans code, open-source dependencies, and infrastructure-as-code (IaC) to identify vulnerabilities and misconfigurations. You don't need to change build or deployment pipelines. This approachAgentless code scanning simplifies setup and maintenance with a single Azure DevOps or GitHub connector and provides broad coverage, continuous insights, and actionable security findings. It lets security and development teams focus on fixing risks without interrupting development workflows.

You can customize which scanners to run and define exactly which organizations, projects, or repositories to include or exclude from scanning.

Agentless code scanning in Microsoft Defender for Cloud provides the following benefits:

  • Proactive risk management: Identify risks early in the development process. ThisEarly risk identification enables secure coding practices and reduces vulnerabilities before they reach production. 
  • Effortless onboarding: Set up quickly with minimal configuration and without pipeline changes. 
  • Enterprise-scale, centralized management: Automatically scan code across multiple repositories using a single connector. ThisCentralized management offers extensive coverage for large environments. 
  • Rapid insights for quick remediation: Receive actionable vulnerability insights right after onboarding. Thisonboarding, which allows quick fixes and reduces exposure time. 
  • Developer-friendly and seamless: Operate independently of continuous integration and continuous deployment (CI/CD) pipelines, without changes or direct developer involvement needed. ThisOperating independently of CI/CD pipelines allows for continuous security monitoring without disrupting developer productivity or workflows.
  • Flexible coverage and control: Choose which scanners run and what gets scanned. You can cover everything by default or customize settings to include or exclude specific organizations, projects, or repositories. This allowsThese customization options allow you to match security coverage to your risk profile and operational needs, without extra complexity.
  • Software Bill of Materials (SBOM) creation: Automatically generating an SBOM on every scan gives teams a precise, queryable inventory of dependencies and versions across their repositories, without additional workflow changes. This enables rapid impact analysis, faster response to newly disclosed vulnerabilities, and confident decision-making when assessing exposure to specific packages or versions.

Risk detection capabilities

Creating the connector enhances security by providing foundational cloud security posture management recommendations for repositories, pipelines, and service connections.

ScanningSupported scanning tools

Agentless code scanning uses open-source tools to find vulnerabilities and misconfigurations in code and infrastructure-as-code (IaC) templates:

Tool Supported IaC/Languages License
Template Analyzer ARM IaC templates, Bicep IaC templates Template Analyzer MIT license
Checkov Terraform IaC templates, Terraform plan files, AWS CloudFormation templates, Kubernetes manifest files, Helm chart files, Dockerfiles, Azure Resource Manager (ARM) IaC templates, Azure Bicep IaC templates, AWS SAM templates (Serverless Application Model), Kustomize files, Serverless framework templates, OpenAPI specification files Checkov Apache 2.0 license
Bandit Python Bandit Apache 2.0 license
ESLint JavaScript, TypeScript, JSX, TSX ESLint MIT license
Trivy Dependency and OS package vulnerability scanning from repository manifests and lockfiles (filesystem mode) Trivy Apache 2.0 license
Syft Alpine (apk), Bitnami packages, C (conan), C++ (conan), Dart (pubs), Debian (dpkg), Dotnet (deps.json), Objective-C (cocoapods), Elixir (mix), Erlang (rebar3), Go (go.mod, Go binaries), GitHub (workflows, actions), Haskell (cabal, stack), Java (jar, ear, war, par, sar, nar, rar, native-image), JavaScript (npm, yarn), Jenkins Plugins (jpi, hpi), Linux kernel archives (vmlinuz), Linux kernel modules (ko), Nix (outputs in /nix/store), PHP (composer, PECL, Pear), Python (wheel, egg, poetry, requirements.txt, uv), Red Hat (rpm), Ruby (gem), Rust (cargo.lock, auditable binary), Swift (cocoapods, swift-package-manager), Wordpress plugins, Terraform providers (.terraform.lock.hcl) Syft Apache 2.0 license

TheseThe scanning tools listed in the preceding table support a wide range of languages and infrastructure-as-code (IaC) frameworks, ensuring thorough security analysis across your codebase.

Supported systems and file types

How agentless code scanning works

Agentless code scanning works independently of CI/CD pipelines. It uses the Azure DevOps or GitHub connector to automatically scan code and infrastructure-as-code (IaC) configurations. You don't need to modify pipelines or add extensions. This setupUsing the connector without pipeline modifications enables broad and continuous security analysis across multiple repositories. Results are processed and shown directly in Microsoft Defender for Cloud.

:::image type="content" source="media/agentless-code-scanning/agentless-code-scanning-architecture.png" alt-text="Diagram showing the architecture of agentless code scanning." lightbox="media/agentless-code-scanning/agentless-code-scanning-architecture.png":::

ScanningAgentless code scanning process

Once you enable the agentless code scanning feature within a connector, the scanning process includes these steps:

  1. Findings processing: It processes scan findings through Defender for Cloud’s backend to create actionable security recommendations.

  2. Results delivery: The system shows findings in Defender for Cloud as security recommendations. For details,details about DevOps security recommendations, see DevOps security recommendations reference.

Scan frequency and duration

After the scans finish, you can access security findings within Microsoft Defender for Cloud.

AccessView agentless code scanning findings

To access findings:

  1. For the full range of recommendations supported for both platforms, see Azure DevOps and GitHub security recommendations.

    RecommendationsAzure DevOps and GitHub security recommendations include items such as requiring multi-reviewer approvals, restricting secret access, and enforcing best practices for both Azure DevOps and GitHub environments.

    Select any recommendation to view details on affected files, severity, and remediation steps.