Cross-source coverage
T1543.005 / ATT&CK
Create or Modify System Process: Container Service
2 rules across 1 source.
From MITRE ATT&CK 19.2
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.
For example, by using the docker run or podman run command with the restart=always directive, a container can be configured to persistently restart on the host. A user with access to the (rootful) docker command may also be able to escalate their privileges on the host.
In Kubernetes environments, DaemonSets allow an adversary to persistently Deploy Containers on all nodes, including ones added later to the cluster. Pods can also be deployed to specific nodes using the nodeSelector or nodeName fields in the pod spec.
Note that containers can also be configured to run as Systemd Services.
- Tactics
- Persistence · Privilege Escalation
- Platforms
- Containers
- Telemetry
-
auditd:SYSCALLsystemd:unitkubernetes:audit
How MITRE says to detect it DET0473
Detect persistent or elevated container services via container runtime or cluster manipulation
Containers Analytic 1304
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.
auditd:SYSCALLexecvesystemd:unitcontainer run with restart policy set to 'always' or 'unless-stopped'kubernetes:auditcreatekubernetes:auditcreate
elastic/detection-rules
2 rules| Detection | Severity | Format |
|---|---|---|
| Kubernetes Sensitive Configuration File Activity | Medium | Elastic TOML |
| Kubernetes Static Pod Manifest File Access | Medium | Elastic TOML |