Container Service T1543.005
- Tactics
- Persistence, Privilege Escalation
- Platform
- Containers
- Version
- 1.0
- Created
- 15 February 2024
- Last modified
- 15 April 2025
Adversaries may create or modify container or container cluster management tools that run as daemons, agents, or services on individual hosts. These include software for creating and managing individual containers, such as Docker and Podman, as well as container cluster node-level agents such as kubelet. By modifying these services, an adversary may be able to achieve persistence or escalate their privileges on a host.
Offense vs defense T1543.005
Is defensive coverage keeping up with adversary use? Eight counts, each ranked against all 697 ATT&CK techniques. Attack sits left, defense right, so a shape leaning left means adversaries are better documented here than defenders are equipped. Hover any spoke for its percentile and the share of techniques that have more. The timeline below shows when each side arrived.
Container Service detection strategy DET0473
MITRE names one behaviour worth catching for this technique and breaks it into 1 analytic, one per platform. Each carries the log sources it needs and the fields you tune per environment.
Detect persistent or elevated container services via container runtime or cluster manipulation
AN1304 · Containers
Correlate the creation or modification of containers using restart policies (e.g., 'always') or DaemonSets with elevated host access, service account misuse, or privileged container contexts. Watch for manipulation of systemd units involving containers or pod scheduling targeting specific nodes or namespaces.
Log sources
The data this analytic draws on. You do not need every component — each one you already collect covers part of it. Each links to its ATT&CK record.
| Data component | Name | Channel |
|---|---|---|
| Pod CreationDC0019 | kubernetes:audit | create |
| Process CreationDC0032 | auditd:SYSCALL | execve |
| Service CreationDC0060 | kubernetes:audit | create |
| Container CreationDC0072 | systemd:unit | container run with restart policy set to 'always' or 'unless-stopped' |
Tunable fields
MITRE calls these the analytic’s mutable elements: the thresholds and filters you set for your own environment.
| Field | What you tune |
|---|---|
| restartPolicy | Tune for environments that legitimately use 'always' or 'unless-stopped' in trusted containers |
| targetNamespace | Scope detection to high-risk namespaces (e.g., kube-system) |
| nodeSelector|nodeName | Adjust if targeting known cluster configurations or test environments |
| unitFilePath | Adapt to your OS/systemd hierarchy and container binary references |
| TimeWindow | Adjust temporal correlation (e.g., container launch → privilege escalation) |
Where possible, consider enforcing the use of container services in rootless mode to limit the possibility of privilege escalation or malicious effects on the host running the container.
Limit access to utilities such as docker to only users who have a legitimate need, especially if using docker in rootful mode. In Kubernetes environments, only grant privileges to deploy pods to users that require it.