Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Example Azure DevOps Multi-Stage YAML Pipeline triggered off malicious branch
trigger:
branches:
include:
- 'main'
- 'malicious-change'
pr: none
stages:
- stage: Build
jobs:
- job: Malicious_Activities
pool:
vmImage: 'Ubuntu-16.04'
continueOnError: true
variables:
- group: 'PRODUCTION Secrets'
steps:
- script: echo 'Send $(SQLAdministratorLoginUsername) to Pastebin or some external location'
- task: AzurePowerShell@5
displayName: 'Run malicious code in Azure Production envrionment'
inputs:
azureSubscription: 'Azure PRODUCTION'
ScriptType: InlineScript
Inline: '# Run some malicious code with access to Azure Production'
azurePowerShellVersion: latestVersion
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment