| name | T1053.007_container-orchestration-job |
| description | Adversaries may abuse task scheduling functionality provided by container orchestration tools such as Kubernetes to schedule deployment of containers configured to execute malicious code. |
| category | input-validation |
| version | 18.1 |
| author | cyberstrike-official |
| tags | ["mitre-attack","enterprise","t1053.007","execution","persistence","privilege-escalation","containers","sub-technique"] |
| technique_id | T1053.007 |
| tactic | execution |
| all_tactics | ["execution","persistence","privilege-escalation"] |
| platforms | ["Containers"] |
| mitre_url | https://attack.mitre.org/techniques/T1053/007 |
| tech_stack | ["containers"] |
| cwe_ids | ["CWE-94"] |
| chains_with | ["T1053","T1053.002","T1053.003","T1053.005","T1053.006"] |
| prerequisites | ["T1053"] |
| severity_boost | {"T1053":"Chain with T1053 for deeper attack path","T1053.002":"Chain with T1053.002 for deeper attack path","T1053.003":"Chain with T1053.003 for deeper attack path"} |
T1053.007 Container Orchestration Job
Sub-technique of: T1053
High-Level Description
Adversaries may abuse task scheduling functionality provided by container orchestration tools such as Kubernetes to schedule deployment of containers configured to execute malicious code. Container orchestration jobs run these automated tasks at a specific date and time, similar to cron jobs on a Linux system. Deployments of this type can also be configured to maintain a quantity of containers over time, automating the process of maintaining persistence within a cluster.
In Kubernetes, a CronJob may be used to schedule a Job that runs one or more containers to perform specific tasks. An adversary therefore may utilize a CronJob to schedule deployment of a Job that executes malicious code in various nodes within a cluster.
Kill Chain Phase
- Execution (TA0002)
- Persistence (TA0003)
- Privilege Escalation (TA0004)
Platforms: Containers
What to Check
How to Test
Atomic Red Team Tests
The following tests are from Atomic Red Team and provide actionable ways to test this technique:
Atomic Test 1: ListCronjobs
Kubernetes Job is a controller that creates one or more pods and ensures that a specified number of them successfully terminate. Kubernetes Job can be used to run containers that perform finite tasks for batch jobs. Kubernetes CronJob is used to schedule Jobs. Attackers may use Kubernetes CronJob for scheduling execution of malicious code that would run as a container in the cluster.
Supported Platforms: containers
kubectl get cronjobs -n
Dependencies:
- kubectl must be installed
Atomic Test 2: CreateCronjob
Kubernetes Job is a controller that creates one or more pods and ensures that a specified number of them successfully terminate. Kubernetes Job can be used to run containers that perform finite tasks for batch jobs. Kubernetes CronJob is used to schedule Jobs. Attackers may use Kubernetes CronJob for scheduling execution of malicious code that would run as a container in the cluster.