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
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

Source​