Cloud Administration Command T1651

Tactic: Execution

Adversaries may abuse cloud management services to execute commands within virtual machines. Resources such as AWS Systems Manager, Azure RunCommand, and Runbooks allow users to remotely run scripts in virtual machines by leveraging installed virtual machine agents.

Events covered

9 catalog events are tagged with this technique by at least one rule.

Authoring guide

Patterns shared across the 22 rules above: which fields they filter on, what specific values they look for, and what they exclude. The catalog normalizes field names across vendors so Sigma's Image, Elastic's process.name, and Splunk's process_name collapse into one row. Each rule contributes at most once per row.

Fields filtered most (57 distinct)

The fields most rules look at when detecting this technique. The How column shows the operators authors use (eq, wildcard, regex_match, match) and how often each appears. Sample values are concrete examples to start from, not an exhaustive list.

FieldRulesHowSample values
EventType10eq 6, in 4, wildcard 1SendCommand, exec, exec_event, ConnectionAttempt, ConnectionFailed
data_stream.dataset7eq 7aws.cloudtrail, azure.activitylogs, endpoint.events.process, gcp.audit
event.outcome6eq 4, in 2success, Success
parent_process_name5eq 5, in 2bash, customscripthandler.exe, powershell.exe, busybox, csh
process_name4eq 2, in 2, ne 1aws, base64, bash, conhost.exe, curl
Provider_Name3eq 3ssm.amazonaws.com, cloudformation.amazonaws.com
event.category3eq 3process
AppId2eq 2FociClientApplications
CommandLine2eq 1, is_not_null 1%/document/orchestration/%/awsrunShellScript/%/_script.sh
HomeTenantId2eq 2ResourceTenantId
IncomingTokenType2eq 2, ne 2none
ParentCommandLine2eq 2powershell -ExecutionPolicy Unrestricted -File script?.ps1
SecondAppDisplayName2in 2Microsoft Azure CLI, Microsoft Azure PowerShell, Copilot App, Office 365 Management
TimeDiff2ge 2, le 10, 1, 90
azure.activitylogs.operation_name2eq 2MICROSOFT.COMPUTE/VIRTUALMACHINES/EXTENSIONS/WRITE, MICROSOFT.COMPUTE/VIRTUALMACHINES/RUNCOMMAND/ACTION

Top indicator values (160 distinct)

Specific (field, operator, value) combinations the rules check for, ranked by how many rules under this technique use each one. The Corpus reach column counts how many rules across the entire catalog (any technique) check the same combination. High numbers point to widely-used indicators that are likely noisy on their own; combine them with another condition for useful signal. Blank means the combination is specific to rules under this technique. Click a value to expand the rules under this technique that use it.

FieldKindValueRules (here)Corpus reach
data_stream.dataseteq
aws.cloudtrail
4141
data_stream.dataseteq
azure.activitylogs
234
event.outcomeeq
success
4251
event.categoryeq
process
3128
parent_process_nameeq
powershell.exe
315
parent_process_nameeq
customscripthandler.exe
22
AppIdeq
FociClientApplications
22
EventTypeeq
FileCreated
28
EventTypeeq
SendCommand
22
EventTypein
exec
2171
EventTypein
exec_event
2139
EventTypein
executed
288
EventTypein
process_started
274
HomeTenantIdeq
ResourceTenantId
22
IncomingTokenTypeeq
none
22
IncomingTokenTypene
none
22
ParentCommandLineeq
powershell -ExecutionPolicy Unrestricted -File script?.ps1
22
Provider_Nameeq
ssm.amazonaws.com
25
SecondAppDisplayNamein
Microsoft Azure CLI
22
SecondAppDisplayNamein
Microsoft Azure PowerShell
22
event.outcomein
Success
237
event.outcomein
success
238
parent_process_namein
bash
230
parent_process_namein
dash
227
parent_process_namein
sh
230
resultTypein
Succeeded
251
resultTypein
Success
251
AccountDisplayNamecontains
itaccounts
1
AccountUPNcontains
itaccounts
1
AppDisplayNamene
SecondAppDisplayName
1

Exclusions (47 distinct)

Field/operator/value combinations excluded by rules under this technique (top-level not() clauses), sorted by how many rules exclude each. These are the false-positive paths the community has learned to filter out. A new rule that ignores the high-count entries here will likely fire on the same noisy paths. Click a value to expand the rules under this technique that exclude it.

FieldKindValueRules excluding
AccountDisplayNamecontains
itaccounts
1
AccountUPNcontains
itaccounts
1
Applicationcontains
cli
1
Applicationcontains
command line
1
Applicationcontains
management shell
1
Applicationcontains
powershell
1
AssignedRoleseq
0
1
CommandLineends_with
/checkExclusionPreference/_script.sh
1
CommandLineends_with
/checkProvisioningEligibility/_script.sh
1
CommandLineends_with
/install/_script.sh
1
CommandLineends_with
/invokeInspectorSsmPluginLinux/_script.sh
1
CommandLineends_with
/uninstall/_script.sh
1
CommandLineends_with
\\createUpdateFolder\\_script.ps1
1
CommandLineends_with
ssm-user
1
Departmentcontains
ict
1

Rules under this technique

Every rule in the catalog tagged with this technique, grouped by vendor. Click a rule title for its full predicates, exclusions, and indicators.

Platform (all)
Domain (all)

Elastic 11 rules

Kusto 9 rules

Panther 2 rules