T1059.013 Container CLI/API is a sub-technique of Command and Scripting Interpreter (T1059) in the MITRE ATT&CK framework, under the Execution tactic. It refers to the abuse of Command Line Interfaces (CLI) and Application Programming Interfaces (APIs) to manage and interact with containerized environments.
Containers are a fundamental part of modern infrastructure, enabling scalable, isolated environments for application deployment. The CLI provides a command-line interface for managing containers, including actions like starting, stopping, and configuring them, while the API allows programmatic access for remote management and automation of containerized applications. Both interfaces are essential for managing containerized environments and can be leveraged to execute commands, orchestrate workflows, and automate operations across systems.
To read about other sub-techniques of the T1059 Command and Scripting Interpreter technique, you can visit the related hub blog.
Adversaries exploit the CLI and API techniques to gain unauthorized access and control over containerized environments. Containers, which package applications and their dependencies in isolated environments, are commonly used in modern infrastructure due to their scalability and efficiency.
Adversary Use:
In essence, adversaries utilize the Container CLI/API technique to manipulate containers for a variety of malicious purposes, taking advantage of their inherent flexibility and, at times, insufficiently secured configurations.