Skip to main content
Version: 3.0.0-preview

AZDO.1025 - Enable shell tasks arguments validation.

Overview​

Enable Shell Task Validation to prevent code injection.

Rationale: Code injection through arguments parameters should be prevented.

Remediation action​

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

Test Metadata​

FieldValue
Test IDAZDO.1025
SeverityHigh
SuiteMaester
CategoryAzure DevOps
PowerShell testTest-AzdoOrganizationTaskRestrictionsShellTaskArgumentValidation
ServicesAzureDevOps
Learn morehttps://learn.microsoft.com/azure/devops/pipelines/security/inputs?view=azure-devops#shellTasksValidation
TagsAZDO, AZDO.1025

Source​