AutomationService
SSM Automation/Azure Automation/Cloud Deploy.
class: ManagementService
Realizing resources
aws aws
| resource | scope | enumerate | required permissions |
|---|---|---|---|
aws:cloudformation:stack |
regional | cloudformation:DescribeStacks |
cloudformation:DescribeStacks |
aws:codedeploy:application |
regional | codedeploy:ListApplications |
codedeploy:ListApplications |
aws:opsworks:stack |
regional | opsworks:DescribeStacks |
opsworks:DescribeStacks |
aws:servicecatalog:portfolio |
regional | servicecatalog:ListPortfolios |
servicecatalog:ListPortfolios |
gcp gcp
| resource | scope | enumerate | required permissions |
|---|---|---|---|
gcp:clouddeploy:delivery-pipeline |
regional | clouddeploy.projects.locations.deliveryPipelines.list |
clouddeploy.deliveryPipelines.list |
gcp:deploymentmanager:deployment |
global | deploymentmanager.deployments.list |
deploymentmanager.deployments.list |
azure azure
| resource | scope | enumerate | required permissions |
|---|---|---|---|
azure:automation:account |
global | arg:microsoft.automation/automationaccounts |
Microsoft.Automation/automationaccounts/read |
azure:datafactory:factory |
global | arg:microsoft.datafactory/factories |
Microsoft.DataFactory/factories/read |
As edge source
As edge target
Exposure sites
None.
Rules that touch AutomationService 14
Create a deployment with an attacker-controlled revision; hook scripts run as root on every EC2/on-prem instance in the deployment group, yielding fleet-wide command execution.
CodeDeploy lifecycle hook scripts (running as root on EC2/on-prem targets) can read the instance profile role credentials from IMDS, exposing them to the attacker's code.
A CodePipeline Deploy stage action invokes the CodeDeploy deployment group; emit CanTrigger from the pipeline's execution identity so cicd-chains propagates pipeline-level trigger capability.
aws
CanTriggerTrigger a deployment to execute orchestration-plane actions as the deployment group's service role - requires a run path.
aws
CanExecuteAsssm:StartChangeRequestExecution triggers an Automation runbook with Change Manager approval gating.
aws
CanTriggerA shared SSM Automation document gives the sharing-account identity code control over any BuildWorker in the target account that executes it.
aws
CanModifyCodessm:StartAutomationExecution triggers an existing Automation BuildWorker runner that executes as its AutomationAssumeRole.
aws
CanTriggerssm:UpdateDocument rewrites a customer-owned Automation document's steps - the executed definition of the BuildWorker runner.
aws
CanModifyCodeAttach a privileged managed identity to a new or existing Automation Account and trigger a runbook - equivalent to creating a new workload bound to that identity.
azure
CanCreateWorkloadAsAn Automation Account sandbox job executes as the bound managed identity; any code running in the sandbox can mint MI tokens from IMDS.
azure
ExecutesAsAn Automation Account sandbox job exposes its bound MI's token to any code it runs via the IMDS endpoint.
azure
ExposesCredentialAn Automation Account with a legacy RunAs account exposes the RunAs service principal certificate to any runbook via Get-AutomationConnection.
azure
ExposesCredentialCode executing in an Automation Account sandbox can retrieve a bearer token for the bound MI from IMDS.
azure
CanRetrieveTokenAn enabled Automation Account webhook with a public URI is internet-triggerable; any holder of the URI can start a runbook job.
azure
ExposedToInternet