Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Adversaries may implant cloud or container images with malicious code to establish persistence after gaining access to an environment.
| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-03 | ✗→✓ | ▲ Improved | 82% | 0% |
| case-09 | ✗→✓ | ▲ Improved | 5% | 0% |
| case-18 | ✗→✓ | ▲ Improved | -51% | 0% |
| case-14 | ✓→✗ | ▼ Worse | 91% | 0% |
| case-05 | ✓→✗ | ▼ Worse | 44% | 0% |
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.
A tool has been developed to facilitate planting backdoors in cloud container images. If an adversary has access to a compromised AWS instance, and permissions to list the available container images, they may implant a backdoor such as a Web Shell.
Platforms: IaaS, Containers
> Note: No Atomic Red Team tests available for this technique. See Atomic Red Team GitHub for updates.
Several cloud service providers support content trust models that require container images be signed by trusted sources.
Limit permissions associated with creating and modifying platform images or containers based on the principle of least privilege.
Periodically check the integrity of images and containers used in cloud deployments to ensure they have not been modified to include malicious software.
| Finding | Severity | Impact | | ------------------------------------------- | -------- | ----------- | | Implant Internal Image technique applicable | High | Persistence |
| CWE ID | Title | | ------- | ----------------------------- | | CWE-276 | Incorrect Default Permissions |
Other measured skills in the registry, with their headline benchmark lift.