Disable Marketplace tasks
AZDO.1023 is in Maester 3.0.0-preview and not in the stable 2.3.0 release yet. It will be in the next stable release. To use it now, install the preview:
Install-Module Maester -AllowPrerelease -ForceHow to get the preview, and go backUse the preview in GitHub Actions
Part of Maester · Azure DevOps · Pipelines · All checks
Invoke-Maester -TestId AZDO.1023Overview
Section titled “Overview”Disable the ability to install and run tasks from the Marketplace, which gives you greater control over the code that executes in a pipeline.
Rationale: Tasks from the marketplace should be reviewed and approved.
Remediation action
Section titled “Remediation action”Enable the restriction to prevent marketplace tasks from executing in pipelines.
- Sign in to your organization.
- Choose Organization settings.
- Select Settings under Pipelines.
- Go to the section “Task restrictions” and turn on “Disable marketplace tasks”
Results: With this enabled, pipelines will not use tasks installed from the Marketplace. Jobs which depend on Marketplace tasks will fail.
Related links
Section titled “Related links”Details
Section titled “Details”Every attribute of this check
| Field | Value |
|---|---|
| Test ID | AZDO.1023 |
| Severity | High |
| Suite | Maester |
| Product | Azure DevOps |
| Feature | Pipelines |
| Area | Engineering systems |
| Resource type | Tenant |
| User impact | Medium |
| Implementation cost | High |
| MITRE ATT&CK | T1195.001 Compromise Software Dependencies and Development Tools |
| Supports controls | nist-800-53-r5:CM-7, nist-800-53-r5:CM-11 |
| PowerShell test | Test-AzdoOrganizationTaskRestrictionsDisableMarketplaceTask |
| Services | AzureDevOps |
| Learn more | https://learn.microsoft.com/azure/devops/pipelines/security/overview?view=azure-devops#prevent-malicious-code-execution |
Source
Section titled “Source”About this check
- Severity
- High
- Effort to fix
- High
- Impact on users
- Medium
- Product
- Azure DevOps
- Feature
- Pipelines
- Area
- Engineering systems
- Suite
- Maester