Skip to content
3.0 preview2.3.0 stable

These docs describe the preview. Pick the version you run and every page marks what it doesn't have yet. Get the preview →
Maester 2.x docs (archived) →

Sponsor

Enable shell tasks arguments validation

AZDO.1025HighAzure DevOpsPipelinesPreview 3.0

Part of Maester · Azure DevOps · Pipelines · All checks

Run this check
Invoke-Maester -TestId AZDO.1025

Enable Shell Task Validation to prevent code injection.

Rationale: Code injection through arguments parameters should be prevented.

Enable the policy to stop these requests and notifications.

  1. Sign in to your organization.
  2. Choose Organization settings.
  3. Select Settings under Pipelines.
  4. Go to the section “Task restrictions” and turn on “Enable shell tasks arguments validation”

Results: This validation applies to the arguments parameter in the following specific tasks:

  • PowerShell
  • BatchScript
  • Bash
  • Ssh
  • AzureFileCopy
  • WindowsMachineFileCopy
Every attribute of this check
FieldValue
Test IDAZDO.1025
SeverityHigh
SuiteMaester
ProductAzure DevOps
FeaturePipelines
AreaEngineering systems
Resource typeTenant
User impactLow
Implementation costLow
MITRE ATT&CKT1059 Command and Scripting Interpreter, T1677 Poisoned Pipeline Execution
Supports controlsnist-800-53-r5:SI-10
PowerShell testTest-AzdoOrganizationTaskRestrictionsShellTaskArgumentValidation
ServicesAzureDevOps
Learn morehttps://learn.microsoft.com/azure/devops/pipelines/security/inputs?view=azure-devops#shellTasksValidation