Implant Internal Image T1525

Tactic: Persistence

Adversaries may implant cloud or container images with malicious code to establish persistence after gaining access to an environment. Amazon Web Services (AWS) Amazon Machine Images (AMIs), Google Cloud Platform (GCP) Images, and Azure Images as well as popular container runtimes such as Docker can be implanted or backdoored. Unlike Upload Malware, this technique focuses on adversaries implanting an image in a registry within a victim’s environment. Depending on how the infrastructure is provisioned, this could provide persistent access if the infrastructure provisioning tool is instructed to always use the latest image.

Authoring guide

These 5 rules share fields, values, and exclusions.

Fields filtered most (10 distinct)

These fields appear most often in rule filters.

FieldRulesHowSample values
aws::eventName3in 2, eq 1AddPermission, BatchCheckLayerAvailability, BatchDeleteImage, BatchGetImage, CreateAlias
aws::eventSource3eq 3ecr.amazonaws.com, ecs.amazonaws.com, lambda.amazonaws.com
EventType1in 1createcustommodeldeployment, createmarketplacemodelendpoint, createmodelimportjob
Provider_Name1eq 1bedrock.amazonaws.com
data_stream.dataset1eq 1aws.cloudtrail
event.outcome1eq 1success
namespace1in 1gke-system, kube-node-lease, kube-public
requestParameters.containerDefinitions.command1contains 1$aws_container_credentials_relative_uri
subresource1is_null 1
username1contains 1serviceaccount

Top indicator values (46 distinct)

These values appear most often in rule predicates.

FieldKindValueRules (here)Corpus reach
EventTypein
createcustommodeldeployment
1
EventTypein
createmarketplacemodelendpoint
1
EventTypein
createmodelimportjob
1
EventTypein
registermarketplacemodelendpoint
1
Provider_Nameeq
bedrock.amazonaws.com
116
aws::eventNameeq
describetaskdefinition
1
aws::eventNameeq
registertaskdefinition
1
aws::eventNameeq
runtask
1
aws::eventNamein
AddPermission
1
aws::eventNamein
BatchCheckLayerAvailability
1
aws::eventNamein
BatchDeleteImage
1
aws::eventNamein
BatchGetImage
1
aws::eventNamein
CompleteLayerUpload
1
aws::eventNamein
CreateAlias
1
aws::eventNamein
CreateEventSourceMapping
1
aws::eventNamein
CreateFunction
1
aws::eventNamein
CreateRepository
1
aws::eventNamein
DeleteAlias
1
aws::eventNamein
DeleteEventSourceMapping
1
aws::eventNamein
DeleteFunction
1
aws::eventNamein
DeleteRepository
1
aws::eventNamein
DeleteRepositoryPolicy
1
aws::eventNamein
GetAuthorizationToken
1
aws::eventNamein
GetDownloadUrlForLayer
1
aws::eventNamein
GetRepositoryPolicy
1
aws::eventNamein
InitiateLayerUpload
1
aws::eventNamein
PublishVersion
1
aws::eventNamein
PutImage
1
aws::eventNamein
RemovePermission
1
aws::eventNamein
SetRepositoryPolicy
1

Exclusions (9 distinct)

These values appear most often in top-level exclusions.

FieldKindValueRules excluding
aws::userIdentity.arnends_with
DeployRole
2
resourcene
pods
1
responseStatus.codege
1
1
responseStatus.codege
400
1
responseStatus.codele
16
1
usernamein
aksService
1
usernamein
masterclient
1
usernamestarts_with
system:
1
verbne
create
1

Rules under this technique

These vendors publish rules tagged with this technique.

Domain: Cloud

Platform (all)

Sigma 1 rule

Elastic 1 rule

Panther 3 rules