Attackers Leverage Sidecar Container Injection Technique To Stay Stealthy

Kubernetes (K8s) is an open-source container orchestration platform designed to automate application container deployment, scaling, and running. 



Containers are isolated software packages that are lightweight and contain everything required for running an app. 



In Kubernetes, a “sidecar” refers to an additional container that runs alongside the main application container in the same pod to enhance its capabilities. 



However, cybersecurity researchers at TrendMicro recently discovered that threat actors can leverage the Sidecar Container injection technique to remain stealthily.



Sidecar Container Injection Technique



Sidecar containers help modularize features and functionalities that do not directly relate to the main application logic but which are necessary for efficient operation.






Document
@import url('https://fonts.googleapis.com/css2?family=Poppins&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Poppins&family=Roboto&display=swap');
*{
margin: 0; padding: 0;
text-decoration: none;
}
.container{
font-family: roboto, sans-serif;
width: 90%;
border: 1px solid lightgrey;
padding: 20px;
background: linear-gradient(2deg,#E0EAF1 100%,#BBD2E0 100%);
margin: 20px auto ;
border-radius: 40px 10px;
box-shadow: 5px 5px 5px #e2ebff;
}
.container:hover{
box-shadow: 10px 10px 5px #e2ebff;

}
.container .title{
color: #015689;
font-size: 22px;
font-weight: bolder;
}
.container .title{
text-shadow: 1px 1px 1px lightgrey;
}
.container .title:after {
width: 50px;
height: 2px;
content: ' ';
position: absolute;
background-color: #015689;
margin: 20px 0;
}
.container h2{
line-height: 40px;
margin: 5px 3px;
font-weight: bolder;
}
.container a{

color: #170d51;
}
.container p{
font-size: 18px;
line-height: 30px;
margin: 10px 0;

}

.container button{
padding: 15px;
background-color: #4469f5;
border-radius: 10px;
border: none;
background-color: #00456e ;
font-size: 16px;
font-weight: bold;
margin-top: 5px;
}
.container button:hover{
box-shadow: 1px 1px 15px #015689;
transition: all 0.2S linear;

}
.container button a{
color: white;
}
hr{
/ display: none; /
}

.listWrapper {
padding-left: 4rem;
/*list-style-type: none;*/
}

.listWrapper li {
/*padding-left: 2rem;
background-image: url(star.svg);*/
background-position: 0 0;
line-height: 2rem;
background-size: 1.6rem 1.6rem;
background-repeat: no-repeat;
}

Integrate ANY.RUN in Your Company for Effective Malware Analysis
Are you from SOC, Threat Research, or DFIR departments? If so, you can join an online community of 400,000 independent security researchers:
Real-time Detection
Interactive Malware Analysis
Easy to Learn by New Security Team members
Get detailed reports with maximum data
Set Up Virtual Machine in Linux & all Windows OS Versions
Interact with Malware Safely
If you want to test all these features now with completely free access to the sandbox:


Try ANY.RUN for FREE



They have the same lifecycle and a local network with the primary container that follows the single responsibility principle and improves system maintainability.



Here below, we have mentioned the ways to use sidecar containers for logging purposes legitimately:-



The sidecar container directs application logs to its standard output:

Streaming sidecar container (Source – Trend Micro)


The sidecar container operates a logging agent to retrieve logs from the application container:

Sidecar container with a logging agent (Source – Trend Micro)


The Kubernetes threat matrix provides a structured understanding of the TTPs that may be employed by threat actors against Kubernetes installations as inspired by MITRE ATT&CK . 



One technique, like MS-TA9011 Sidecar Injection, allows an attacker to inject a malicious sidecar container into a valid pod for unauthorized code execution and hiding operations rather than deploying another pod altogether. 



This is related to MITRE’s Deploy Container (T1610) technique, which allows attackers to deploy containers onto systems they have compromised or gained access to.



They can also compromise the behavior of an already installed sidecar container, install malware, or execute unauthorized binaries such as cryptocurrency miners through API or kubectl tool. 



When threatening Kubernetes clusters, this method helps them remain unnoticed within victims’ infrastructures.



Valid sidecar containers increase the difficulty of managing and detecting compromises in a Kubernetes cluster.



It is essential to consider them as any other container and watch out for strange operations. So, it is advisable to introduce a fresh MITRE ATT&CK technique that concentrates on sidecar injection.



Mitigations And Recommendations



Here below we have mentioned all the mitigations provided by the cybersecurity researchers:-



MS-M9003: Adhere to least-privilege principle



MS-M9013: Restrict over permissive containers



MS-M9005.003: Gate images deployed to Kubernetes cluster
Here below we have mentioned all the recommendations:-



Ensure there’s a valid justification for segregating the containers.



Aim for concise, modular designs.



Be mindful of resource boundaries.
Combat Email Threats with Easy-to-Launch Phishing Simulations: Email Security Awareness Training -> Try Free Demo 
The post Attackers Leverage Sidecar Container Injection Technique To Stay Stealthy appeared first on GBHackers on Security | #1 Globally Trusted Cyber Security News Platform .