T1552.007: Container API
Adversaries may gather credentials via APIs within a containers environment. APIs in these environments, such as the Docker API and Kubernetes APIs, allow a user to remotely manage their container resources and cluster components.[1][2]
An adversary may access the Docker API to collect logs that contain credentials to cloud, container, and various other resources in the environment.[3] An adversary with sufficient permissions, such as via a pod's service account, may also use the Kubernetes API to retrieve credentials from the Kubernetes API server. These credentials may include those needed for Docker API authentication or secrets from Kubernetes cluster components.
Analyst context for executives and security teams
Container API access can turn a container or Kubernetes foothold into a credential exposure problem. If Docker or Kubernetes APIs are reachable and the calling identity has enough permission, an adversary may pull logs or query cluster resources that contain cloud, container, or Kubernetes secrets. For leaders, the issue is less “container compromise” in isolation and more whether API permissions, secrets handling, and audit visibility prevent one workload identity from becoming broader access across the environment.
Executive priority
Prioritize this where containers or Kubernetes support critical services, cloud access, or regulated workloads. The business question is whether container management APIs are restricted, service account permissions are minimal, and teams can prove through logs and access reviews that secrets are not broadly retrievable. This technique should inform cloud/container security funding, identity governance, incident response playbooks for suspected cluster compromise, and audit evidence around privileged access and network exposure.
Technical view
ATT&CK places this sub-technique under Credential Access and the parent technique Unsecured Credentials, with the Containers platform. SOC, detection engineering, and IR teams should validate visibility into Docker API and Kubernetes API activity, especially requests that retrieve logs, secrets, service account tokens, or cluster component credentials. The relationship to DET0198 indicates a detection strategy exists for abuse of container APIs for credential access; teams should map that strategy to local Kubernetes API server audit logging, container runtime/API logs, network access records, and identity/RBAC context. The Peirates relationship is useful context because ATT&CK describes it as a Kubernetes post-exploitation framework focused on gathering service account tokens for lateral movement and privilege escalation; detections should therefore consider suspicious service-account-driven API activity, not only human administrator activity.
Likely telemetry
- Kubernetes API server audit logs showing resource access, especially secrets, service accounts, pods, and logs
- Docker API access logs or daemon logs where available, including remote API usage
- Container and pod logs that may contain exposed credentials or access tokens
- Kubernetes RBAC and service account bindings for authorization context
- Network telemetry showing access to Docker or Kubernetes API endpoints
Detection direction
- Confirm whether DET0198-style detection logic is implemented against the telemetry actually collected in the environment.
- Baseline expected Kubernetes API access by service accounts, administrators, and automation, then alert on unusual retrieval of secrets, service account token access, or broad log collection.
- Review Docker API exposure and monitor remote management API access, especially where logs may contain credentials.
- Correlate API calls with RBAC permissions so alerts distinguish expected controllers and CI/CD automation from unexpected workload identities.
- Tune for common false positives from backup tools, operators/controllers, deployment automation, and legitimate troubleshooting that reads logs or secrets.
Mitigation priorities
- Start with user account management and service account lifecycle controls: remove stale accounts and ensure identities have a documented business purpose.
- Apply privileged account management to cluster administrator roles and high-permission service accounts, using least privilege and accountability for privileged actions.
- Restrict access to Docker and Kubernetes APIs over the network so only authorized users, systems, and workloads can reach management endpoints.
- Use network segmentation to limit exposure of container management APIs and reduce opportunities for lateral movement after a workload compromise.
- Review Kubernetes RBAC and service account permissions to reduce unnecessary ability to read secrets, logs, or cluster-wide resources.
Analyst notes and limits
This object is specifically about credential gathering through container environment APIs, including Docker API log access and Kubernetes API retrieval of credentials or secrets when permissions allow it. The supplied relationships support emphasis on account management, privileged account management, network segmentation, limiting network access to resources, and detection strategy alignment. Local implementation details matter: the same API call may be benign for a controller or administrator and suspicious for an unexpected workload identity.
The official ATT&CK detection field for this object is not provided, so detection guidance must be validated against the related DET0198 strategy and local telemetry. The supplied data does not justify claims of active exploitation, organization-specific exposure, guaranteed detection, or impact beyond credential access risk in container environments.
Container API
Adversaries may gather credentials via APIs within a containers environment. APIs in these environments, such as the Docker API and Kubernetes APIs, allow a user to remotely manage their container resources and cluster components.[1][2]
An adversary may access the Docker API to collect logs that contain credentials to cloud, container, and various other resources in the environment.[3] An adversary with sufficient permissions, such as via a pod's service account, may also use the Kubernetes API to retrieve credentials from the Kubernetes API server. These credentials may include those needed for Docker API authentication or secrets from Kubernetes cluster components.
How security teams should use this page
Treat this object as behavior context, not an attribution claim. Validate the related groups, software, data sources, and mitigations against official ATT&CK relationships and your own telemetry before making control-coverage decisions.
Related techniques
This mirrors the MITRE pattern of making group, software, campaign, and technique relationships scannable. Relationship notes come from mirrored ATT&CK relationship text when available.
| Domain | ID | Name | Relationship / procedure |
|---|---|---|---|
| Enterprise | T1552 | Unsecured Credentials | This object subtechnique of Unsecured Credentials. |
Groups, software, and campaigns
S0683: Peirates
All related ATT&CK context
Mitigation direction
Object version and sync metadata
The fields below describe the current mirrored snapshot. When Glexia retains multiple ATT&CK source imports, you can open the table to compare the same object across releases (hashes and MITRE timestamps). For MITRE’s own release notes and roadmap, see ATT&CK resources — Updates .
Imported snapshots across ATT&CK releases (1)
| Release | Bundle imported | Object version | Modified | Status | Raw hash |
|---|---|---|---|---|---|
| 19.1 | 1.2 | Current bundle | a00451bc9755… |
Mirrored ATT&CK source object
The raw object is retained through the mirrored ATT&CK source bundle and object hash. The raw endpoint returns the exact object from the mirrored bundle when available.
External references and citations
MITRE external references are preserved separately from Glexia analysis so citations remain traceable to their original source records.
-
[1]
Docker API
Docker. (n.d.). Docker Engine API v1.41 Reference. Retrieved March 31, 2021.
Open source URL -
[2]
Kubernetes API
The Kubernetes Authors. (n.d.). The Kubernetes API. Retrieved March 29, 2021.
Open source URL -
[3]
Unit 42 Unsecured Docker Daemons
Chen, J.. (2020, January 29). Attacker's Tactics and Techniques in Unsecured Docker Daemons Revealed. Retrieved March 31, 2021.
Open source URL -
[4]
mitre-attack T1552.007Open source URL
Source: MITRE ATT&CK®. © 2026 The MITRE Corporation. This work is reproduced and distributed with the permission of The MITRE Corporation. MITRE ATT&CK and ATT&CK are registered trademarks of The MITRE Corporation. Glexia is not affiliated with or endorsed by MITRE.